guest os boot stuck with mount operation error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I'm trying to migrate an OS running on a physical machine to an LXC container, but no luck so far. Right now the system gets stuck somewhere during lxc-start:
<...>
* Stopping cgroup management proxy ...done.
* Starting load modules from /etc/modules ...done.
* Stopping Mount network filesystems ...done.
* Starting set sysctls from /etc/sysctl.conf ...done.
* Stopping set sysctls from /etc/sysctl.conf ...done.
* Stopping load modules from /etc/modules ...done.
* Starting configure network device ...done.
* Starting Bridge socket events into upstart ...done.
<hangs indefinitely here>
Both host and guest are running ubuntu 14.04 LTS and same guest boots properly via VirtualBox... kern.log shows some issues with mounts:
Oct 7 10:35:45 ares kernel: [138643.960789] device veth0RG5HU entered promiscuous mode
Oct 7 10:35:45 ares kernel: [138643.961450] IPv6: ADDRCONF(
Oct 7 10:35:45 ares kernel: [138643.987832] EXT4-fs (dm-5): couldn't mount as ext3 due to feature incompatibilities
Oct 7 10:35:45 ares kernel: [138643.987967] EXT4-fs (dm-5): couldn't mount as ext2 due to feature incompatibilities
Oct 7 10:35:45 ares kernel: [138643.988322] EXT4-fs (dm-5): mounted filesystem with ordered data mode. Opts: (null)
Oct 7 10:35:45 ares kernel: [138644.002660] IPv6: ADDRCONF(
Oct 7 10:35:45 ares kernel: [138644.002702] lxcbr0: port 1(veth0RG5HU) entered forwarding state
Oct 7 10:35:45 ares kernel: [138644.002719] lxcbr0: port 1(veth0RG5HU) entered forwarding state
Oct 7 10:35:46 ares kernel: [138644.340780] type=1400 audit(141267094
Oct 7 10:36:00 ares kernel: [138659.015558] lxcbr0: port 1(veth0RG5HU) entered forwarding state
Here is the container's configuration file:
lxc.include = /usr/share/
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = lxcbr0
lxc.utsname = myvm
lxc.autodev = 1
lxc.tty = 4
lxc.pts = 1024
lxc.rootfs = /dev/mapper/
lxc.arch = x86_64
lxc.cap.drop = sys_module mac_admin
#lxc.aa_profile = lxc-container-
lxc.cgroup.
# Allow any mknod (but not using the node)
lxc.cgroup.
lxc.cgroup.
# /dev/null and zero
lxc.cgroup.
lxc.cgroup.
# consoles
lxc.cgroup.
lxc.cgroup.
#lxc.cgroup.
#lxc.cgroup.
# /dev/{,u}random
lxc.cgroup.
lxc.cgroup.
lxc.cgroup.
lxc.cgroup.
# rtc
lxc.cgroup.
#fuse
lxc.cgroup.
#tun
lxc.cgroup.
#full
lxc.cgroup.
#hpet
lxc.cgroup.
#kvm
lxc.cgroup.
#lxc.cgroup.
Any suggestions?
Thanks for reporting this bug. To fix the cgmanager issue, add the line
lxc.mount.auto = cgroup:mixed
to your container configuration file.
That shouldn't explain your hang however. Assuming it doesn't, please run
lxc-start -n <container> -l trace -o debug.out -- /sbin/init debug verbose --debug --verbose
And append both the console output and the file debug.out
status: incomplete