Description of problem: lxc-destroy command erases rootfs including /bin/* and /sbin/* of "Host OS". Version-Release number of selected component (if applicable): - lxc-0.8.0-2.fc19.x86_64 - lxc-templates-0.8.0-2.fc19.x86_64 How reproducible: 100% Steps to Reproduce: 1. # lxc-create -t busybox -n test 2. # lxc-start -n test lxc-start: Invalid argument - pivot_root syscall failed lxc-start: failed to setup pivot root lxc-start: failed to set rootfs for 'test' lxc-start: failed to setup the container lxc-start: invalid sequence number 1. expected 2 lxc-start: failed to spawn 'test' 3. # lxc-destroy -n test Actual results: rootfs of Host destoryed. /bin/* and /sbin/* all erased. Expected results: Only erases designated containers, i.e. files in /var/lib/lxc/test/.
Thanks for reporting. Does the problem persist with the 0.9.0 package? lxc-0.9.0-2.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/lxc-0.9.0-2.fc19 Additionally, I've brought up the issue on the lxc-devel list: http://sourceforge.net/mailarchive/message.php?msg_id=31365349
Thanks for sending issue to lxc-devel list. I tried lxc-0.9.0-2.fc19 and it truns out that the problem doesn't persist no longer. lxc-destroy worked as expected.