How to set up catalina VM in virtualbox from command line.
Hey there, TechCS here with another post for yall. In this I'll demonstrate VM set up from command line in Windows and linux. It's not something like rocket science, I even find it easier to set up catalina VM using this method. Very soon y'll understand why I'm saying this. So let's see what we'll need. One more thing to take into considerance is that I'm writing this on linux. But I'm pretty sure that it will work on windows.So let's dig in.........
What you will need-
1. Virtualbox- Check out resource section.
2.MacOS catalina iso.-You can get it using a mac or from resource section.
3. Resource Section-Link.
Let's dig in now.
Step 1
Open terminal or command prompt(if you're using windows).
Step 2
Now type the commands listed below or you can grab this script. For windows users this script will do the job.
Commands-
1.cd "C:\Program Files\Oracle\VirtualBox\" (Windows users only)
2.NAME=Catalina
#Create VM
3.VBoxManage createvm --name $NAME --ostype "Mac_OS_X_64" --register --basefolder 'pwd'
#Setting up the VM
4.VBoxManage modifyvm $NAME --ioapic on
5.VBoxManage modifyvm $NAME --memory 4096 --vram 128
6.VBoxManage modifyvm $NAME --nic1 nat
#Storage Setup
7.VBoxManage createhd --filename 'pwd'/$NAME/$NAME_DISK.vdi --size 80000 --format VDI
8.VBoxManage storagectl $NAME --name "SATA Controller" --add sata --controller IntelAhci
9.VBoxManage storageattach $NAME --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium 'pwd'/$NAME/$NAME_DISK.vdi
10.VBoxManage storagectl $NAME --name "IDE Controller" --add ide --controller ICH9
11.VBoxManage storageattach $NAME --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium 'pwd'/Catalina.iso
12.VBoxManage modifyvm $NAME --boot1 dvd --boot2 disk --boot3 none --boot4 none
# Adding extra details
13.VBoxManage.exe modifyvm "Catalina" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
14.VBoxManage setextradata "Catalina" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
15.VBoxManage setextradata "Catalina" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
16.VBoxManage setextradata "Catalina" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
17.VBoxManage setextradata "Catalina" "VBoxInternal/Devices/smc/0/Config/DeviceKey" 18."ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
19.VBoxManage setextradata "Catalina" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
.
.
.
.
Now you're done. Go and enjoy ur VM.
Your's truly
TechCS
Credits-
1. Apple and geekrar for macOS
2.Oracle for Virtualbox.
Comments
Post a Comment