[lxc-users] It hangs when connect container with ssh or lxc-console

John Y. wjseven1707 at gmail.com
Thu Aug 4 15:03:58 UTC 2016


Hi,

I using lxc containers on fedora.

It hang when I exec lxc-console -n test or ssh.

lxc-console hang:

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

ssh hang:

Connecting to 20.251.51.190:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.



The contain still running and I can connect the container by lxc-attach -n
test.

my config:
lxc.utsname = yaowjtest
lxc.tty = 4
lxc.rootfs = /home/lxc-root
lxc.mount = /home/lxc.fstab
lxc.network.type=veth
lxc.network.link=eucabr
lxc.network.hwaddr=52:54:00:e8:96:07


/home/lxc.fstab:

none /home/lxc-root/dev/pts devpts defaults 0 0
none /home/lxc-root/proc proc defaults 0 0
none /home/lxc-root/sys sysfs defaults 0 0
none /home/lxc-root/var/lock tmpfs defaults 0 0
none /home/lxc-root/var/run tmpfs defaults 0 0


In container:

mount:

devtmpfs on /dev type devtmpfs
(rw,nosuid,size=33319152k,nr_inodes=2082447,mode=755)
none on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)
none on /proc type proc (rw,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /run type tmpfs (rw,relatime)
none on /sys type sysfs (rw,relatime)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
/dev/sda3 on / type ext2 (rw,relatime,errors=continue,user_xattr,acl)

ll /dev/tty*:

crw-rw-rw- 1 root tty   5,  0 Aug  4 14:44 /dev/tty
crw--w---- 1 root tty 136,  8 Aug  4 14:44 /dev/tty1
crw--w---- 1 root tty 136, 15 Aug  4 14:44 /dev/tty2
crw--w---- 1 root tty 136, 16 Aug  4 14:44 /dev/tty3
crw--w---- 1 root tty 136, 17 Aug  4 14:44 /dev/tty4



Any idea?

Thanks,
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160804/c202d070/attachment.html>


More information about the lxc-users mailing list