seflerZ / oneclick-gpu-pv

Enable GPU-PV without efforts.
55 stars 5 forks source link

Thank you! Also found a way to get 6.6.y installed directly #7

Open Nislaco opened 3 months ago

Nislaco commented 3 months ago

Forked your repo due to a typo a few weeks ago, as this rocks for setting up windows VMs with specific GPU on windows guests.

I looked through a few other related repos for GPU-V and got a 1off script working for 6.6y WSL module based of others hard work as yourself:

This compiles off git for WSL kernel mod directly for ubuntu LTS. IE 6.8.0-39-generic

Other repos: https://github.com/thexperiments/dxgkrnl-dkms-git?tab=readme-ov-file https://github.com/staralt/dxgkrnl-dkms https://github.com/antonpetrovmain/hyper-v-gpu-p

Script: https://gist.github.com/Nislaco/ce7ec314bdf0cf519ff0fb2fffc55107

This only seems to work if all GPU's (if multiple/multi vendor) are passed through and only selecting one specific GPU fails: https://github.com/brokeDude2901/dxgkrnl_ubuntu?tab=readme-ov-file

Tested on a system with 3 Gpus from 2 vendors and this could be part of any wonkiness but does fully work.

This works for passing through #multiple gpus into ubuntu..

$gpu_list = Get-VMHostPartitionableGpu foreach ($k in $gpu_list){ $instance_path = $k.Name $instance_path Add-VMGpuPartitionAdapter -VMName $vm -InstancePath $instance_path }