Changes in Libvirt XML File of VM are Lost After a Hard Reboot.
Problem
- The changes made to the libvirt.xml file of a VM using were lost post a hard reboot.
Environment
- Platform9 Managed OpenStack - v4.0 and Higher
- Libvirt
- Nova
Cause
Starting with Juno( or Kilo ) release libvirt.xml cannot be modified manually. A hard reboot will recreate libvirt.xml, dropping all the updates and restoring the XML file to the original state.
Resolution
- Currently, there is no way to make the changes persist after a hard reboot but we can make the changes and perform a soft reboot for the changes to take effect.
- Edit the XML file using the virsh edit command
- Perform a soft reboot of the VM either from the Platform9 Management Plane UI or use the following command
- Avoid a Hard reboot of a VM to ensure the changes made above persist.
Was this page helpful?