I understand.
How can I make sure that when I turn on the laptop, a selection menu always appears - run Qubes OS or Windows?
Either use UEFI boot menu to choose which OS to boot or add the WIndows boot entry to the Qubes OS GRUB:
Does it matter which OS to install first and which second?
The guide you link to states that Qubes must be installed in legacy mode. For the latest version of Qubes, is this also a mandatory rule?
It’s better to install Qubes OS first because Windows will create the EFI System partition with the size of only 100 MB by default and it won’t be enough for Qubes OS that will use it as well. By default Qubes OS will create bigger EFI System partition.
You don’t need to install it in legacy mode. And the guide is not telling you to do so, notice the If at the beginning:
If you change boot mode to legacy boot almost certainly the Windows installation will not boot.
Yes you are right! I misunderstood the meaning of this phrase about installing legacy mode.
Thank you very much for your clarifications and comments. Now I’m ready to get down to business!
In any case, I’ll be back soon.
I reinstalled Qubes. During installation, as before, it gave an error in the sys-net operation. This should probably be in the log files, which I now managed to copy to a flash drive. I am attaching both files here.
After that, I disabled the WiFi module in the sys-net settings, and everything worked fine.
By the way, the flash drive is now attached to the cubes, and is visible in the file manager without problems.
There is only 1 serious problem left. I turned off the WiFi module. But I need him. Without it there is no connection to the network. An Ethernet cable is good for a desktop computer, but not for a laptop.
The worst thing about all this is that the Wifi/BT module is soldered into my laptop. And I have no way to replace it with the one recommended for Qubes. Therefore, my last hope is that there is some information in the log files that can help solve the compatibility problem.
guest-sys-net.log (242.7 KB)
guest-sys-net-dm.log (146.6 KB)
There is a kernel panic because of the Wireless controller driver:
[2024-07-23 02:29:35] [ 3.281596] rtw_8821ce 0000:00:06.0: Firmware version 24.11.0, H2C version 12
[2024-07-23 02:29:35] [ 3.305764] BUG: kernel NULL pointer dereference, address: 000000000000003c
[2024-07-23 02:29:35] [ 3.305767] #PF: supervisor read access in kernel mode
[2024-07-23 02:29:35] [ 3.305768] #PF: error_code(0x0000) - not-present page
[2024-07-23 02:29:35] [ 3.305770] PGD 0 P4D 0
[2024-07-23 02:29:35] [ 3.305772] Oops: 0000 [#1] PREEMPT SMP NOPTI
[2024-07-23 02:29:35] [ 3.305774] CPU: 1 PID: 389 Comm: (udev-worker) Not tainted 6.6.36-1.qubes.fc37.x86_64 #1
[2024-07-23 02:29:35] [ 3.305776] Hardware name: Xen HVM domU, BIOS 4.17.4 05/25/2024
[2024-07-23 02:29:35] [ 3.305778] RIP: 0010:rtw_pci_probe+0x27f/0x1190 [rtw88_pci]
[2024-07-23 02:29:35] [ 3.305786] Code: 67 b8 bb cf 48 89 df e8 7f ef ff ff 48 8b b3 68 7b 00 00 48 85 f6 74 bd 4c 89 e7 e8 ab fc 6b cf 4c 89 e7 e8 23 44 79 cf eb ab <66> 41 81 7e 3c 86 80 0f 85 bd fe ff ff c6 83 58 7b 00 00 01 e9 b1
[2024-07-23 02:29:35] [ 3.305792] RSP: 0018:ffffa296c06cf988 EFLAGS: 00010246
[2024-07-23 02:29:35] [ 3.305793] RAX: ffffffffc0b341a0 RBX: ffff970991922060 RCX: 0000000000000000
[2024-07-23 02:29:35] [ 3.305795] RDX: ffff9709919254ab RSI: ffff970991922b82 RDI: ffff970991922396
[2024-07-23 02:29:35] [ 3.305796] RBP: 0000000000000000 R08: ffff970991922396 R09: 0000000000000003
[2024-07-23 02:29:35] [ 3.305797] R10: ffff9709919254ab R11: ffff970991922b82 R12: ffff970981c4b000
[2024-07-23 02:29:35] [ 3.305797] R13: ffff970991920900 R14: 0000000000000000 R15: ffff9709919277d8
[2024-07-23 02:29:35] [ 3.305799] FS: 00007c26919b6980(0000) GS:ffff970997100000(0000) knlGS:0000000000000000
[2024-07-23 02:29:35] [ 3.305800] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[2024-07-23 02:29:35] [ 3.305802] CR2: 000000000000003c CR3: 000000000c5f8001 CR4: 0000000000770ee0
[2024-07-23 02:29:35] [ 3.305808] PKRU: 55555554
[2024-07-23 02:29:35] [ 3.305809] Call Trace:
[2024-07-23 02:29:35] [ 3.305811] <TASK>
[2024-07-23 02:29:35] [ 3.305812] ? __die+0x23/0x70
[2024-07-23 02:29:35] [ 3.305817] ? page_fault_oops+0x98/0x190
[2024-07-23 02:29:35] [ 3.305823] ? exc_page_fault+0x77/0x170
[2024-07-23 02:29:35] [ 3.305826] ? asm_exc_page_fault+0x26/0x30
[2024-07-23 02:29:35] [ 3.305831] ? rtw_pci_probe+0x27f/0x1190 [rtw88_pci]
[2024-07-23 02:29:35] [ 3.305836] ? rtw_pci_probe+0x131/0x1190 [rtw88_pci]
[2024-07-23 02:29:35] [ 3.305841] local_pci_probe+0x42/0xa0
[2024-07-23 02:29:35] [ 3.305845] pci_call_probe+0x54/0x170
[2024-07-23 02:29:35] [ 3.305847] pci_device_probe+0x80/0x100
[2024-07-23 02:29:35] [ 3.305849] ? driver_sysfs_add+0x57/0xc0
[2024-07-23 02:29:35] [ 3.305853] really_probe+0x19f/0x400
[2024-07-23 02:29:35] [ 3.305856] ? __pfx___driver_attach+0x10/0x10
[2024-07-23 02:29:35] [ 3.305858] __driver_probe_device+0x78/0x160
[2024-07-23 02:29:35] [ 3.305861] driver_probe_device+0x1f/0x90
[2024-07-23 02:29:35] [ 3.305863] __driver_attach+0xd2/0x1c0
[2024-07-23 02:29:35] [ 3.305866] bus_for_each_dev+0x85/0xd0
[2024-07-23 02:29:35] [ 3.305868] bus_add_driver+0x112/0x240
[2024-07-23 02:29:35] [ 3.305871] driver_register+0x59/0x100
[2024-07-23 02:29:35] [ 3.305872] ? __pfx_rtw_8821ce_driver_init+0x10/0x10 [rtw88_8821ce]
[2024-07-23 02:29:35] [ 3.305877] do_one_initcall+0x5a/0x330
[2024-07-23 02:29:35] [ 3.305881] do_init_module+0x60/0x230
[2024-07-23 02:29:35] [ 3.305883] init_module_from_file+0x86/0xc0
[2024-07-23 02:29:35] [ 3.305886] idempotent_init_module+0x120/0x2b0
[2024-07-23 02:29:35] [ 3.305889] __x64_sys_finit_module+0x5e/0xb0
[2024-07-23 02:29:35] [ 3.305891] do_syscall_64+0x59/0x80
[2024-07-23 02:29:35] [ 3.305894] ? __seccomp_filter+0x32a/0x510
[2024-07-23 02:29:35] [ 3.305898] ? ksys_lseek+0x69/0xb0
[2024-07-23 02:29:35] [ 3.305901] ? syscall_exit_to_user_mode+0x22/0x40
[2024-07-23 02:29:35] [ 3.305903] ? do_syscall_64+0x65/0x80
[2024-07-23 02:29:35] [ 3.305904] ? do_syscall_64+0x65/0x80
[2024-07-23 02:29:35] [ 3.305906] ? exit_to_user_mode_prepare+0xc2/0xd0
[2024-07-23 02:29:35] [ 3.305909] ? syscall_exit_to_user_mode+0x22/0x40
[2024-07-23 02:29:35] [ 3.305911] ? do_syscall_64+0x65/0x80
[2024-07-23 02:29:35] [ 3.305912] ? do_syscall_64+0x65/0x80
[2024-07-23 02:29:35] [ 3.305914] entry_SYSCALL_64_after_hwframe+0x78/0xe2
[2024-07-23 02:29:35] [ 3.305915] RIP: 0033:0x7c26923291bd
[2024-07-23 02:29:35] [ 3.305931] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 2b cc 0c 00 f7 d8 64 89 01 48
[2024-07-23 02:29:35] [ 3.305932] RSP: 002b:00007ffd03e4d8f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[2024-07-23 02:29:35] [ 3.305934] RAX: ffffffffffffffda RBX: 00005948406ca1e0 RCX: 00007c26923291bd
[2024-07-23 02:29:35] [ 3.305935] RDX: 0000000000000000 RSI: 00007c26928b507d RDI: 000000000000001b
[2024-07-23 02:29:35] [ 3.305936] RBP: 00007ffd03e4d9b0 R08: 0000000000000001 R09: 00007ffd03e4d940
[2024-07-23 02:29:35] [ 3.305937] R10: 0000000000000050 R11: 0000000000000246 R12: 00007c26928b507d
[2024-07-23 02:29:35] [ 3.305938] R13: 0000000000020000 R14: 0000594840d409d0 R15: 0000594840d9f150
[2024-07-23 02:29:35] [ 3.305939] </TASK>
[2024-07-23 02:29:35] [ 3.305940] Modules linked in: rtw88_8821ce(+) rtw88_8821c sha1_ssse3(+) rtw88_pci rtw88_core mac80211 libarc4 cfg80211 r8169 pcspkr drm_vram_helper floppy rfkill ehci_pci drm_ttm_helper ehci_hcd ata_generic ttm pata_acpi i2c_piix4 serio_raw xen_scsiback target_core_mod xen_netback xen_privcmd xen_gntdev xen_gntalloc xen_blkback xen_evtchn loop fuse nfnetlink overlay xen_blkfront
[2024-07-23 02:29:35] [ 3.305962] CR2: 000000000000003c
[2024-07-23 02:29:35] [ 3.305964] ---[ end trace 0000000000000000 ]---
[2024-07-23 02:29:35] [ 3.305965] RIP: 0010:rtw_pci_probe+0x27f/0x1190 [rtw88_pci]
[2024-07-23 02:29:35] [ 3.305970] Code: 67 b8 bb cf 48 89 df e8 7f ef ff ff 48 8b b3 68 7b 00 00 48 85 f6 74 bd 4c 89 e7 e8 ab fc 6b cf 4c 89 e7 e8 23 44 79 cf eb ab <66> 41 81 7e 3c 86 80 0f 85 bd fe ff ff c6 83 58 7b 00 00 01 e9 b1
[2024-07-23 02:29:35] [ 3.305971] RSP: 0018:ffffa296c06cf988 EFLAGS: 00010246
[2024-07-23 02:29:35] [ 3.305972] RAX: ffffffffc0b341a0 RBX: ffff970991922060 RCX: 0000000000000000
[2024-07-23 02:29:35] [ 3.305973] RDX: ffff9709919254ab RSI: ffff970991922b82 RDI: ffff970991922396
[2024-07-23 02:29:35] [ 3.305974] RBP: 0000000000000000 R08: ffff970991922396 R09: 0000000000000003
[2024-07-23 02:29:35] [ 3.305975] R10: ffff9709919254ab R11: ffff970991922b82 R12: ffff970981c4b000
[2024-07-23 02:29:35] [ 3.305976] R13: ffff970991920900 R14: 0000000000000000 R15: ffff9709919277d8
[2024-07-23 02:29:35] [ 3.305976] FS: 00007c26919b6980(0000) GS:ffff970997100000(0000) knlGS:0000000000000000
[2024-07-23 02:29:35] [ 3.305978] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[2024-07-23 02:29:35] [ 3.305979] CR2: 000000000000003c CR3: 000000000c5f8001 CR4: 0000000000770ee0
[2024-07-23 02:29:35] [ 3.305980] PKRU: 55555554
[2024-07-23 02:29:35] [ 3.305980] Kernel panic - not syncing: Fatal exception
[2024-07-23 02:29:35] [ 3.306061] Kernel Offset: 0xf400000 from 0xffffffff80200000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
You’ll need to install the out of kernel driver for this Wireless controller in sys-net template:
Build this driver for in-VM kernel in sys-net template and use in-VM kernel in sys-net for this:
You can search about RTL8821CE on this forum for more info.
Ok
The scope of work is clear. Thank you very much for your help, Apparatus!
In any case, I’ll be back to report the results.
Everything is bad.
After installing Windows 11, I can’t run Qubes. It looks like the reason is in the order of system installation. Windows should probably always be installed as the first system. And only after it should Qubes be installed. The reason for this approach is that GRUB can recognize Windows, while Windows Boot Manager is configured to work only with Windows files.
By installing Windows first, and then any Linux system, the Windows boot loader is actually replaced in the bootloader hierarchy by GRUB.
For this reason, I will most likely have to reinstall both operating systems again. First, I will install Windows, and then Qubes. After that, I will try to edit GRUB to be able to select the OS when booting the laptop. Then I will struggle with installing the rtl8821ce Wi-Fi driver in sys-net. ![]()
If this doesn’t work out, have you thought of running your windows 11 as a cube inside qubes-os? I have been doing that for about 5 years now with windows 10 and later tiny11 windows (windows 11 with a lot of the bloatware removed).