Using Existing Partition in VM with GPU Passthrough

Discussion in 'Off Topic Discussion' started by PixelButts, Oct 15, 2017.

  1. PixelButts

    PixelButts Site Soldier

    Joined:
    Aug 19, 2014
    Messages:
    2,665
    Likes Received:
    1,808
    So my issue is simple. Something with my setup isn't working right and causes display drivers to crash, disconnect then reconnect out of nowhere. Black screen, takes time to restart, and only during League of Legends gameplay (one rare exception but game client was still open, just not in game)
    -RMA on GPU says its fine
    -exists on another GPU in my ryzen/mobo setup
    -power supply ruled out as multiple have been tested, issue still exists
    -RAM is fine
    -appears to only be a windows 10 issue (perhaps other windows, have not tested this yet)

    I'd put it down as a super unoptimized client/game (and trust me, it is), but this behavior is not present when I'm on a linux session for some reason.

    Anyway, here's what I want to do
    -In my Linux partition/session (should be sda5, need to check), run a VM (virtualbox, boxes, vmware(?), some other virtual machine deal)
    -VM is running my Windows 10 partition (I believe it's sda4, need to check)
    -Add GPU passthrough to ensure i get similar or equal performance
    -Still use Elgato HD capture software with my HD60 (known to not work on any linux setup, so use this under VM)

    Activation/License issues with windows isn't an issue for me so we can igore that as I heard this to be an issue.

    Can anyone point me in the right direction or give simple directions as to what I need to do to make this work? My main concern is data loss, because I really dont want to lose what I have on here, but I also want close to equal performance with what I am doing normally under VM.


    Specs if you need any information on it (or just want to know)
    -Ryzen 5 1600 (3.5Ghz OC)
    -RX480 8GB Strix (Been trying to keep it OC but issues keep resetting wattman)
    -16GB RAM (2933Mhz OC)
    -Rosewill Photon 550w PSU
    -A TON of HDDs
     
  2. PixelButts

    PixelButts Site Soldier

    Joined:
    Aug 19, 2014
    Messages:
    2,665
    Likes Received:
    1,808
  3. Bad_Ad84

    Bad_Ad84 The Tick

    Joined:
    May 26, 2011
    Messages:
    8,566
    Likes Received:
    1,308
    you need to use esxi for pci passthrough. So both machines would need to be virtualized. Can't use linux/windows host and use passthrough (unless something changed very recently) as the host won't give up access to the device
     
  4. Traace

    Traace Rapidly Rising Member

    Joined:
    Nov 22, 2016
    Messages:
    85
    Likes Received:
    64
    Make sure to keep the Bios up to date for IOMMU support.
    + AFAIK the RX 480 doesn't support "virtual gpu". Its available for Nvidia Grid cards, but very very expensive.

    That means for every virtual machine you like to passthrough there must be a dedicated GPU for it. Like for example if you want to accelerate 2 VM's one with Linux and the other with Windows on the same time you will need 2 RX 480 for that and so on.
     
  5. PixelButts

    PixelButts Site Soldier

    Joined:
    Aug 19, 2014
    Messages:
    2,665
    Likes Received:
    1,808
    Ya lost me a bit here on the both machines being virtualized.
    Could you expand a bit or simplify here? I was under the impression the gpu can be shared in a sense or be passed through with configuration.
    So because I only have a slot for 1 dedicated gpu, could it be a viable option to use onboard graphics for the linux session, which is operating the VM, and the rx480 for the VM?
     
  6. PixelButts

    PixelButts Site Soldier

    Joined:
    Aug 19, 2014
    Messages:
    2,665
    Likes Received:
    1,808
    Doubleposting aside, I have run into a thought that has potential perhaps?
    Could I in theory use one of my 2 free PCIe 1x ports with a PCIe adapter usually used for mining to act as the host GPU (with a 750Ti as that's my only other reasonable spare card)?
    If so I think I can work this out. My performance on host wouldn't need to be amazing, only the VM would need to be at a good performance mark.

    The item I was looking at specifically (and I'm open to other suggestions)
    https://www.amazon.com/dp/B01GWMUK7W/ref=psdc_3015403011_t1_B071LQFCN4
     
  7. Traace

    Traace Rapidly Rising Member

    Joined:
    Nov 22, 2016
    Messages:
    85
    Likes Received:
    64
    I really recommend using ESXi as Host. Its most professional and there are free license. PCIe passthough setup with linux is very difficult. ESXi has a GUI for that. AFAIK ESXi doesn't need a GPU dedicated to itself. Means you could run Linux VM with onboard gpu and Windows VM with dedicated card gpu at the same time.

    Yes its possible to rize a PCI-E slot. GPU works there too, but with a low bandwidth. e.g. low performance when it comes to gaming, however fine for mining.

    I also own a Ryzen 5 1600, my Mainboard has HDMI Port too, but there isn't a GPU bound to it. The Ryzen 5 1600 has no onboard GPU. You need to look for an AM4 APU to get these feature. Or use a special Mainboard withOnboard GPU. Common AM4 Boards doesn't have a extra GPU
     
  8. PixelButts

    PixelButts Site Soldier

    Joined:
    Aug 19, 2014
    Messages:
    2,665
    Likes Received:
    1,808
    I'll look into it but im a bit on the uneasy side due to the software likely needing a dedicated partition or installation space. I can still accommodate it as I have room for 2 more 2.5" hdds (totalling to 5 hdds in the system if i do ayy) but if it can certainly allow running one of my partitions in a VM with a dedicated GPU for that VM then I'm down.
    Would it be best to keep a dedicated storage device for it? My setup is already convoluted enough so I need to just ensure I dont lose what I marked below, and adding another partition to the first drive is already something I feel can make this worse.
    upload_2017-10-17_15-27-29.png

    While I am intending to use the rx480 with a windows VM (with my only pcie x16 slot), I had initially thought of just hooking the 750ti up to the x1 slot this way just to get the Linux Host going so i can start the windows VM. Looking into things further I can see why this was going to be a pain in the ass but few people have given real answers regarding how impacted it may be when doing this (i mean its just to run a Linux session and gui to start a VM, how bad could it impair it).

    I am a little disappointed here too. It sucks theres no onboard deal because I would have loved that at this stage.
     
  9. Syclopse

    Syclopse .

    Joined:
    Dec 17, 2013
    Messages:
    1,508
    Likes Received:
    537
    Try your original setup and issue again without anything overclocked?
     
  10. PixelButts

    PixelButts Site Soldier

    Joined:
    Aug 19, 2014
    Messages:
    2,665
    Likes Received:
    1,808
    Components work on old system without issue (for the ones i can test, old system used different ram/socket).
    I only started OCing recently, which has had no difference in effect.
    There's a potential chance the mobo has an issue but if that's the case then I have a bigger issue on my hands because what caused it and why is it only showing up on the PCI device on windows exclusively?
     
  11. Pikmin

    Pikmin Resolute Member

    Joined:
    Dec 23, 2009
    Messages:
    935
    Likes Received:
    95
    If you decide to use esxi you would need to start from scratch
    esxi hypervisor host
    vm> linux
    vm> windows

    This also means you need another pc to connect to the vmware VMs on the host

    You haven't explained your current set up, looks like dual boot Windows 10 + Linux?

    I've never tried the passthrough, how would you connect to the virtual machine, vsphere client console is slow
     
  12. PixelButts

    PixelButts Site Soldier

    Joined:
    Aug 19, 2014
    Messages:
    2,665
    Likes Received:
    1,808
    Well I guess that's where it ends

    Yes. I'm dualbooting, and the idea was to NOT start from scratch as its appearing the issue is somewhere in windows and I cant see exactly where. Whatever issue I'm experiencing is not present under Linux, hence why I wanted to run an existing win10 partition in a VM (you can do this im told via raw disk).
    The thought was if it doesnt exist under Linux, I can run my main partition under VM for gaming, recording content (HD60), SDK stuff, and use Linux for whatever else I do (YT, Posting, Emails, other such things).
    So in this order: Boot > Linux > Start VM of Win10 partition > Do stuff

    The real issue I have (in my eyes) is I have 2 GPUs, but only 1 can be used due to mobo slot limitations because I'm told you need 2 GPUs for a passthrough.

    I have no idea man, this is all foreign to me because I never have to use VM to begin with.
     
  13. Pikmin

    Pikmin Resolute Member

    Joined:
    Dec 23, 2009
    Messages:
    935
    Likes Received:
    95
    Last edited: Oct 17, 2017
    Traace likes this.
  14. PixelButts

    PixelButts Site Soldier

    Joined:
    Aug 19, 2014
    Messages:
    2,665
    Likes Received:
    1,808
    So let me just say, League under wine has been the bane of my existence. It was viable at a time but not anymore. The other issue then becomes my tools. If I were to just get it running natively, I'd still have the issue of being on Linux, without my tools on windows active and I'm unfortunately in need of those constantly.
    It takes a lot of work to get League to perform equally on Linux over Windows (and the Mac version is just a fork of wine anyway) so that was my initial thought but the issue then is do i really want to make it run under wine hoping it performs equally with all the issues it comes with (theres a lot, some minor some major), or just use a VM. I'll try that one out as I have not tried the one from this user yet (I've tried 8 variations, all with varied results).

    I'll look into VMware's side of things in the mean time. I'm more familiar with Virtualbox but I'm open to options.

    Or Riot could just make a maintained linux version and call it done since thats basically what the OSX version is anyway holy shit.
     
  15. Traace

    Traace Rapidly Rising Member

    Joined:
    Nov 22, 2016
    Messages:
    85
    Likes Received:
    64
    Worstation with PCI passthought might work when its configured right which can be painful on a linux host, a type-2 hypervisor like VMWare Workstation has lower performance than a type-1 hypervisor like ESXi. However you don't need to reformat you current HDDs with VMWare Workstation thats a pro. While running ESXi every HDD you like to run a VM on must be formated to a dedicated filesystem called "VMFS"

    https://en.wikipedia.org/wiki/VMware_VMFS






    They rebased it to HTML5, no big Client application anymore, just a simple web browser + its fast and every OS is supported. Point it to hosts ip and you're ready to go.
     
  16. Pikmin

    Pikmin Resolute Member

    Joined:
    Dec 23, 2009
    Messages:
    935
    Likes Received:
    95
    Yeah I've been using vSphere since 4.1 before they killed off ESX. I'm on 6.0 and the web client has always been a paid feature of VCSA/vCenter, unless things have changed in 6.5

    I've tried the above lol script to install and seems to be working okay with the new client. Haven't had time to test properly but I was able to spectate a game without any issues, FPS not great but my work desktop has got a crappy onboard gpu.
     
    Last edited: Oct 18, 2017
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page