Skip to content

Latest commit

 

History

History
120 lines (60 loc) · 4.74 KB

installing-macos.md

File metadata and controls

120 lines (60 loc) · 4.74 KB

Installing macOS

Now that we've made the virtual machine, it's time to install macOS onto it.

Start the virtual machine.

Your virtual machine should start up. If you are greeted by this message, press "No". This is only happening because there's no ISO selected in our virtual DVD drive.

As soon as you see the VMware logo pop up on a black background, immediently hit any key to enter the BIOS.

Select "EFI VMware Virtual SATA Hard Drive (2.0)" and press enter. This is our Catalina installer that we are booting.

The Apple logo should pop up with a moving status bar, like a real mac. This will take a few minutes to boot, so sit back.

The language prompt will come up. Select your language and continue.

Select "Disk Utility" and press "Continue".

Select "VMware Virtual SATA Hard Drive Media" under "Internal" hard drive.

Select "Erase" in Disk Utility. Name your drive whatever you want. I'm naming my drive "Catalina". Change "Format" to APFS and press "Erase".

Press "Done" and close Disk Utility.

Select "Reinstall macOS" and press "Continue".

When the installer opens, press "Continue".

Agree to the terms and conditions.

Select the hard drive that we erased earlier with Disk Utility and press "Install".

Sit back and let it install. This will take about 5 mins, depending on your machine. Keep an eye on the virtual machine since it auto-restarts.

If the VM restarts and you get a 'CPU is disabled' error, close the error window, attempt to close the VM window, select 'Power Off' and reopen VMware.

Start your VM, enter the BIOS and boot back into the Catalina installer.

Once the installer has booted, click on "Utilities" in the Finder bar and select "Terminal".

Time to do the pre-install command. Type this command in Terminal (replacing "Catalina" with whatever you named your hard drive earlier):cp -rf /Volumes/CatalinaAMD/System/Library/PrelinkedKernels/prelinkedkernel /Volumes/Catalina/"macOS Install Data"/"Locked Files"/"Boot Files"/

Reboot the VM via the Apple logo and leave it to install. Do not restart via VMware itself. The installation may take a while.

If the VM restarts and you get a 'CPU is disabled' error, close the error window, attempt to close the VM window, select 'Power Off' and reopen VMware.

Reboot the VM back into the BIOS, select the installer and open Terminal once again. Time to do the post-install commands. (replacing "Catalina" with whatever you named your hard drive earlier):

`cp -rf /Volumes/CatalinaAMD/System/Library/Kernels/kernel /Volumes/Catalina/System/Library/Kernels/

rm -rf /Volumes/Catalina/System/Library/PrelinkedKernels/prelinkedkernel

kextcache -u /Volumes/Catalina/`

For that last command, this is where the results may differ for some people. If you are stuck on "/Volumes/Catalina locked; waiting for lock", leave the VM alone for up to 5 minutes and it should start.

You may get errors like "Warning: /Volumes/Catalina/AppleInternal/Library/Extensions: No such file or directory" or even really fast scrolling text, like shown on the screenshot below. Ignore those errors, the prelinkedkernel should still rebuild just fine.

If you get a "KernelCache ID" at the end of that, that means that the prelinkedkernel rebuilt succesfully. Sometimes you don't get an ID at the end. That's fine too, macOS does that sometimes. As long as you don't get "Error 107", which means it failed to rebuild the prelinkedkernel.

Close Terminal and reboot into your hard drive. The VM should boot into the setup now. Go through the setup process but DO NOT SIGN IN WITH YOUR APPLE ID, choose "Set Up Later".

If you get a notification about software updates, click "Remind Me Tomorrow".

You've successfully installed macOS in a virtual machine. Time to install VMware Tools onto it.