In this tutorial, you will learn how to install macOS in a virtual machine, making a virtual Hackintosh. “Hackintosh” is the name of any unsupported hardware running a Mac operating system.
- Intel windows 10 computer
- Download VirtualBox Intel HFS Mojave 10.14.3 Mediafire
Code for VirtualBox (Required)
- Download the latest version of VirtualBox.
After the file finishing downloading, right-click, and extract using your favorite archive tool. For instance, I would right-click, then select 7-Zip > Extract to “Mojave Image.” In the folder, you will find a .VMDK file, which stands for Virtual Machine Disk Format. The VMDK file contains the operating system you will use in the next section.
How to Create a macOS Mojave Virtual Machine with VirtualBox
Open VirtualBox. Select New. Type macOS. VirtualBox will detect the OS as you type and will default to Mac OS X. However, you need to change this. Under Version, select macOS 10.13 High Sierra.
Next, set the amount of RAM the virtual machine and macOS can use. I would suggest a minimum of 4GB, but the more you can give from the host system, the better your experience will be. Remember, you cannot assign more RAM than your system has available, and you need to leave some memory available for the host operating system. (How much RAM does a system need?)
Finally, you need to assign a hard disk. Select Use an existing virtual hard disk file.
Select the folder icon and browse to the VMDK file, then hit Create.
Edit the macOS Mojave Virtual Machine Settings
Before firing up the virtual machine and using macOS Mojave, you need to make a few tweaks to the settings. Right-click you macOS virtual machine and select Settings.
Under System, remove Floppy from the boot order. Ensure the Chipset is set to ICH9.
Select the Processor tab. Assign two processors. If you have an i7 CPU with power to spare (or an i9 with multiple extra cores), consider assigning more. However, this isn’t vital. Make sure the Enable PAE/NX box is checked.
Under Display, set Video Memory to 128MB.
Now, under Storage, check the box alongside Use Host I/O Cache.
Use Command Prompt to Add Custom Code to VirtualBox
Unfortunately, in its current configuration, VirtualBox doesn’t work with your macOS VMDK. To get it up and running, you have to essentially patch VirtualBox before the macOS virtual machine will function. TO do this, you need to enter some code using the Command Prompt. All the details are below.
Start by closing VirtualBox. The commands will not execute properly if VirtualBox or any of its associated processes are running. Once closed, press Windows Key + X, then select Command Prompt (Admin) from the menu. If your menu only shows the PowerShell option, type command into your Start menu search bar. Then right-click the Best Match, and select Run as Administrator.
The following code works for VirtualBox 5.x and 6.x.
Use the following command to locate the Oracle VirtualBox directory:
cd "C:\Program Files\Oracle\VirtualBox\"
enter the following commands, one by one. Adjust the command to match
the name of your virtual machine. For instance, my virtual machine name
macos.” Here are the commands:
VBoxManage.exe modifyvm "macos" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff VBoxManage setextradata "macos" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3" VBoxManage setextradata "macos" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0" VBoxManage setextradata "macos" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple" VBoxManage setextradata "macos" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" VBoxManage setextradata "macos" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
After the completion of the commands, and presuming you encountered no errors, close the Command Prompt.
Boot Your macOS Mojave Virtual Machine
Reopen VirtualBox. Double-click your macOS virtual machine to start it. You will see a long stream of text, followed by a gray screen. The gray screen can take a moment or two to clear, but don’t panic. When it resolves, you will arrive at the macOS “Welcome” screen.
From here, you can set your macOS Mojave virtual machine up as you see fit.
Pro Tip: Take a snapshot of your virtual machine once it passes the gray screen. If anything goes wrong down the line, you can return to the Welcome screen setup and start the process again. Once you complete the macOS setup, take another one so you can jump straight into your macOS installation. Head to Machine > Take Snapshot, give your snapshot a name, and wait for it to process.
Mouse and Keyboard Not Working?
Turn your macOS Mojave virtual machine off. Now, download and install the VirtualBox Extension Pack.
Once installed, right-click your macOS virtual machine and select Settings. Open the USB tab and select USB 3.0 (xHCI) Controller, then press OK.
Start your macOS Mojave virtual machine again, and you are good to go.