I am having exactly the same problem (I tried installing a openvpn
server inside the LXC and needed to use autodev to setup TUN interface).
My host machine failed shortly after:
cat > /usr/share/lxc/config/common.conf.d/02-openvpn-auto-tun.conf << EOL
lxc.hook.autodev = /usr/share/lxc/hooks/openvpn-auto-tun
EOL
cat > /usr/share/lxc/hooks/openvpn-auto-tun << EOL
#!/bin/bash
cd ${LXC_ROOTFS_MOUNT}/dev
mkdir net
mknod net/tun c 10 200
chmod 0666 net/tun
EOL
chmod 755 /usr/share/lxc/hooks/openvpn-auto-tun
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1425477
Title:
After some time of LXC usage SSH fails with `openpty: Permission
denied`
Status in lxc package in Ubuntu:
Invalid
Bug description:
I'm running Ubuntu 14.04.2 LTS on GNU/Linux 3.13.0-45-generic x86_64
as a host machine for tests run on LXC guests.
After a few test runs on LXC machines, startup of next LXC machine hangs
indefinitely.
At the same time SSH connections to the host machine display "PTY allocation
request failed on channel 0" and SSH logs in auth.log
Feb 25 05:19:28 remotedev sshd[18578]: error: openpty: Permission denied
Feb 25 05:19:28 remotedev sshd[18628]: error: session_pty_req: session 0
alloc failed
Only reboot brings the machine back to usable state.
I've tried destroying the non-starting LXC guest, stopping removing all
guests, purging lxc and lxc-templates.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1425477/+subscriptions
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp