Windows 10 update causing boot failure. wrmsr(0x122,0x0`00000003) (#19169)

Discussions about using Windows guests in VirtualBox.
doezel
Posts: 7
Joined: 12. Dec 2019, 21:42

Re: Windows 10 update causing boot failure. wrmsr(0x122,0x0`00000003)

Post by doezel »

Question:

Would it be a good test to downgrade the bios of my laptop to a certain version?

(Bios changelist is on the bottom of this page: https://pcsupport.lenovo.com/nl/en/prod ... s/ds540308 )

edit: nevermind,
I can only downgrade 1 version:
- If the UEFI BIOS has been updated to version 1.26 or higher,
it is no longer able to roll back to the version before 1.26.
Ramshankar
Oracle Corporation
Posts: 792
Joined: 7. Jan 2008, 16:17

Re: Windows 10 Guests do not start after Bios Update

Post by Ramshankar »

socratis wrote:
00:00:07.800331 IEM: wrmsr(0x122,0x0`00000003) -> #GP(0)
00:01:01.816180 GUI: Request to close active machine-window.
Something MSR related again... :?
MSR 0x122 is IA32_TSX_CTRL. This is related to Intel Transactional System Extensions which VirtualBox doesn't support. Its possible that the guest is writing to that MSR without checking its capability bit in MSR_IA32_ARCH_CAPABILITIES (0x10a, bit 7). The guest is writing bits 0 and 1 which seem to be "disable" and "clear"....
Oracle Corp.
fth0
Volunteer
Posts: 5661
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Windows 10 update causing boot failure. wrmsr(0x122,0x0`00000003)

Post by fth0 »

Ramshankar wrote:Its possible that the guest is writing to that MSR without checking its capability bit in MSR_IA32_ARCH_CAPABILITIES (0x10a, bit 7).
That's what I also suspected (just like in the cases with xBSD guests and the SPEC_CTRL MSR). My assumptions so far:
  • Intel CPUs with CPU family 6 and CPU model 0x9e/0x8e/0x55, running an up-to-date Windows/Linux host OS, have the 2019-11-12 Intel microcode update applied that adds the IA32_TSX_CTRL MSR.
  • An up-to-date Windows 10 1903/1909 guest OS accesses the IA32_TSX_CTRL MSR without checking the IA32_ARCH_CAPABILITIES MSR first.
The problem at hand seems to occur only when using VirtualBox versions newer than 6.0.6. Which changes between VirtualBox 6.0.6 and 6.0.8 could influence the behavior? Have there been changes in the CPUID/MSR area?
Ramshankar wrote:The guest is writing bits 0 and 1 which seem to be "disable" and "clear"....
You can find a description of those bits following the first link in viewtopic.php?f=2&t=95783&start=15#p465495 (if you've not seen it already ;)).
mga
Posts: 6
Joined: 28. Apr 2019, 08:05

Re: Windows 10 update causing boot failure. wrmsr(0x122,0x0`00000003)

Post by mga »

taking the risk of looking a bit silly to you,
Do we have to wait for a new version or is it a configuration problem?
I don't see any traces of this problem in the bug thread. :roll:
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Windows 10 update causing boot failure. wrmsr(0x122,0x0`00000003)

Post by socratis »

mga wrote:Do we have to wait for a new version or is it a configuration problem?
It's a hardware issue (microcode update for the CPUs), that only applies to newer Intel CPUs. You'll have to wait for the developers to debug it and apply a fix. It's definitely not a configuration problem. You'd wish...
mga wrote:I don't see any traces of this problem in the bug thread.
Because nobody opened a ticket yet! :)

I'll open one and tie it to the thread...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Windows 10 update causing boot failure. wrmsr(0x122,0x0`00000003)

Post by socratis »

Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
doezel
Posts: 7
Joined: 12. Dec 2019, 21:42

