In this tutorial, you’ll learn how to install Apple Mac OS on a virtual machine and create a virtual Hackintosh. Windows 10 is excellent, but its problems and disadvantages.
Even if you are interested in Microsoft and Windows 10, you can still try and download other operating systems from different corporations.
But what’s the safer and less expensive way to use the virtual machine in the virtual machine? This way you can run macOS in Windows 10.
What files do we need to install a virtual Mac in Windows 10?
Before downloading and installing the essential tools, you need to get started.
Download the latest version of VirtualBox
Download the latest VMware Player
This tutorial is about how to create MacOS virtual machines using both the VirtualBox and the VMware Player.
To start the program, download VirtualBox and VMware Player from the links above.
You also need a copy of MacOS. In this tutorial, we used the Mojave version.
Note that this tutorial is currently only available on computers with Intel processors.
So this tutorial will focus on installing macOS in a virtual machine on Intel hardware.
Download macOS image files
VirtualBox Intel HFS Mojave 10.14.3
Virtualbox Intel APFS Mojave 10.14.3
VMware Player Intel APFS Mojave 10.14.3
VMware Player Patch Tool
(The difference is Intel HFS and Intel APFS in the file system type. APFS is the most recent file system introduced in 2017)
After downloading the files, right-click on them and unzip them.
For example, you can unzip files using the free zip file (7Zip) to get the file with the VMDK extension. The original file we use to build the virtual machine.
How to create a macOS virtual machine with VirtualBox?
After opening VirtualBox, select the NEW option. Type in the name of the macos so that VirtualBox automatically detects the desired attributes.
Just note the version of the latest available version of Apple’s operating system.
Then, set the RAM value of the macOS virtual machine. The minimum amount of RAM you choose is 4 GB, but as much as possible, you can set the amount of RAM more.
Remember, you can not allocate more RAM than your original system to a virtual machine, and it is necessary to split the RAM so that the original system that is running the virtual machine is not in trouble.
Finally, select the “Use a virtual virtual hard disk” option from the hard disk, and then enter the folder where you left the VMDK file in the pre-compressed state.
Virtual machine settings to run macOS Mojave
Before starting your virtual machine, you need to have several different settings on it.
Right-click on the virtual machine, and then select the Settings option.
Enter the System and then disable Floppy from the boot order section. Then check that the chipset’s settings are on the ICH9 option.
Now enter the Processor and assign the dual core to the virtual machine like the following image.
If you use a powerful processor like the core i7, you can allocate more cores to the virtual machine. At the end, do not forget Enable PAE / NX option.
In the Display section, put the Video Memory settings on 128MB, and finally, in the Storage area, make sure you enable the Use Host I / O Cache option.
Command line commands to run macos on a virtual machine
Unfortunately, VirtualBox in the current configuration can not run the macOS image file. There is, of course, no place to worry about, since this can be solved with a few lines of code.
First, close the VirtualBox completely. Then, in the Windows Search section, search for 10 cmd and execute it as Run as Administrator.
The first code you should enter after cmd is as follows.
cd "C:\Program Files\Oracle\VirtualBox\"
Then enter the following lines lines.
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
And finally, after seeing a result like the image above, you can close the cmd.
Boot macOS Mojave in the virtual machine
Now run VirtualBox again and start the virtual machine you’ve already built.
After starting long notes, they appear on the page, and then a gray screen appears for one or two minutes. Then you will see the macOS welcome page.
Now you can make your own settings for the upgrade of the operating system.
Important explanation: After you get to the Welcome page, it’s best to take a snapshot of this page so that you do not get back to the gray screen in the event of a problem running the operating system or the wrong settings.
And after installing and upgrading the operating system, take another snapshot by going straight to the same section. To capture snapshot in a virtual machine, log in:
Machine > Take Snapshot
Mouse and keyboard do not work?
If the mouse and keyboard did not work for you after the above steps, download the virtual machine plug-in.
After installing the plugin, open the virtual machine. Select the USB option from the Settings section, and then select the USB 3.0 (xHCI) Controller option and hit the ok button. Use mouse and keyboard now without problems.
Make macOS Mojave on VMware Workstation Player
If you prefer VMware to VirtualBox, you can run a virtual machine with some modifications in VMware.
Before we create the virtual machine, we must first run the patched files.
To start patching from the download list, download the VMware Player’s Intel APFS Mojave 10.14.3 VMware Player Patch Tool in the first part of the contract text.
Then go to the download location and unzip the file. Then transfer the patch file to the folder where VMware is installed.
Close VMware software completely and click on the right patch file and select Run as Administrator.
Then a window opens and the patch operation starts. When the patch is complete, open VMware.
Note that if you encounter a File not Found message, it’s because the folder where you copied the patch file is not related to the original VMware folder. (VMware is installed by default on drive C)
Build macOS Mojave virtual machine in VMware
After you open VMware, select Create a New Virtual Machine, and then select I’ll install the operating system later. Now opt for the Apple Mac OS X version.
After choosing this option, you must see Version to macOS 10.14.
If you see a copy other than the above in the virtual machine, it means that the patch has not been well-executed.
Now you should choose a name for the virtual machine. Our offer is macOS. After selecting the name, save a copy of the installation path of the virtual machine, because in the next steps we need to do some editing on it.
In the next step, after setting the virtual hard disk, make sure to enable Store virtual disk as a single file. Note that, after completing the settings for this step, do not run the virtual machine yet.
Edit macOS settings in the virtual machine
Before installing a virtual machine, you must specify the hardware specification as well as specify the path to the macOS VMDK file.
On the VMware home page, right-click on the name of the virtual machine and set up the hardware settings, such as the settings we provided in VirtualBox.
It’s best to get a minimum of 4 gigabytes of RAM. In the Processors section, set the kernel settings to the two.
Now enter the Hard Disk (SATA) and clean the hard drive that the virtual machine has built.
Then select Add> Hard Disk> SATA (Recommended)> Use an existing disk. Select the virtual Mac OS file that is marked with the VMDK extension.
Edit VMX file
Before you run the last step, open the path you have already saved and make some changes to it.
The default path is as follows (for convenience you can see the path you saved in the previous step)
C:\Users\YOURNAME\Documents\Virtual Machines\YOUR MAC OS X FOLDERWhen you enter the folder you are looking for, you need to find the macOS.vmx file and open it with a notepad. Go to the bottom of the file and type the following command at the end of the page and then save the file.
smc.version = "0
Install Install VMware Tools on the Virtual Machine
If you remember, there was a file called VMware patch tool in the download list, which is an extension for the correct functionality of the mouse and keyboard and graphical settings.
To enable this plugin, follow these steps:
Player> Removable Devices> CD / DVD (SATA)> Settings
Now use the ISO ISO image file to select the VM Tool New.ISO you previously downloaded and then click OK.
Now on your desktop you will see an icon called VMware Tools drive. Double-click on it, then select Install VMware Tools.
You will probably receive several security messages at the time of installation; you must go to the following to delete these messages:
Open Security Preferences> Allow
Now save all the changes and run the virtual machine.
You might have problems installing and running Mac OS on your virtual machine.
If the virtual machine is not executed, you may need to re-check the settings and patch files.
If you encounter the message “Mac OS X is not supported with binary translation”.
You must enable the virtualization option in the BIOS / UEFI Settings section.
If you run VMware Player unrecoverable error: (vcpu-0) at runtime, you should check if the macOS.vmx file has been edited well.
Finally, it should be noted that the use of any operating system in the machine under any circumstances can not convey the actual experience of working with that operating system on the actual hardware to the user.