oVirt / ovirt-engine

The oVirt Engine virtualization manager
Other
493 stars 259 forks source link

Sealed template with LVM layout breaks boot. #856

Open ricardoalonso opened 1 year ago

ricardoalonso commented 1 year ago

Affected version 4.5.4-1

Describe the bug Template create for RocketLinux 9 with LVM devices won't work when creating a new VM. The seal process is not removing the /etc/lvm/devices/system.devices file, so the machine can't find the correct PV ID.

To reproduce

  1. Create a new VM with EL 9 and use LVM for the disk layout.
  2. Shutdown the VM and create a template from it, checking the option "Seal Template"
  3. Create a new VM from the generate template
  4. VM will drop to emergency shell due to the PV not found

Expected behavior Machine created from the template boots successfully

Additional context To workaround, remove manually the file /etc/lvm/devices/system.devices before shutting down the VM.