[lxc-users] lxc-console breaks on container reboot if someone is attached to it

Fajar A. Nugraha list at fajar.net
Thu Mar 5 02:32:21 UTC 2015


On Thu, Mar 5, 2015 at 9:21 AM, Bostjan Skufca <bostjan at a2o.si> wrote:
> Here are the steps to reproduce (lxc 1.0.7), assuming container is already
> running:

> ### Step 3: watch the shutdown messages in console on host:
> ...(all irrelevant content)...
> AT LAST:  Rebooting...
> lxc_container: console.c: lxc_console_cb_tty_master: 672 Input/output error
> - failed to read
>
> ### Step 4: try to reconnect console
> HOST# lxc-console -n CONTAINER -t console
> lxc_container: commands.c: lxc_cmd_console: 709 console 0 invalid,busy or
> all consoles busy

Works for me. Try upgrading lxc.

...
[root at c7 ~]# reboot
...
[  OK  ] Stopped target Remote File Systems.
lxc_container: console.c: lxc_console_cb_tty_master: 672 Input/output
error - failed to read

utopic ~ # lxc-console -n c7 -t console

Connected to tty 0
Type <Ctrl+a q> to exit the console, <Ctrl+a Ctrl+a> to enter Ctrl+a itself
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Mounted Huge Pages File System.
...

Ubuntu 14.10 host
lxc 1.1.0+master~20150224-0137-0ubuntu1~utopic
lxcfs 0.6-0ubuntu1~ubuntu14.10.1~ppa1
centos7 container, with systemd-219

-- 
Fajar


More information about the lxc-users mailing list