You are not logged in.

#1 2016-01-12 15:30:59

blakyris
Guest

[QEMU+KVM PCI Passthrough] Unable to load SCSI Drivers in WIndows.

Hi,

I followed this guide on reddit to install WIndows as a Guest OS in QEMU+KVM to play GTA V on my GTX 970 while using Arch Linux on Intel HD Graphics :

https://www.reddit.com/r/pcmasterrace/c … de_on_how/

The problem is : When i lunch the VM and then go into the Windows Installer it says that I need HDD Drivers to install the OS.
So I click on "Browse..." then the virtio ISO doesn't appear in the explorer.

This is my script for lunching the VM :

#!/bin/bash

sudo vfio-bind 0000:01:00.0 0000:01:00.1
sudo cp /usr/share/edk2.git/ovmf-x64/OVMF_VARS-pure-efi.fd /tmp/my_vars.fd
sudo qemu-system-x86_64 \
  -enable-kvm \
  -m 4096 \
  -cpu host,kvm=off \
  -vga none \
  -usb -usbdevice host:045e:0745 \
  -usb -usbdevice host:046d:c068 \
  -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 \
  -device virtio-scsi-pci,id=scsi \
  -drive file=/vm/Windows/install.iso,id=isocd,format=raw,if=none -device scsi-cd,drive=isocd \
  -drive file=/vm/Windows/virtio.iso,id=virtiocd,if=none,format=raw -device ide-cd,bus=ide.1,drive=virtiocd \
  -drive file=/vm/Windows/Windows.img,id=disk,format=qcow2,if=none,cache=writeback -device scsi-hd,drive=disk

Thx for your help.

Last edited by blakyris (2016-01-12 15:32:00)

#2 2016-01-12 17:46:31

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [QEMU+KVM PCI Passthrough] Unable to load SCSI Drivers in WIndows.

Not a Sysadmin issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-01-12 19:47:41

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [QEMU+KVM PCI Passthrough] Unable to load SCSI Drivers in WIndows.

I thought I understood the usage of -drive fairly well, but now I'm not sure. I'm guessing the setting of if=none is overridden by the options -device switch with drive matching the drive's id? Oy vey.

But if that's right, you're not using any virtio devices, just IDE and SCSI. And I thought only virtio devices needed additional drivers. Unless you're sure the command line is right, try booting to a Linux image and see what kind of h/w is present. Otherwise, you could try drivers on a floppy device. That's what I did when I installed Win7 years ago.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#4 2016-01-13 15:18:55

blakyris
Guest

Re: [QEMU+KVM PCI Passthrough] Unable to load SCSI Drivers in WIndows.

On ubuntu Live ISO i typed lspci and I got this :

00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01)
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 03)
00:03.0 VGA compatible controller: NVIDIA Corporation GM204 [GeForce GTX 970] (rev a1)
00:04.0 Audio device: NVIDIA Corporation GM204 High Definition Audio Controller (rev a1)
00:05.0 SCSI storage controller: Red Hat, Inc Virtio SCSI

So I'm using the VIFIO SCSI Controller

Last edited by blakyris (2016-01-13 15:20:17)

#5 2016-01-13 15:37:38

mnhan32
Member
Registered: 2015-12-23
Posts: 8

Re: [QEMU+KVM PCI Passthrough] Unable to load SCSI Drivers in WIndows.

Does virtio window driver actual exists in your folder? (/vm/Windows/virtio.iso)

Offline

#6 2016-01-13 16:12:00

blakyris
Guest

Re: [QEMU+KVM PCI Passthrough] Unable to load SCSI Drivers in WIndows.

Yep it does. And it has permission 777 on the whole folder to be sure.

#7 2016-01-13 17:08:05

sl1pkn07
Member
From: Spanishtán
Registered: 2010-03-30
Posts: 371

Re: [QEMU+KVM PCI Passthrough] Unable to load SCSI Drivers in WIndows.

why no copy the comand like the install.iso?

Offline

#8 2016-01-13 17:23:44

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: [QEMU+KVM PCI Passthrough] Unable to load SCSI Drivers in WIndows.

TEST without these first:

  -vga none \
  -usb -usbdevice host:045e:0745 \
  -usb -usbdevice host:046d:c068 \
  -device vfio-pci,host=01:00.0,multifunction=on \
  -device vfio-pci,host=01:00.1 \

I have experiences that passing through too many items could break things randomly.

Offline

#9 2016-01-13 17:28:13

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: [QEMU+KVM PCI Passthrough] Unable to load SCSI Drivers in WIndows.

sl1pkn07 wrote:

why no copy the comand like the install.iso?

The idea is to load the vioscsi driver from the driver iso "in an ide drive", so that you can use the the virtio for reading the windows iso. But it's actually silly, he could have use IDE for both ISOs and only load the driver a bit later in the process for the hard drive image. In my experience using IDE for the windows iso is damn fast, I doubt there is any significance to use virtio for it, not to mention that it's a one-time thing.

Offline

#10 2016-01-13 17:29:34

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: [QEMU+KVM PCI Passthrough] Unable to load SCSI Drivers in WIndows.

tom.ty89 wrote:
sl1pkn07 wrote:

why no copy the comand like the install.iso?

The idea is to load the vioscsi driver from the driver iso "in an ide drive", so that you can use the the virtio for reading the windows iso. But it's actually silly, he could have use IDE for both ISOs and only load the driver a bit later in the process for the hard drive image. In my experience using IDE for the windows iso is damn fast, I doubt there is any significance to use virtio for it, not to mention that it's a one-time thing.

  -drive file=/vm/Windows/install.iso,media=cdrom \
  -drive file=/vm/Windows/virtio.iso,media=cdrom \

Clean and simple.

FWIW (in recent my benchmark) the performance of vioscsi is not really ideal/optimal in Windows. viostor seems to perform quite better (I guess it's more stable anyway).

Last edited by tom.ty89 (2016-01-13 17:32:10)

Offline

Board footer

Powered by FluxBB