[vfio-users] GPU passthrough to Windows problem: BOOT_DEVICE_INACCESSIBLE & general questions on passing physical disks

Alex Williamson alex.l.williamson at gmail.com
Wed Oct 28 12:55:28 UTC 2015


On Tue, Oct 27, 2015 at 9:53 PM, Benjamin Slade <slade at jnanam.net> wrote:

> 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/linuxmasterrace/comments/3lnorm/gpu_passthrough_revisited_an_updated_guide_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
>
>   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".
>

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20151028/657c209d/attachment.htm>


More information about the vfio-users mailing list