I spent some time today looking at systemd (44) under Fedora (17).
When stopping an LXC container using lxc-stop, I would always
encounter this problem:
# lxc-stop -n node0
lxc-start: Device or resource busy - failed to remove cgroup '/sys/fs/cgroup/systemd/node0
This prevents one from starting a new container with the same name:
# lxc-start -n node0
lxc-start: Device or resource busy - failed to remove previous cgroup '/sys/fs/cgroup/systemd/node0'
lxc-start: failed to spawn 'node0'
lxc-start: Device or resource busy - failed to remove cgroup '/sys/fs/cgroup/systemd/node0'
You can correct the problem manually by removing all the child cgroups
underneath /sys/fs/cgroup/systemd/<container>, like this: