KVM should restart VM's properly on host (4.4.9) reboot

Hi@all,

I am still running a UCS 4.4.9 as a virtualization host. When I restart the host the current state of the VM’s is saved instead of restarting them.

Is it possible to change this behavior?

with best
sven

Check the UCR variables uvmm/libvirt/action/shutdown and uvmm/libvirt/action/boot, e.g. ucr search ^uvmm/libvirt/action/.
The default should already be …/shutdown=suspend and …/boot=start unless something other is configured explicitly. Use ucr set … to set these values or ucr unset … to revert to the default.

If this still does not work: Check the status of systemctl status libvirt-guests.service and look for errors in journalctl -u libvirt-guests.service.
The systemd-service will call to /usr/lib/libvirt/libvirt-guests.sh, which crates the file /var/lib/libvirt/libvirt-guests on shutdown, which lists all VMs which where suspended. After reboot only those VMs will get restarted.
Do a test-suspend by calling SYSTEMCTL_SKIP_REDIRECT=1 /usr/lib/libvirt/libvirt-guests.sh stop yourself and see, if that file is created and lists all the VMs which were running previously.
Afterwards call SYSTEMCTL_SKIP_REDIRECT=1 /usr/lib/libvirt/libvirt-guests.sh start to see if they are resumed when the script is called directly.
If this still is too silent use SYSTEMCTL_SKIP_REDIRECT sh -x /usr/lib/libvirt/libvirt-guests.sh 2>&1 | tee ./some.log to capture the debug output to a local file for further analysis.