I have a UEFI Debian base image on /dev/vg0/base. It has a partition table (created by the guest during the install) and a root ext4
and an EFI
partition.
If I lvcreate
a new logical volume and then dd if=/dev/vg0/base of=/dev/vg0/new
to create a copy, I can’t boot a VM with the copied disk image. It just gets stuck at the UEFI shell.
Is there a better way to copy UEIF images so I can have a base machine template? Or should we only use BIOS based images inside VMs?
This is for KVM/QEMU machines.