This guide walks you through installing macOS on a Windows 10 PC using Oracle’s free VirtualBox software. It lets you run macOS in a virtual machine alongside Windows, useful for testing apps or exploring the OS without dedicated hardware. You’ll need a Windows 10 PC with at least 8GB of RAM, about 30GB of free disk space, and a macOS installer file (a .iso or .dmg) that you have the legal right to use.
What You’ll Need
- Windows 10 (64-bit) installed and updated
- Oracle VirtualBox (latest version, free from virtualbox.org)
- A macOS installer image (e.g., macOS Catalina, Big Sur, or Monterey .iso/.dmg)
- At least 8GB of RAM (16GB recommended)
- At least 30GB of free hard drive space
- Virtualization enabled in your BIOS/UEFI (Intel VT-x or AMD-V)
Step-by-Step
- Download and install VirtualBox – Go to virtualbox.org, download the Windows installer, and run it. Accept default settings unless you have a reason to change them.
- Download a macOS installer image – Obtain a macOS .iso or .dmg file from a trusted source. If you have a Mac, you can create one using the “createinstallmedia” command or a tool like “MacOS ISO Creator.” For Windows, you may need to download a pre-made .iso from a reputable site (ensure it’s legal for your use).
- Open VirtualBox and create a new virtual machine – Click “New.” Name it something like “MacOS”. Set “Type” to “Mac OS X” and “Version” to the closest match (e.g., “macOS 11 Big Sur” for recent versions). Click “Next.”
- Allocate memory (RAM) – Set at least 4096 MB (4GB), but if you have 16GB or more, give it 8GB. Do not exceed half of your total RAM. Click “Next.”
- Create a virtual hard disk – Choose “Create a virtual hard disk now.” Select “VDI (VirtualBox Disk Image)” and “Dynamically allocated.” Set the size to at least 30GB (50GB is better). Click “Create.”
- Open VM settings – Select the VM and click “Settings.” Go to “System” > “Processor” tab. Increase “Processor(s)” to 2 or more (if your CPU supports it). Also check “Enable PAE/NX.”
- Enable EFI – In “System” > “Motherboard” tab, check “Enable EFI (special OSes only).” This is required for macOS.
- Adjust display settings – Go to “Display”. Set “Video Memory” to 128MB (or maximum). Check “Enable 3D Acceleration.” For better performance, you can also try “VBoxSVGA” as the graphics controller.
- Mount the macOS installer – Go to “Storage.” Under “Storage Devices,” click the empty CD/DVD drive. Click the disc icon on the right, choose “Choose a disk file,” and select your macOS .iso file. Click OK.
- Run the VM – Click “Start.” If you get an error about VT-x, you’ll need to enable virtualization in your BIOS (see Troubleshooting).
- Wait for the macOS boot screen – It may take a few minutes. You should see the Apple logo or a progress bar. If it hangs, refer to Troubleshooting.
- Format the virtual disk – Once the macOS Utilities screen appears, select “Disk Utility” and click “Continue.” Select the virtual hard disk (usually named “VBOX HARDDISK”), click “Erase,” choose “APFS” or “Mac OS Extended (Journaled)” as the format, and confirm. Close Disk Utility.
- Install macOS – Choose “Install macOS” from the Utilities window. Follow the on-screen prompts, select the formatted disk, and let the installation complete. The VM will restart several times.
- Complete setup – After installation, you’ll go through macOS setup (choose language, create account, etc.). Once done, you have macOS running in VirtualBox.
Common Mistakes
- Not enabling EFI – Without EFI, macOS won’t boot. Always check “Enable EFI” in VM settings.
- Insufficient video memory – Setting less than 128MB can cause a black screen or graphical glitches.
- Choosing the wrong macOS version – Using an installer that’s too new for your VirtualBox version may fail. Match the VM version to the installer.
- Not enabling virtualization in BIOS – If VT-x/AMD-V is off, the VM won’t start or will be extremely slow.
- Using a .dmg file directly – VirtualBox cannot boot a .dmg. You must convert it to .iso first or use a pre-made .iso.
- Allocating too little RAM – macOS needs at least 4GB; with less, it may crash or fail to install.
Tips
- Use a solid-state drive (SSD) – The VM will run much faster on an SSD.
- Create a snapshot – After a successful installation, take a snapshot in VirtualBox so you can revert to a clean state if something goes wrong later.
- Install VirtualBox Guest Additions – Though not officially supported for macOS, some users report improved performance and mouse integration by installing them from the “Devices” menu after booting into macOS. Use at your own risk.
- Adjust CPU cores – More cores help, but don’t allocate all cores to the VM; leave at least one for Windows.
- Keep macOS and VirtualBox updated – Newer versions often fix compatibility issues.
Troubleshooting
VM won’t start with “VT-x is disabled in the BIOS” error – Restart your PC, enter BIOS/UEFI (usually by pressing F2, F10, Del, or Esc during boot), find “Intel Virtualization Technology” or “SVM Mode” (AMD), enable it, save and exit.
Black screen or boot loop – Try these: 1) Ensure EFI is enabled. 2) Increase video memory to 128MB. 3) Try changing the graphics controller to “VBoxSVGA” or “VMSVGA”. 4) In VM settings, under “System” > “Processor,” enable “PAE/NX.” 5) If using a newer macOS (Big Sur or later), you may need to run a script to patch the VM’s NVRAM (search for “VirtualBox macOS Big Sur boot script”).
macOS installer says “This version of macOS is too new” or “Cannot be installed on this computer” – This is common because VirtualBox’s EFI doesn’t report a compatible Mac model. Use a tool like “Spoof-Mac” or manually edit the VM’s .vbox file to add a SMBIOS string that mimics a supported Mac. Alternatively, use an older macOS version that works out-of-the-box.
Installation is extremely slow – Allocate more CPU cores and RAM, ensure virtualization is enabled, and close other heavy applications on Windows.
Mouse/keyboard not working after install – Click “Devices” in the VM menu and select “Insert Guest Additions CD image,” then install it inside macOS. If that fails, try “Input” > “Mouse Integration” to toggle.
No audio – In VM settings, under “Audio,” set “Host Audio Driver” to “Windows DirectSound” and “Audio Controller” to “ICH AC97.”
Frequently Asked Questions
Is it legal to install macOS on non-Apple hardware? – Apple’s End User License Agreement (EULA) only permits macOS on Apple hardware. However, many people do it for testing. Legality varies by jurisdiction, so check your local laws and Apple’s terms. This guide is for educational purposes.
Can I install the latest macOS version? – VirtualBox often lags behind the newest macOS releases. Check forums for compatibility before attempting. Older versions like Catalina or Mojave are more likely to work smoothly.
Will macOS run fast in VirtualBox? – It will be slower than native Windows, but with enough RAM and CPU cores, it’s usable for basic tasks. 3D graphics acceleration is limited, so gaming or heavy graphics work is not recommended.
Can I use a .dmg file directly? – No, VirtualBox can’t boot a .dmg. You need to convert it to .iso using a tool like “AnyToISO” or “PowerISO,” or download a pre-made .iso.
Do I need a Mac to create a macOS installer? – No, you can download a pre-built .iso from various sources, but ensure it’s from a trustworthy site to avoid malware. Alternatively, you can use a Mac to create one if you have access.
Can I use this method to run macOS on an AMD PC? – Yes, but you may need to add a kernel flag (e.g., “-v” and “-no_compat_check”) and sometimes a custom bootloader. It’s more complicated than on Intel.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- How to Enable Privacy Indicators on Chromebook
- How to Calculate Taxes on Overtime Pay
- VPN Not Working on iPhone? Fixes That Actually Work
- Hide & Unhide Apps on Samsung Phones
- Fix DNS Server Unavailable Error in Windows 11
- Fix iOS 17 Keyboard Not Working Properly