How about adding a pre-stop script to /etc/init/libvirt-bin.conf that
uses /usr/bin/virsh to iterate over all running guests to shut them
down? Probably this should be done a) in parallel and b) supervised by
reasonable timeouts. So technically, it might make sense to implement
that pre-stop script in C or python to access libvirt directly, or
extend /usr/bin/virsh to offer an appropriate command.

-- 
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.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to