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

586 Comment threads
1162 Thread replies
Most reacted comment
Hottest comment thread
692 Comment authors
Johnntinos97m4vr0xBergþór Olivert ThorstensenMichael Recent comment authors
newest oldest most voted

hello, and thank you for your guides, during installing facing the problems of reboots, or this message: prntscr…com…p95r0j

all done according with your guide


Hi all,

@John: Thanks for the great tutorial,

In my case everything went fine until the installation is done. But After I had mouse/keyboard issues even with the additional package. I swapped the chipset to ICH9 and it fixes everything. BTW the comments in VirtualBox explicitly state that ICH9 is to be avoided UNLESS your guest is on macOS 🙂


I made it through the installation (using the current virtualbox release), but after booting my mouse cursor only updates about once every 2 seconds — I can’t even select my country on the initial screen, it’s so laggy. I’m using a Ryzen 3900X (with the cpu profile set to I7-6700K via the modifyvm util). Did I miss a step? The install.nsh step reported a bunch of file not found: “load fs0:\vboxapfs.efi” Error. File fs0:\vboxapfs.efi was not found. (this repeats for fs1-fs3 and beyond) At the end, several attempts to reference boot.efi also fail: “fs4:\macOS Install Data\Locked Files\Boot Files\boot.efi” is not… Read more »


I changed my CPU core count from 12 (of 24) down to 4 and it’s fine now. Boots in a fraction of the time as well. I guess there’s some upper limit — I’ll explore that later.

Edit: I spoke too soon. I was able to get father before it started lagging, but it eventually went back into unusable-lag-mode. Darn.

Fernando Bobbio
Fernando Bobbio

After I type “install.nsh” and hit enter, some comments in blue appear saying “cannot find file” and again the VM boots to the OS installation process from the “Installing on (disk name)”

Thomas Williams
Thomas Williams

Any fix for the Hyper-V issue, where VirtualBox can’t find vt-x even after I uninstall Hyper-V?


During Mac os installation it reboots automatically and display the following error message. I’m stuck at the final stage :/
I can’t iupload the screenshot it says Boot Failed. OS X. And Restart.


Any fix on the audio problem

Brown Zhang
Brown Zhang

I get stuck in STEP7 and it seems “install.nsh” really not existed .
I am using the MacBook Pro 15 and my host OS is Mojave, but I also want to use Virtual Box to build a new Mojave VM to keep my host OS clean. The Mojave installer downloaded from App Store and all steps are following the above guide .


Excellent tutorial, thank you. I got stuck at installing Mojave: the installation needs 21.64 GB, MacOS Mojave has 21.13. How do I extend it?