VirtualBox

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\ Mojave.app/Contents/Resources/createinstallmedia --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)

Processor

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

1769
Leave a Reply

avatar
594 Comment threads
1175 Thread replies
10 Followers
 
Most reacted comment
Hottest comment thread
699 Comment authors
JohnMarcos LaredoCarlDavidRahul Jamdade Recent comment authors
newest oldest most voted
Marcos Laredo
Guest
Marcos Laredo

Hi @John,
Thankyou for the awesome tutorial.
I don’t have audio…
I can’t see any sound device at the config.
Can you help me solve this, please?

Carl
Guest
Carl

@John, Excellent article. Worked great up to the point where Mojave boots to the select language and have the issue of not being able to control the mouse and keyboard very well. It resembles that of a VNC connection over a 5KB modem connection (those of you work in IT in mid-late 1990’s will know what I mean). Here is what I had to do: 1. Be patient with the mouse movements and keyboard entry. 2. Click once and wait to see if the button clicked. 3. Once I eventually got to the Mojave desktop mounted the Guest Additions and… Read more »

David
Guest
David

I think I’m having issues with the boot disk. After the command prompt step, I can’t get into disk utility. Has the boot disk changed? In the screenshots it shows as 1.69 MB but in the download it’s only 384 KB. Any help is appreciated.

Rahul Jamdade
Guest
Rahul Jamdade

Everything worked well… Thank you very much @John

@irvb
Guest
@irvb

Everything working well with ubuntu as guest with VB 6.0
Thanks !

Michael Odumosu
Guest
Michael Odumosu

Good evening my name is Michael I im trying to setup the macOS mojave vm .I followed all but one step I forget to close oracle vm before doing the commands now Im stuck in cmd shell of the mojave OS and its complaning that it cant find the boot.efi, what do I do from here, I want to run install.sh but I need to know how to figure out if the approriate partition has the right filesystem

Michael Odumosu
Guest
Michael Odumosu

I noticed that my vmdk for virtual boot is coming up a degree smaller at 384 KB, im not getting that full vmdk and tht could be my problem right there, everything is good to go but it make sense you’d need to check if the vmdk is not downloading properly on the server side

Bejo
Guest
Bejo

I already done with installation.. But after boot and desktop opened, my mouse cursor very laggy. Can you help me find the problem?

Jason
Guest
Jason

Can someone help? I’m stuck on this screen with this text:…

ntinos97
Guest
ntinos97

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