Noob help - PCI passthrough

Discussion in 'Virtualized Computing' started by Xa3phod, Feb 18, 2019.

  1. Xa3phod

    Xa3phod Limp Gawd

    Messages:
    136
    Joined:
    Sep 19, 2012
    Hey folks. I have Ubuntu on an X58 system. I would like to run Windows in a virtual machine and be able to access my GTX 1060 instead of using the virtualized graphics system which you cannot game on. I know a lot of games work in Linux, mine does not unfortunately.

    For the uninitiated, how do you set it up so you can pass through the GPU to the virtual machine?

    Thanks for the help.
     
  2. dr.stevil

    dr.stevil [H]ardForum Junkie

    Messages:
    9,087
    Joined:
    Sep 26, 2008
    If I'm not mistaken, I believe you'd need to run a bare-metal OS hyper-visor like ESXi to get pass-through PCI-E up and running. Perhaps someone else can correct me on that.

    I'm interested in learning about this as well for MacOS virtualization (with hardware acceleration enabled). Wish I could be more help.
     
  3. danswartz

    danswartz 2[H]4U

    Messages:
    3,610
    Joined:
    Feb 25, 2011
    I believe kvm supports pass through...
     
  4. x3sphere

    x3sphere 2[H]4U

    Messages:
    2,619
    Joined:
    Dec 8, 2007
    Are you sure your board supports IOMMU? I don't believe all X58 motherboards did

    This is fairly straightforward guide: https://blog.zerosector.io/2018/07/28/kvm-qemu-windows-10-gpu-passthrough/

    I run a passthrough setup with my Threadripper 1950X build, if you have any specific questions I'll try to answer. Figuring out if your board supports IOMMU is key though, since that's crucial to getting it working. Nearly all modern boards support it now, but it wasn't as standard back then.
     
  5. Angry

    Angry Limp Gawd

    Messages:
    465
    Joined:
    Feb 27, 2006
    If it's going to work on x58, you need a Xeon cpu, with Vt-d, and not all x58 boards will work.
    I've tried it on a Gigabyte x58-udr3 with no luck.
     
    x3sphere likes this.
  6. FlangeMonkey

    FlangeMonkey Limp Gawd

    Messages:
    161
    Joined:
    Sep 11, 2010
    Passthrough for graphics isn't as easy as normal PCI Passthrough. ESXi needs Quadro for this to work so unless something changed that I'm not aware of, it won't work without some hackory. You'll have better luck with KVM/qEMU, which is currently in your ballpark with Ubuntu.