<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Oct 27, 2015 at 9:53 PM, Benjamin Slade <span dir="ltr"><<a href="mailto:slade@jnanam.net" target="_blank">slade@jnanam.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've been trying to set up a machine running Arch which allows Windows<br>
to be run as a virtualised process with GPU-passthrough according to the<br>
method laid out here:<br>
<a href="https://www.reddit.com/r/linuxmasterrace/comments/3lnorm/gpu_passthrough_revisited_an_updated_guide_on_how/" rel="noreferrer" target="_blank">https://www.reddit.com/r/linuxmasterrace/comments/3lnorm/gpu_passthrough_revisited_an_updated_guide_on_how/</a><br>
<br>
The actual passthrough part I've navigated, but I'm having trouble<br>
figuring out how to properly pass devices through to the VM. Here's what<br>
I have:<br>
<br>
  #!/bin/bash<br>
<br>
  cp /usr/share/edk2.git/ovmf-x64/OVMF_VARS-pure-efi.fd /tmp/my_vars.fd<br>
  QEMU_PA_SAMPLES=128 QEMU_AUDIO_DRV=pa<br>
  qemu-system-x86_64 \<br>
  -enable-kvm \<br>
 -m 2048 \<br>
 -smp cores=4,threads=1 \<br>
 -cpu host,kvm=off \<br>
 -vga none \<br>
 -soundhw hda \<br>
 -usb -usbdevice host:046d:c52b -usbdevice host:0781:5530 \<br>
 -device vfio-pci,host=02:00.0,multifunction=on \<br>
 -device vfio-pci,host=02:00.1 \<br>
 -drive if=pflash,format=raw,readonly,file=/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd \<br>
 -drive if=pflash,format=raw,file=/tmp/my_vars.fd \<br>
 -device virtio-scsi-pci,id=scsi \<br>
 -drive file=/dev/sda,id=disk,format=raw,if=none -device ide-hd,drive=disk \<br>
 -drive file=/home/emacsomancer/kvm/virt-stable.iso,id=virtiocd,if=none,format=raw -device ide-cd,bus=ide.1,drive=virtiocd \<br>
 -drive file=/dev/sdc,id=disk2,format=raw,if=none -device scsi-hd,drive=disk2 \<br>
 -drive file=/dev/sdd,id=disk3,format=raw,if=none -device scsi-hd,drive=disk3 \<br>
 -boot menu=on<br>
<br>
When I try this, it ends up booting off the RedHat VirtIO .iso, and<br>
eventually the Windows symbol appears and the spin-y circle spins for a<br>
while, and then it complains "BOOT_DEVICE_INACCESSIBLE".<br></blockquote><div><br></div><div>You're going to need to make the OS drive something that Windows already knows how to boot from, IDE or SATA, boot and install the virtio drivers, then change it back to virtio-scsi.  What you're doing now is exactly like taking your disk from a SATA system and installing them into a system with an obscure SCSI controller and expecting it to boot.  It doesn't work that way on bare metal either. </div></div></div></div>