VirtualBox 6.1.32 BUG: soft lockup - CPU#1 stuck

Discussions related to using VirtualBox on Windows hosts.
Marco Sousa
Posts: 6
Joined: 11. Apr 2022, 12:50

VirtualBox 6.1.32 BUG: soft lockup - CPU#1 stuck

Post by Marco Sousa »

BUG: soft lockup - CPU#1 stuck for XXs!

This happen only with Virtualbox 6.1.32, doesn't happen in 6.1.30.
I try twice in 6.1.30, and twice in 6.1.32.
2022-04-11_12-53-03.png
2022-04-11_12-53-03.png (14.11 KiB) Viewed 21460 times
Tested with: Ubuntu, Archlinux guests.
Host: Windows 10 21H2.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: VirtualBox 6.1.32 BUG: soft lockup - CPU#1 stuck

Post by scottgus1 »

Start the VM from full normal shutdown, not save-state. Run until you see the problem happen, then shut down the VM from within the VM's OS if possible. If not possible, close the Virtualbox window for the VM with the Power Off option set.

Right-click the VM in the main Virtualbox window's VM list, choose Show Log. Save the far left tab's log, zip it, and post the zip file, using the forum's Upload Attachment tab.
Marco Sousa
Posts: 6
Joined: 11. Apr 2022, 12:50

Re: VirtualBox 6.1.32 BUG: soft lockup - CPU#1 stuck

Post by Marco Sousa »

scottgus1 wrote:..Show Log..
Added CPU halt issue log.
2022-04-12_08-12-45.png
2022-04-12_08-12-45.png (67.31 KiB) Viewed 21399 times

VBox 6.1.30 works fine, 6.1.32 hang the CPU.
Attachments
Arch-2022-04-12-08-14-06.zip
CPU Halt bug VBox log
(39.54 KiB) Downloaded 45 times
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: VirtualBox 6.1.32 BUG: soft lockup - CPU#1 stuck

Post by mpack »

00:00:04.013227 CPUM: Physical host cores: 8
...
00:00:03.255196 NumCPUs <integer> = 0x0000000000000008 (8)
Why does this VM need so many cores? Are you aware that idle cores make a VM slower? The typical number of cores you assign to a VM is 2.

Leaving the host OS with 0 cores will not exactly improve matters there either, and btw VirtualBox is an app running on the host OS.
Marco Sousa
Posts: 6
Joined: 11. Apr 2022, 12:50

Re: VirtualBox 6.1.32 BUG: soft lockup - CPU#1 stuck

Post by Marco Sousa »

mpack wrote:
Why does this VM need so many cores? Are you aware that idle cores make a VM slower? The typical number of cores you assign to a VM is 2.
Thank's for the tip, but reducing to 2 cores doesn't fix it. But reducing to only 1 core, fix the issue.

The issue doesn't happen in the previous version, only in the last version.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: VirtualBox 6.1.32 BUG: soft lockup - CPU#1 stuck

Post by scottgus1 »

Hyper-V is enabled. See HMR3Init: Attempting fall back to NEM (Hyper-V is active).

Apparently, something with Hyper-V or a recent glitch over Hyper-V is getting in the way now. However, the usual suspect fingering the 6.1.32 Hyper-V bug is not present:
00:04:26.226750 /TM/VirtualSync/CurrentOffset 820555 ns
There has to be close to 10 digits, you're only at 6, so that bug isn't interfering. Could be something else. The devs are working on it.

Going back to 6.1.30 is a valid workaround.
Marco Sousa
Posts: 6
Joined: 11. Apr 2022, 12:50

Re: VirtualBox 6.1.32 BUG: soft lockup - CPU#1 stuck

Post by Marco Sousa »

scottgus1 wrote:Hyper-V is enabled.
Hyper-V is not enabled.
2022-04-12_15-37-36.png
2022-04-12_15-37-36.png (17.15 KiB) Viewed 21323 times
2022-04-12_15-39-27.png
2022-04-12_15-39-27.png (32.92 KiB) Viewed 21323 times
2022-04-12_15-41-00.png
2022-04-12_15-41-00.png (114.77 KiB) Viewed 21322 times
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: VirtualBox 6.1.32 BUG: soft lockup - CPU#1 stuck

