microsoft / microsoft/WSL

[Feature] Enhanced Hyper-V GPU Passthrough for Seamless Linux Development in Windows

Open
#12,182 3 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

**Is your feature request related to a problem? Please describe.**
As a researcher, I rely heavily on Windows due to its rich ecosystem of software that's invaluable for my work. However, I find Linux much more comfortable for development. I've tried running Linux on a Windows emulator, but the experience wasn't satisfying. This led me to dual-boot both Windows 11 and Ubuntu. Unfortunately, I encounter issues when trying to run graphical software on Linux via WSL, even with WSLg; it lacks the polish and stability of a full Linux boot.

**Describe the solution you'd like**
I suggest enhancing Hyper-V to allow Linux VMs to fully leverage dedicated graphics hardware, similar to KVM. This would enable a near-metal virtualization experience, allowing full utilization of hardware resources while maintaining a Linux desktop environment within Windows. This setup would keep everything organized under Hyper-V. Moreover, installing graphical applications via WSL clutters the Windows Start menu, disrupting its organization. An optimized Hyper-V setup would offer a unified, efficient development environment without needing to dual boot.

**Describe alternatives you've considered**
I've considered and currently use dual booting as an alternative, but this requires frequent system restarts, which is disruptive to my workflow. Another alternative is using WSLg, but as mentioned, it lacks the stability and organization needed for a professional development environment.

**Additional context**
Enhancing Hyper-V to support GPU passthrough and near-metal virtualization for Linux would revolutionize the way we utilize Linux on Windows. It would eliminate the need for dual booting and make tools like VS Code seamlessly integrate with the full Linux desktop environment. Windows would shift to performance mode when running such VMs, minimizing resource overhead and acting as an efficient host. This would enable simultaneous use of tools like Photoshop on Windows while running a full Linux development environment.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name any files, tests, or entry points. Start by determining whether GPU passthrough for Linux virtual machines is within WSL's scope and locating existing Hyper-V or GPU integration work; a complete solution would need a defined implementation plan and measurable support for the requested graphics capabilities.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.