lxc-execute error

引用

lxc-execute -n vm1 -f vm1/lxc.conf -- /bin/bash
lxc-execute: cgfs.c: cgroup_read_from_file: 2121 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 Device or resource busy - cgroup_rmdir: failed to delete /sys/fs/cgroup//systemd/user/112.user/c1.session
lxc-execute: cgfs.c: cgroup_rmdir: 207 Device or resource busy - cgroup_rmdir: failed to delete /sys/fs/cgroup//systemd/user/112.user
lxc-execute: cgfs.c: cgroup_rmdir: 207 Device or resource busy - cgroup_rmdir: failed to delete /sys/fs/cgroup//systemd/user/1000.user/1.session
lxc-execute: cgfs.c: cgroup_rmdir: 207 Device or resource busy - cgroup_rmdir: failed to delete /sys/fs/cgroup//systemd/user/1000.user
lxc-execute: cgfs.c: cgroup_rmdir: 207 Device or resource busy - cgroup_rmdir: failed to delete /sys/fs/cgroup//systemd/user
lxc-execute: cgfs.c: cgroup_rmdir: 207 Device or resource busy - cgroup_rmdir: failed to delete /sys/fs/cgroup//systemd
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 Operation not permitted - cgroup_rmdir: failed to delete /sys/fs/cgroup/
lxc-execute: start.c: lxc_spawn: 861 failed creating cgroups
lxc-execute: start.c: __lxc_start: 1080 failed to spawn 'vm1'




Solution
vim /etc/fstab
  cgroup  /sys/fs/cgroup  cgroup  defaults  0   0
mount /sys/fs/cgroup

你可能感兴趣的:(lxc-execute error)