You are not logged in.
Hi,
I recently switched from Gentoo to Arch, in which I got a VM running with PCI Passthrough to pass through an graphics card to windows. In Gentoo the vm was running with seabios (no ovmf!)
I want to setup this in Arch too, but running in some troubles right now.
I followed these instructions: https://wiki.archlinux.org/index.php/PC … h_via_OVMF
I didn't want to install the windows again, so I skipped that part and configured the vm directly with the pci Passthrough.
When I configure the vm with ovmf, I get dropped out to the uefi shell, not booting the windows dvd nor the windows OS. I guess the DVD is not capable of booting with UEFI, any ideas why the OS is not booting?
At this moment I have two VMs configured in libvirtd, one with ovmf and one with BIOS to test if its working that way.
When I configure the vm with bios, the display simply stays black, no seabios showing up.
When I start the vm with my old script from Gentoo it works:
#!/bin/bash
echo '0000:02:00.1' | tee /sys/bus/pci/devices/0000:02:00.1/driver/unbind
echo 10de 0fba | tee /sys/bus/pci/drivers/vfio-pci/new_id
echo 10de 1401 | tee /sys/bus/pci/drivers/vfio-pci/new_id
i=0
until lspci -nnk | grep -q vfio-pci; do
sleep 1
i=$((i+1))
echo -en "Warte auf vfio $i\r"
done
sleep 10
echo "\"Starte Windows 10\""
qemu-system-x86_64 -enable-kvm -M q35 -m 8096 -vga none -usb \
-bios /storage/ssd/backup/usr/share/seabios/bios.bin \
-cpu host,kvm=off -smp 4,sockets=1,cores=4,threads=1 \
-chardev socket,id=monitor,path=/tmp/w7monitor.sock,server,nowait \
-monitor chardev:monitor \
-chardev socket,id=serial0,path=/tmp/w7console.sock,server,nowait \
-serial chardev:serial0 \
-parallel none \
-nographic \
-device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
-device vfio-pci,host=02:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \
-device vfio-pci,host=02:00.1,bus=pcie.0 \
-drive file=/storage/ssd/windows/w7.qcow2,if=virtio \
-drive file=/storage/hdd/windows/w7.qcow2,if=virtio \
-device virtio-serial-pci \
-device usb-host,hostbus=2,hostport=1.5 \
-net bridge,br=br0 \
-net nic,model=virtio \
-localtime -name "Windows 7"
But the problem with the script is, that I have to shutdown the vm manually every time shutting down, I hope this works better with libvirtd.
When I boot the arch iso with ovmf, it works and the disks are displayed correctly.
Any suggestions?
Thanks in advance!
Offline
Welcome to the arch linux forums mugnipper https://bugs.archlinux.org/task/55496/https://bbs.archlinux.org/viewtopic.php?id=229746?
Offline
Thanks for the quick answer.
I use Windows 7, not Windows 10, forgot to mention that in the first post, sorry.
Updating to ovmf-git does not change the symptoms.
My symptoms are not that Windows 7 hangs while booting, it gets not accepted as a valid boot media from uefi, so they differ from the bugreport.
Offline