Windows 10 guest random crashes

Discussions about using Windows guests in VirtualBox.
Post Reply
a6zj6
Posts: 4
Joined: 19. Jul 2021, 18:03

Windows 10 guest random crashes

Post by a6zj6 »

Hi,

I've searched these forums but this issue appears to be somewhat difficult for me to understand what exactly is going on. I recently moved from a Linux host to a Windows host but using all the same VirtualBox versions, extension pack versions, etc. My 3 Windows VMs were preivously working fine, stable, no issues on my Linux host (Ubuntu) but once I tried to use them on Windows 10 host (again, same VirtualBox version) I am seeing these 3 VMs randomly crash. I'm not sure exactly how to reproduce the issue because it is random, sometimes it'll crash and reboot after initial login, sometimes it'll take 15 minutes then randomly crash, etc.

The only thing I've noticed is that in the VBox.log is that when it does crash, I always see a message that the guest indicates a fatal condition, I see a bugcheck and I see a reset initiated.
Here's what it looks like:

00:00:59.126837 GIM: HyperV: Guest indicates a fatal condition! P0=0xa P1=0x1 P2=0x2 P3=0x0 P4=0xfffff80434729de4
00:00:59.126922 GIMHv: BugCheck a {1, 2, 0, fffff80434729de4}
00:00:59.126922 IRQL_NOT_LESS_OR_EQUAL
00:00:59.126923 P1: 0000000000000001 - memory referenced
00:00:59.126923 P2: 0000000000000002 - IRQL
00:00:59.126923 P3: 0000000000000000 - bitfield
00:00:59.126923 b0: 0 - read operation
00:00:59.126923 b3: 0 - execute operation
00:00:59.126923 P4: fffff80434729de4 - EIP/RIP
00:00:59.381756 AHCI#0: Reset the HBA
00:00:59.381787 VD#0: Cancelling all active requests
00:00:59.383077 AHCI#0: Port 0 reset
00:00:59.384186 VD#0: Cancelling all active requests
00:01:01.978575 VMMDev: vmmDevHeartbeatFlatlinedTimer: Guest seems to be unresponsive. Last heartbeat received 4 seconds ago
00:01:22.590069 VMMDev: Guest Log: VBoxGuest: BugCheck! P0=0xa P1=0x1 P2=0x2 P3=0x0 P4=0xfffff80434729de4
00:01:22.590660 GIM: HyperV: Reset initiated through MSR
00:01:22.590691 ACPI: Reset initiated by ACPI
00:01:22.590729 Changing the VM state from 'RUNNING' to 'RESETTING'
00:01:22.591920 GIM: HyperV: Resetting MMIO2 regions and MSRs
00:01:22.591978 PIT: mode=3 count=0x10000 (65536) - 18.20 Hz (ch=0)
00:01:22.593334 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000007430000 w=1024 h=768 bpp=32 cbLine=0x1000 flags=0x0 origin=0,0
00:01:22.593794 VMMDevNotifyGuest: fAddEvents=0x1 ignored because enmVMState=8
00:01:22.608186 AHCI#0: Reset the HBA
00:01:22.608236 VD#0: Cancelling all active requests
00:01:24.162865 Changing the VM state from 'RESETTING' to 'RUNNING'

Attached is the full log.
Host: Windows 10 1909, 32GB Ram, 1TB SSD, Intel(R) Core(TM) i7-10850H CPU @ 2.70GHz
Guest: Windows 10, 4GB ram
Attachments
VBox.zip
(37.79 KiB) Downloaded 5 times
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Windows 10 guest random crashes

Post by scottgus1 »

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

Then, Windows 10 really likes two processors. Your host has 6 and your VM is set to only use 1.

And Nested Paging is off. I think I read that Windows 10 really likes or requires this to be on. See the VM's settings, System, Acceleration tab.
a6zj6
Posts: 4
Joined: 19. Jul 2021, 18:03

