How to Install macOS Sonoma 14 in VirtualBox on Windows 11

This article will show you how to install and use macOS Sonoma 14 on a new virtual computer using the Oracle VM VirtualBox 7.0 program on a Windows 11 PC.

How to Install macOS Sonoma 14 in VirtualBox on Windows 11

How to Run macOS Sonoma 14 on a Virtual Machine using VirtualBox 7 on Windows 11 or 10

Before you buy a MacBook Pro or iMac, if you use a Windows PC, you can try out the Mac system by installing it on virtual machines.

You can use special programs to make the macOS system work on a regular desktop or laptop, even if it’s not an Apple Mac. So, you can set up Sonoma using programs like VMware Workstation or VirtualBox on Windows 10 or 11.

We can only make a virtual computer for macOS Sonoma with the Unlocker tool on VMware. But if you’re using Oracle VM VirtualBox, you don’t have to use extra tools like Unlocker. After making a fake Mac on VBox, you must type in a few commands before starting the installation.

Before you start installing, get the Sonoma file from this link and save it on your main computer. As a result, you can also use this file on VMware Workstation, Fusion, or ESXi servers.

How to Create a New VM for macOS Sonoma

Before you make a pretend computer, install VirtualBox on your Windows 10 or 11 computer. Also, get the Extension Pack and add it.

Step 1

When you start the Oracle VirtualBox, click on the New button in the menu. This will help you create a new virtual machine for macOS Sonoma.

Opening the Virtual Machine Wizard

Step 2

When you’re in the window for creating a VM, type the macOS in the Name. Then, choose Mac OS X from the Type field. Afterward, select the macOS you want to install and click the Next button.

Select “Other” from the menu when you click on ISO Image. After that, you add the Sonoma file to the pretend computer.

Creating a macOS Virtual Machine

Step 3

When the window opens, go to where you saved the ISO file. Afterward, find the related file and open it up.

Adding the macOS Sonoma ISO File to the Virtual Machine

Step 4

After completing the initial steps, proceed to the next part by clicking Next.

Skipping Unattended Installation

Step 5

You should divide the RAM and virtual processor based on how well your computer works. So, adjust the virtual machine settings to match your PC’s specifications. If the host RAM is 16 GB, assign 4 GB or 8 GB. Consequently, adjust the Memory Size in the window accordingly. Under normal conditions, macOS VM runs smoothly with 4096 memory. So, set the memory size to 4096 for optimal performance.

Another thing to do is choose either 2 or 4 virtual CPUs so the virtual macOS computer runs better. If your host PC has problems or gets stuck while installing, set the virtual processor cores to 1 and see if it helps.

Configuring 4GB Virtual Memory Size and Increasing the Number of Virtual Processors to 4

Step 6

If the virtual machine disk is ready in the Virtual Hard Disk window, you can add it and start your virtual macOS. But if you’re starting fresh, choose the “Create a virtual hard disk now” option and click Create to continue.

If you have any VirtualBox 6.x versions, select the “VDI” (VirtualBox Disk Image) type for the virtual hard disk when setting it up. Then, click the Next button to move forward.

Furthermore, if you make the hard disk a fixed size when setting up the virtual PC in VirtualBox, it will use up space on your computer’s disk equal to the extent you set.

Making the pretend disk a fixed size on older computers can make things work faster. But if your computer’s disk is an SSD or NVMe, it’s better to set up the virtual disk as dynamic, meaning it uses space as needed.

Back up the location of the guest computer’s setup and where the virtual disk is on an external drive. Also, only fill up your computer’s disk with reason. Based on your activities on the simulated macOS system, determine the size of the imaginary disk. A disk size of 100 GB should be enough for installing and trying things out.

Creating a New Virtual Disk

Step 7

Check the settings for the fake macOS computer’s hardware and then close the wizard.

Hardware Summary Window of Virtual PC

Step 8

Press the Settings button to adjust the guest computer’s setup in more detail.

Opening VM Settings

Step 9

Take out the pretend floppy from the fake computer’s settings (go to System, then Motherboard, and finally Boot Order). Make the optical drive the primary device. Just adjust the settings as needed.

