How To Install MacOS Sonoma On VirtualBox On Windows 11

Installing macOS on a Windows PC can be a useful way to test applications or to experience the macOS environment without the need for Apple hardware.

You can achieve this by using virtualization software like VirtualBox, which allows you to run macOS Sonoma as a virtual machine on your Windows 11 system.

In this article, we will be discussing the steps that will help you to install macOS Sonoma on VirtualBox on Windows 11 with ease.

Install macOS Sonoma On VirtualBox On Windows 11

What Are The Prerequisites To Install MacOS Sonoma On VirtualBox On Windows 11?

Before you start, make sure you have the following:

  • A Windows 11 PC with at least 8GB of RAM and a multi-core processor.
  • The latest version of Oracle VirtualBox.
  • macOS Sonoma ISO file.
  • VirtualBox Extension Pack (for USB 3.0 support and other features).

What Are The Steps To Install MacOS Sonoma On VirtualBox On Windows 11?

Step 1: Install VirtualBox On Windows 11

Download VirtualBox from the official website and install it on your Windows 11 PC. During installation, you may encounter a network interface setup; this is normal and required for VirtualBox to function properly.

Install VirtualBox on Windows 11 to Install macOS Sonoma on VirtualBox on Windows 11

Step 2: Download MacOS Sonoma ISO

You will need a macOS Sonoma ISO file to install the operating system in VirtualBox. Apple does not provide ISO files for macOS, so you will need to create one yourself or find a reputable source online.

Step 3: Create A New Virtual Machine

  1. Open VirtualBox and click on “New” to create a new virtual machine.
  2. Name your virtual machine and select “Mac OS X” for the type and “Mac OS X (64-bit)” for the version.
  3. Allocate memory (RAM) to the virtual machine. It is recommended to allocate at least 4GB (4096 MB) for a smooth experience.
  4. Create a new virtual hard disk. Choose VDI for the hard disk file type and allocate at least 50GB of space. It is recommended to select “Dynamically allocated” for the storage.

Step 4: Configure The Virtual Machine

  1. With the virtual machine selected, click on “Settings”.
  2. Under System, uncheck “Floppy” in the Boot Order and ensure that the chipset is set to ICH9.
  3. In the Processor tab, allocate at least two CPU cores.
  4. In the Display settings, increase the video memory to 128 MB and enable 3D acceleration.
  5. In the Storage settings, click on the “Empty” CD icon under the “Controller: IDE” section, then on the right side, click on the CD icon next to “Optical Drive” and select “Choose a disk file…“. Locate and select the macOS Sonoma ISO file you have.
  6. Go to the USB section and enable USB 3.0 (xHCI) Controller. This step requires the VirtualBox Extension Pack to be installed.

Step 5: Edit Virtual Machine Configuration File

VirtualBox needs to be configured to bypass certain checks that are in place for macOS virtual machines. These edits involve using command-line instructions to modify the virtual machine’s settings.

  1. Close VirtualBox completely (ensure it’s not minimized to the system tray).
  2. Open Command Prompt as an administrator.
  3. Navigate to the VirtualBox installation directory by typing cd "C:\Program Files\Oracle\VirtualBox\" and hit Enter.
  4. Enter the following commands, replacing “YourVMName” with the name of your virtual machine:
VBoxManage.exe modifyvm "YourVMName" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata "YourVMName" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata "YourVMName" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "YourVMName" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata "YourVMName" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "YourVMName" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1

These commands will help mimic an environment that macOS expects to be installed on, which is necessary for the installation to proceed without errors.

Step 6: Install MacOS Sonoma

  1. Open VirtualBox and start the virtual machine you configured.
  2. If everything is configured correctly, the virtual machine will boot from the macOS Sonoma ISO. You will see the Apple logo and the installation process will begin.
  3. Once the macOS Utilities menu appears, select “Disk Utility” and click Continue.
  4. In Disk Utility, select your virtual hard drive from the sidebar (it’s often named “VBOX HARDDISK”).
Screenshot 2024 03 09 at 3.06.57 PM
  1. Click “Erase” at the top of the Disk Utility window.
  2. Set the name to “Macintosh HD” (or another name if you prefer), choose “APFS” for the format, and “GUID Partition Map” for the scheme. Then click “Erase”. Close Disk Utility once the process is complete.
  3. Back at the macOS Utilities menu, select “Install macOS” and click Continue. Follow the on-screen instructions to begin the installation.
  4. The installation process may take some time, and the virtual machine might reboot several times. Be patient and wait for the installation to complete.

Step 7: Complete MacOS Setup

After the installation is complete, the virtual machine will boot into macOS Sonoma and prompt you to complete the setup process:

  1. Choose your country or region and click Continue.
  2. Select a keyboard layout and click Continue.
  3. At the “Data & Privacy” screen, read the information and click Continue.
  4. Decide whether to transfer any information to your new macOS installation; typically, for a virtual machine, you’ll select “Not Now”.
  5. Sign in with your Apple ID if you want to, or skip this step.
  6. Agree to the terms and conditions.
  7. Create a computer account by entering a full name, account name, password, and a password hint.
  8. Customize the Express Set Up options or use the default settings.
  9. Wait for the setup to complete, and you will be taken to the macOS desktop.