Return to Level1Techs.com

Play games in Windows on Linux! PCI passthrough quick guide

iommu
vfio
passthrough
#388

If you had loaded the VirtIO driver disk in another vitrual CDROM you could have intalled the drivers for it in windows, and then it would see the virtIO disk. Anyways, good thing you finally got it to work. Have fun with your new windows slave machine.

0 Likes

#389

Thanks I will

1 Like

#390

Aight guys I’m back, I got new hardware for my setup (msata ssd, pci USB card etc.) I followed every step of the guides and did everything u guys helped me with but now I’m getting

0 Likes

#391

AppArmor has been added to Ubuntu and newer Debian(ie buster) versions.

You need to make some config changes in apparmor to allow libvirt to work correctly.

0 Likes

#392

Have any idea how? I’ve been researching and I cant find anything that makes sense to me or doesn’t have the high possibility of crashing my entire OS. Side question how did you learn all of this and where should I start? I cant believe how many threads I’ve seen you in

0 Likes

#393

Try disabling apparmor completely temporarily with `sudo systemctl stop apparmor´ then try starting the vm. You can re-enable later with systemctl start or by rebooting.

I learned about this by trying to setup a passthrough vm, running into a roadblock, reasearching it, fixing it, and repeating. And also lots of reading of various blog and forum posts, also watching some(mostly l1t) videos.

1 Like

#394

Hi,

I’m just setting up a VM at the moment. I have a 3TB games HDD. Can I pass through the partition or do I need to borrow another 3TB HDD to copy everything off, then format my one to use a virtual disk?

(Context: I have a pfsense router at my place but my current residence has some really weird internet / router issues, and Windows doesn’t play well with OpenVPN by not routing everything through it properly - by putting Windows inside of Linux and Linux VPN’ing to my pfsense box, Windows is completely unaware of any VPN and should work fine. I’ve also been meaning to set up hardware passthrough for a while anyway.)

Thanks,
Greg

0 Likes

#395

I have thought of a potential answer to my own question here, although I’m not sure if it would work…
Samba share? Would Steam / Uplay play well with it?

0 Likes

#396

You could potentially use a Samba share, however, it likely would not perform very well, and you can indeed pass a partition to a VM, you would just need to go through virt-manager, add a new storage device and select “select or create custom storage”, and input the device ID in the field, you could use /dev/sdXY, however, I recommend using /dev/disk/by-uuid/, either will work well, but the UUID should be constant.

0 Likes

#397

Maybe this guide needs an update for forgoing the ACS patch for the GPUs and using 2 of the same GPU, and using a shell script in the initial RAM disk:

0 Likes

#398

intel®Xeon ® E3 - 1200/1500 v5/6th GEN intel® core ™ GAUSSIAN MIXTURE MODEL -1911 GPU==NVDIA Geforce GTX 1050 & GeForce GTX 960

This will work ??? plz reply

1 Like

#399

Hi,

i have a problem i have set up a vm with kvm and gpu passthrough. through this guide. This now runs fine with the settings I also see that he uses my graphics card (GEFORCE GTX 1080). But as soon as I start a game with directx 12 (in this case Fifa 19) a program is started but this screen remains black.

Is there perhaps someone who knows a solution to this problem.

Thanks in advance,
Tim

0 Likes

#400

Did you setup the hack so the GeForce experience doesn’t know its in a VM?

0 Likes

#401

According to Me, the hack is the first line change to

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>

and at the end these three lines

  <qemu:commandline>
    <qemu:arg value='-cpu'/>
    <qemu:arg value='host,hv_time,kvm=off,hv_vendor_id=null'/>
  </qemu:commandline>

if yes then i have done this.

0 Likes

#402

Hmm that is weird. Are you running it though looking glass or is it directly plugged to a monitor?

0 Likes

#403

I have an HDMI cable that goes from my motherboard (MSI Z370 gaming pro carbon ac) to my monitor. I also have displayport cable from my graphic card to the same monitor.
The host runs Ubuntu 19.04 from here I start a vm windows 10 then I switch to the display port and then windows 10 runs here.

0 Likes

#404

Is it only that game?

0 Likes

#405

I think it has something to do with DirectX.
I also Football tried Football Manager 2019 and it works (it could be that it would also work on a normal VM).

0 Likes

#406

Is QXL video driver still installed? If you open Device Manager in windows and go to display adapters make sure only the Nvidia one is listed. That ought to fix it. And by listed I mean remove/uninstall + delete the QXL driver. You’ll probably have to reboot the VM after as well.

0 Likes

#407

I’ll have a look tonight or tomorrow. cannot access my computer now. I’ll let you know how it went.

0 Likes