Greetings to all. I've been trying several itineraries and have managed to figure it out. Some things aren't necessary, and others are important. Here's what I did, with some links for reference.
I started by turning off BitLocker on the C: drive and changing the boot, disabling Secure Boot, restarting after this.
Open "Turn Windows features on or off":
- Container Server : disable
- Containers : disable
- Hyper-V : disable
- Virtual Machine Platform : disable
- Windows Hypervisor Platform : disable
- Windows Sandbox : disable
- Windows Subsystem for Linux : disable
Using bcdedit tool:
It has a Boot Manager bootstrap block and a Boot Loader block for loading Windows 11.
Help
https://learn.microsoft.com/en-us/windows-hardware/drivers/devtest/adding-boot-entries
- Record the previous state
bcdedit /v > bcdedit_antes_alter.txt
bcdedit /export "bcdedit_export.bcd"
- View current status
bcdedit /enum
- Copy the Boot Loader block to a new block, as a backup
bcdedit /copy {current} /d "Windows 11 original"
- Remove (if present) the isolated context from the Boot Manager
bcdedit /deletevalue {bootmgr} isolatedcontext
- Adjust the original Boot Loader entry
bcdedit /set {default} isolatedcontext No
bcdedit /set {default} vsmlaunchtype off
- I didn't need to do this
bcdedit /set {default} loadoptions DISABLE-LSA-ISO, DISABLE-VBS
Once everything is working, we can delete the second entry and keep the original one that was changed
If Windows stops booting with the above changes,
See
https://www.tenforums.com/tutorials/163900-backup-restore-boot-configuration-data-bcd-store-windows.html
and
https://www.digitalcitizen.life/command-prompt-fix-issues-your-boot-records/
and
https://woshub.com/how-to-rebuild-bcd-file-in-windows-10/
Virtualization Based Security in group policies
(gpedit.msc, at Computer Configuration -> Administrative Templates -> System -> Device Guard, "Turn On Virtualization Based Security")
I didn't change it, leaving the default "Not configured."
regedit
-Em Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
LsaCfgFlags Delete
LsaCfgFlagsDefault Keep, value 0
-Em Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard
EnableVirtualizationBasedSecurity Delete
RequirePlatformSecurityFeatures Delete
HyperVVirtualizationBasedSecurityOptOut Delete
WasEnabledBy Delete
-At each "key" (folder)
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\<name>\
Enabled : if exists and is not zero, change to 0
(HypervisorEnforcedCodeIntegrity, WindowsHello, etc)
In Services
The "HV Host Service" service had a Startup Type of Manual.
There was no need to change its configuration. It is only activated when Virtual Secure Mode (VSM) / Virtual-based Security (VBS) is enabled. If it is successfully disabled, the service's status remains blank (not running).
In Windows settings:
Menu -> Settings -> Privacy & Security -> Windows Security -> Device Security ->
Core Isolation
- Memory Integrity, needs to be set to "Off"
- Kernel-mode Hardware-enforced Stack Protection was off and locked
(it also requires Memory Integrity to be enabled)
- Local Security Authority protection, can be set to "on" (no conflict)
- Microsoft Vulnerable Driver Blocklist, can be set to "on"
Reboot, choose the old boot entry
To check that Virtualization-based security has been turned off:
System Information
- Open the System Information app
- Select System Summary in the left pane
- In the list on the right, see the "Virtualization-based security" value;
it cannot be "Running."
And on the VM logs, after starting a VM:
- Open C:\<VM path>\<VM name>\vmware.log
- Look for a line like 2025-(...) vmx Monitor Mode
- It should indicate Monitor Mode: CPL0 (Current Privilege Level 0)
Original Message:
Sent: Nov 13, 2024 09:18 PM
From: kasper
Subject: Windows 11 24h2 hsot - how to disable Virtual Based Security
Trying to switch from a Windows 2025 host to Windows 11 24h2 host. AMD 8840U hardware. Done registery changes. Done Security Core setting change. Done BCDEDIT changes. Done GPO changes on Devguard. Best case was to disable SVM in BIOS. And that only turned out to be VBS enabled but not running. What can I do to DISABLE VBS in Windows 11 24h2?