This article will show you how you can install macOS 10.12 Sierra on VMware on Windows. Sierra was released on September 20, 2016 and it came with lots of new features, one of them being the ability to unlock your Mac with your Apple Watch. MacOS 10.12 Sierra also came with an improved version of Siri and a universal clipboard which lets you copy and paste anything across all of your Apple devices.
How to Install macOS 10.12 Sierra on your PC using VMware Player
1. Download Sierra InstallOS.dmg
To download the InstallOS.dmg file of macOS 10.12, simply follow the steps mentioned below:
2. Extract Basesystem.dmg with 7Zip
Basesystem file is macOS Recovery mode. You can download and install 7zip to extract this image.
- Go to this folder: InstallOS.dmg > Install macOS > Right click on "InstallOS.pkg" and select "Open Inside *".
- When you’re in the InstallOS.pkg file, go to InstallOS.pkg > InstallESD.dmg > OS X Install ESD and then finally extract the BaseSystem.dmg file on the Desktop or anywhere that’s convenient for you.
3. Convert BaseSystem.dmg to IMG Image
Dmg2img is a Linux tool which lets you convert DMG archives into IMG image disk files. Converting the BaseSystem.dmg file to an IMG file is a crucial step as it will allow you to further convert it into a VMDK image for VMware.
- You can download dmg2img here
- Open the Command Prompt (type CMD in Windows Search)
- Go to dmg2img folder: cd %USERPROFILE%\Downloads\dmg2img-1.6.7-win32
- Convert DMG to IMG: dmg2img %USERPROFILE%\Desktop\BaseSystem.dmg
4. Convert IMG to VMDK image with QEMU
Before you convert the img file to vmdk file, you first need to install QEMU on your system. QEMU is a simple emulator tool, you can use QEMU to convert IMG to VMDK or run Virtual Machine with QEMU command in CMD.
- Open Command Prompt (CMD)
- Go to QEMU folder: cd "C:\Program Files\qemu"
- qemu-img convert -f raw -O vmdk %USERPROFILE%\Desktop\BaseSystem.img %USERPROFILE%\Desktop\BaseSystem.vmdk
5. Move InstallOS.dmg to Virtual Disk
You have to create a Virtual Disk for VMware and move InstallOS to Virtual Disk. For that, you’ll have to use Diskpart to create a VHD Virtual Disk where the InstatllOS.dmg will be moved. Here’s how to do it:
- Open the Command Prompt and type Diskpart then press Enter to Open DiskPart.
- Write the following commands in DiskPart:
create vdisk file=%USERPROFILE%\Desktop\Installer.vhd maximum=10240
create part primary
format quick label="Installer"
You just successfully created a new disk called “Installer (W:).” Now you can copy the InstallOS.dmg to the new disk you just created. After moving it, right click on the disk and click on Eject.
6. Create macOS 10.12 Sierra Virtual Machine on VMware Player
VMware Player is a software that lets you run a second operating system on your PC. First, download VMware Player and open it. Once you’ve installed it, follow the steps below:
- Download Patch Tool. Right click on the win-install.cmd file and click on Run as Administrator. This will patch VMware, a necessary step if you want to run macOS 10.12 Sierra.
- Open VMware and click Create a New Virtual Machine.
- Select Typical (Recommended) and then click on Next.
- Choose I will install the operating system later and click on Next.
- In the list of “Guest operating system,” choose Apple Mac OS X and click on Next.
- Give your virtual machine a name. This can be anything, but try to keep it simple and something you can easily remember like “macOS Sierra.” Leave the default location as it is. Click on Next.
- Set the disk size to 120 GB. Choose Store virtual disk as a single file and click on Next.
- In the next window, click on Customize Hardware.
- In the “Memory” settings, set the memory for the virtual machine to 4 GB. If you want even better performance, you can increase it, but make sure your PC has enough RAM.
- In the “Processors” menu, set the number of processors and number of cores per processor to 2
- Click on "Add" Button to Add new Hard Disk. In Hardware types, choose "Hard Disk" and select SATA and click on "Use an exsiting virtual disk" then click Next button. Find the basesystem.vmdk file we converted in the step 2 above. Select it and click on Open.
- Click on "Add" button again to add Installer.vhd Virtual Disk to VMware, select SATA for this Hard Disk and click on Browse and Open Installer.vdh file we created in the step 3 and click on Open.
- In the “USB Controller” menu, change USB Controller to USB 3.0. Once you’re done, click on Close. Click on Finish.
7. Edit VMware VMX File
Go to the folder where the virtual machine files are located. This will be the default location you chose in the previous steps (Document > Virtual Machine > macOS Sierra). Right click on the macOS Sierra.vmx file and open it with Notepad.
In the bottom of the text, copy and paste the following code: smc.version = "0". Close the Notepad file and click on Save.
8. Create macOS Disk with Disk Utility
Click on Power on the virtual machine. Now you’ll be taken to the macOS 10.12 Sierra installation window. In the menu you see above, click on Disk Utility.
- Click on VMware Virtual SATA Hard Drive Media from the side menu. Click on Erase at the top and name the drive. You can call it “macOS.”
- In the “Format” field, select Mac OS Extended (Journaled) and in the “Scheme” field, choose GUID Partition Map. Click Erase.
- Close Disk Utility.
9. Install macOS 10.12 Sierra on VMware on Windows PC
Close Disk Utility and you’ll see the macOS Utilities window. Click on Utilities > Terminal. We need use Terminal to convert InstallOS.dmg to Install macOS Sierra.app.
Mount InstallOS.dmg to macOS with hdiutil commands:
hdiutil attach InstallOS.dmg
Convert InstallOS.dmg to "Install macOS Sierra.app" with Terminal:
cd /Volumes/Install\ macOS
Installer -pkg InstallOS.pkg -target /Volumes/macOS
Install macOS 10.12.3 Sierra with InstallAssistant:
/Volumes/macOS/Applications/Install\ macOS\ Sierra.app/Contents/MacOS/InstallAssistant
Now you have to set up macOS 10.12 Sierra in VMware. MacOS will begin to launch and all you have to do for now is wait for it to finish installing. Once it’s finished installing, VMware will restart automatically and when it reopens, you’ll see the macOS Welcome page. Choose your country and then click on Continue.
Installing macOS 10.12 Sierra on your PC is easy and doesn’t take much time thanks to VMware. By downloading the InstallOS.dmg file from the Apple website and converting the dmg file to img, it can be turned into a VMDK file with the help of QEMU.