I know there are several similar questions but I couldn't find an answer to my situation. I use Lubuntu 16.04 in KVM and want to write this VM to a USB drive and boot from it. For this I executed sudo qemu-img convert /var/lib/libvirt/images/myimage.qcow2 -O raw /dev/sda. I can also boot the system from USB with KVM: sudo kvm -usb -usbdevice disk:/dev/sda -m 2G. But when I try to boot from the USB drive on a physical system it doesn't work. I tried on three computers and with two USB drives but none of them boots. When choosing the USB drive in the BIOS menu it doesn't reach GRUB or a boot screen at all. How to get a bootable USB drive from the VM?
Asked
Active
Viewed 4,235 times
3
jans
- 1,935
1 Answers
3
The UEFI was the root cause of this problem. Changing BIOS' settings from "UEFI" to "legacy BIOS" or to "UEFI and legacy" with CMS enabled solved my issue. Credits go to G Trawo and Michael Hampton.
I didn't try to create the VM with UEFI boot initially, as suggested by Michael Hampton, but it sounds like another possible solution.
jans
- 1,935