Changing the Boot Order

Step 10

Add four processors to the macOS VM in the System/Processor section. You might run into a load_init_program error while installing if you don’t do this. Also, if you plan to use special VM software, turn on the Nested VT-x/AMD-V feature.

If you keep running into problems or things keep going in circles when you’re making the pretend Mac in VirtualBox, try turning off the virtualization feature. These issues differ for each computer, so you might have to try a few things and see what works based on your PC.

Enable Nested VT-x/AMD-V

Step 11

Turning on the virtualization feature on the virtual PC makes things work faster and makes the system run better. To handle memory better between your computer and the pretend one, go to the Acceleration tab and check the box for Nested Paging in the Hardware Virtualization section.

Enable Nested Paging

Step 12

Turn on the Host I/O Cache on the SATA Controller to make the virtual computer’s disk work faster. Thanks to this, the VM’s disk runs faster.

Enable Host I/O Cache for SATA Controller

Step 13

Also, choose the Solid-State Drive (SSD) option in the macOS settings.vdi disk file.

Configuring VDI Virtual Disk as SSD

Step 14

You must pay attention to the point here: you enabled USB 3.0. Installing it using USB 1.1 or 2.0 may result in a keyboard and mouse mistake.

USB 3.0 (xHCI) Controller

Step 15

Before running macOS on VirtualBox, you must adjust some extra VM settings using the CMD command prompt. First, close the program and open the CMD or PowerShell command prompt as an administrator.

Next, please copy and paste the codes I gave you into a text document. After that, change the virtual machine’s name as necessary. Finally, run the commands in the order I provided.

cd "C:\Program Files\Oracle\VirtualBox\"
./VBoxManage.exe modifyvm "macOS" --cpuid-set 00000001 000106e5 00100800 0098e3fd bfebfbff
./VBoxManage setextradata "macOS" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "MacBookPro15,1"
./VBoxManage setextradata "macOS" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
./VBoxManage setextradata "macOS" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Mac-551B86E5744E2388"
./VBoxManage setextradata "macOS" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
./VBoxManage setextradata "macOS" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
./VBoxManage setextradata "macOS" "VBoxInternal/TM/TSCMode" "RealTSCOffset"

VirtualBox macOS Codes

Step 16

Once you’ve set up everything for the macOS VM using VirtualBox, start it for the installation.

Running the Virtual Computer

How to Install macOS Sonoma 14

Once you’ve done all the setup to install the Mac OS on VirtualBox, start the virtual PC and complete the installation, just like you would on an honest Mac.

Step 1

Wait for the virtual machine to start from the ISO image. Subsequently, choose the language you want to use in your macOS VM and keep going.

Selecting the System Language

Step 2

Before setting up the system, you must format the pretend disk. To do this, choose Disk Utility on the Recovery screen and click the Continue button.

Opening Disk Utility

Step 3

Choose the VBOX HARDDISK Media vdisk and press Erase. Once you click Erase, set up the disk’s name, format, and structure like this, and click Erase again. After the VBOX HARDDISK Media is formatted, click Done.

  • Name: macOS
  • Format: APFS
  • Scheme: GUID Partition Map

Formatting VBOX HARDDISK Media

Step 4

Choose Install Sonoma and click Continue to start installing the system.

Install macOS Sonoma

Step 5

When the system setup wizard shows up, click the Continue button.

Starting macOS Setup

Step 6

After reading the macOS Sonoma terms of use, click Agree to accept.

Accepting the Apple Software Agreement

Step 7

Select the virtual disk you set up and press Install.

Selecting the Disk to Install

Step 8

Wait for the wizard to copy the installation files.

Copying System Files

Step 9

When the guest macOS restarts, the setup wizard will continue where it left off. It might take a bit, especially if your computer isn’t super fast, so be patient if it says a minute remaining.

About 22 minutes remaining

Step 10

Once you select your country or region, click Continue.

Country and Region Selection

Step 11

Choose the keyboard style and language you want to use in the VM, then click Continue.

Configuring Written and Spoken Languages

Step 12

