[lxc-users] Fedora guest, Ubuntu 14.04 host?
Fajar A. Nugraha
list at fajar.net
Mon Sep 7 06:30:09 UTC 2015
On Sat, Sep 5, 2015 at 4:01 AM, Dan Kegel <dank at kegel.com> wrote:
> 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.
Is your system up-to-date? Do you have lxcfs installed?
Here's what I have:
lxc 1.1.3-0ubuntu1~ubuntu14.04.1~ppa1
lxc-templates 1.1.3-0ubuntu1~ubuntu14.04.1~ppa1
lxcfs 0.9-0ubuntu1~ubuntu14.04.1~ppa1
linux-image-3.19.0-13-generic 3.19.0-13.13
I use kernel from vivid's repo (this was installed a long time ago),
you should be able to get similar version with
linux-generic-lts-vivid.
I tested both fedora and download template, both work fine (obviously
you should skip zfs-related parameters if you're not using zfs).
$ sudo lxc-create -B zfs --zfsroot data/lxc -n f22 -t fedora -- -R 22
$ sudo lxc-start -n f22;sudo lxc-console -n f22 -t 0
...
[ OK ] Started LSB: Bring up/down networking.
[ OK ] Reached target Network is Online.
[ OK ] Reached target Multi-User System.
Starting Update UTMP about System Runlevel Changes...
[ OK ] Started Update UTMP about System Runlevel Changes.
Fedora release 22 (Twenty Two)
Kernel 3.19.0-13-generic on an x86_64 (console)
f22 login:
$ sudo lxc-create -B zfs --zfsroot data/lxc -n f22d -t download -- -d
fedora -r 22 -a amd64
$ sudo lxc-start -n f22d;sudo lxc-console -n f22d -t 0
...
[ OK ] Started LSB: Bring up/down networking.
[ OK ] Reached target Multi-User System.
Starting Update UTMP about System Runlevel Changes...
[ OK ] Reached target Network is Online.
[ OK ] Started Update UTMP about System Runlevel Changes.
Fedora release 22 (Twenty Two)
Kernel 3.19.0-13-generic on an x86_64 (console)
f22d login:
--
Fajar
More information about the lxc-users
mailing list