How to Install macOS Mojave Final on VirtualBox on Windows PC

Written by John

Apple recently released a new macOS that they named macOS 10.14 Mojave. This is one of the biggest system changes since the High Sierra, and it comes with a myriad of cool features and changes. During the WWDC 18 when this OS was launched, its features were highlighted and many were amazes. Top among the features in the Mojave is an improved night mode. This has been extended to the entire interface, and now when using this OS in the dark, it will be better than before.

What more does the macOS Mojave 10.14 have to offer? You can find out even if you are using a Widows by learning how to install macOS 10.14 on VirtualBox on Windows. We will tell you how but before we do;

What is VirtualBox?

VirtualBox is a free virtualization program that can be used to create virtual machines controlled by Linux, Mac OS X or Windows operating systems within a PC that is already controlled by another operating system. With VirtualBox, creating a virtual machine is easy and so is managing and accessing it. Using VirtualBox, you will be able to easily integrate your Windows 10 and macOS Mojave machines with ease. Sharing files is assay as dragging and dropping. There are many other useful features you will find. All this is achieved without the VirtualBox Mac OS affecting the performance of the host Windows system.

The need for VirtualBox macOS Mojave Image

In order to run the virtual machine you create using VirtualBox, you will need to have the VirtualBox macOS Mojave Image. This contains the installation files needed to install the 10.14 Mojave. You can find this on other sites but the image may not work with Virtualbox. In order to get the best results, create a macOS Mojave ISO image file. This is made perfectly from scratch and will help you set up a virtual machine in a few minutes. 

Steps to follow to Install macOS 10.14 Mojave on VirtualBox on Windows

Step 1: Download macOS 10.15 Mojave

Download macOS Mojave App

You will need a Mac or Virtual Mac for this step. The first thing you need to do is download macOS Mojave from the App Store. Go to the App Store and search "Mojave" Once you locate the file from the search results, click on the "Download" link next to it. Go to your Application Folder and you will find the installer file right there.

Download macOS Mojave from Mac App Store

Step 2: Create macOS Mojave ISO Image

If you already have the "Install macOS Mojave.App", make sure that you move it into the Application folder. In this procedure, we shall create our Mojave ISO file by using the "Terminal" app that you can launch by going to "Applications" then Utilities.

# Create macOS Mojave DMG Image
hdiutil create -o /tmp/mojave -size 7900m -volname mojave -layout SPUD -fs HFS+J

# Mount Mojave DMG image to macOS
hdiutil attach /tmp/mojave.dmg -noverify -mountpoint /Volumes/mojave

# Create a Mojave Installer
sudo /Applications/Install\ macOS\ --volume /Volumes/mojave --nointeraction

# Unmount Disk Image
hdiutil detach /volumes/Install\ macOS\ mojave

# Convert DMG File to ISO File
hdiutil convert /tmp/mojave.dmg -format UDTO -o ~/Desktop/mojave.cdr

# Rename and Move Mojave ISO file to Desktop
mv ~/Desktop/mojave.cdr ~/Desktop/mojave.iso

If you have a problem with "createinstallmedia", follow this tutorial:
How to Download Full Size macOS Catalina Installer and Mojave

Step 3: Install VirtualBox and Extension Pack

To install the macOS 10.14 on VirtualBox on Windows you will need to have the latest versions of the VirtualBox software. You can use either VirtualBox 4.x or 5.x versions. Download this and install it on your computer. Ensure that you download the Windows version.
VirtualBox: Free Download

Install VirtualBox

To Install Extension Pack, download the latest version of the VirtualBox Extension Pack and open it.

Install Orade VM VirtualBox Extension Pack

Step 4: Create a New Virtual Machine

Open VirtualBox and at the top of the Window, click on the “new” button. This will open a wizard that will help you through the virtual machine creation process. Throughout this process, you will be asked to provide various kinds of information. Provide the virtual machine name as macOS 10.14 Mojave and the type as Mac OS X. The version is macOS 10.14. Click on “continue” and on the next page, set the RAM to allocate to this time machine. The best choice is to choose RAM that is 50% to 65% of the whole RAM your computer has. This will enable the virtual machine to operate optimally.

Virtual Machine Name and Memory

Next, you will be required to specify the Hard Disk to use. Choose “Create Virtual Hard Disk” then select size of your virtual disk (100GB). Click on the “Create” button and the virtual machine will be created.

Mojave Virtual Disk Size

Step 5: Edit the Virtual Machine

Open the just created virtual machine and click on the “Settings” button. In the “System” category open the “motherboard” tab. Check the box next to “Enable EFI” and change chipset to PIIX3.

PIIX3 Chipset in VirtualBox

In the “Processor” tab, check the box next to “Enable PAE/NX” and increase cores to 2 (50% of your CPU)