Re: Windows 10 guest random crashes

Post by a6zj6 »

Hey,

I had turned off nested paging just this morning to see if it would be the culprit as I'm a bit confused. I've tried numerous different configurations (e.g. enabling 3D acceleration, increasing video memory, reverting to USB 2 instead of USB 3, etc.) but nothing seems to work. I'll re-enable nested paging and add a second vCPU. I'll post back but I know it was having issues even with nested paging enabled.

Curious question, on my Linux host where this same VM was working fine, it had the same specs with 1 vCPU. Does it make sense that I'd need a second one when using this VM on a Windows host? Genuine question, I just don't see why it would fail on a Windows host but be fine running on a Linux host.

Thanks for the quick response.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Windows 10 guest random crashes

Post by scottgus1 »

a6zj6 wrote:why it would fail on a Windows host but be fine running on a Linux host.
scottgus1 wrote:Hyper-V is enabled.
Hyper-V is probably the killer. The other points are for better (perhaps) performance later.
a6zj6
Posts: 4
Joined: 19. Jul 2021, 18:03

Re: Windows 10 guest random crashes

Post by a6zj6 »

Hey,

Sorry, I missed that first bullet. I actually removed all Hyper-V from Windows 10. I do however have hyper-v enabled as the paravirtualization mechanism. I thought Hyper-V needed to be disabled in Windows if I was running Oracle VirtualBox?

Screenshot:
hyper-v features Windows.jpg
hyper-v features Windows.jpg (69.08 KiB) Viewed 3183 times
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Windows 10 guest random crashes

Post by scottgus1 »

Paravirtualization Interface, set to 'Hyper-V', is not the Hyper-V that blocks Virtualbox. It is a comm channel provided by modern virtualization-aware OS's to talk to the hypervisor they're running on.
a6zj6 wrote:I thought Hyper-V needed to be disabled in Windows if I was running Oracle VirtualBox?
The devs are working on having Windows host Hyper-V enabled while running Virtualbox, but its still a work in progress, and some hosts, like yours, may be unstable when host Hyper-V is enabled. The tutorial covers this.
a6zj6
Posts: 4
Joined: 19. Jul 2021, 18:03

Re: Windows 10 guest random crashes

Post by a6zj6 »

Ok, so I see in the log (using the tutorial you indicated) that Hyper-V is enabled even though I removed the feature from Windows. I inserted the BCDEdit (variable?) and ran the DISM command and rebooted. I ran my VM and still the same line shows up indicating it's still enabled.

I ran systeminfo.exe as per an Internet site I found and under Hyper-V Requirements, I see: A hypervisor has been detected. Features required for Hyper-V will not be displayed. From what I see online, this still seems to indicate Hyper-V is enabled and may be due to something like secure boot, etc. I am in fact running this on a domain-joined machine in a corporate environment and so I'm wondering if maybe Hyper-V cannot be disabled on this device without having an IT admin (I am local admin only on this device) override the policy for me? So, if Hyper-V is enbled on my host, is there nothing I can do? I'm OK if it means some performance hit as I'm just using my Windows VM for basic computing. But it sounds like this is a 'conflict' issue whereby one hypervisor is fighting with the other resulting in instability?
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Windows 10 guest random crashes

Post by scottgus1 »

a6zj6 wrote:I am in fact running this on a domain-joined machine in a corporate environment and so I'm wondering if maybe Hyper-V cannot be disabled on this device without having an IT admin (I am local admin only on this device) override the policy for me? So, if Hyper-V is enbled on my host, is there nothing I can do?
The tutorial covers this too.
a6zj6 wrote:inserted the BCDEdit (variable?)
the tutorial wrote:4. Enter this command:

bcdedit /set hypervisorlaunchtype off
Could be you're not following the tutorial carefully enough? There's been several times you mention or ask about something that the tutorial has covered.
Post Reply