Hi Roman,
actually I ended up with molly-guard solution. It is suboptimal solution
because it stops your virtual machines only when shutdown/restart is
initiated manually (and only from remote ssh session). It won't apply if
UPS initiates shutdown or if power button is pressed shortly, etc.
In
On John Morrissey's libvirt-bin.conf file ... there is construct like:
delay=$SHUTDOWN_TIMEOUT
while [ $delay -gt 0 ]; do
for uri in $URIS; do
if ! run_virsh -c $uri list | awk '$3 == running
{exit 1}'; then
Well placed 'break' command should make libvirt-bin.conf functioning
correctly.
** Patch added: libvirt-bin.conf.diff
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/350936/+attachment/1778008/+files/libvirt-bin.conf.diff
--
You received this bug notification because you are a member