]> xenbits.xensource.com Git - libvirt.git/commit
Add support for multiple consoles in LXC
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 20 Oct 2011 08:44:31 +0000 (09:44 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 3 Nov 2011 12:01:13 +0000 (12:01 +0000)
commit0f31f7b7946fb271cc2653ff08046aaaa207b7ce
treed5a2f410260e5e0037282c1c327fd43c19b5e173
parent86b53e59d8a89f35f29e89725e3746f70c909938
Add support for multiple consoles in LXC

Currently the LXC controller only supports setup of a single
text console. This is wired up to the container init's stdio,
as well as /dev/console and /dev/tty1. Extending support for
multiple consoles, means wiring up additional PTYs to /dev/tty2,
/dev/tty3, etc, etc. The LXC controller is passed multiple open
file handles, one for each console requested.

* src/lxc/lxc_container.c, src/lxc/lxc_container.h: Wire up
  all the /dev/ttyN links required to symlink to /dev/pts/NN
* src/lxc/lxc_container.h: Open more container side /dev/pts/NN
  devices, and adapt event loop to handle I/O from all consoles
* src/lxc/lxc_driver.c: Setup multiple host side PTYs
src/lxc/lxc_container.c
src/lxc/lxc_container.h
src/lxc/lxc_controller.c
src/lxc/lxc_driver.c