My goal is to run template and dependent qubes on the default kernel.
I have a template in which external USB WiFi driver is installed via dkms, but it could be installed only on kernel 5.15.x.
My default Qubes kernel is 6.0.8.
How can I set 6.0.8 kernel for the given template so dkms to recompile the module for this kernel?
Simple setting it in Settings>Advanced tab for the template doesn’t work
sudo dkms status
upon template boot with 6.x kernel still gives driver version and kernel 5.15.x and the device doesn’t work.
At the moment I’m waitng to compile and downgrade gcc in my template to a version complained in the make.log while in kernel 6.08.
If that doesn’t work, I’ll try what you advice, although I have my dilemmas:
That topic was old for more than a year now, when the kernel-devel/latest probably was 5.15.x on which I can already build the driver.
Building it and installing in dispVM (sys-net) is something that is huge mystery to me, since I don’t know how it would survive restart, and for that case when sys-net is dispVM, there’s no tip in your topic there.
Thanks for the tips, I’ll be back with the outcomes.
Hey, thanks. My question here was about dkms. In regular OS, when you upgrade kernel, dkms should automatically recompile drivers (in my case) too. But, since this “upgrade” is never done actually, but we simply choose another kernel in dom0 for qube, what would force dkms to recognize this and (to try to) recompile drivers too. I am not sure at all how it should work, actually.
The simplest way is to use native kernel and headers rather than dom0
provided.
In a Debian system you can trigger the rebuild using dpkg-reconfigure
DRIVER_PACKAGE_NAME