RackNerd Billboard Banner

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:


Step 1 – Install VirtualBox and Extension Pack

  1. Download and install VirtualBox.
  2. Download the Extension Pack and double-click it to install.
  3. Restart VirtualBox after installation.

Step 2 – Create a New Virtual Machine

  1. Open VirtualBox and click New.
  2. Name it macOS Mojave and set:
    • Type: Mac OS X
    • Version: Mac OS X (64-bit)
  3. Allocate at least 4GB RAM (8GB or more is better).
  4. 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

  1. Select your new VM and click Settings.
  2. Go to Storage → Under Controller: SATA, click the empty disk icon.
  3. Select Choose a Disk File and locate your macOS Mojave ISO.

Step 4 – Adjust VM Settings for macOS

  1. Go to System → Processor and set at least 2 CPU cores.
  2. In Display, set Video Memory to 128MB.
  3. Disable Floppy from the boot order.
  4. 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.

  1. Close VirtualBox completely.
  2. Open Command Prompt as Administrator.
  3. 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

  1. Open VirtualBox and start your macOS Mojave VM.
  2. The installation screen should appear.
  3. Use Disk Utility to erase the virtual disk to Mac OS Extended (Journaled) format.
  4. Close Disk Utility and proceed with the macOS installation.

Step 7 – Complete Setup

Once installation finishes:


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.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
RackNerd Billboard Banner
© 2025 Computer Everywhere
Your Everyday Guide to the Digital World.
Terms of Service | Privacy Policy
Copy link