[Lucid] fails to host and to be hosted using LXC/OpenVZ containers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart |
Won't Fix
|
Undecided
|
Unassigned | ||
lxc (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: lxc
i tried to setup a container (lucid) on a lucid host system.
1) # debootstrap --arch i386 lucid lucid/ http://
2) # mount -t cgroup cgroup /cgroup
3) # lxc-create -n ubuntu-lucid
4) # lxc-start -n ubuntu-lucid
init: Unable to listen for private connections: Failed to bind socket "/com/ubuntu/
mountall: Could not connect to Plymouth
swapon: /dev/mapper/
mountall: swapon /dev/mapper/
mountall: Problem activating swap: /dev/mapper/
5) CTRL+Z && kill %1
6) # lxc-start -n ubuntu-lucid
lxc-start: Device or resource busy - failed to remove previous cgroup '/cgroup/
lxc-start: failed to spawn '/sbin/init'
lxc-start: Device or resource busy - failed to remove cgroup '/cgroup/
Maybe i fogot some steps to do?
Changed in lxc (Ubuntu): | |
status: | New → Confirmed |
summary: |
- LXC does not work with lucid host and lucid container + Lucid fails to host and to be hosted using LXC/OpenVZ containers |
tags: | added: container init lxc openvz ubuntu upstart vps |
tags: | added: mountall |
there could be other problems, but you need to define a config file with lxc-create (the -f option). specifically you need the option:
lxc.rootfs = <wherever you just debootstrapped>
to be defined. otherwise, the rootfs will be the shared with the host. anything that is not defined in the config file is shared with the host (network stack, hostname, resources, etc) specifically in the rootfs case, newer revisions of lxc-* tools will not even allow you to get as far as you did (sharing the rootfs doesnt make sense for a system container). see this thread for more details:
http:// ubuntuforums. org/showthread. php?t=1382823
specifically this post:
http:// ubuntuforums. org/showpost. php?p=8736281& postcount= 10
where i referenced this bug report.