Install macOS 10.15 Catalina system on VirtualBox7.0 of Windows 11 PC

If you want to run any system in VirtualBox, you need to have the corresponding ISO image file, so first we need to obtain the ISO image file. The following first introduces how to obtain the image file:

Step 1: Download the latest Catalina system from the Mac App Store

If the Catalina system cannot be downloaded, skip directly to the end of Step 2 to download the Catalina ISO file

Step 2: Create a macOS Catalina ISO file

Find the macOS Catalina.App file you downloaded, open the terminal, and cd to the directory of the download system:

Create a Catalina virtual disk image (a dmg file will be generated)

hdiutil create -o ./temp -size 8000m -layout SPUD -fs HFS+J

Mount the virtual image to the mac system

hdiutil attach ./temp.dmg -noverify -mountpoint /Volumes/install_build

Create an installation image with macOS Createinstallmedia Tool

sudo Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build

Uninstall Catalina

hdiutil detach /Volumes/Install\ macOS\ Catalina/

Convert temp.dmg to a cdr file, a cdr file will be generated

hdiutil convert temp.dmg -format UDTO -o Catalina

move and rename

mv Catalina.cdr Catalina.iso

So far the ISO image file has been created, here you can download what I have made:

Link: https://pan.baidu.com/s/1oCIbO6tMwcwmFxVZc_SfZA Extraction code: cz6j

ps I started practicing from this place. Skip the steps above to create an iso image.

The resource is divided into 8 sub-volumes through the 7z compression tool. After downloading, refer to the steps:

Download the 7z compression tool: Download

All the sub-volumes are in one folder, just select the one numbered .001 (that is, Catalina.7z.001) to decompress (choosing other decompression will report an error)

On the Windows platform, open the terminal, enter the directory where the sub-volume is located, and enter: copy /b Catalina.7z.0** Catalina.7z, this command is to merge the sub-volumes, and decompress Catalina.7z after merging

On the linux platform, open the terminal, enter the directory where the sub-volumes are located, and enter: cat Catalina.7z.0** > Catalina.7z, this command is to merge the sub-volumes, and decompress new.7z after merging

Step 3: Install VirtualBox and Extension Pack

VirtualBox: download, install

Extension Pack: Download, Install

Step 4: Create a new virtual machine

After successfully installing VirtualBox and preparing the ISO image file, you can create a virtual machine

Open VirtualBox, click the New button, select the configuration according to the figure below, and the memory configuration is 4G

When creating the disk capacity, it must be greater than 25G, otherwise the system cannot be installed later (set 100G here)

Step 5: Set up the virtual machine configuration

Select the created virtual machine, click Settings, first set the System,

Then select Processor, set the CPU to 4 cores (generally set to half of your own system),

Next select Display and set it to 128M

The last step is to set the USB, set it to USB 3.0 (xHCI) Controller, the default is 2.0

Step 6: Add ISO image and boot disk

Open Storage, click the CD/DVD icon, and select the "catalina.iso" image

Click the "Add Virtual Disk" button, select "Choose existing disk", then open the file and select the startup disk "VirtualBox Boot Disk" you downloaded.

VirtualBox Boot Disk link: https://pan.baidu.com/s/1uzw6B4hc5s5knEUCoYvi7g Extraction code: ue23

Notice:

My disk order:
VirtualBox boot.vmdk: STAT port0 ( Solid-state Drive (selected), Hot-pluggable (selected) ))
Catalina.vdi : SATA port1
Catalina.iso: SATA port2
After executing the Step7 command, go directly to the installation interface. No need to enter in the middle

Step 7: Add the following code to VirtualBox using Command Prompt

Before running the command prompt, shut down the virtual machine, and then run the command prompt with admin privileges.

code:

# Catalina为你创建虚拟机的名字
cd "C:\Program Files\Oracle\VirtualBox\"
VBoxManage.exe modifyvm "Catalina" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage.exe setextradata "Catalina" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage.exe setextradata "Catalina" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage.exe setextradata "Catalina" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage.exe setextradata "Catalina" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage.exe setextradata "Catalina" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 0
The original text is this
VBoxManage setextradata "Catalina" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
I will report an error here and change it to 0

Step 8: Install MacOS catalina to the virtual machine

Re-open the virtual machine and open the created catalina, you will see the picture below, which lasts about 3 or 4 minutes (if it keeps looping, there is a problem with the installation)

When you see the macOS Utilities page, select "Disk Utility"

Then select the virtual hard disk and click "Erase" to format

Finally return to the macOS Utilities page and click Install macOS

After the installation is complete, turn off the virtual machine, click Settings, and remove the "Catalina.iso" image file from Storage

Open the virtual machine, press the "Esc" key to enter UEFI Shell mode, type "install.nsh" and press the Enter key

After the installation is complete, close VirtualBox

Step 9: Run MacOS catalina

If the above steps are completed successfully, you can open your macOS. But some system initialization operations must be performed

At this point, all the installation steps are over, and you can use the macOS system.

————————————————

Reference: https://blog.csdn.net/lb245557472/article/details/103565752

How to Install macOS Catalina on VirtualBox on Windows - wikigain

Guess you like

Origin blog.csdn.net/asdcls/article/details/129481211