How to install macOS in VirtualBox on Windows 11 (2024)

There are times when you want to use macOS on a Windows computer. For the most part, there was a wall between the two realms, macOS users need to adhere to Apple hardware, and can not be used on a Windows computer, but this wall is slowly disappearing. You can install macOS on your Windows system using a Virtual Machine tool. In this post, we will see how you caninstall macOS in VirtualBox on Windows 11.

How to install macOS in VirtualBox on Windows 11 (1)

Can I run macOS on Windows 11?

In order to run macOS on Windows 11, we will use Oracle VirtualBox. However, you need to make sure that you have a legally obtained copy of macOS, 2GBs of memory, and a 64-bit computer with 4 logical CPUs, and you should be an administrator or have administrative privileges. If you have all this, go ahead and install macOS on your Windows system.

Install macOS in VirtualBox on Windows 11

Installing macOS in VirtualBox on Windows 11 is the following four-step process.

  1. Download macOS File
  2. Install VirtualBox
  3. Create the Virtual Machine
  4. Configure VM’s Settings
  5. Install macOS in VirtualBox

Let us talk about them in detail.

1] Download macOS File

You need to download the macOS file from Apple Store. You need to download the macOS BugSur file from the Store, since it is a large file, you need a good enough Internet connection, an ample amount of space, and some time. Keep in mind, downloading a file from an unauthorized place is not recommended.

2] Install VirtualBox

How to install macOS in VirtualBox on Windows 11 (2)

Once you have downloaded the operating system, go ahead and download VirtualBox, the Virtual Machine software we will be using. To do the same, go to and select VirtualBox-6.1.26-145957-Win.exe. You need to download the extension package called Oracle_VM_VirtualBox_Extension_Pack-6.1.26-145957.vbox-extpack alongside the VirtualBox software.

How to install macOS in VirtualBox on Windows 11 (3)

After downloading both files, go to the Download folder, and run VirtualBox-6.1.26-145957-Win.exewhich is the installation package. You then have to follow the on-screen instructions to install the VM, once it is installed, run the extension package and install it as well.

Note: In case, you get an error when installing either of the apps, just disable Memory Integrity, reboot your computer, and then run the installation media.

3] Create the Virtual Machine

How to install macOS in VirtualBox on Windows 11 (4)

In order to install macOS, we first need to create a virtual machine using Oracle VirtualBox. The process may seem a bit intimidating, but if you follow the steps mentioned below, you will be able to create a VM without any hassle. To do the same, just follow the prescribed steps.

  1. LaunchOracle VirtualBoxon your Windows system.
  2. Click on the New button.
    How to install macOS in VirtualBox on Windows 11 (5)
  3. In the next window, you need to enter the following details.
    > Name:You can enter any name you want to give to this virtual machine, but just to have a rememberable name, use a simple name such as macOSor MacintoshMachine.
    > Machine Folder:This is the location where your VM will be stored, make sure to select a disk with at least 100GB of free space.
    > Type:Select Mac OS X (will be selected automatically)
    > Version: Select Mac OS X (64-bit) (will be selected automatically)
  4. On the next window, use the slider to allocate RAM to your VM, give it enough memory but should not be more than 50% of total capacity.
  5. On the Hard disk window, select Create a virtual hard disk nowand click Create.
    How to install macOS in VirtualBox on Windows 11 (6)
  6. You then have to select the Hard disk file type,we have mentioned their description below, so, select the one you think is apt and then move on.
    > VDI (VirtualBox Disk Image): Not for someone who might need to shift their Virtual Machine to some other VM Software such as VMWare Workstation or Hyper-V.
    > VHD (Virtual Hard Disk):
    Apt for transferring the VM to Hyper-V.
    > VMDK (Virtual Machine Disk):
    Best for someone who wants to migrate their VM to VMWare.
  7. Next up, you can selectDynamically allocatedif you are not sure how much space is good and Fixed Size if you are certain of the space the VM should be allocated. We recommend you go for dynamic allocation especially if you are using SSD.
  8. In the File Location and Size window, give at least 60GBs and continue.

This way, our Virtual Machine is created.

5] Configure VM’s Settings

How to install macOS in VirtualBox on Windows 11 (7)

Once you have created the Virtual Machine, let us configure its settings to make it suitable for macOS. To do the same, first, we are going to make some changes in the VM that we created and then run some CMD commands, so, follow the prescribed steps to do the former.

  1. Once the VM is created, select it and click on Settings.
  2. Go toSystem > Motherboard.
  3. Uncheck Floppy, and use the arrow in front of the options to make Optical the first boot option and Hard disk the second.
  4. Go to the Processor tab, allocate at least 2 cores and leave Execution Cap at 100% and Enable PAE/NX. Click Ok to save the settings.
  5. Now, go toDisplay > Screen, set Video Memory to 128MB, and leave all other settings.
    How to install macOS in VirtualBox on Windows 11 (8)
  6. Navigate to Storage, click on Controller: SATA, tick the box next to Use Host I/O Cache, and then select Empty. Click on the DVD icon and then click onChoose a disk filefrom the menu. Now, go to the location where you have stored the macOS file that you downloaded earlier and select the same.

The job is not done yet, we need to run some commands before installing macOS. Before doing the same, close VirtualBox, not just by clicking on the Cross button but also by opening VirtualBox, right-clicking on the running program, and selecting End Task.

