ChrisTitusTech / nixos-titus

Titus's personal NIX OS Configuration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do you pass through your GPU to your qemu VM?

c4lliope opened this issue · comments

Hello Chris! I'm pleased to come across your channel, as a budding nix + hyperland user - one among many at HacDC.

In one clip, you display how a simple Hyprland keybinding can launch a Windows VM including GPU and USB passthrough. I am as amazed as you seem to be by the skill encoded in quickemu, and I'm experiencing a compelling need to use similar bindings on my machine. You can read more in a discussion on cross-compiling the Membrane library's video compositor - programs I hope can soon be used to ease the burden of recording and mixing on an open-source basis.

Our hope is to compile the compositor across all kinds of OS, and ensure the build process can be described using nix flakes for reliable upgrades in the coming years. As you can see in the dialogue, the library wgpu depends on a graphics layer, and making GPU accessible inside qemu is the only sensible approach to a rapid build process.

I ran a quick search on your codebases; quickemu and qemu came up null. Can you share any leads on managing GPU passthrough inside quemu? Honored to learn from your experience.