On the Accessibility screen, you can change various settings to suit your liking, making your system behave how you want. You can always tweak these settings later in System Preferences.

Editing Accessibility Features

Step 13

On the Data & Privacy screen, click Learn More if you want more information, or click Continue to move forward.

Data and Privacy Settings

Step 14

You can quickly transfer your data from a Windows PC or MAC computer on this screen. However, if you do not hold any data or want to share the files later, click Not Now.

Migration Assistant

Step 15

To access your ID, input your login information on the designated screen. If you don’t include an existing account, generate one by clicking the “Create New Apple ID” option. If you do not desire to sign in to the macOS VM, click Set Up Later.

Skipping Apple ID Sign In

Step 16

Accept the license terms of the macOS Sonoma 14.

Confirming Software License Terms

Step 17

Enter your info for the virtual PC’s user account, then click Continue.

Creating a Computer Account

Step 18

If you want Apple services like Find My Mac to know where you are and get data about app problems, click Continue. If you want to change these settings, click Customize Settings to go through the steps and set them up how you want.

Configuring Apple Services

Step 19

To set the clock right, select the region closest to you and keep going.

Selecting the Time Zone

Step 20

You can make macOS better by letting the developers of the apps you use see data about how you use them and if there are any errors.

Confirming Data Sharing for Developers

Step 21

Screen Time details how much you use your favorite apps or visit websites. It’s also handy for parents who want to set up profiles for kids of different ages.

Any tweaks you make in Screen Time will automatically appear on your Mac, iPhone, or iPad if you use the same Apple ID.

Setting Screen Time

Step 22

On the Choose Your Look screen, you can change how the Docks, menus, buttons, and windows appear to Light, Dark, and Auto.

Selecting the System Theme

Step 23

After installing the virtual macOS system, open the Finder app and click About This Mac to determine the system version.

Checking the System Version

How to Change the Screen Resolution of macOS Sonoma

After you install macOS Sonoma using VirtualBox, the default screen resolution is 1024×768. So, you should change it for better visibility. Adjust the VM screen dimensions with Ctrl+C, but look for more efficient ways. Additionally, you can explore other methods to improve screen adjustments.

Due to the Guest Additions, there is a problem with the screen resolution in macOS. So, explore alternative methods to enhance the display effectively. This way, you can optimize your virtual machine display for better performance.

Step 1

To find out the size of your Mac screen, follow these easy steps. First, click on ‘About This Mac’ in the Finder tool. Then, look for the Displays tab in the window that pops up. You’ll see the screen size value right there.

Changing the Screen Resolution

Step 2

Once you turn off the VirtualBox macOS system, open Command Prompt (CMD) as an administrator. Then, type in the following commands to change the screen resolution.

cd "C:\Program Files\Oracle\VirtualBox\"
./VBoxManage setextradata "macOS" VBoxInternal2/EfiGraphicsResolution 1920x1200

Changing the Resolution Size

Step 3

After you reopen the macOS in VirtualBox, the resolution is 1920 x 1200.

1920x1200 Screen Size

How to Use USB Flash Memory

I can’t drag files; the macOS guest machine has no guest additions. Instead, share files easily using a USB flash drive. Consequently, it enhances virtual computer functionality with straightforward file transfers.

Step 1

Plug the USB into the host computer, and click “Devices/USB/Name of your USB” in Oracle. As a result, you can easily link your USB flash drive to the virtual machine.

Inserting a USB Flash Memory into the Guest Machine

Step 2

Open Disk Utility, select your flash disk from the External section, and click Erase. In the window, type USB brand in Name, and choose ExFAT. Afterward, click Erase to complete the process successfully.

When using macOS on Oracle VirtualBox, format your USB as ExFAT. As a result, avoid using NTFS for better compatibility and performance.

Otherwise, you won’t be able to copy any folders or documents onto your disk.

Formatting USB Disk as EXFAT

Step 3

Link USB to VM: “Devices/USB/Name of your USB” in the menu. Therefore, connect the USB drive to your VM easily. Then, look at the folder or documents you made on your flash drive.

Transferring Files with Flash Memory