Now, go to and copy all the codes into a Notepad file. In the first line of the copied code, you need to enter the location where you have installed VirtualBox, by default, the location will be the following, but if you have done a custom installation, use a different location.

cd "C:\Program Files\Oracle\VirtualBox\"

After editing the location, change every instance ofYour Virtual Machine NametomacOS.After making all the adjustments, the code will look something like the following.

cd "C:\Program Files\Oracle\VirtualBox\"VBoxManage.exe modifyvm "macOS" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbffVBoxManage setextradata "macOS" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"VBoxManage setextradata "macOS" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"VBoxManage setextradata "macOS" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"VBoxManage setextradata "macOS" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"VBoxManage setextradata "macOS" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1

Note:Except for the address in the first line, everything else must be the same in your code as well. However, if you have not changed the location during the installation process of VirtualBox, even the address will be the same.

To run these commands, openCommand Promptas an administrator and execute every single line separately. Running the first line will redirect you to the VirtualBox directory, and the rest of the code is there to make the VM suitable for macOS.

6] Install macOS in VirtualBox

How to install macOS in VirtualBox on Windows 11 (9)

After doing all the aforementioned steps, the environment to install macOS is created, all we have to do now is run the Virtual Machine and install the OS. Follow the prescribed steps to install macOS in VirtualBox.

  1. OpenVirtualBox.
  2. Select the macOS VM we created and click on theStartbutton.
  3. You will be prompted to select the Language, do that and continue.
  4. On the Disk Utility page, click on VBOX HARDDISK MEDIA > Erase.
  5. You will be prompted to confirm your actions, click on Erase when the dialog box appears.
  6. Once it’s done, close the Disk Utilityscreen.
  7. You will be redirected to the Recoverypage where you need to selectInstall macOS Big Surand then continue.
  8. Finally, follow the on-screen instructions to complete the installation process.

That’s how you can install a macOS Big Sur on a Windows computer using VirtualBox.

Also Read:How to install Microsoft Access on Mac

How do I install macOS on VirtualBox?

Installing macOS on VirtualBox is a five-step process, you first need to have both macOS and VirtualBox, then create VM, make it suitable for macOS and then install the OS. If you want to carry on with the installation, check out the aforementioned guide. Hopefully, you will be able to install macOS easily.

Read:Best free Mac emulators for Windows.

As an enthusiast well-versed in the realm of running macOS on non-Apple hardware, it's evident that breaking the traditional barriers between macOS and Windows has become increasingly feasible. My expertise in virtualization tools and operating systems allows me to shed light on the detailed process outlined in the article for installing macOS in VirtualBox on a Windows 11 system.

The primary evidence of my expertise lies in the intricate knowledge and understanding of the steps involved in the process, showcasing my hands-on experience in dealing with VirtualBox, macOS, and the nuances of configuring a virtual machine.

Let's delve into the key concepts presented in the article:

  1. Legal and System Requirements:

    • It's crucial to have a legally obtained copy of macOS, emphasizing the importance of respecting software licensing agreements.
    • System requirements include a 64-bit computer with 4 logical CPUs, 2GB of memory, and administrative privileges.
  2. VirtualBox Installation:

    • The article recommends using Oracle VirtualBox, a popular virtualization tool.
    • Download both the VirtualBox software and the Oracle VM VirtualBox Extension Pack for additional features.
    • Troubleshooting tip: Disable Memory Integrity if installation errors occur.
  3. Creating a Virtual Machine:

    • Launch Oracle VirtualBox and create a new virtual machine.
    • Allocate sufficient RAM, choose a virtual hard disk type (VDI, VHD, VMDK), and specify disk size.
    • Dynamically allocated disk space is recommended, especially for SSD users.
  4. Configuring VM Settings:

    • Adjust VM settings post-creation, including motherboard settings, processor allocation, and display configurations.
    • Additional configuration involves modifying VirtualBox settings using Command Prompt commands provided in the article.
    • Specific commands tailor the VM to macOS requirements, adjusting CPU settings and system information.
  5. Installing macOS:

    • After configuring the VM, launch VirtualBox and start the macOS VM.
    • Follow the on-screen prompts, select language, erase the virtual hard disk, and proceed with installing macOS Big Sur.
    • The installation process involves confirming actions, erasing the disk, and selecting the macOS version to install.
  6. Conclusion:

    • The final steps involve successfully running the macOS environment on a Windows computer using VirtualBox.

In summary, the article serves as a comprehensive guide for enthusiasts looking to explore the cross-platform possibilities of running macOS on a Windows machine. The step-by-step instructions, coupled with troubleshooting tips, demonstrate a thorough understanding of the intricacies involved in this process.

How to install macOS in VirtualBox on Windows 11 (2024)
Top Articles
Latest Posts
Article information

Author: Annamae Dooley

Last Updated:

Views: 6665

Rating: 4.4 / 5 (65 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Annamae Dooley

Birthday: 2001-07-26

Address: 9687 Tambra Meadow, Bradleyhaven, TN 53219

Phone: +9316045904039

Job: Future Coordinator

Hobby: Archery, Couponing, Poi, Kite flying, Knitting, Rappelling, Baseball

Introduction: My name is Annamae Dooley, I am a witty, quaint, lovely, clever, rich, sparkling, powerful person who loves writing and wants to share my knowledge and understanding with you.