WSL icon indicating copy to clipboard operation
WSL copied to clipboard

will gpu partitioning ever work in virt-manager / qemu on wsl2 ?

Open Mungr3ss opened this issue 2 months ago • 3 comments

is this even possible or being worked on? or is it better to just use hyper-v instead?

Mungr3ss avatar Nov 04 '25 09:11 Mungr3ss

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise, please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions in Collect WSL logs for networking issues

Once completed please upload the output files to this GitHub issue.

See Collect WSL logs (recommended method).

If you choose to email these logs instead of attaching them to the bug, please send them to [email protected] with the GitHub issue number in the subject, and include a link to your GitHub issue comment in the message body, and reply with '/emailed-logs'.

github-actions[bot] avatar Nov 04 '25 09:11 github-actions[bot]

Marking this as a feature request. Maybe you could share more about your use case and hardware setup?

sirredbeard avatar Nov 05 '25 21:11 sirredbeard

I guess what i'm after is being able to use my dedicated gpu in a virtual machine running on virt-manager qemu/kvm. like how you can do with windows and hyper-v.

at the moment you can only use your gpu for app use in wsl2 but not but not in virtual machine running in wsl2 on virt-manager.

Mungr3ss avatar Nov 06 '25 13:11 Mungr3ss