How to Increase macOS VM Performance in VirtualBox

As you know, Oracle and other virtualization software don’t wholly support Apple’s macOS. Even if your real computer is speedy, macOS won’t run smoothly. So, a pretend computer might not give you the best performance.

Some developers want to run Mac systems on virtual machines. Hence, they use virtual machines to experience them.

Depending on your planned use, you may need help with system performance. Still, you can change the system settings to minimize these problems.

So, use terminal commands to make your macOS VM work better. Therefore, apply these commands to improve your VirtualBox experience.

Turning off Spotlight for Database Operations

sudo mdutil -a -i off

Speeding Up Animations

defaults write NSGlobalDomain NSWindowResizeTime -float 0.001

Reducing the Delay in the Dock

defaults write autohide-delay -float 0
defaults write autohide-time-modifier -float 0.5
killall Dock

Turn Off Finder Animations

defaults write DisableAllAnimations -bool true
killall Finder

Turning Off the Quick Edit Window

defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false

Stopping Time Machine Backup Processes

sudo tmutil disablelocal

Turning Off Automatic Check for Software Updates

sudo softwareupdate --schedule off

Turning On Faster File Previews for Finder

defaults write QLPanelAnimationDuration -float 0

Possible Installation Errors

The setup can’t go on, and the system goes into Recovery Mode by itself

Let’s assume the VM enters recovery mode after the installation wizard copies the system files. In this case, start the operating system by typing commands in the UEFI Shell screen. Therefore, use the following steps to fix your operating system.

When you’re in the UEFI Shell, type commands until you get to boot.efi. Then, follow these easy steps to find the boot.efi command.

cd "macOS Install Data"
cd "Locked Files"
cd "Boot Files"

Add the ISO file to the virtual device and perform the “boot.efi” command to proceed.


Installing Old Versions

macOS High Sierra 10.13
macOS Big Sur 11
macOS Ventura 13


Frequently Asked Questions (FAQ) About macOS with VirtualBox

1. Can I run macOS Sonoma on a virtual machine using VirtualBox?
macOS Sonoma is the latest version of Apple’s operating system. Yes, you can run it in a virtual machine using VirtualBox on a Windows 10 or 11 PC.
2. Do I need any special tools to run macOS Sonoma in VirtualBox?
No, you don’t need any special tools to run macOS Sonoma on Oracle software. VirtualBox, unlike VMware, doesn’t need extra tools like Unlocker. Hence, VBox is more straightforward for macOS virtualization without additional tools.
3. How much RAM and virtual processor cores should I allocate to my virtual machine for optimal performance?
The RAM and processor cores depend on your host computer’s capabilities. So, adjust virtual machine settings accordingly for optimal performance. Providing 4 GB or 8 GB of RAM and 2 or 4 virtual processor cores will be enough for optimal performance.
4. What should I do if I encounter problems during virtual machine installation?
If you encounter issues, tweak the virtualization feature or switch it off. This way, troubleshoot to make sure your virtual machine setup works smoothly. Try reducing the number of virtual processors. Also, decreasing the RAM size can help. Additionally, we recommend downloading the ISO file from reliable sources like us.


Related Articles

