Red Hat Bugzilla – Bug 1476866
Non-functioning on_reboot setting in the domain XML file.
Last modified: 2017-10-11 22:52:59 EDT
Description of problem:
<on_reboot>destroy</on_reboot> in the domain XML file does not appear to take effect. Win 10 guest VM with this setting still reboots automatically.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Edit the domain XML configuration file for a Windows 10 guest, setting on_reboot to destroy.
2. Choose "Restart" from the VM.
Guest shuts down and reboots.
Guest shuts down, and stops.
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
is a temporary workaround.
Patch proposed upstream:
I've just pushed the patch upstream:
Author: Michal Privoznik <firstname.lastname@example.org>
AuthorDate: Mon Jul 31 16:55:58 2017 +0200
Commit: Michal Privoznik <email@example.com>
CommitDate: Tue Aug 29 11:33:38 2017 +0200
qemu: Honour <on_reboot/>
For some reason, we completely ignore <on_reboot/> setting for
domains. The implementation is simply not there. It never was.
Signed-off-by: Michal Privoznik <firstname.lastname@example.org>
libvirt-3.2.1-6.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-ff7b30a42d
libvirt-3.2.1-6.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-ff7b30a42d
libvirt-3.2.1-6.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.