Someone tested this setup with a AMD Radeon AI PRO R9700 ? I am a bit afraid of the usual drivers issues with AMD and the amount of money required to test that
I use the R9700 for AI inference, using the amd + vulkan drivers, and that works in Qubes OS with PCIe passthrough.
Is anyone able to get nvidia-open-kernel-dkms working with kernel 6.18.15-1.fc41 on debian? It fails to compile.
What’s your distro for a linux gaming hvm?
UPD: ubuntu seems to work
Do you have matching kernel headers?
Did you retry dkms build?
I finally figured out how to turn any AppVM into a GamingHVM based on a normal Fedora TemplateVM.
Even Wayland works with no issues. If anybody is interested I can share the startup script.
@Mirai go for it please
This isn’t a proper guide for setting everything up from scratch, and it assumes you’ve read and understood the guide of the thread.
It’s also more of a proof of concept. I’m still curious whether it works for others too
#!/usr/bin/env bash
#Requirements:
#- AMDGPU
#- External Display just for the VM
#- Separate USB Controller just for the VM
#- Mouse and Keyboard just for the VM
#
#Packages:
#- greetd
#
#Create a Qube:
#- Create a Qube in HVM mode.
#- Use the kernel "provided by Qube".
#
#Then:
#- Create an AppVM based on that template.
#- Put the configuration in /rw/config/rc.local.
#
#Device and audio setup:
#- Attach the GPU devices to the AppVM.
#- Attach a USB controller for the mouse and keyboard to the AppVM.
#- Set audio-vm correctly.
#You can also run this once with persistence using binddirs.
sudo X :1 -configure
sudo mv /root/xorg.conf.new /etc/X11/xorg.conf.d/99-xorg.conf
# Find the correct BusID of the AMD GPU, then set it in the Xorg configuration file
pci=$(lspci | grep "VGA" | grep -E "NVIDIA|AMD/ATI" | cut -d " " -f 1 | cut -d ":" -f 2 | cut -d "." -f 1 | cut -d "0" -f 2)
sudo sed -i 's/"PCI:[^"]*"/"PCI:0:'$pci':0"/g' /etc/X11/xorg.conf.d/99-xorg.conf
sudo dnf remove qubes-gui-agent qubes-core-agent-passwordless-root -y --noautoremove
# You can run this once in the TemplateVM.
# echo user | paswwd -s user
# usermod -aG wheel user
sudo systemctl daemon-reload
sudo systemctl disable --now lightdm
sudo systemctl disable --now bluetooth
sudo systemctl enable greetd
#Start "cosmic-session" either from the shell or by placing it in the greed config in /etc/greetd/
#You can also use any other desktop environment (DE) or window manager (WM) of your choice.
sudo systemctl isolate graphical.target
Using this guide I was able to get both a Windows qube and Neowutrans Archlinux setup working with the GPU but beware for nVidia GeForce 50 series don’t pass the audio part or it keeps failing!