[lxc-users] lxc.hook.start not working?

Anjali Kulkarni anjali at juniper.net
Mon Mar 2 23:02:45 UTC 2015


I tried to add a lxc.hook.start, and pointing to a simple script.
However, on trying to start the container I get this error:

lxc-start -n c8
lxc-start: invalid sequence number 1. expected 4
lxc-start: failed to spawn Œc8'
lxc-start: Device or resource busy - cgroup_rmdir: failed to delete
/cgroup/lxc/c8

This is all I added in the config:

lxc.hook.start = /var/lib/lxc/c8/rootfs/home/ubuntu/tmp.sh

Also, the tmp.sh is definitely there in container rootfs, so why does not
not work?

On removing above line, it works.

Thanks
Anjali





More information about the lxc-users mailing list