[Lxc-users] containers always seem to lock the host's X session
Fajar A. Nugraha
list at fajar.net
Fri Jun 15 14:50:38 UTC 2012
On Fri, Jun 15, 2012 at 7:26 PM, John Maclean <jayeola at gmail.com> wrote:
> Hello all,
>
> I have built lxc from the git hub repo and have been able to create
> containers using the stock templates for fedora. However, whenever I
> start a container it always locks the hosts, X session.
>
> a - How can i diagnose this?
> b - How can i prevent this?
The easy way would be just to use ubuntu precise for your host. Seriously :)
The hard way, I think your guest is accessing your hosts's tty. You
can probably prevent that by something like this on your guests'
config file:
#==========
lxc.cgroup.devices.deny = a
# Allow any mknod (but not using the node)
lxc.cgroup.devices.allow = c *:* m
lxc.cgroup.devices.allow = b *:* m
# /dev/null and zero
lxc.cgroup.devices.allow = c 1:3 rwm
lxc.cgroup.devices.allow = c 1:5 rwm
# consoles
lxc.cgroup.devices.allow = c 5:1 rwm
lxc.cgroup.devices.allow = c 5:0 rwm
#lxc.cgroup.devices.allow = c 4:0 rwm
#lxc.cgroup.devices.allow = c 4:1 rwm
# /dev/{,u}random
lxc.cgroup.devices.allow = c 1:9 rwm
lxc.cgroup.devices.allow = c 1:8 rwm
lxc.cgroup.devices.allow = c 136:* rwm
lxc.cgroup.devices.allow = c 5:2 rwm
# rtc
lxc.cgroup.devices.allow = c 254:0 rwm
#fuse
lxc.cgroup.devices.allow = c 10:229 rwm
#tun
lxc.cgroup.devices.allow = c 10:200 rwm
#full
lxc.cgroup.devices.allow = c 1:7 rwm
#hpet
lxc.cgroup.devices.allow = c 10:228 rwm
#kvm
lxc.cgroup.devices.allow = c 10:232 rwm
#==================
--
Fajar
More information about the lxc-users
mailing list