[vivid] lxc container with systemd fails to boot under libvirt-lxc
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Under vivid, a vivid container fails to boot with systemd, printing the following error message in console:
Failed to mount cgroup at /sys/fs/
systemd 219 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN)
Detected virtualization 'lxc-libvirt'.
Detected architecture 'x86-64'.
Welcome to Ubuntu Vivid Vervet (development branch)!
Set hostname to <test>.
Failed to install release agent, ignoring: No such file or directory
Failed to create root cgroup hierarchy: No such file or directory
Failed to allocate manager object: No such file or directory
[!!!!!!] Failed to allocate manager object, freezing.
On the host, the following dmesg is found:
[ 805.407722] audit: type=1400 audit(142929537
[ 805.431061] device vnet0 entered promiscuous mode
[ 805.446988] IPv6: ADDRCONF(
[ 806.043772] eth0: renamed from vnet1
[ 806.067844] IPv6: ADDRCONF(
[ 806.067942] virbr0: port 2(vnet0) entered listening state
[ 806.067959] virbr0: port 2(vnet0) entered listening state
[ 806.096686] audit: type=1400 audit(142929537
[ 806.096914] audit: type=1400 audit(142929537
[ 806.098253] audit: type=1400 audit(142929537
[ 806.098474] audit: type=1400 audit(142929537
[ 806.098640] audit: type=1400 audit(142929537
[ 806.098805] audit: type=1400 audit(142929537
[ 806.098978] audit: type=1400 audit(142929537
[ 806.099149] audit: type=1400 audit(142929537
[ 808.073724] virbr0: port 2(vnet0) entered learning state
[ 810.079825] virbr0: topology change detected, propagating
[ 810.079854] virbr0: port 2(vnet0) entered forwarding state
To reproduce the bug, do the following (libvirt XML file is attached):
$ lxc-create -P /lxc -n test -t download -B btrfs -- --dist=ubuntu --release=vivid --arch=amd64
$ virsh -c lxc:/// define test.xml
$ virsh -c lxc:/// start test
Then use e.g. virt-manager to view the console output.
Package versions:
apparmor = 2.9.1-0ubuntu9
cgmanager = 0.36-2ubuntu5
libvirt-bin = 1.2.12-0ubuntu12
lxc = 1.1.2-0ubuntu3
lxcfs = 0.7-0ubuntu2
systemd = 219-7ubuntu2
Changed in libvirt (Ubuntu): | |
importance: | Undecided → Wishlist |
status: | New → Triaged |
The container can be booted via lxc-start using the attached config.
The container can also be booted using libvirt-lxc as long as it is configured to use /sbin/upstart as init.
However, when configured to boot on /bin/systemd, it still fails as reported above.
Is anyone else experiencing this problem?