Here is my startup script.
#!/bin/bash
echo "Starting virtual machine..."
cp /usr/share/edk2.git/ovmf-x64/OVMF_VARS-pure-efi.fd /tmp/my_vars.fd
sudo \ qemu-system-x86_64 \ -name "Windows 10" \ -enable-kvm \ -m 12288 \ -cpu host,kvm=off \ -smp threads=2,cores=4,sockets=1 \ -vga none \ -soundhw hda \ -net nic -net bridge,br=br0 \ -usb -usbdevice host:1af3:0001 -usbdevice host:04d9:2221 -usbdevice host:046d:0a4d \ -device vfio-pci,host=01:00.0,multifunction=on \ -device vfio-pci,host=01:00.1 \ -drive if=pflash,format=raw,readonly,file=/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd \ -drive if=pflash,format=raw,file=/tmp/my_vars.fd \ -boot order=cd \ -device virtio-scsi-pci,id=scsi \ -drive file=/home/jason/kvm/win.img,id=disk,format=qcow2,if=none,cache=writeback -device scsi-hd,drive=disk \
exit 0
Here is my startup script.
#!/bin/bash
echo "Starting virtual machine..."
cp /usr/share/ edk2.git/ ovmf-x64/ OVMF_VARS- pure-efi. fd /tmp/my_vars.fd
sudo \ 2,cores= 4,sockets= 1 \ host=01: 00.0,multifunct ion=on \ host=01: 00.1 \ format= raw,readonly, file=/usr/ share/edk2. git/ovmf- x64/OVMF_ CODE-pure- efi.fd \ format= raw,file= /tmp/my_ vars.fd \ scsi-pci, id=scsi \ jason/kvm/ win.img, id=disk, format= qcow2,if= none,cache= writeback -device scsi-hd,drive=disk \
qemu-system-x86_64 \
-name "Windows 10" \
-enable-kvm \
-m 12288 \
-cpu host,kvm=off \
-smp threads=
-vga none \
-soundhw hda \
-net nic -net bridge,br=br0 \
-usb -usbdevice host:1af3:0001 -usbdevice host:04d9:2221 -usbdevice host:046d:0a4d \
-device vfio-pci,
-device vfio-pci,
-drive if=pflash,
-drive if=pflash,
-boot order=cd \
-device virtio-
-drive file=/home/
exit 0