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.
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.
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.
When the window opens, go to where you saved the ISO file. Afterward, find the related file and open it up.
After completing the initial steps, proceed to the next part by clicking Next.
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.
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.
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.
Check the settings for the fake macOS computer’s hardware and then close the wizard.
Press the Settings button to adjust the guest computer’s setup in more detail.
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.
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.
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.
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.
Also, choose the Solid-State Drive (SSD) option in the macOS settings.vdi disk file.
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.
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.
Once you’ve set up everything for the macOS VM using VirtualBox, start it for the installation.
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.
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.
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.
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.
Scheme: GUID Partition Map
Choose Install Sonoma and click Continue to start installing the system.
When the system setup wizard shows up, click the Continue button.
Select the virtual disk you set up and press Install.
Wait for the wizard to copy the installation files.
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.
Once you select your country or region, click Continue.
Choose the keyboard style and language you want to use in the VM, then click Continue.
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.
On the Data & Privacy screen, click Learn More if you want more information, or click Continue to move forward.
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.
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.
Accept the license terms of the macOS Sonoma 14.
Enter your info for the virtual PC’s user account, then click Continue.
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.
To set the clock right, select the region closest to you and keep going.
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.
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.
On the Choose Your Look screen, you can change how the Docks, menus, buttons, and windows appear to Light, Dark, and Auto.
After installing the virtual macOS system, open the Finder app and click About This Mac to determine 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.
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.
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.
After you reopen the macOS in VirtualBox, the resolution is 1920 x 1200.
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.
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.
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.
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.
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.
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.
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.
Hello, I'm Tolga! I am a computer specialist who has been specializing in computer technologies for about 20 years. I provide solutions to problems encountered in many areas such as hardware, system, network, virtualization, server systems, and operating systems, and create relevant content on my website by explaining how to solve these problems. My goal is to be a reliable source of expert, quality, and trustworthy solutions for your computer problems. By following innovations and using the latest technologies, I aim to be successful in my job and provide you with the best service. Don't hesitate to contact me for any questions or curiosity about technology. Have a nice day, stay up to date :)