Cannot install RTL8812AU in Debian/Fedora Template – missing kernel headers for Qubes kernel

Hi,

I’m trying to install the RTL8812AU driver in Qubes OS in a sys-net VM (Debian 13 / Fedora 42), but I’m running into issues due to missing kernel headers.

System information:

  • VM: sys-net, Debian 13 / Fedora 42 XFCE Template
  • Kernel in VM: 6.12.64-1.qubes.fc41.x86_64
  • uname -r in VM: 6.12.64-1.qubes.fc41.x86_64
  • ls /usr/src: no kernel-headers / kernel-devel directories
  • rpm -q kernel-devel (Fedora Template): kernel-devel-6.18.10-100.fc42.x86_64

I’ve tried installing qubes-kernel-vm-support, dkms, build-essential, gcc, make, git, but still no headers for the running kernel.

Questions:

  1. Does anyone know when or where I can get kernel headers for 6.12.64-1.qubes.fc41.x86_64 for Debian/Fedora templates in Qubes?
  2. Is the only option to switch the VM to an older kernel that has headers?
  3. Is there any alternative way to install RTL8812AU in Qubes without headers for the latest kernel?

Any help is appreciated.

I think if you want to build custom kernel modules you’ll need to switch to using in-VM kernels