Pages
  • Queztaz.org
  • Queztaz/Book List
  • Queztaz/Tech Inventory
  • Emacs/EWW Hacks
  • Emacs/Emacs With BiDirectional Google Calendar Sync
  • Emacs/Setting up Mu4e and Multiple Gmail Accounts
  • Linux/Creating an Offline Debian Mirror Repository
  • Linux/Migrate Wiki.js to Another Server
  • Linux/Adding Bitwarden to the Pinephone Pro
  • Linux/Corebooting Thinkpad X220 With CH341A Programmer
  • Pinebook Pro/Custom Kernel
  • Pinebook Pro/Keyboard Firmware Update
  • Pinebook Pro/Netbsd Installation
  • Pinebook Pro/Setting Up Zram
  • Pinebook Troubleshooting/Pro Common Issues
  • Pinebook Pro/Use NVME as Root
  • Pinebook Pro/Write to SPI Flash
  • Qemu/Chroot Into a Different Architecture
  • Qemu/Choot Into an Img File
  • Qemu/Mount Virtual Images
  • Qemu/Windows Xp Fix Smb Not Working
  • Qemu/Windows Xp Installation
  • Misc/Finding the Default Wireless Password to TG1672G Routers
  • Misc/Running Ollama Portably
  • Misc/Resetting Unifi Controller Password with MongoDB CLI
  • Misc/Turning an Amazon FireStick into a Portable Computer
  • Misc/Decent Usable Android Flip Phone
  • Windows/Cloning a Bios Boot Drive to Disimilar Hardware with UEFI
  • Windows/Automatic CHKDSK Scans Using Powershell & Email Alerts
  • Windows/Creating a Decent Portable Terminal
  • Windows/Merging HyperV Snapshots With Powershell
  • Windows/Simulating Bad Blocks on NTFS Filesystems
  • Windows/Creating and Viewing a Storport on Windows Server
  • Windows/Windows 11 PowerShell Upgrade Script
  • Windows/Prepare system for Virtualbox Virtualization
  • Mikrotik/Creating a Client to Site VPN With
  • Mikrotik/Securing Router With Firewall
  • Mikrotik Setup Dynamically Changing IP With No-IP Api
Queztaz.org
  • Queztaz.org
  • Queztaz/Book List
  • Queztaz/Tech Inventory
  • Emacs/EWW Hacks
  • Emacs/Emacs With BiDirectional Google Calendar Sync
  • Emacs/Setting up Mu4e and Multiple Gmail Accounts
  • Linux/Creating an Offline Debian Mirror Repository
  • Linux/Migrate Wiki.js to Another Server
  • Linux/Adding Bitwarden to the Pinephone Pro
  • Linux/Corebooting Thinkpad X220 With CH341A Programmer
  • Pinebook Pro/Custom Kernel
  • Pinebook Pro/Keyboard Firmware Update
  • Pinebook Pro/Netbsd Installation
  • Pinebook Pro/Setting Up Zram
  • Pinebook Troubleshooting/Pro Common Issues
  • Pinebook Pro/Use NVME as Root
  • Pinebook Pro/Write to SPI Flash
  • Qemu/Chroot Into a Different Architecture
  • Qemu/Choot Into an Img File
  • Qemu/Mount Virtual Images
  • Qemu/Windows Xp Fix Smb Not Working
  • Qemu/Windows Xp Installation
  • Misc/Finding the Default Wireless Password to TG1672G Routers
  • Misc/Running Ollama Portably
  • Misc/Resetting Unifi Controller Password with MongoDB CLI
  • Misc/Turning an Amazon FireStick into a Portable Computer
  • Misc/Decent Usable Android Flip Phone
  • Windows/Cloning a Bios Boot Drive to Disimilar Hardware with UEFI
  • Windows/Automatic CHKDSK Scans Using Powershell & Email Alerts
  • Windows/Creating a Decent Portable Terminal
  • Windows/Merging HyperV Snapshots With Powershell
  • Windows/Simulating Bad Blocks on NTFS Filesystems
  • Windows/Creating and Viewing a Storport on Windows Server
  • Windows/Windows 11 PowerShell Upgrade Script
  • Windows/Prepare system for Virtualbox Virtualization
  • Mikrotik/Creating a Client to Site VPN With
  • Mikrotik/Securing Router With Firewall
  • Mikrotik Setup Dynamically Changing IP With No-IP Api

Windows/Prepare system for Virtualbox Virtualization

Virtualbox on Windows 11 does not run with virtualization by default. There are some security features enabled by default which cause the turtle status icon in VBox to appear. I read online that this means that HyperV is enabled on the host, so the virtual machine will run without hardware acceleration mode enabled (super slow).

This batch script will change all the settings necessary to make Virtualbox VM's run as fast as possible. The turtle icon should vanish after running these commands.

I forgot if I used AI, or had AI revised a batch script batch script I gave it from a YouTube video. Anyways, create a batch file with this file content and run it as administrator to fix slow virtualbox VMs

@echo off
echo ============================================
echo Disabling Credential Guard, VBS, Hyper-V
echo ============================================

REM ------------------------------------------------
REM 1. Disable Credential Guard (Registry)
REM ------------------------------------------------
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" ^
 /v LsaCfgFlags /t REG_DWORD /d 0 /f

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard" ^
 /v LsaCfgFlags /t REG_DWORD /d 0 /f

REM ------------------------------------------------
REM 2. Disable Credential Guard with UEFI lock
REM ------------------------------------------------
mountvol X: /s

copy "%WINDIR%\System32\SecConfig.efi" ^
 "X:\EFI\Microsoft\Boot\SecConfig.efi" /Y

bcdedit /create {0cb3b571-2f2e-4343-a879-d86a476d7215} ^
 /d "DebugTool" /application osloader

bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} ^
 path "\EFI\Microsoft\Boot\SecConfig.efi"

bcdedit /set {bootmgr} bootsequence ^
 {0cb3b571-2f2e-4343-a879-d86a476d7215}

bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} ^
 loadoptions DISABLE-LSA-ISO

bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} ^
 device partition=X:

mountvol X: /d

REM ------------------------------------------------
REM 3. Disable VBS (Registry – delete keys)
REM ------------------------------------------------
reg delete "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard" ^
 /v EnableVirtualizationBasedSecurity /f

reg delete "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard" ^
 /v RequirePlatformSecurityFeatures /f

REM ------------------------------------------------
REM 4. Disable VBS + LSA ISO via BCDEdit
REM ------------------------------------------------
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} ^
 loadoptions DISABLE-LSA-ISO,DISABLE-VBS

bcdedit /set vsmlaunchtype off

REM ------------------------------------------------
REM 5. Disable VBS via Group Policy equivalent
REM (Turn On Virtualization Based Security = Disabled)
REM ------------------------------------------------
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard" ^
 /v EnableVirtualizationBasedSecurity /t REG_DWORD /d 0 /f

REM ------------------------------------------------
REM 6. Disable Core Isolation (Memory Integrity)
REM ------------------------------------------------
reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" ^
 /v Enabled /t REG_DWORD /d 0 /f

REM ------------------------------------------------
REM 7. Disable Windows Features
REM ------------------------------------------------
dism /online /disable-feature /featurename:Microsoft-Hyper-V-All /norestart
dism /online /disable-feature /featurename:VirtualMachinePlatform /norestart
dism /online /disable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart

REM ------------------------------------------------
REM 8. Reboot
REM ------------------------------------------------
echo.
echo All changes applied.
echo System will reboot in 10 seconds...
PREVRANDOMNEXT