[lxc-users] Fedora guest, Ubuntu 14.04 host?

Dan Kegel dank at kegel.com
Fri Sep 4 21:01:53 UTC 2015


Howdy all.
On an Ubuntu 14.04.3 LTS box, I was unable to get a Fedora 22 instance
running in lxc:

$ sudo add-apt-repository ppa:ubuntu-lxc/lxc-stable
$ sudo apt-get update
$ sudo apt-get install lxc
$ sudo lxc-create -n fedora -t fedora  -- -R 22
$ sudo lxc-start -F -n fedora
Failed to mount cgroup at /sys/fs/cgroup/systemd: Permission denied
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.
Detected architecture x86-64.

Welcome to Fedora 22 (Twenty Two)!

Set hostname to <fedora.example.com>.
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.

Fedora 21 fails even sooner:

$ sudo lxc-create -n fedora21 -t fedora  -- -R 21
$ sudo lxc-start -F -n fedora21
Failed to mount cgroup at /sys/fs/cgroup/systemd: Permission denied
[!!!!!!] Failed to mount API filesystems, freezing.

Fedora 20 likewise fails:

$ lxc-create -n fedora20 -t fedora  -- -R 20
$ sudo lxc-start -F -n fedora20
systemd 208 running in system mode. (+PAM +LIBWRAP +AUDIT +SELINUX
+IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ)
Detected virtualization 'lxc'.

Welcome to Fedora 20 (Heisenbug)!

Failed to insert module 'autofs4'
Set hostname to <fedora20.example.com>.
No control group support available, not creating root group.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
Caught <SEGV>, dumped core as pid 11.
Freezing execution.

What's the right way to do this?

Thanks,
Dan


More information about the lxc-users mailing list