[lxc-users] lxc-console produces no output

Serge Hallyn serge.hallyn at ubuntu.com
Fri May 9 02:56:36 UTC 2014


Quoting Robert Pendell (shinji at elite-systems.org):
> OS: Ubuntu 14.04 LTS x86_64
> Kernel: Host-Supplied 3.14.1
> Provider: Linode
> Host Virtualization: Xen Paravirtualized
> LXC Version: 1.0.3-0ubuntu3
> Guest: CentOS 6 i386
> 
> I know I've seen this issue crop up before however I don't know how it
> has been fixed and the solution may vary.
> 
> I'm using a standard Centos template created using the download type.
> It is running in unprivileged mode and for some reason lxc-console
> isn't producing any output when I attempt to connect to it.
> 
> Here is what I get:
> shinji at icarus:~$ sudo lxc-console -n gateone
> 
> Connected to tty 1
> Type <Ctrl+a q> to exit the console, <Ctrl+a Ctrl+a> to enter Ctrl+a itself

Before you run lxc-console, find the host pid of the mingetty on
pts/1, and strace -f -p that one.

> That is literally it.  I do see mingetty running when I check so I'm
> not sure why it isn't giving me any output.
> 
> Any help is appreciated.  At the moment however I can ssh and lxc-attach fine.
> 
> shinji at icarus:~$ ps axfO euser
> [snip...]
>  8927 root     S ?        00:00:00 lxc-start
>  8967 800000   S ?        00:00:00  \_ init
>  9235 800000   S ?        00:00:00      \_ dhclient
>  9268 800000   S ?        00:00:00      \_ rsyslogd
>  9289 800500   S ?        00:00:00      \_ python
>  9325 800500   S pts/0    00:00:00      |   \_ sh
>  9326 800500   S pts/0    00:00:00      |       \_ dtach
>  9327 800500   S ?        00:00:00      |           \_ dtach
>  9328 800500   S pts/1    00:00:00      |               \_ python
>  9299 800000   S ?        00:00:00      \_ sshd
>  9924 800000   S pts/1    00:00:00      \_ mingetty
>  9925 800000   S pts/7    00:00:00      \_ mingetty
>  9926 800000   S pts/5    00:00:00      \_ mingetty
>  9927 800000   S pts/3    00:00:00      \_ mingetty
>  9928 800000   S pts/8    00:00:00      \_ mingetty
> 
> 
> 
> At this point I have an unprivileged container that
> Robert Pendell
> shinji at elite-systems.org
> A perfect world is one of chaos.
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users


More information about the lxc-users mailing list