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 # VMs at this URI are still running. Wait, then # start at the beginning looking for running VMs. sleep 1 delay=$(($delay - 1)) continue 2 fi done done
... what if no guest is running anymore? We will never enter if...then condition and thus never decrement $delay variable anymore. It looks like we stay in that while...done loop forever. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to kvm in ubuntu. https://bugs.launchpad.net/bugs/350936 Title: Should shut down domains on system shutdown -- 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