Hi, I'm running Fedora 16 and I'm trying to run an LXC container. I think that my problem comes from how Fedora mount the different cgroup subsystems. Each subsystem is mounted on its own file system:
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,seclabel,mode=755) cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,clone_children,name=systemd) cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset) cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu) cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory) cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer) cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls) cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio) cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event) When I try to start my container, here is what I get: # lxc-start -f config -n generic lxc-start: open /sys/fs/cgroup/systemd/generic/devices.deny : No such file or directory lxc-start: failed to setup the cgroups for 'generic' lxc-start: failed to setup the container lxc-start: invalid sequence number 1. expected 2 lxc-start: failed to spawn 'generic' You can find the full log file enclosed with the container configuration file. LXC seems to pick the first cgroup subsystem it can get but as that subsystem does not allow the full cgroup operations, LXC fails to start the container. I cannot mount a full cgroup file system as one is already mounted: # mount -t cgroup lxc /cgroup mount : lxc is already mounted or /cgroup is busy What can I do in this kind of situation? Can I specify to LXC where it can find all the cgroup subsystems? ___ Jimmy THRASIBULE <thrasibule.ji...@gmail.com>
lxc-start 1327697454.913 DEBUG lxc_conf - allocated pty '/dev/pts/3' (4/5) lxc-start 1327697454.914 DEBUG lxc_conf - allocated pty '/dev/pts/4' (6/7) lxc-start 1327697454.914 DEBUG lxc_conf - allocated pty '/dev/pts/5' (8/9) lxc-start 1327697454.914 DEBUG lxc_conf - allocated pty '/dev/pts/6' (10/11) lxc-start 1327697454.914 INFO lxc_conf - tty's configured lxc-start 1327697454.914 DEBUG lxc_console - using '/dev/tty' as console lxc-start 1327697454.914 DEBUG lxc_start - sigchild handler set lxc-start 1327697454.914 INFO lxc_start - 'generic' is initialized lxc-start 1327697454.921 DEBUG lxc_conf - instanciated veth 'vetheh75sy/vethGtJYpU', index is '48' lxc-start 1327697454.923 DEBUG lxc_cgroup - using cgroup mounted at '/sys/fs/cgroup/systemd' lxc-start 1327697454.929 DEBUG lxc_cgroup - cgroup flags is 0x2 lxc-start 1327697454.933 DEBUG lxc_conf - move 'virbr1' to '30505' lxc-start 1327697454.933 INFO lxc_conf - 'generic-debian' hostname has been setup lxc-start 1327697454.943 DEBUG lxc_conf - 'veth0' has been setup lxc-start 1327697454.943 INFO lxc_conf - network has been setup lxc-start 1327697454.943 DEBUG lxc_conf - mounted '/home/spack/workspace/vm/roots/generic-debian/rootfs' on '/usr/lib64/lxc/rootfs' lxc-start 1327697454.943 WARN lxc_conf - ignoring mount point '/proc' lxc-start 1327697454.943 WARN lxc_conf - ignoring mount point '/dev/pts' lxc-start 1327697454.943 WARN lxc_conf - ignoring mount point '/sys' lxc-start 1327697454.943 INFO lxc_conf - mount points have been setup lxc-start 1327697454.944 DEBUG lxc_cgroup - using cgroup mounted at '/sys/fs/cgroup/systemd' lxc-start 1327697454.944 ERROR lxc_cgroup - open /sys/fs/cgroup/systemd/generic/devices.deny : No such file or directory lxc-start 1327697454.944 ERROR lxc_conf - failed to setup the cgroups for 'generic' lxc-start 1327697454.944 ERROR lxc_start - failed to setup the container lxc-start 1327697454.944 ERROR lxc_sync - invalid sequence number 1. expected 2 lxc-start 1327697454.944 ERROR lxc_start - failed to spawn 'generic' lxc-start 1327697454.944 DEBUG lxc_cgroup - using cgroup mounted at '/sys/fs/cgroup/systemd' lxc-start 1327697454.947 DEBUG lxc_cgroup - '/sys/fs/cgroup/systemd/generic' unlinked lxc-start 1327699766.697 DEBUG lxc_conf - allocated pty '/dev/pts/3' (4/5) lxc-start 1327699766.697 DEBUG lxc_conf - allocated pty '/dev/pts/4' (6/7) lxc-start 1327699766.697 DEBUG lxc_conf - allocated pty '/dev/pts/5' (8/9) lxc-start 1327699766.697 DEBUG lxc_conf - allocated pty '/dev/pts/6' (10/11) lxc-start 1327699766.697 INFO lxc_conf - tty's configured lxc-start 1327699766.697 DEBUG lxc_console - using '/dev/tty' as console lxc-start 1327699766.697 DEBUG lxc_start - sigchild handler set lxc-start 1327699766.697 INFO lxc_start - 'generic' is initialized lxc-start 1327699766.702 DEBUG lxc_conf - instanciated veth 'vethwZccfM/vethqT9caz', index is '54' lxc-start 1327699766.704 DEBUG lxc_cgroup - using cgroup mounted at '/sys/fs/cgroup/systemd' lxc-start 1327699766.704 DEBUG lxc_cgroup - cgroup flags is 0x2 lxc-start 1327699766.711 DEBUG lxc_conf - move 'virbr1' to '1681' lxc-start 1327699766.711 INFO lxc_conf - 'generic-debian' hostname has been setup lxc-start 1327699766.734 DEBUG lxc_conf - 'veth0' has been setup lxc-start 1327699766.734 INFO lxc_conf - network has been setup lxc-start 1327699766.734 DEBUG lxc_conf - mounted '/home/spack/workspace/vm/roots/generic-debian/rootfs' on '/usr/lib64/lxc/rootfs' lxc-start 1327699766.734 WARN lxc_conf - ignoring mount point '/proc' lxc-start 1327699766.734 WARN lxc_conf - ignoring mount point '/dev/pts' lxc-start 1327699766.734 WARN lxc_conf - ignoring mount point '/sys' lxc-start 1327699766.734 INFO lxc_conf - mount points have been setup lxc-start 1327699766.735 DEBUG lxc_cgroup - using cgroup mounted at '/sys/fs/cgroup/systemd' lxc-start 1327699766.735 ERROR lxc_cgroup - open /sys/fs/cgroup/systemd/generic/devices.deny : No such file or directory lxc-start 1327699766.735 ERROR lxc_conf - failed to setup the cgroups for 'generic' lxc-start 1327699766.735 ERROR lxc_start - failed to setup the container lxc-start 1327699766.735 ERROR lxc_sync - invalid sequence number 1. expected 2 lxc-start 1327699766.735 ERROR lxc_start - failed to spawn 'generic' lxc-start 1327699766.736 DEBUG lxc_cgroup - using cgroup mounted at '/sys/fs/cgroup/systemd' lxc-start 1327699766.741 DEBUG lxc_cgroup - '/sys/fs/cgroup/systemd/generic' unlinked
config
Description: Binary data
------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users