准备工作
brew cask install virtualbox |
制作iso
https://apps.apple.com/us/app/macos-mojave/id1398502828?mt=12
Create macOS Mojave DMG Image
hdiutil create -o /tmp/mojave -size 7900m -volname mojave -layout SPUD -fs HFS+J
Mount Mojave DMG image to macOS
hdiutil attach /tmp/mojave.dmg -noverify -mountpoint /Volumes/mojave
Create a Mojave Installer
sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia –volume /Volumes/mojave –nointeraction
Unmount Disk Image
hdiutil detach /volumes/Install\ macOS\ mojave
Convert DMG File to ISO File
hdiutil convert /tmp/mojave.dmg -format UDTO -o ~/Desktop/mojave.cdr
Rename and Move Mojave ISO file to Desktop
mv ~/Desktop/mojave.cdr ~/Desktop/mojave.iso
命令与输出
➜ ~ hdiutil create -o /tmp/mojave -size 7900m -volname mojave -layout SPUD -fs HFS+J |
安装
芯片组 PIIX3
cd “/Applications/VirtualBox.app/Contents/MacOS/“
VBoxManage modifyvm “macos 10.14 Mojave” –cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata “macos 10.14 Mojave” “VBoxInternal/Devices/efi/0/Config/DmiSystemProduct” “iMac11,3”
VBoxManage setextradata “macos 10.14 Mojave” “VBoxInternal/Devices/efi/0/Config/DmiSystemVersion” “1.0”
VBoxManage setextradata “macos 10.14 Mojave” “VBoxInternal/Devices/efi/0/Config/DmiBoardProduct” “Iloveapple”
VBoxManage setextradata “macos 10.14 Mojave” “VBoxInternal/Devices/smc/0/Config/DeviceKey” “ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc”
VBoxManage setextradata “macos 10.14 Mojave” “VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC” 1
vmware fusion
XKZYV-PK9CC-A1Y0X-K5HZL-Y65ZV