This is my personal repository with files and notes which helps to install/run Qubes 4.1 on a ThinkPad X1 Extreme Gen3
- Disable Secure Boot
- Build Qubes 4.1 via qubes-builder or download Qubes 4.1 alpha ISO
Note: Qube 4.1 alpha comes with kernel 5.4.x
- Copy rpm files to dom0:
qvm-run -p ${VM} 'cat /home/user/kernel-latest-5.9.14-1.qubes.x86_64.rpm' > kernel-latest-5.9.14-1.qubes.x86_64.rpm
- Install kernel RPM package:
dnf install kernel-latest-5.9.14-1.qubes.x86_64.rpm
- Reboot and load the new kernel
Based on issue #5615
- Install kernel-latest-qubes-vm >= 5.8.11-3:
dnf install kernel-latest-qubes-vm-5.9.14-1.qubes.x86_64.rpm
- Shutdown sys-net:
qvm-shutdown sys-net
- Change Qube settings for sys-net to use the new installed kernel
qvm-prefs --set sys-net kernel "5.9.14-1"
- Add
iwlwifi.disable_rxq=1
to kernel options for sys-net:
opt=$(qvm-prefs --get sys-net kernelopts)
qvm-prefs --set sys-net kernelopts "$opt iwlwifi.disable_rxq=1"
- Start sys-net with the new kernel options
qvm-start sys-net
Based on issue #2526:
- Install necessary tools:
qubes-dom0-update gcc kmod grub2-tools perl-bignum make
- Install kernel-devel from RPM file;
dnf install kernel-latest-devel-5.9.14-1.qubes.x86_64.rpm
- Download the latest nvidia driver from https://www.nvidia.com/en-us/geforce/drivers/ (In my case "NVIDIA-Linux-x86_64-455.45.01.run)
- Copy the downloaded driver to dom0
qvm-run -p ${VM} 'cat /home/user/Downloads/NVIDIA-Linux-x86_64-455.45.01.run' > NVIDIA-Linux-x86_64-455.45.01.run
chmod +x NVIDIA-Linux-x86_64-455.45.01.run
- Extract driver sources
./NVIDIA-Linux-x86_64-455.45.01.run --ui=none --no-x-check --keep --extract-only
- Build nvidia.ko kernel driver
cd NVIDIA-*/kernel/; make module IGNORE_XEN_PRESENCE=y CC="gcc -DNV_VMAP_4_PRESENT -DNV_SIGNAL_STRUCT_RLIM"
- Copy compiled driver to
/lib/modules/$(uname -r)/extra
sudo cp nvidia.ko /lib/modules/$(uname -r)/extra/
- Load the driver and check
sudo depmod -a; modinfo nvidia
- Edit grub2 entry add
rd.driver.blacklist=nouveau
to the end ofGRUB_CMDLINE_LINUX
sudo vim /etc/sysconfig/grub
- Update grub.cfg for UEFI
grub2-mkconfig -o /boot/efi/EFI/qubes/grub.cfg
- Disable nouveau driver; add to blacklist
echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
- Reboot the system and enjoy the nvidia driver
Based on https://bugzilla.opensuse.org/show_bug.cgi?id=1176351
- Edit grub2 entry add
snd_hda_intel.dmic_detect=0
to the end ofGRUB_CMDLINE_LINUX
sudo vim /etc/sysconfig/grub
- Update grub.cfg for UEFI
grub2-mkconfig -o /boot/efi/EFI/qubes/grub.cfg