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 com.apple.Dock autohide-delay -float 0
defaults write com.apple.dock autohide-time-modifier -float 0.5
killall Dock

Turn Off Finder Animations

defaults write com.apple.finder 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 com.apple.finder 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.

fs1:
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.

boot.efi

Installing Old Versions

Version
Slide
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

34 Comments

Add a Comment

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