6
I’m running VirtualBox 6.1.32 on Windows 10 64-bit and trying to stand up my very first VM using OS-X Monterey. When I start the virtual machine I get this error:
Failed to open a session for the virtual machine MAC_OS_MONTEREY.
Failed to query SMC value from the host (VERR_INVALID_HANDLE).
Result Code: E_FAIL (0x80004005)
Component: ConsoleWrap
Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}
These are the commands I’ve gleaned for setting it up on my AMD Ryzen 7 2700 Eight-Core Processor 3.20 GHz machine:
VBoxManage.exe modifyvm “MAC_OS_MONTEREY” --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage.exe modifyvm “MAC_OS_MONTEREY” --cpu-profile “Intel Core i7-6700K”
VBoxManage.exe setextradata “MAC_OS_MONTEREY” “VBoxInternal/Devices/efi/0/Config/DmiSystemProduct” “iMac19,1”
VBoxManage.exe setextradata “MAC_OS_MONTEREY” “VBoxInternal/Devices/efi/0/Config/DmiSystemVersion” “1.0”
VBoxManage.exe setextradata “MAC_OS_MONTEREY” “VBoxInternal/Devices/efi/0/Config/DmiBoardProduct” “Mac-AA95B1DDAB278B95”
VBoxManage.exe setextradata “MAC_OS_MONTEREY” “VBoxInternal/Devices/smc/0/Config/DeviceKey” “ourhardworkbythesewordsguardedpleasedontsteal©AppleComputerInc”
VBoxManage.exe setextradata “MAC_OS_MONTEREY” “VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC” 1
VBoxManage.exe setextradata “MAC_OS_MONTEREY” "VBoxInternal2/EfiGraphicsResolution 1920x1080
VBoxManage.exe setextradata “MAC_OS_MONTEREY” “VBoxInternal/TM/TSCMode” “RealTSCOffset”
运行下边的命令,解决问题
VBoxManage.exe setextradata “Your macOS VM Name Here!!!” “VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC” 0