Skip to content

Commit e897c35

Browse files
committed
til: fix virtualbox on kernel 6.12+
1 parent e46b88c commit e897c35

2 files changed

+28
-0
lines changed

content/til/how-to-fix-virtualbox-on-fedora38-with-kernel-6410.md content/til/how-to-fix-virtualbox-on-fedora-38-with-kernel-6410.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ tags:
55
- linux
66
- fedora
77
- virtualbox
8+
aliases:
9+
- how-to-fix-virtualbox-on-fedora38-with-kernel-6410
810
---
911

1012
I recently did a software update on my laptop running Fedora 38, and that also brought in a kernel update. Starting my Win10 VirtualBox VM afterwards no longer worked as it needed the kernel module to be recompiled. However, that failed:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: "How to fix VirtualBox on Fedora 40 with Kernel 6.12+"
3+
date: 2025-02-27
4+
tags:
5+
- linux
6+
- fedora
7+
- virtualbox
8+
---
9+
10+
I (accidentally[^1]) did a software update on my laptop last night, and this morning when I needed my Win10 VM for something, VirtualBox threw an error like this at me:
11+
12+
> VirtualBox can't operate in VMX root mode. Please disable the KVM kernel extension, recompile your kernel and reboot (VERR_VMX_IN_VMX_ROOT_MODE).
13+
14+
A quick web search for "fedora update virtualbox vboxisomaker" gave me [this forum post](https://discussion.fedoraproject.org/t/139896) and consequently
15+
[this bug report](https://www.virtualbox.org/ticket/22248), in which I found the solution: I just had to add the kernel parameter `kvm.enable_virt_at_load=0` to disable KVM -
16+
which comes enabled by default since Kernel 6.12. I accomplished that with grubby:
17+
18+
``` bash
19+
sudo grubby --update-kernel=ALL --args="kvm.enable_virt_at_load=0"
20+
```
21+
22+
After a reboot, VirtualBox started again.
23+
24+
Given how often VirtualBox breaks for me on updates, long term I think I really need to find a different solution... And yes, I also really need to upgrade to Fedora 41, I know 😉
25+
26+
[^1]: I needed to a quick reboot before an online call and promptly forgot to uncheck "install updates" on the reboot dialog. Which made me be late on the call. Meh.

0 commit comments

Comments
 (0)