Tutorial: Passing through GPU to Hyper-V guest VM

Page 5 of 5 FirstFirst ... 345

  1. Posts : 52
    linux
       #41

    Can you give a look at this question that I have asked on Reddit :

    Reddit - Dive into anything

    I've asked that because I see that Ubuntu installed on the WSL2 is able to detect my GPU,but not Ubuntu installed on HyperV. But Windows installed on Hyper-V can. I was curious to understand if things are working exactly like that or if I'm making some errors during the configurations of some system and I'm getting a wrong result. Anyway,my desire is that Blender Cycles installed on Ubuntu / Hyper-V is able to detect my real GPU like it happens on Ubuntu installed on the WSL2 or Windows 11 installed on the Hyper-V with the GPU-P method,but it seems not possible,according with the reply of the user reddit BlackV :

    >no its doesnt work like that
    >wsl2 has special access to the GPU /windows partition to do this
    > hyper-v does not, you can use GPU-P, but I don't believe that will work for linux (yet)


    He does not seem to believe at 100% to what he says ; and I would like to understand if things are exactly like he says
      My Computer


  2. Posts : 16
    Win10 Pro
    Thread Starter
       #42

    No one really knows, we're all just experimenting. How did you get your Ubuntu VM from WSL2 to detect the GPU? Did you have to run that powershell script to partition it?
      My Computer


  3. Posts : 52
    linux
       #43

    For Ubuntu on the WSL2 there is nothing special to do : it's enough to install the CUDA libraries. For Hyper-V I found two tutorials :

    1) How to use Ubuntu on Hyper-V VM with Microsoft GPU-P support (dxgrknl kernel) :

    GitHub - brokeDude2901/dxgkrnl_ubuntu: Microsoft GPU-P (dxgkrnl) on Hyper-V Ubuntu VM

    (I've used the microsoft kernel 5.15).

    2) How to configure Ubuntu 21.04 VM with GPU acceleration under Hyper-V.

    Ubuntu 21.04 VM with GPU acceleration under Hyper-V...? . GitHub

    it's a nice idea to try to understand the differences between those 2 tutorials.
    Last edited by ziomario; 26 Jul 2023 at 10:25.
      My Computer


  4. Posts : 1
    W11
       #44

    Yet another account created to thanks original post Starlet7222 and the great summary step by step of mapsnrop. Just wanted to add an issue I experienced, that was giving me errors when the script tried copying the files. This comment in github solved "It was actually caused by iGPU "AMD Radeon Graphics". When I disabled it in device manager it works fine." by Jaroslav Kostal

    So with those 3 post I finally have my Nvidia discrete card access from a Hyper V machine in an asus Laptop.

    Thanks all
      My Computer


  5. Posts : 1
    Windows
       #45

    How to have multiple monitors in VM ?


    Hi
    I followed the instructions and was able to set up VM
    Can i have multiple monitors in VM ?
    Can anyone help with this ?
      My Computer


  6. Posts : 16
    Win10 Pro
    Thread Starter
       #46

    Just ran into a game complaining about Driver not supporting OpenGL inside the VM. I check the Device Manager and see a yellow exclamation next to my GPU. I shut down the VM, and on the host, I re-do Step 4 from the original post. When it finished, then i turn back on the VM, and the device manager looks clean, and the game works now. So the solution seems to still be working, at least for me
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 11:30.
Find Us




Windows 10 Forums