1) How to Install Wine on macOS
2) How to Install Google Chrome on macOS
3) What is VMware Fusion?
4) How to Install macOS with VMware
5) How to Install macOS with ESXi

  1. Mustafa 6 May 2018

    Top Website for ever thx…

  2. Wouter 10 May 2018

    Seems to stay stuck at step 2: wait while the macos is starting

    • tolqabaqci 11 May 2018

      Hello there. The wait time may vary depending on your computer’s specifications.

      Please wait a little longer in step 2, the MacOS installation will continue.

      • Alec 20 June 2018

        I’m also stuck at step 2 where it says end randomseed. does it really take that long? or am It’s not doing anything? I notice the task manager that virtualbox has no cpu usage.

        • tolqabaqci 29 June 2018

          Yes it takes a little longer during the installation phase. You can try the old version of VirtualBox if you want.

          • Ahmed Hamad 22 July 2018

            STUCK on step 2. after randomseed message it won’t proceed.

          • Irina 31 July 2018

            It can be very specific and common problem for many users. Actually, I’ve tryed for several times to install MacOS High Sierra 10.13.4 with various builds of VB and several MacOS ISO’s. And, ya, step 2 will never ends. Try to notice one thing: text from step2’s screenshot is repeating! You can wait as long as you want, but instalation will never starts because of endless repeating of tries to install. I don’t know why does it happend (I don’t understand this log from screen). But it’s a fact.

            P.S.: Sorry for my bad english

  3. Paul 12 May 2018

    Got through the second stage of installation okay after running boot.efi but then when it restarts it just drops back to the UEFI shell again.

    I’m using the ISO provided by this site and the latest version of virtual box. I’ve tried the whole process 3 times now. Any ideas?

    Alsothespacebardoesn’tworkinthiscommentwindow. TotypetherestIhadtotypeitinnotpadandpaste.

    • tolqabaqci 12 May 2018

      Hello, Paul. Thanks for your comment.

      Before running the boot.efi command, insert the ISO file on the MacOS virtual machine.

      In addition, two videos were made with this ISO file. These videos are available on our YouTube channel.

      Paul, can you try the processor value of your MacOS virtual machine by setting it to 1? And make sure you set a minimum RAM value of 4 GB.

      • Paul 13 May 2018

        Okay I’m trying re-installing again using one processor.

        One thing I’ve just noticed when I’ve gone in to the disk utility is that it’s automatically become an APFS Partition.

        I definitely selected Mac OS Extended (Journaled) when I created it. Is this normal?

        • tolqabaqci 15 May 2018

          Hello there.

          Did you install MacOS with VirtualBox?

          Yes, Mac OS Extended (Journaled) is automatically selected.

          APFS: Apple’s new file system is more resistant to data corruption due to bugs and power failures.

  4. Max 18 May 2018

    The MacOS did not work for me on Virtualbox.

    It kept restarting the Step 2

  5. Syed Ali Al Uraidhi Bin Syed Alwi 19 May 2018

    It start to intall back macOS after I shut down my installed macOS, where is my installed macOS?

  6. Paul 1 June 2018

    Yes it was installed with Virtual Box exactly as described in the guide.

    Every single time I’ve used Mac OS Extended (Journaled) but it’s always become an APFS partition automatically by the time I’ve done the second stage of the installation and just falls back to the UEFI shell instead.

  7. Evan 22 June 2018

    **Your tutorial is bad and you should feel bad.**
    Followed the instructions exactly; three times even.

    Everyone commenting that the virtual HD is not bootable after installing is correct.
    Don’t waste your time here. You did everything right; this is just a bad disk image and / or bad guide. Move along.

    • tolqabaqci 29 June 2018

      I certainly do not agree with your opinion. Many people are thanking me. I think you’re making a mistake during installation.

      Carefully follow the MacOS installation steps again.

  8. A 12 July 2018

    So I finally got this to work past Step 2 where it boot looping in the shell

    After re-reading this I noticed that it had specified you MUST close VirtualBox before applying the command line changes, then reopen it. If you don’t do this you will be stuck in the same boot loop before it reaches the grey screen with the Apple logo.

    I reiterate, CLOSE VIRTUAL BOX before running the command line stuff, will get you past step 2!

  9. Irina 19 July 2018

    Do not try to use VB 5.1! You will not pass Step 2 even with some another ISO. Even if you close VB before CMD things.

    P.S. Sorry for my bad english

  10. Joe 8 November 2019

    This is not working anymore. I get the following message after setting up the installation volume:
    This copy of the install MacOS High application is damaged. I checked the date of the system, and it’s current. I also tried to set a past date, but no,luck.

    • Mate0 24 January 2020

      on “macOS Utilities” screen where you select install macOS, on the tool bar above is a Utilities drop down, select Terminal. Disconnect your internet connection, then type date 010101012017 and hit enter. Select Terminal drop down and select Quit terminal to return to main screen, then select install macOS and it should work this time. Can reconnect to internet after.

      • Tom 13 February 2020

        This worked for me, thanks.
        guest: macOS 10.13.6
        host: linux

  11. Lior 17 October 2020

    I’m stuck in step 8, I erased the disk and named it exactly as you did, I even installed the EXTACT SAME iso image as you did, I followed exactly your steps, everything worked until i clicked install macOS and it says: “This copy of the install macOS High Sierra application is damaged, and can’t be used to install macOS”.
    I’m using the latest VB but it really doesn’t matter, it doesn’t work and I need help please.

    • Tolga Bagci 17 October 2020

      Open Terminal in the macOS Utilities screen and execute the “date 121401582018” command. Then quit the terminal and try the installation again.

  12. John 5 January 2023

    Getting the same but with Big Sur… Must need a new date or something else changed. So far everything else is perfect and working great!

  13. Don Hirst 20 March 2023

    Follow on to my 20 March 2023 comment; I will upgrade my Lenovo laptop to Windows 11, try this procedure again and report results here. Thanks.

  14. Don Hirst 22 March 2023

    Configuration: VirtualBox 7.0.6 on Lenovo X1 Yoga 3rd Gen; Intel Core i7, 16 GB main memory, 1 TB SSD, Windows 10 Pro 22H2; all Hyper-V disabled/removed.
    Update: Upgraded OS to Windows 11 Pro, 22H2, Build 22621.1413
    Attempt: Install MacOS Ventura (macOS 64 bit VM) as guest system, following this post and using the .iso file from your website link.
    Result: reboot multiple times, ending back at Recovery window.
    This is the same result as I obtained prior to the Windows 11 update.
    Suggestions welcomed.

  15. Akshay 17 May 2023

    I am facing the similar behavior and not moving further. Tried multiple time install and after multiple restart it reaching to the recovery or say installation window

  16. alex 8 October 2023

    I followed all instructions exactly as showed and I have an error.
    I am on windows 11 and when I try to run the VM for the first time I have the error:
    Failed to query SMC value from the host (VERR_INVALID_HANDLE).
    Result Code:
    E_FAIL (0X80004005)

    Any idea how I can fix it?

  17. yam4me 18 October 2023

    as alex, the same wih me:
    Failed to query SMC value from the host (VERR_INVALID_HANDLE).

    Result Code:
    E_FAIL (0X80004005)
    IConsole {6ac83d89-6ee7-4e33-8ae6-b257b2e81be8}
    Any sugestions?

  18. mert 24 October 2023

    VBoxManage setextradata “macOS” “VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC” 0
    You should make the value at the end of this command 0 like this, not 1.

  19. Sergey 26 November 2023

    Hello every one!
    I get the issue in step 9. ” About 9~10 minute remaining… ”
    in the end installer rebooting and give me the error
    System reboot after panic !
    and starting a lot times of rebooting till recovery screen.
    what exactly moment I need to do this steps:
    cd “macOS Install Data”
    cd “Locked Files”
    cd “Boot Files”
    Also, how I could get fs1: command prompt?

  20. Cristian Diaz Torres 27 November 2023

    Hello everyone.
    I followed all steps of this guide.
    I am using windows 11 on my computer and I want to use mac os sonoma on oracle virtualbox 7.
    I use macOS Sonoma ISO by for ISO image.
    But I get errors as following:

    BdsDxe: failed to load Boot0001 “UEFI VBOX CD-ROM VB1-1a2b3c4d” from PciRoot(0x0)/Pci(0x1F, 0x2)/Sata(0x1, 0xFFFF, 0x0): Not Found.
    BdsDxe: failed to load Boot0001 “UEFI VBOX HARDDISK VBf3339b74-aa1c39c9” from PciRoot(0x0)/Pci(0x1F, 0x2)/Sata(0x1, 0xFFFF, 0x0): Not Found.
    BdsDxe: No bootable option or device was found.
    BdsDxe: Press any key to enter the Boot Manager Menu.

    Then I access Boot Manager and select boot option to UEFI VBOX CD-ROM VB1-1a2b3c4d.
    But I can’t continue installing mac os.
    How should I do?

Add a Comment

Your email address will not be published. Required fields are marked *