[pkg-lxc-devel] Bug#907615:

StalkR stalkr at stalkr.net
Fri Sep 6 16:16:39 BST 2019


Hello,

I just encountered the same issue.
Thanks Alex for debugging and finding the reason: lxc-console attaches
by default to tty 1 vs. but the template listens by default on tty 0.

Host is an up-to-date Debian buster, with packages lxc
(1:3.1.0+really3.0.3-8) and lxc-templates (3.0.3-1).
I created a Debian buster container like this:
# lxc-create -n buster -t debian -- -r buster
Then tried to open a console like this:
# lxc-console -n buster
Connected to tty 1
Type <Ctrl+a q> to exit the console, <Ctrl+a Ctrl+a> to enter Ctrl+a itself

Nothing happened, so I specified tty 0 and it worked:

# lxc-console -n buster -t 0
Connected to tty 0
Type <Ctrl+a q> to exit the console, <Ctrl+a Ctrl+a> to enter Ctrl+a itself

buster login:

Now I don't actually need lxc-console, I use lxc-attach which works
great, but when I tested it it was weird that it didn't work with
default options.

Thanks!



More information about the Pkg-lxc-devel mailing list