Home > How to Tips

How to Install macOS Sonoma on VirtualBox on Windows PC

Updated on Wednesday, November 29, 2023

iBoysoft author Amanda Wong

Written by

Amanda Wong
Professional tech editor

Approved by

Jessica Shee

English Français Deutsch やまと Español Português

[Stepwise]Install macOS Sonoma on VirtualBox on a Windows PC

Summary: Want to try the macOS Sonoma on your Windows PC? This post from iBoysoft is right for people who want to install macOS Sonoma on VirtualBox on a Windows PC.

macos sonoma virtualbox

The latest macOS Sonoma was finally released on September 26, 2023. Powerful features such as Widgets on the Desktop, Game Mode, web app, etc, not only attract Mac users to upgrade to macOS, but also appeal to Windows users to test out macOS Sonoma on their computers.

Unlike on MacBook Air/Pro/iMac, you can not directly install macOS on a Windows PC. Using a virtual machine(a virtual system or program that offers the same features as physical machines) to install macOS on Windows is a popular method. 

VirtualBox is a free and open-source virtualization software that allows users to run different operating systems on their computers. In this post, we will elaborate on how to install macOS Sonoma on VirtualBox on a Windows PC.

Table of Contents:


Install macOS Sonoma on VirtualBox on a Windows PC step-by-step

Although it is a simple operation, installing macOS Sonoma on VirtualBox does call for some technical know-how and attention to detail. But don't worry, we will guide you through the whole installation process, just follow the steps patiently.

To install macOS Sonoma on VirtualBox, you must first make sure your computer satisfies the hardware requirements. The following are the prerequisites:

  • A 64-bit processor with a minimum of two cores
  • At least 4GB of RAM
  • At least 20GB of free disk space
  • macOS Sonoma iSO file
  • A graphics card that is supported and has at least 128MB of video memory

Now, let's dive into the details steps to install macOS Sonoma on VirtualBox on Windows.

  • Step 1. Install VirtualBox and its Extension Pack
  • Step 2. Create a macOS Sonoma virtual machine
  • Step 3. Configure macOS Sonoma virtual machine
  • Step 4. Run VirtualBox code to the Command Prompt
  • Step 5. Install macOS Sonoma on VirtualBox

Share the help others install macOS Sonoma on VirtualBox on Windows!


Step 1. Install VirtualBox and its Extension Pack

From the official website, users can download and install the most recent version of VirtualBox. The VirtualBox Extension Pack is a software that adds further features to VirtualBox, including support for USB 2.0 and 3.0 devices and the remote desktop protocol. After downloading VirtualBox, it needs to be downloaded and installed.

Steps to install VirtualBox:

  1. Head to the folder where the downloaded VirtualBox is located and double-click on the downloaded "VirtualBox" file to install it.
  2. When the "Oracle VM VirtualBox Setup" window appears on the screen click on the Next button to continue.
  3. Choose a location to install the VirtualBox and click Next to continue.
  4. Click Yes and then click Install to start the installation process.install virtualbox

Steps to Install VirtualBox Extension Pack:

  1. Double-click on the installer of VirtualBox Extention and click Install.
  2. Select I Agree to agree with the terms.
  3. Click OK when the VirtualBox Extension Pack is installed successfully. 

Step 2. Create a macOS Sonoma virtual machine

After installing the VirtualBox and its Extension Pack on your Windows PC, you can proceed to create the virtual machine for macOS Sonoma.

  1. Launch the VirtualBox VM on your Windows PC and click New.
  2. When the next window appears click on the Expert Mode option.
  3. Choose to create a new virtual hard disk or use an existing one.
  4. Enter a name for the virtual machine such as macOS Sonoma, specify the location, and Type Mac OS X, Version, Mac OS X (64-bit).
  5. On the Hardware tab increase the base memory size and the processor.
  6. Select the maximum disk size for macOS Sonoma then specify the location. choose disk size for virtual machine
  7. Click the Finish button.

Step 3. Configure macOS Sonoma virtual machine

The virtual machine parameters can then be adjusted to your preferences. You can change a variety of settings, including the amount of CPU cores and audio options.

  1. Click the Settings tab to customize certain things.configure settings in vm virtualbox
  2. From the left-handed sidebar select the System tab, then uncheck the floppy disk.configure settings virtualbox system
  3. In the Processor section, increase the number of CPUs for better performance.
  4. Choose the Display tab, then increase the video memory size to 128 MB.configure settings virtualbox display
  5. Open the Storage tab, click Empty > disk icon > Choose a disk file.configure settings virtualbox storage
  6. Choose the macOS Sonoma ISO and click Open.
  7. From the USB tab, check the box of USB 3.0 to enable it.
  8. Click the OK button to save the changes.

Step 4. Run VirtualBox code to the Command Prompt

Once your virtual machine has been created and customized, you need to run a few commands to install macOS Sonoma on VirtualBox.

  1. Open the VirtualBox code. Click the Edit tab and select Replace.
  2. Replace the VM Name with the name of your virtual machine and select Replace All.
  3. Go to the Windows start menu and type cmd, right-click Command Prompt to choose Run as administrator.
  4. Respectively copy and paste the first line and the rest of the commands into the Command Prompt window, and press Enter each time.run virtualbox code

Step 5. Install macOS Sonoma on VirtualBox

Performing a clean install of macOS Sonoma on VirtualBox on Windows 10/11 is required in this stage before running macOS Sonoma on Windows. 

  1. Launch VirtualBox, select your virtual machine, and click Start, you will see the Apple logo appear after the codes flash.start macos sonoma virtualbox windows
  2. Select your preferred language and click the arrow icon at the bottom right-hand corner.
  3. Click on Disk Utility and select Continue.
  4. Select the VBOX HARDDISK Media and click Erase.
  5. Configure the settings such as name, format, and scheme, then click Erase.
  6. Quit Disk Utility and choose Install macOS Sonoma, then click Continue.
  7. Follow the onscreen instructions to install macOS Sonoma, and tap on Continue.
  8. Agree to the terms and conditions and select Agree again.
  9. Choose the macOS Sonoma hard disk and click Continue.
  10. Wait for the macOS to be installed in 40–60 minutes.

Share the detailed steps to install macOS Sonoma on VirtualBox on Windows!


FAQs about how to install macOS Sonoma on VirtualBox on a Windows PC


You don't need any specialized hardware to install macOS on your PC, unlike a Hackintosh. You may set up various operating systems on a single computer with VirtualBox and switch between them.


There are some recommended virtual machines for Windows you can choose from: VMware Workstation, VMware Fusion, Oracle VM VirtualBox, Parallels Desktop, Hyper-V Manager, and QEMU.