[Bug 350936] Re: Should shut down domains on system shutdown

Andy andy at xillean.com
Sun Aug 15 13:50:31 BST 2010


Ok I create a pre-stop script in /etc/init/libvirt-bin.conf 
and it is running the script however its not waiting for the script to complete.    Everything shutsdown extremely fast in about 3 seconds and I am back to the BIOS screen.
So the it starts shutting down the guest os but the host contiues to shutdown no waiting for the guest to complete shutting down?
I even added sleep 20 in the pre-stop script in  /etc/init/libvirt-bin.conf and it completely ignored the sleep command or because sendsigs may be running in parallel the system shutsdown anyways regardless of any sleep command.   If this is the case then thats just brilliant.   So how does one fix this if this is indeed the case? 

modified the /etc/init.d/sendsigs file as stated above in comment #24 by
tomcrus and it just hangs the host on reboot forcing a hard reset.

Does anyone know if Canonical uses KVM internally on Ubuntu 10.04 LTS.
If so how have they solved this problem?  Is there a paid solution?

Thanks.

-- 
Should shut down domains on system shutdown
https://bugs.launchpad.net/bugs/350936
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in ubuntu.



More information about the Ubuntu-server-bugs mailing list