Article on how we can install Mac OS in Virtual Box and What we need for installation
How we can install Mac OS in Virtual Box and What we need for installation?
Download the latest version of VirtualBox. Here we use VirtualBox 6.0.6.
Download the macOS Virtual Image
Download the MACOS virtual image for your CPU, virtual machine type, and the version of macOS you want:
Intel Mojave
· VirtualBox Intel APFS Mojave 10.14.3
o Code for VirtualBox (Required) https://drive.google.com/file/d/1jS06CR_H0GohN_OcaUEBIRQHAy8hwN1x/view
Now you can extract these file using tools like 7-Zip and WinRAR. Mostly we used for extracting file WinRAR tool so right click on downloaded Rar file and extract where you want.
How to Create a macOS Mojave Virtual Machine with VirtualBox
Now Open VirtualBox. Select New. Type “Your Virtual Machine Name”. VirtualBox will detect the OS as you type and will detect default to Mac OS X. You need to change this. Under Version, select macOS 10.13 High Sierra.
Next, we get option for choosing RAM Size so select RAM how much you want to give for Virtual Box and MacOS.
Now we need to assign a hard disk space. Select Use an existing virtual hard disk file.
Now click on folder icon and select Mojave MacOS image for Virtual box.
Some Edit is necessary for the macOS Mojave Virtual Machine Settings
Before installing Mojave MacOS in virtual box, you need to do some setting in Virtual Box. Right-click you macOS virtual machine and select Settings.
Under System Settings, remove Floppy from the boot order. Make sure the Chipset is set to ICH9.
Now we move to the Processor tab and Assign 2 or more than 2 processors according to Processor need for Mac. Make sure the Enable PAE/NX box is checked.
Under Display, set Video Memory to 128MB.
Now we move to the display settings. In Display Setting we set Video Memory 128 MB.
Now, In Storage setting, check the box Use Host I/O Cache.
After doing all these setting click on Ok and close it.
Now we to execute some code using Command Prompt to Add Custom Code to VirtualBox
Unfortunately, VirtualBox doesn’t able to reed macOS VMDK file so we need to execute some patch for reading MacOS VMDK file. These following codes work for VirtualBox 5.x and 6.x.
Click on start and type cmd and right click on cmd and click Run as Administrator.
Using this command, we reach “Oracle VirtualBox directory”
cd "C:\Program Files\Oracle\VirtualBox\"
Now, enter the following commands, one by one. Adjust the command to match the name of your virtual machine. For instance, my virtual machine name is “macos.” Here are the commands:
VBoxManage.exe modifyvm "Your Virtual Machine Name" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata " Your Virtual Machine Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata " Your Virtual Machine Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata " Your Virtual Machine Name" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata " Your Virtual Machine Name" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata " Your Virtual Machine Name" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
Execute all these commands one by one without any error.
Now again restart Your macOS Mojave Virtual Machine
Reopen Virtual machine and double click on Virtual Machine Name and after booting some file in VM Box we get Welcome window.
Now we can set up MacOS.
Mouse and Keyboard Not Working?
If here Keyboard and Mouse is not working then you have to close virtual box and install a Virtual Box Extension Pack.
Once installed Virtual Box Extension Pack, In virtual machine select Settings. Open the USBtab and select USB 3.0 (xHCI) Controller, then press OK.
Now again Start your macOS Mojave virtual machine, and you are good to go.









No comments:
Post a Comment