Windows7 VM doesnt boot in with EFI

Chemist_in_vain

New Member
Feb 7, 2025
3
0
1
Hello dear hive mind!

I am comming to you to seek your wisdom because I surely do not know the solutions to my problem. I am currently working on PCIe pass through for some old Windows OSes (XP, vista, 7, 8.1) and working along some instructions I found on Youtube, Reddit and elswhere. Before doing so I have to create a working VM. Right now trying to get my Windows 7 machine started. I have done the configurations as the instructors done it. Yet their VMs start without any Problem and mine doesn't. I assume that there has to be a mistake with the EFI configurations since the same ISOs start boot up with SeaBIOS. I even went into the Boot Manager and manually selected the .efi files but the VM still does not boot. Instead I get the message that it "failed to start boot0008 .... : unsupported". 1738942842053.png
I also guess that I have done a mistake with the EFI-disk you have to attach when choosing OIVMF (UEFI). Is there anything special I have to considere when slecting the disk?


The current .conf of the VM is following:

balloon: 0
bios: ovmf
boot: order=ide2;sata0
cores: 6
cpu: host
efidisk0: local-lvm:vm-106-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M
ide2: local:iso/WIN7X86.ENU.JAN2023.iso,media=cdrom,size=4087328K
machine: pc-q35-9.0
memory: 16384
meta: creation-qemu=9.0.2,ctime=1738925974
name: win7
net0: e1000=BC:24:11:B4:39:FF,bridge=vmbr0,firewall=1
numa: 0
ostype: win7
sata0: machines:106/vm-106-disk-0.qcow2,size=32G
scsihw: virtio-scsi-single
smbios1: uuid=084c65e0-d525-4c48-a833-437151dc1d04
sockets: 1
vmgenid: d3d3a93c-5743-4faa-a52a-f68b4a8b0fc5



I am working on that for a few days now. I have been browsing forums yet their solutions are not mine. I have tried what they did (as far as i could) but still no improvement. Maybe anyone of you know what could be wrong. I hope you guys have some good guesses.

Thank you in advance
 
Windows 7 doesn't support OVMF UEFI.
it require SeaBIOS.
Ohhh damn it. So much time wasted then :,c Do you know about the other OSes I mentioned? Does Windows 8.1 already support OVMF UEFI?

A different question: Will I be able to pass through pci devices even if the VM runs with SeaBios? Or is it only when running a VM with OVMF UEFI?