Post by mpack »

Hyper-v is very much enabled.
00:00:03.256294 HM: HMR3Init: Attempting fall back to NEM: VT-x is not available
00:00:03.272546 NEM: info: Found optional import WinHvPlatform.dll!WHvQueryGpaRangeDirtyBitmap.
00:00:03.272614 NEM: WHvCapabilityCodeHypervisorPresent is TRUE, so this might work...
Less argument please, more reading the faq you were given.
Marco Sousa
Posts: 6
Joined: 11. Apr 2022, 12:50

Re: VirtualBox 6.1.32 BUG: soft lockup - CPU#1 stuck

Post by Marco Sousa »

mpack wrote:Less argument please, more reading the faq you were given.
Thanks for the FAQ, reviewing
Marco Sousa
Posts: 6
Joined: 11. Apr 2022, 12:50

Re: VirtualBox 6.1.32 BUG: soft lockup - CPU#1 stuck

Post by Marco Sousa »

Hyper-v was collaterally activated by the company.

Resume
  • VirtualBox 6.1.30 CPU Core 8: Works
    VirtualBox 6.1.32 CPU Core 8: Hangs CPU #2-8
    VirtualBox 6.1.32 CPU Core 1: Works
    Downgrade to VirtualBox 6.1.30 CPU Core 8: Works
    Hyper-v Manager CPU Core: 8 Works
Thanks for the help
Last edited by Marco Sousa on 14. Apr 2022, 12:51, edited 1 time in total.
AndyCot
Posts: 297
Joined: 29. Feb 2020, 03:04

Re: VirtualBox 6.1.32 BUG: soft lockup - CPU#1 stuck

Post by AndyCot »

Known issue that 6.1.30 works with hyper-V, but 6.1.32 does not in the vast majority of cases.

BTW The latest test release is still "broken" with regards to hyper-v still not working.
virtualjiffybag
Posts: 1
Joined: 20. Apr 2022, 14:29

Re: VirtualBox 6.1.32 BUG: soft lockup - CPU#1 stuck

Post by virtualjiffybag »

Just come across this after struggling with these soft lockups for a long time.
Not much to add except: this matches my experience. Soft lockups on v6.1.32, none after downgrading to v6.1.30. Hyper-V components\services are disabled, but WHvCapabilityCodeHypervisorPresent = True in VM log. Hope this can be fixed otherwise many Windows users will be stranded on old version.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: VirtualBox 6.1.32 BUG: soft lockup - CPU#1 stuck

Post by scottgus1 »

virtualjiffybag wrote:Hope this can be fixed
HMR3Init: Attempting fall back to NEM (Hyper-V is active). Up to 6.1.26, things were progressing. When Windows 11 came out some tweaks were added in 6.1.28 that bugged up Windows 10 hosts with Hyper-V. The devs ate working on fixing the bugs.

Our forum guru 'fth0' has done some troubleshooting and pins down these possibilities to try (HCVI = Microsoft 'Memory Integrity'):
6.1.32 without Hyper-V
6.1.30 with Hyper-V but without HVCI
6.1.26 with Hyper-V and HVCI.
chas4
Posts: 18
Joined: 25. Apr 2022, 18:57

Re: VirtualBox 6.1.32 BUG: soft lockup - CPU#1 stuck

Post by chas4 »

6.1.32 & 6.1.34 have the same bug it works fine if you downgrade to 6.1.30 (no settings are ever changed)
Windows 11 host and current Ubuntu guest VM. (attached logs)

Edit: Attached a screenshot of the error


Side note does Oracle wipe old VirtualBox forum accounts as I could not log in with my old one?
Attachments
error message more details
error message more details
vbox bug(1).jpg (92.9 KiB) Viewed 20481 times
Ubuntu-2022-04-25-10-19-15.zip
VM log
(33.87 KiB) Downloaded 12 times
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: VirtualBox 6.1.32 BUG: soft lockup - CPU#1 stuck

Post by scottgus1 »

chas4, your log doesn't show the telltale time offset, but there could be another cause of the lockup. The devs' fixes for the Hyper-V bug did not make it into 6.1.34. Situation still the same as above for the present.

No, Oracle doesn't lock old forum accounts.
Post Reply