VMs to boot to new kernel

27 views
Skip to first unread message

ncm...@gmail.com

unread,
Feb 24, 2020, 1:26:18 PM2/24/20
to qubes-users
I recently succeeded in getting my dom0 upgraded to a 5.4 kernel.
(I can't recall how, because it would not boot for some days afterward.
More about that in another post.)

Now uname in dom0 reports the shiny new 5. 4 kernel.

I also got 5.4 kernels installed in some VM templates. However,
when I start such a template or a VM referring to one, they still
boot into the older, 4.19 kernel.

Question: How to get VMs to boot to a newly installed kernel?

Andrey Arapov

unread,
Feb 24, 2020, 1:44:02 PM2/24/20
to ncm...@gmail.com, qubes-users
Question: How to get VMs to boot to a newly installed kernel?

To change the default kernel for VM's:

[arno@dom0 ~]$ uname -r
4.19.100-1.pvops.qubes.x86_64
[arno@dom0 ~]$ qubes-prefs -s default_kernel 4.19.100-1

the value should correspond to what you find in /var/lib/qubes/vm-kernels/, e.g.
/var/lib/qubes/vm-kernels/4.19.100-1/vmlinuz

And restart the VM's.

To change the kernel for a specific VM only:
qvm-prefs -s <VM> kernel 4.19.100-1


Kind regards,
Andrey Arapov

ncm...@gmail.com

unread,
Feb 24, 2020, 2:14:29 PM2/24/20
to qubes-users
I find that dom0's /var/lib/qubes/vm-kernels/ does not list a
5.4 kernel, despite that dom0 uname reports running it. After I run

  # qubes-dom0-update kernel-latest-qubes-vm

a 5.4 kernel is now listed, and is now selectable using
Qube Settings/Advanced.

Thank you.
Reply all
Reply to author
Forward
0 new messages