In the “Display” category, change the Video memory to 128MB. You can make many other changes as you wish using the different categories available. When done, close the Virtual machine.

Display Tab

Open Storage tab. Click on "CD/DVD" button and Open your Mojave.iso file.

Add Mojave ISO File to VirtualBox

In the Storage tab, Click on "Add" Button. Next, you will be required to specify the hard disk to use. Select “Choose existing disk”.

Add new Virtual Disk to VirtualBox

Then open the “VirtualBox Boot” image file. Click on the “Add” button.
VirtualBox Boot: Download here

Add VirtualBox Boot Disk

Open USB tab and choose "USB 3.0". Click "OK" to save your virtual machine.

Enable USB 3.0 in VirtualBox

Step 6: Use Command Prompt to add code to VirtualBox

Close your VirtualBox before follow this step. To open the Command Prompt, type “CMD” in the search box. When you get the results, right-click on CMD and click on “Run as administrator”.
Code for VirtualBox (New): Download

Run Command Prompt

Note: replace "Your VM Name" in commands line with your Virtual Machine name in VirtualBox.

  • cd "C:\Program Files\Oracle\VirtualBox\"
  • VBoxManage.exe modifyvm "Your VM Name" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
  • VBoxManage setextradata "Your VM Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
  • VBoxManage setextradata "Your VM Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
  • VBoxManage setextradata "Your VM Name" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
  • VBoxManage setextradata "Your VM Name" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
  • VBoxManage setextradata "Your VM Name" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1

Close VirtualBox then copies this code to Command Prompt.

Step 7: Install macOS 10.14 Mojave on VirtualBox

Turn on your Virtual Machine. Go to "Disk Utility" and format your Virtual Disk.

Open Disk Utility in macOS

Format your virtual disk with Mac OS Extended.

Format Your Virtual Disk

Now, install macOS Mojave on your VirtualBox.

Install macOS Mojave on Virtual Disk

Once your macOS Mojave has rebooted. Turn off your Virtual Machine. Open Storage tab in VirtualBox and remove Mojave.iso file. Click "OK" to save.

Remove Mojave ISO File in VirtualBox

Turn on your Virtual Machine. Press the ESC button to enter UEFI Shell mode, type in: “install.nsh” and press enter.

Boot with Install.nsh key

Step 8: Run macOS 10.14 Mojave on VirtualBox

Open the just created VirtualBox and click on the “Start” button. Create a new account.

Create a new account

Set up the account as you wish and you can start using the macOS 10.14 Mojave as you would on a Mac.

Light and Dark Mode

Have fun to explore all the features the new Mojave has to offer. Done!

macOS Mojave Final (18A391) on VirtualBox on Windows PC

Bottom line

To enjoy macOS on Windows, you need to learn how to install macOS on VirtualBox. With this, you can experience all the features of this new operating system while still being able to use Windows at the same time. 

It is just like running other apps except that you can run other apps on the virtual machine. You will have two computers, a physical one and a virtual one within the physical one. VirtualBox makes all this possible without costing anything. It is available as an open-source virtualization software that is available free of charge for non-commercial use.

Featured Posts:

Featured Posts

Leave a Reply

572 Comment threads
1140 Thread replies
Most reacted comment
Hottest comment thread
679 Comment authors
JohnMichael MaridBrentJonathan Lundellkoliyo Recent comment authors
newest oldest most voted
Michael Marid
Michael Marid

after step 7 (install.nsh) I get an error message (when trying to install macOS):
“macOS could not be installed on your computer. An error occured while loading the installer resources. Quit the installer to restart your computer and try again”.
Could you help me, please???

Jonathan Lundell
Jonathan Lundell

Useful! A minor issue: ~/Desktop is likely to be shared to iCloud, so maybe not the best place for an 8GB ISO.


Is there any chance you could rewrite startup.nsh to use correct capitalization? When I installed OSX I decided to make my installation case sensitive and it took me a little while before I figured out that was the issue (I fixed startup.nsh in my installation).


I have a problem if I start the machine with more cores it gives me the problem of serial atapi (I have an i7 of 8th) and therefore it works only if I put 1 core why? how can I resolve it?


How does using a virtual mac affect the process as compared to a regular Mac?

Sachin P
Sachin P

working on it …thank u

Mike Fulton
Mike Fulton

Is the VirtualBoxBoot drive image a permanent part of this setup or just needed for installation?

Mike Fulton
Mike Fulton

I’m finding that the VirtualBox mouse & keyboard capture is not working right during the installation process. All sorts of problems with run-ion keypress repeats, jerky uncontrollable mouse pointer, etc.



I did everything step by step but when starting up the VM it gives a runthrough of a few things and ends on “End RandomSeed”

Is there a solution for this?