You are not logged in.

#1 2015-10-23 20:27:49

emacsomancer
Member
Registered: 2014-09-20
Posts: 211

QEMU GPU-passthrough: BOOT_DEVICE_INACCESSIBLE & passing physical disk

I've been trying to set up a machine running Arch which allows Windows to be run as a virtualised process with GPU-passthrough according to the method laid out here: https://www.reddit.com/r/linuxmasterrac … de_on_how/

The actual passthrough part I've navigated, but I'm having trouble figuring out how to properly pass devices through to the VM.   Here's what I have:

#!/bin/bash

# xrandr --output DVI-I-1 --off
# xrandr --output DVI-D-0 --off
cp /usr/share/edk2.git/ovmf-x64/OVMF_VARS-pure-efi.fd /tmp/my_vars.fd
QEMU_PA_SAMPLES=128 QEMU_AUDIO_DRV=pa
qemu-system-x86_64 \
  -enable-kvm \
  -m 2048 \
  -smp cores=4,threads=1 \
  -cpu host,kvm=off \
  -vga none \
  -soundhw hda \
  -usb -usbdevice host:046d:c52b -usbdevice host:0781:5530 \
  -device vfio-pci,host=02:00.0,multifunction=on \
  -device vfio-pci,host=02: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 \
  -device virtio-scsi-pci,id=scsi \
    -drive file=/dev/sda,id=disk,format=raw,if=none -device ide-hd,drive=disk \
  -drive file=/home/emacsomancer/kvm/virt-stable.iso,id=virtiocd,if=none,format=raw -device ide-cd,bus=ide.1,drive=virtiocd \
  -drive file=/dev/sdc,id=disk2,format=raw,if=none -device scsi-hd,drive=disk2 \
  -drive file=/dev/sdd,id=disk3,format=raw,if=none -device scsi-hd,drive=disk3 \
-boot menu=on

When I try this, it ends up booting off the RedHat VirtIO .iso, and eventually the Windows symbol appears and the spin-y circle spins for a while, and then it complains "BOOT_DEVICE_INACCESSIBLE".

So, It seems unable to see the other drives I've passed.  These are physical hard drives (I'm not sure if I'm passing them correctly, esp. as the VM doesn't seem to be seeing them). They are indeed on /dev/sda, /dev/sdc, and /dev/sdd, respectively.  I can properly boot off of /dev/sda/ where Windows is installed.

I've fiddled with this for quite some time, and haven't made any headway.

Offline

Board footer

Powered by FluxBB