• D
    Add support for multiple consoles in LXC · 0f31f7b7
    Daniel P. Berrange 提交于
    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
    0f31f7b7
lxc_container.c 39.0 KB