Hallo,
kann's sein, dass dieser Artikel unter 14.04 gar nicht getestet wurde? Ich bekomme es damit nicht zum laufen und erhalte die Meldung:
root@croot:~# lxc-execute -n TEST /bin/bash lxc-execute: cgfs.c: cgroup_read_from_file: 2135 No such file or directory - failed to read /sys/fs/cgroup/lxc/cpuset.cpus lxc-execute: cgfs.c: lxc_cgroupfs_create: 964 Failed to initialize cpuset for '/lxc' in '/sys/fs/cgroup'. lxc-execute: cgfs.c: cgroup_rmdir: 207 Directory not empty - cgroup_rmdir: failed to delete /sys/fs/cgroup//cgmanager lxc-execute: cgfs.c: cgroup_rmdir: 207 Device or resource busy - cgroup_rmdir: failed to delete /sys/fs/cgroup/ lxc-execute: start.c: lxc_spawn: 891 failed creating cgroups lxc-execute: start.c: __lxc_start: 1121 failed to spawn 'TEST'
getestet auf 14.04.03 fresh install
Edit: Die Anleitung ist fehlerhaft für 14.04. Auf https://github.com/lxc/lxc/issues/297 schreibt stgraber: The only case in which I can see something like this being reported on an Ubuntu 14.04 is if you messed up your cgroup configuration somehow. By default LXC on 14.04 will use cgmanager to configure its cgroups, make sure cgmanager is still installed and is running. Also look for cgroup entries in /etc/fstab and if you find any, remove them as they're interfering. Same goes for anything else attempting to mount/setup the cgroup hierarchy. Just let cgmanager do its job.
In any case, lxc-checkconfig is right and I'm not seeing an actual LXC bug there.
Moderiert von noisefloor:
Abgetrennt vom Wikiartikel zu LXC, da es doch eine Supportanfrage ist