Your cart is currently empty!
Install macOS Mojave on VirtualBox on Windows PC
Ever wanted to run macOS on your Windows machine without buying a Mac?
Thanks to VirtualBox and a little configuration work, you can install macOS Mojave on your Windows PC for testing, development, or just to explore the macOS environment.
This guide will walk you through the process from start to finish.
What You’ll Need
Before we begin, make sure you have the following:
- A Windows PC with at least 4GB RAM (8GB recommended) and 64-bit support.
- VirtualBox – Download from Oracle’s website.
- VirtualBox Extension Pack – Adds USB and other advanced features.
- macOS Mojave ISO – Download here.
- VirtualBox macOS Mojave code – Get it here.
Step 1 – Install VirtualBox and Extension Pack
- Download and install VirtualBox.
- Download the Extension Pack and double-click it to install.
- Restart VirtualBox after installation.
Step 2 – Create a New Virtual Machine
- Open VirtualBox and click New.
- Name it macOS Mojave and set:
- Type: Mac OS X
- Version: Mac OS X (64-bit)
- Allocate at least 4GB RAM (8GB or more is better).
- Create a new Virtual Hard Disk (VDI format) with 40GB+ storage.
If you need more space later, check out this guide:
How to Enlarge a Virtual Machine’s Disk in VirtualBox or VMware.
Step 3 – Attach the macOS Mojave ISO
- Select your new VM and click Settings.
- Go to Storage → Under Controller: SATA, click the empty disk icon.
- Select Choose a Disk File and locate your macOS Mojave ISO.
Step 4 – Adjust VM Settings for macOS
- Go to System → Processor and set at least 2 CPU cores.
- In Display, set Video Memory to 128MB.
- Disable Floppy from the boot order.
- In USB, select USB 3.0 (xHCI).
Step 5 – Apply VirtualBox Code
VirtualBox doesn’t officially support macOS on non-Apple hardware, so we need to run some commands to make it work.
- Close VirtualBox completely.
- Open Command Prompt as Administrator.
- Run the commands from this file: VirtualBox macOS Mojave code.
Replace"Your VM Name"
with the exact name of your VM.
Step 6 – Start the Virtual Machine
- Open VirtualBox and start your macOS Mojave VM.
- The installation screen should appear.
- Use Disk Utility to erase the virtual disk to Mac OS Extended (Journaled) format.
- Close Disk Utility and proceed with the macOS installation.
Step 7 – Complete Setup
Once installation finishes:
- Set your region, keyboard layout, and Apple ID (optional).
- You’ll be greeted by the macOS Mojave desktop.
Want macOS to fill your screen?
Learn how to make VirtualBox full screen for Windows, macOS, and Linux VMs.
Troubleshooting Tips
- If you get stuck at the Apple logo, try increasing RAM and CPU cores.
- Always close VirtualBox before running any command-line edits.
- Use the Extension Pack for better USB and mouse support.
Final Thoughts
Running macOS Mojave on VirtualBox is a great way to test macOS apps, learn the interface, or try out macOS without switching hardware.
Just remember—this method is for educational purposes and testing only.
Tech enthusiast and content creator passionate about making technology simple for everyone. I share practical tips, guides, and reviews on the latest in computers, software, and gadgets. Let’s explore the digital world together!