Re: Windows 10 update causing boot failure. wrmsr(0x122,0x0`00000003) (#19169)

Post by doezel »

This affects all VirtualBox > 6.0.8, hence the 6.0.10 version assigned.
Shouldn't that be => 6.0.8 or > 6.0.6 ?
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Windows 10 update causing boot failure

Post by socratis »

mga wrote:6.0.8 : crash
6.0.6 : no crash, vm is booting normally.
Ticket [url=https://www.virtualbox.org/ticket/19169]#19169[/url] wrote:This affects all VirtualBox > 6.0.8, hence the 6.0.10 version assigned.
doezel wrote:Shouldn't that be => 6.0.8 or > 6.0.6 ?
D'oh! :shock:
I fixed the ticket as much as I could. I need either more coffee or more sleep. I think I'll go with the latter... ;)

Thanks 'doezel' for catching this! And a big thanks to 'mga' for all the detective work and the bisection! 8)
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
mga
Posts: 6
Joined: 28. Apr 2019, 08:05

Re: Windows 10 update causing boot failure. wrmsr(0x122,0x0`00000003) (#19169)

Post by mga »

Thanks to you socratis. :D
Robert951
Posts: 1
Joined: 24. Dec 2019, 09:55

Re: Windows 10 update causing boot failure. wrmsr(0x122,0x0`00000003) (#19169)

Post by Robert951 »

I see Windows10 updates and upgrades as dangerous tasks because we can't predict what losses or problems will result from failure,there are some bugs in Windows 10 updates or upgrades.There's no denying it. At least I'm not going to try it myself. I don't have any experience with it.
Paul_S
Posts: 5
Joined: 10. Oct 2017, 20:47

Re: Windows 10 update causing boot failure. wrmsr(0x122,0x0`00000003) (#19169)

Post by Paul_S »

I am sure glad I found this post as this issue has been causing me loos of sleep as I could not get Windows 10 guest or a Windows 7 guest running on my Windows 10 host to boot on a i9-9900K CPU host PC.

Downgraded to 6.0.6 and yes, I am back up and running fine with both Win 10 and Win 7 guest VM's.
cliffbird
Posts: 2
Joined: 1. Jan 2020, 21:04

Re: Windows 10 update causing boot failure. wrmsr(0x122,0x0`00000003) (#19169)

Post by cliffbird »

I would like to reply and confirm that Windows 10 Guest with update KB4530684 hangs on boot. Just recently upgraded to Cascade Lake-X from Skylake-X.
TimFromFL
Posts: 1
Joined: 30. Dec 2019, 10:42

Re: Windows 10 update causing boot failure. wrmsr(0x122,0x0`00000003) (#19169)

Post by TimFromFL »

as a temporary workaround I found that a technique mentioned in another thread worked here, but here is the command

Code: Select all

"C:\Program Files\Oracle\VirtualBox\VBoxManage" modifyvm VMname --cpu-profile "Intel Core i7-6700K"
Doing this allows me to continue to use the latest version of Virtualbox while still allowing me to use updated vms
pt58
Posts: 52
Joined: 7. May 2015, 11:00

Re: Windows 10 update causing boot failure. wrmsr(0x122,0x0`00000003) (#19169)

Post by pt58 »

TimFromFL wrote:as a temporary workaround I found that a technique mentioned in another thread worked here, but here is the command

Code: Select all

"C:\Program Files\Oracle\VirtualBox\VBoxManage" modifyvm VMname --cpu-profile "Intel Core i7-6700K"
Doing this allows me to continue to use the latest version of Virtualbox while still allowing me to use updated vms
Thanks for confirming that this does actually work.
It was a theory I put forward, but with no way of verifying because I couldn't test it on a recent Intel CPU host.
VBoxxy
Posts: 7
Joined: 12. Dec 2019, 19:35

Re: Windows 10 update causing boot failure. wrmsr(0x122,0x0`00000003) (#19169)

Post by VBoxxy »

Hello,

Workaround with Changing Profile work for me too.

Virtualbox 6.0.14 with Intel Xeon E2286M

Thanks for the great Support!
Locked