【Steps】How to install macOS Big Sur in VirtualBox on Windows
- Zero, software environment prerequisite preparation
- 1. Ready to install
-
- 1. Install the VirtualBox software on your computer. After that, click on the VirtualBox extension pack file you downloaded
- 2. Clicking on the extension pack will open VirtualBox on Windows and a window will pop up prompting you to install it. Click Install to complete this step
- 3. You have successfully installed the extension pack. You are now ready to create a virtual machine. Click New in the VirtualBox software
- 4. Here, provide a valid name for your virtual machine. For example, "macOS Big Sur" is as shown below. Make sure Type is set to Mac OS X and select the 64-bit version. When you're done, click "Expert Mode" to continue to the next step.
- 5. In this step, you will select the memory size or RAM that will be allocated for the virtual machine. It is recommended to set half of the total system RAM for the guest operating system. Make sure "Create a virtual hard disk now" is selected, then click Create.
- 6. Now, use the slider to set the virtual hard disk size to your liking. Although it depends on how much storage space is available on your computer, we recommend that you allocate 100 GB to your virtual machine. Select "VMDK (Virtual Machine Disk)" for the hard disk file type, and click "Create".
- 7. Now, click on Settings in VirtualBox as shown in the screenshot below
- 8. Go to the "System" category and click "Processor" in the top menu. You will be able to use the slider to adjust processor allocation. It is recommended to allocate half the number of processor cores to the virtual machine. Remember, if you have a 4-core/8-thread processor, it will show up as 8 CPU cores in VirtualBox. In this case, you can set 4 cores for the processor allocation.
- 9. Next, click on Display in the left pane and move the slider all the way to the right to Video Memory.
- 10. Now, go to the Storage category and click on Empty under Storage Devices. Then, click the disc icon on the right and select "Create Virtual Disc" from the drop-down menu.
- 11. You can click Add to browse the macOS Big Sur ISO file downloaded using File Explorer. Select the ISO file and click Select.
- 12. Now, click OK to exit the VirtualBox settings and close the VirtualBox application.
- 13. Open the Command Prompt on your PC. Be sure to run Command Prompt as an administrator.
- 14. Run line by line
- 15. Now, open VirtualBox again and click Start. Wait a few minutes for VirtualBox to perform its operations. You should now be able to see the progress of the macOS installation in VirtualBox. This will take a few minutes to complete, but once it's done, you can follow the onscreen instructions to set up your Mac, similar to setting up any new Apple device.
- 2. Installation
-
- 16. A command line will be prompted during installation, just click exit to exit
- 17. Then click Boot Maintenance Manager → Boot From File → , select the first one, then enter the following directory, and open boot.efi
- 18. Select→→→boot.efi
- 19. Entered the installation interface
- 20. Then select the Mac hard disk. If your hard disk has dual systems installed, then pay attention to select the partition of the Mac system, and then click [Erase].
- 21. Then it will prompt whether to erase 【APPLE SSD AP0256M Media】? We select [APFS format] and [GUID partition map] and click the [Erase] button below.
- 22. Click Reinstall
- 23. Click Agree
- 24. Select Disk
- 25. Wait...
- 26. Wait...
- 27. Wait...
- 28. Victory is in sight...
- 29. Hmmm! Niceeeee~...
- 3. Set the screen resolution
- 4. Notes
- 5. Article References
-
- Reference 1: [https://www.biaopan8.com/9639.html](https://www.biaopan8.com/9639.html).
- 参考引用2:[https://blog.csdn.net/qiuchenjun/article/details/121171954](https://blog.csdn.net/qiuchenjun/article/details/121171954).
- Reference 3: [https://zhuanlan.zhihu.com/p/304561779](https://zhuanlan.zhihu.com/p/304561779).
- In addition, the accompanying text cites references (almost no citations, but readers can use them as references): [https://zhuanlan.zhihu.com/p/165608087](https://zhuanlan.zhihu.com/p/165608087).
Zero, software environment prerequisite preparation
Virtual machine version: VirtualBox6.1.26, and VirtualBox Extension Pack, download here
macOS version: macOS-Big-Sur-11.6.1-20G224.iso,
Download link: Link: https://pan.baidu.com/s/1JH0MWtfHL4sJmlwEP36hCg?pwd=u95n Extraction code: u95n
1. Ready to install
1. Install the VirtualBox software on your computer. After that, click on the VirtualBox extension pack file you downloaded
https://download.virtualbox.org/virtualbox/6.1.12/Oracle_VM_VirtualBox_Extension_Pack-6.1.12.vbox-extpack
2. Clicking on the extension pack will open VirtualBox on Windows and a window will pop up prompting you to install it. Click Install to complete this step
3. You have successfully installed the extension pack. You are now ready to create a virtual machine. Click New in the VirtualBox software
4. Here, provide a valid name for your virtual machine. For example, "macOS Big Sur" is as shown below. Make sure Type is set to Mac OS X and select the 64-bit version. When you're done, click "Expert Mode" to continue to the next step.
5. In this step, you will select the memory size or RAM that will be allocated for the virtual machine. It is recommended to set half of the total system RAM for the guest operating system. Make sure "Create a virtual hard disk now" is selected, then click Create.
6. Now, use the slider to set the virtual hard disk size to your liking. Although it depends on how much storage space is available on your computer, we recommend that you allocate 100 GB to your virtual machine. Select "VMDK (Virtual Machine Disk)" for the hard disk file type, and click "Create".
7. Now, click on Settings in VirtualBox as shown in the screenshot below
8. Go to the "System" category and click "Processor" in the top menu. You will be able to use the slider to adjust processor allocation. It is recommended to allocate half the number of processor cores to the virtual machine. Remember, if you have a 4-core/8-thread processor, it will show up as 8 CPU cores in VirtualBox. In this case, you can set 4 cores for the processor allocation.
9. Next, click on Display in the left pane and move the slider all the way to the right to Video Memory.
10. Now, go to the Storage category and click on Empty under Storage Devices. Then, click the disc icon on the right and select "Create Virtual Disc" from the drop-down menu.
11. You can click Add to browse the macOS Big Sur ISO file downloaded using File Explorer. Select the ISO file and click Select.
12. Now, click OK to exit the VirtualBox settings and close the VirtualBox application.
13. Open the Command Prompt on your PC. Be sure to run Command Prompt as an administrator.
14. Run line by line
虚拟框代码:
cd "D:\VirtualBox\"
.\VBoxManage.exe modifyvm "macOS Big Sur" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
.\VBoxManage setextradata "macOS Big Sur" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
.\VBoxManage setextradata "macOS Big Sur" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
.\VBoxManage setextradata "macOS Big Sur" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
.\VBoxManage setextradata "macOS Big Sur" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
.\VBoxManage setextradata "macOS Big Sur" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
.\VBoxManage modifyvm "macOS Big Sur" --cpu-profile "Intel Xeon X5482 3.20GHz"
15. Now, open VirtualBox again and click Start. Wait a few minutes for VirtualBox to perform its operations. You should now be able to see the progress of the macOS installation in VirtualBox. This will take a few minutes to complete, but once it's done, you can follow the onscreen instructions to set up your Mac, similar to setting up any new Apple device.
2. Installation
16. A command line will be prompted during installation, just click exit to exit
17. Then click Boot Maintenance Manager → Boot From File → , select the first one, then enter the following directory, and open boot.efi
18. Select→→→boot.efi
19. Entered the installation interface
20. Then select the Mac hard disk. If your hard disk has dual systems installed, then pay attention to select the partition of the Mac system, and then click [Erase].
21. Then it will prompt whether to erase 【APPLE SSD AP0256M Media】? We select [APFS format] and [GUID partition map] and click the [Erase] button below.
Name: Name the partition according to your needs.
Format: Select [APFS] or [Mac OS Extended (Journaled)]. Under normal circumstances, "Disk Utility" automatically selects a compatible format.
Solution: We select [GUID Partition Map].
22. Click Reinstall
23. Click Agree
24. Select Disk
25. Wait...
26. Wait...
27. Wait...
28. Victory is in sight...
29. Hmmm! Niceeeee~…
3. Set the screen resolution
macOS screen resolution code for VirtualBox:
d "D:\VirtualBox\"
.\VBoxManage setextradata "macOS Big Sur" VBoxInternal2/EfiGraphicsResolution 1920x1080
附:
640x480
800x600
1024x768
1280x1024
1440x900
1920x1200
1920×1080 (FHD)
2560×1440 (QHD)
2048×1080 (2K)
The next time you start the virtual machine, VirtualBox will load macOS at the specified screen resolution.
4. Notes
Don't expect your macOS virtual machine to run anywhere as fast as an actual Mac or Windows running locally on your computer. Expect a slow experience. The performance of the virtual machine will also depend heavily on your system hardware.