Skip to content

Instantly share code, notes, and snippets.

@supermarsx
Last active September 11, 2025 22:31
Show Gist options
  • Select an option

  • Save supermarsx/509fa6c99010f6be8c2cbdb0af3a1456 to your computer and use it in GitHub Desktop.

Select an option

Save supermarsx/509fa6c99010f6be8c2cbdb0af3a1456 to your computer and use it in GitHub Desktop.
VirtualBox MacOS patch

Generic Patches

cd "C:\Program Files\Oracle\VirtualBox\"
VBoxManage.exe modifyvm "VMNAME" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata "VMNAME" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac19,3"
VBoxManage setextradata "VMNAME" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "VMNAME" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata "VMNAME" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "VMNAME" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1

Other Individual Patches

VBoxManage setextradata “VMNAME” “VBoxInternal/TM/TSCMode” “RealTSCOffset”
VBoxManage setextradata “VMNAME” “VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC” 0
VBoxManage modifyvm "VMNAME" --cpu-profile "Intel Core i7-6700K"
VBoxManage modifyvm "VMNAME" --cpuidset 00000001 000306a9 00020800 80000201 178bfbff
VBoxManage setextradata "VMNAME" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Mac-551B86E5744E2388"
VBoxManage setextradata "VMNAME" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "MacBookPro15,1"
VBoxManage setextradata "VMNAME" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Mac-AA95B1DDAB278B95"
VBoxManage setextradata "VMNAME" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac19,1"
VBoxManage modifyvm "VMNAME" --cpus 1

Command descriptions

  • VBoxManage.exe modifyvm "VMNAME" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff: sets the CPUID value to include SSE4.2, POPCNT, AES, and PCLMULQDQ features required for running macOS Mojave or later operating systems on a virtual machine named "VMNAME".

  • VBoxManage setextradata "VMNAME" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac19,3": sets the DMI system product name to "iMac19,3" for a virtual machine named "VMNAME".

  • VBoxManage setextradata "VMNAME" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0": sets the DMI system version to "1.0" for a virtual machine named "VMNAME".

  • VBoxManage setextradata "VMNAME" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple": sets the DMI board product name to "Iloveapple" for a virtual machine named "VMNAME".

  • VBoxManage setextradata "VMNAME" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc": sets the SMC device key for a virtual machine named "VMNAME".

  • VBoxManage setextradata "VMNAME" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1: enables the SMC key lookup for a virtual machine named "VMNAME".

  • VBoxManage setextradata “VMNAME” “VBoxInternal/TM/TSCMode” “RealTSCOffset”: sets the timestamp counter mode to "RealTSCOffset" for a VirtualBox virtual machine named "VMNAME".

  • VBoxManage setextradata “VMNAME” “VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC” 0: disables the SMC key lookup for a virtual machine named "VMNAME".

  • VBoxManage modifyvm "VMNAME" --cpu-profile "Intel Core i7-6700K": sets the CPU profile for a virtual machine named "VMNAME" to "Intel Core i7-6700K".

  • VBoxManage modifyvm "VMNAME" --cpuidset 00000001 000306a9 00020800 80000201 178bfbff: sets the CPUID value to include SSE4.2, POPCNT, AES, and PCLMULQDQ features required for running macOS Big Sur or later operating systems on a virtual machine named "VMNAME".

  • VBoxManage setextradata "VMNAME" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Mac-551B86E5744E2388": sets the DMI board product name to "Mac-551B86E5744E2388" for a virtual machine named "VMNAME".

  • VBoxManage setextradata "VMNAME" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "MacBookPro15,1": sets the DMI system product name to "MacBookPro15,1" for a virtual machine named "VMNAME".

  • VBoxManage setextradata "VMNAME" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Mac-AA95B1DDAB278B95": sets the DMI board product name to "Mac-AA95B1DDAB278B95" for a virtual machine named "VMNAME".

  • VBoxManage setextradata "VMNAME" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac19,1": sets the DMI system product name to "iMac19,1" for a virtual machine named "VMNAME".

  • VBoxManage modifyvm "VMNAME" --cpus 1: sets the number of virtual CPUs to 1 for a virtual machine named "VMNAME".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment