Windows 2022 guest restarts unexpectedly

Discussions about using Windows guests in VirtualBox.
Post Reply
Vikk
Posts: 2
Joined: 9. Jun 2022, 12:20

Windows 2022 guest restarts unexpectedly

Post by Vikk »

Host: Arch Linux
VirtualBox: 6.1.34 r150636
Guest: Windows Server 2022 Standard, 21H2

The guest restarts unexpectedly repeatedly. First got the issue with 6.1.32 although it had been running fine for several weeks.
I upgraded to 6.1.34 and still get the restarts.

Windows EventLog calls it kernel-power EventId 41: "The system has rebooted without cleanly shutting down first.
The error could be caused if the system stopped responding, crashed or lost power unexpectedly."

The EventLog told me the issue started 3 days ago.
- 3 times two days before yesterday
- 4 times the day before yesterday
- 12 times yesterday
- 9 times this morning

I restored the entire VM from a 4 day backup ago but immediately it also restarted unexpectedly.

Any ideas?
Attachments
VBox.log.tar.bz2
VBox.log
(38.8 KiB) Downloaded 8 times
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Windows 2022 guest restarts unexpectedly

Post by mpack »

The VM seems fine, it looks like you have a guest problem.
00:03:22.602438 GIM: HyperV: Guest indicates a fatal condition! P0=0x3b P1=0xc0000005 P2=0xfffff8063ca3f8de P3=0xffffe40e37fef350 P4=0x0
https://docs.microsoft.com/en-us/window ... -exception

I note that Windows 2022 is not yet listed as a supported guest OS, though I have no idea if that is the issue here.

I don't like that you have given 8 cores to the guest OS. That is not a fair division of host resources (12 cores total). Most people find that 2 cores is plenty for a VM. More just makes it run slower (because each core has a maintenance overhead which is not repaid if idle).
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 2022 guest restarts unexpectedly

Post by scottgus1 »

In addition to Mpack's thoughts, the log was taken while a VM window was still open, so some diagnostic info is missing. But a possible problem is here:
00:00:00.100761 Guest OS type: 'Windows7_64'
00:01:24.283597 VMMDev: Guest Log: 09:38:25.895334 main OS Product: Windows 2022
Windows 2022 is the server version of Windows 11. 11 is probably not likely to run in a 7-style VM. There is a 'Windows 11' template that should work better, and maybe the 'Windows 2019' template might work, too.

Please start a new VM, set to 'Windows 11'. I'd also suggest using only 2 processors as a first test, to see if you can get a stable VM. Ramp up as more parallel-processing software gets installed later.

Finally, Windows 11 and likely 2022 aren't compatible with 6.1-series Virtualbox, and they require the internet-publicized 'incompatible-computer' tweaks and hacks to get 11 to run in older PCs. 7.0-series Virtualbox will be compatible with 11 when released.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Windows 2022 guest restarts unexpectedly

Post by mpack »

scottgus1 wrote: Windows 2022 is the server version of Windows 11. 11 is probably not likely to run in a 7-style VM.
Good spot. Win8.1 or better is certainly not expected to run using a Win7 template.
Vikk
Posts: 2
Joined: 9. Jun 2022, 12:20

Re: Windows 2022 guest restarts unexpectedly

Post by Vikk »

Thanks for the help!

Small improvement but the issue remains. And the VM is slower and slower.

Moved the VM to another workstation and it works fine so I concluded it is hardware related.
The host is almost 9 years old and maybe this was too much for it to handle.

A new one is on route.
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Windows 2022 guest restarts unexpectedly

Post by fth0 »

The actual problem is that VirtualBox 6.1.34 does not support Linux kernel 5.15.44+ on the host and will produce random crashes in the guest (pun intended ;)). See 20914 and Windows 10 Guest on Linux host dies seconds after boot for details.
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Windows 2022 guest restarts unexpectedly

Post by fth0 »

The VirtualBox test builds 6.1.35r151864 (and newer) are supposed to support Linux kernels 5.18, 5.17.12+, 5.15.44+, 5.10.119+ and more on the host and in the guest. Please report back if it solves the problem.
mikest82
Posts: 3
Joined: 1. May 2012, 02:56

Re: Windows 2022 guest restarts unexpectedly

Post by mikest82 »

For the record.
Windows Server 2022 is based on Windows 10 and not Windows 11.
There is almost no difference between Windows Server 2019 and 2022, both are based on Windows 10, only different builds.
The best template for Windows Server 2022 is Windows Server 2019.
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 2022 guest restarts unexpectedly

Post by scottgus1 »

mikest82 wrote:Windows Server 2022 is based on Windows 10 and not Windows 11.
Could very well be right there! Websearching "Windows Server 2022 related to 10 or 11" led me to https://betawiki.net/wiki/Windows_Server_2022, which says 2022 is based on "Iron", which is the 21H1 release of what looks like 10.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Windows 2022 guest restarts unexpectedly

Post by mpack »

In this other topic, the OP has Windows 2022 as host:

viewtopic.php?f=6&t=106209

The log from that host shows a Windows release as follows.
00:00:17.545896 OS Product: Windows 2022
00:00:17.545897 OS Release: 10.0.20348
We normally associate 2xxxx kernel builds with Windows 11. Despite what the Internet says.
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Windows 2022 guest restarts unexpectedly

Post by fth0 »

mpack wrote:We normally associate 2xxxx kernel builds with Windows 11.
That doesn't make it correct, though. Windows 11 uses build numbers 22xxx, Windows 10 uses 10xxx to 19xxx. Windows Server 2022 uses 20xxx and is officially based on Windows Server 2019.
BillG
Volunteer
Posts: 5102
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: Windows 2022 guest restarts unexpectedly

Post by BillG »

Server 2022 certainly uses 20xxx build numbers and the GUI version screen is definitely Windows 10/Server2019 style, not Windows 11 style. As noted above, it works fine with the Server2019 template.
Server2022.png
Server2022.png (15.79 KiB) Viewed 3123 times
Server2022Sc.png
Server2022Sc.png (45.71 KiB) Viewed 3121 times
Bill
Post Reply