You are not logged in.

#1 2021-12-22 00:05:01

stefano
Member
Registered: 2011-04-09
Posts: 287

Cannot boot VM in UEFI from Windows disk image

I am trying to setup a VFIO passthrough Windows installation and I'm following the excellent instructions on the PCI passthrough via OVMF. However, when I finally get to create the VM within virt-manager, I cannot get the iso image containing Windows's installation SW to boot. I am dropped into a UEFI shell, and my attempts to launch the boot process directly fail with no error messages.
Here is what I'm doing:

0. I have installed all the needed packages (libvirt, qemu, kvm etc.) and I have the libvirtd and virtlogd services running
1. I create a new VM in virt-manager, as per wiki page, choosing UEFI as a firmware (to be precise, I choose /usr/share/edk2-ovmf/x64/OVMF_CODE.fd rom the 6 options in the drop-down menu)
2. I begin the installation process
3. After creating the drive, the VM starts (black screen) and after a few seconds I am dropped into a UEFI interactive shell. There is one fs listed (FS0) and three aliases (BLK0, 1, and 2).


I did not expect this to happen, I expected the boot process to start. If I navigate to the boot dir and tried to launch the boot directly (i.e. fs0: then cd efi\boot then bootx64.efi) nothing happens.
Maybe there is something corrupted in the image I'm using? it boots fine in BIOS mode, though.

Offline

#2 2021-12-22 01:03:27

bbus
Member
Registered: 2019-03-14
Posts: 49

Re: Cannot boot VM in UEFI from Windows disk image

I'm not familiar with the virtualization side of things, but have you checked if the windows image you are using boots on bare metal in uefi mode? Could be your image is only bios compatible.
Eliminate the virtual layer by flashing your windows image to a usb drive, and try to boot directly, with "CSM", "Legacy mode", etc all disabled in your motherboard firmware. If it does boot properly, then you know your issue is with virtualization configuration.

Offline

Board footer

Powered by FluxBB