[pkg-lxc-devel] Bug#869892: Using sysv, lxc-start fails while trying to create cgroup

Jean-Michel Vourgère nirgal at debian.org
Thu Jul 27 12:28:40 UTC 2017


Package: lxc
Version: 1:2.0.7-2
Severity: normal

Dear Maintainer,

When trying to start a container, I get these errors:
# lxc-start -n test -F 
lxc-start: cgroups/cgfs.c: lxc_cgroupfs_create: 901 Could not find writable 
mount point for cgroup hierarchy 11 while trying to create cgroup.
lxc-start: cgroups/cgfs.c: cgroup_rmdir: 209 Device or resource busy - 
cgroup_rmdir: failed to delete 
/sys/fs/cgroup/systemd//user.slice/user-0.slice/session-1.scope
lxc-start: cgroups/cgfs.c: cgroup_rmdir: 209 Device or resource busy - 
cgroup_rmdir: failed to delete /sys/fs/cgroup/systemd//user.slice/user-0.slice
lxc-start: cgroups/cgfs.c: cgroup_rmdir: 209 Device or resource busy - 
cgroup_rmdir: failed to delete /sys/fs/cgroup/systemd//user.slice
lxc-start: cgroups/cgfs.c: cgroup_rmdir: 209 Device or resource busy - 
cgroup_rmdir: failed to delete /sys/fs/cgroup/systemd/
lxc-start: start.c: lxc_spawn: 1108 Failed creating cgroups.
lxc-start: start.c: __lxc_start: 1346 Failed to spawn container "test".
lxc-start: tools/lxc_start.c: main: 366 The container failed to start.
lxc-start: tools/lxc_start.c: main: 370 Additional information can be obtained 
by setting the --logfile and --logpriority options.

If I enable systemd, lxc starts working. But then I have issues with other 
software, so I don't want to do that.

Attached are my mounts, since I have the feeling this is related.

Do I need some special systemd related cgroups for lxc, now?

A few pointers in the documentation would be nice. :)

-- System Information:
Debian Release: 9.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages lxc depends on:
ii  init-system-helpers  1.48
ii  libapparmor1         2.11.0-3
ii  libc6                2.24-11+deb9u1
ii  libcap2              1:2.25-1
ii  libgnutls30          3.5.8-5+deb9u2
ii  liblxc1              1:2.0.7-2
ii  libseccomp2          2.3.1-2.1
ii  libselinux1          2.6-3+b1
ii  lsb-base             9.20161125
ii  python3              3.5.3-1
ii  python3-lxc          1:2.0.7-2

Versions of packages lxc recommends:
ii  bridge-utils  1.5-13
ii  debootstrap   1.0.89
ii  dirmngr       2.1.18-6
ii  dnsmasq-base  2.76-5+b1
ii  gnupg         2.1.18-6
ii  iptables      1.6.0+snapshot20161117-6
ii  libpam-cgfs   2.0.7-1
ii  lxcfs         2.0.7-1
ii  openssl       1.1.0f-3
ii  rsync         3.1.2-1
ii  uidmap        1:4.4-4.1

Versions of packages lxc suggests:
pn  apparmor     <none>
pn  btrfs-tools  <none>
ii  lvm2         2.02.168-2

-- no debconf information
-------------- next part --------------
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=882696k,nr_inodes=220674,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=179012k,nr_inodes=223761,mode=755)
/dev/mapper/debian_vg-debug--disk on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k,nr_inodes=223761)
pstore on /sys/fs/pstore type pstore (rw,relatime)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=358000k,nr_inodes=223761)
/dev/sda1 on /boot type ext4 (rw,relatime,data=ordered)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
cgroup on /sys/fs/cgroup type tmpfs (rw,relatime,size=12k,nr_inodes=223761,mode=755)
lxcfs on /var/lib/lxcfs type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
xenfs on /proc/xen type xenfs (rw,relatime)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/run/cgmanager/agents/cgm-release-agent.systemd,name=systemd)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=138716k,nr_inodes=173398,mode=700)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crashlxc.log
Type: text/x-log
Size: 1610 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-lxc-devel/attachments/20170727/591424b9/attachment.bin>


More information about the Pkg-lxc-devel mailing list