User Tools

Site Tools


osx:vagrant

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

osx:vagrant [2019/05/23 12:01]
robm created
osx:vagrant [2019/05/23 12:46] (current)
robm
Line 1: Line 1:
 ====== MacOS in a Vagrant Virtual Machine ====== ====== MacOS in a Vagrant Virtual Machine ======
  
-https://​www.howtogeek.com/​289594/​how-to-install-macos-sierra-in-virtualbox-on-windows-10/​+Adapted from https://​www.howtogeek.com/​289594/​how-to-install-macos-sierra-in-virtualbox-on-windows-10/​ 
 + 
 +<​code>​ 
 +hdiutil create \ 
 +  -o /​tmp/​Mojave.cdr \ 
 +  -size 2g \ 
 +  -layout SPUD \ 
 +  -fs HFS+J 
 + 
 +hdiutil attach \ 
 +  /​tmp/​Mojave.cdr.dmg \ 
 +  -noverify \ 
 +  -nobrowse \ 
 +  -mountpoint \ 
 +  /​Volumes/​install_build 
 + 
 +asr restore \ 
 +  -source /​Applications/​Install\ macOS\ Mojave.app/​Contents/​SharedSupport/​BaseSystem.dmg \ 
 +  -target /​Volumes/​install_build/​ \ 
 +  -noprompt \ 
 +  -noverify \ 
 +  -erase 
 + 
 +hdiutil detach \ 
 +  /​Volumes/​macOS\ Base\ System/ 
 + 
 +hdiutil convert \ 
 +  /​tmp/​Mojave.cdr.dmg \ 
 +  -format UDTO \ 
 +  -o /​tmp/​Mojave.iso 
 +</​code>​
  
 Install ''​dmidecode''​ for MacOS from http://​cavaliercoder.com/​blog/​dmidecode-for-apple-osx.html by running: Install ''​dmidecode''​ for MacOS from http://​cavaliercoder.com/​blog/​dmidecode-for-apple-osx.html by running:
Line 7: Line 37:
 <​code>​brew install cavaliercoder/​dmidecode/​dmidecode</​code>​ <​code>​brew install cavaliercoder/​dmidecode/​dmidecode</​code>​
  
-Then run ''​dmidecode ​3.0''​ to get a full listing, from which we can copy values ​to apply to VirtualBox's DMI info.+Then run ''​dmidecode ​-t system''​ and ''​dmidecode -t baseboard''​ to get values ​for ''​DmiSystemVersion''​ and ''​DmiBoardProduct''​ below. Then customise the VM'​s ​CPU identity sets and DMI data. 
 + 
 +<​code>​ 
 +VBoxManage modifyvm "MacOS Mojave"​ \ 
 +  --cpuidset 00000001 000306a9 04100800 7fbae3ff bfebfbff 
 + 
 +VBoxManage setextradata "MacOS Mojave"​ \ 
 +  "​VBoxInternal/​Devices/​efi/​0/​Config/​DmiSystemProduct"​ "​MacBookPro14,​3"​ 
 + 
 +VBoxManage setextradata "MacOS Mojave"​ \ 
 +  "​VBoxInternal/​Devices/​efi/​0/​Config/​DmiSystemVersion"​ "​1.0"​ 
 + 
 +VBoxManage setextradata "MacOS Mojave"​ \ 
 +  "​VBoxInternal/​Devices/​efi/​0/​Config/​DmiBoardProduct"​ "​Mac-551B86E5744E2388"​ 
 + 
 +VBoxManage setextradata "MacOS Mojave"​ \ 
 +  "​VBoxInternal/​Devices/​smc/​0/​Config/​DeviceKey"​ "​ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"​ 
 + 
 +VBoxManage setextradata "MacOS Mojave"​ \ 
 +  "​VBoxInternal/​Devices/​smc/​0/​Config/​GetKeyFromRealSMC"​ 1 
 +</​code>​ 
osx/vagrant.txt · Last modified: 2019/05/23 12:46 by robm