r/virtualbox • u/IntelligentCandy8716 • Jul 18 '26
Solved Weird and frustrating behavior with Linux VMs
So, I'm building a test environment for a Linux Mint 21 VM to work through some upgrade procedures to mimic a production system that needs an upgrade. I've been seeing some strange things before the VM freezes on boot. Things like "Spectre V2 ... LFENCE not serializing" "info rcu-sched self detected stall on cpu" "timed out for waiting udev queue being empty"
My machine: r9 9950x3d, 64GB DDR5, ASUS Tuf Gaming B850-plus WiFi Mobo, RX 9070 XT 16GB GPU, Windows 11 Home, VirtualBox 7.2.12
I've tried turning off secure boot in the BIOS, and turning off all windows virtualization options. And turning off core isolation options. The core isolation option allowed the VMs of LM 21 and several Fedora 43 Xfce VMs to boot up quickly if is set the Paravirtualization option to Hyper-V but then I started seeing clock issues. As in, the VM time was about 5x faster than real-time. Older linux kernels seem to work better than newer ones, but VBox Guest additions installation also seems to break things.
Also, my Windows VMs (1 Win 11 Pro, and 1 Win Server 2025) boot just fine. Though when I had 5 VMs open, all froze once but the Host was fine. WTF is going on? I'm running out of options. I have had no problems with my VMware VMs. Is VirtualBox broken?
NOTE: all of the Fedora VMs were created on earlier versions of VirtualBox on a Windows 10 host and migrated to this new host. I don't know if that matters.
Update: a roll back to VirtualBox v7.2.6 fixed most of my errors.
•
u/AutoModerator Jul 18 '26
This is just a friendly reminder in case you missed it. Your post must include:
PLUS a detailed description of the problem, what research you have done, and the steps you have taken to fix it. Please check Google and the VirtualBox Manual before asking simple questions. Please also check our FAQ and if you find your question is answered there, PLEASE remove your post or at least change the flair to Solved.
If this is your first time creating a virtual machine, we have a guide on our wiki that covers the important steps. Please read it here. If you have met these requirements, you can ignore this comment. Your post has not been deleted -- do not re-submit it. Thanks for taking the time to help us help you! Also, PLEASE remember to change the flair of your post to Solved after you have been helped!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
3
u/LeslieH8 Jul 18 '26
Oof, those errors generally have little to do with each other,
The
Spectre V2 mitigation: LFENCE not serializing. Switching to generic retpolinemessage in Oracle VirtualBox is a kernel warning, not a fatal error, indicating that the guest Linux kernel has safely fallen back to a standard software mitigation (retpoline) because VirtualBox isn't passing the necessary hardware-level MSR (Model Specific Register) controls to the guest. If your virtual machine (VM) freezes or fails to boot alongside this message, the root cause is almost always Hyper-V interference on a Windows host or insufficient hardware virtualization settings.Fix the Underlying VM Freeze or Crash
If your VM hangs completely at this screen, apply these steps sequentially on your host machine to resolve the hardware virtualization conflict:
Windows features like WSL2, Device Guard, or Docker force-enable Microsoft Hyper-V, which strips VirtualBox of raw access to CPU serialization instructions.
Turn Windows features on or off, and open it.Sometimes the guest kernel triggers execution bottlenecks if configuration resources are too restricted.
---
An
rcu_sched self detected stallerror in VirtualBox usually means your Linux gues kernel is waiting for CPU resources, or vCPU preemption on your host machine is delaying internal processing. This leads to kernel hangs or freezes.To resolve this issue, apply the following actionable fixes:
bcdedit /set hypervisorlaunchtype off, then reboot your host.---
The 'timed out for waiting udev queue being empty' error occurs when the Linux kernel stalls while trying to initialize devices—typically USB controllers or storage drives—causing the boot process to hang for roughly 120 seconds. In VirtualBox, this is usually caused by conflicting USB filters or misconfigured storage attachments.
Immediate Fixes to Apply
.isofile, and select Remove Disk from Virtual Drive.Advanced Boot Adjustments
If you still can't boot, access the GRUB boot menu by holding
Shift(orEsc) during startup and try these modifications:eto edit the first boot option.linuxorlinuxefi.noapic nomodesetto the end of that line.Ctrl + XorF10to boot.1
u/IntelligentCandy8716 Jul 18 '26
Update: I turned secure boot back on and reactivated all of the core security but kept the windows virtualization features off. The only one I have still is the WSL features because I still use that. One of my log files mentioned it was loading guest additions for 7.2.6 so I figured, why not put it back on? The VMs were working fine on the old computer. So, I grabbed it from the VirtualBox site, uninstalled 7.2.12, reboot the host, and installed the old version. All my VMs showed up right away and I tweaked all the Linux VMs to use KVM Paravirtualization instead of default or anything else. I test boot most of the Linux VMs to make sure things were working and everything seems normal!
1
u/Face_Plant_Some_More Jul 18 '26
You are likely running Virtual Box on a Hyper-v enabled Host. Check the Vbox.logs for your VMs to verify this. To resolve, turn Hyper-v on your Windows Host off.
1
u/wadrasil Jul 20 '26
Honestly unless virtual box has its own Linux drivers I would use qemu for running Linux on windows. It just has a lot more focus and work done for running Linux as a guest than VMware or Xbox.