Clean Install macOS Mojave On Windows With VirtualBox

Published: 08 June 2019
on channel: TechFixFlix
47k
396

In this tutorial we perform a clean installation of macOS Mojave on a Windows P.C. using VirtualBox. Unlike most tutorials which are based upon pre-built virtual hard disc files, we create our own installation .iso using Terminal on a physical Mac, having first obtained the full version of the Mojave installer using third party software to download it from the Mac App Store. We then transfer the created .iso to P.C., using it as the installation media for our virtual Mac. By creating our own installation media, we can have greater confidence in the integrity of the foundations upon which our virtual Mac is built. We will overcome the challenges presented by this method, including the lack of direct download for the full Mojave installer, the apparent absence of a hard drive on which to install, a boot loop which would otherwise prevent the installation, and problematic keyboard and mouse support.

Tutorial resources in chronological order:

1 )..Mojave Patcher Tool (To be run on macOS):


2 )..Five commands to be entered in Terminal (on macOS):

First command: hdiutil create -o /tmp/Mojave.cdr -size 7316m -layout SPUD -fs HFS+J

Second command: hdiutil attach /tmp/Mojave.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build

Third Command: asr restore -source /Applications/Install\ macOS\ Mojave.app/Contents/SharedSupport/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase

You should now eject the macOS Base System as shown in the video.

Fourth Command: hdiutil convert /tmp/Mojave.cdr.dmg -format UDTO -o /tmp/Mojave.iso

Fifth Command: mv /tmp/Mojave.iso.cdr ~/Desktop/Mojave.iso

3 )..Eight commands to be entered using an elevated command prompt (in Windows):

N.B. The first command can be amended to match the location of your VirtualBox installation if you have customised your installation path.

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

Second command: VBoxManage.exe modifyvm "Mojave" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff

Third command: VBoxManage setextradata "Mojave" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"

Fourth command: VBoxManage setextradata "Mojave" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"

Fifth command: VBoxManage setextradata "Mojave" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"

Sixth command:
VBoxManage setextradata "Mojave" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"

Seventh command: VBoxManage setextradata "Mojave" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1

N.B. The values in the eighth command, 1920 and 1080, can be amended to match your preferred screen resolution.

Eighth command: VBoxManage setextradata "Mojave" "VBoxInternal2/EfiGraphicsResolution" "1920x1080"

Users of AMD processors (only) should add the following command, which convinces the virtual Mac that it is running on the Intel platform:

vboxmanage modifyvm "Mojave" --cpu-profile "Intel Core i7-6700K"

This assumes that your VM is named "Mojave." If it is not, change the name between the quotation marks, whilst keeping the marks themselves.

4 ).. APFS support. At the time this video was published, VirtualBox did not offer native support for APFS volumes, requiring us to add this via third party options. Following the publication of this video, this support was added. In practice, this means you can enrirely skip the section of the video from 14:45 to 21:17, hugely simplifying the installation process.

5 )..VirtualBox Extensions pack download:


Video links: We wish to give credit and thanks to the following articles, without which this project would not have been realised:

Downloading full size Mojave installer:


Commands entered in Terminal / Command Prompt / EFI Shell:


APFS support:

EFI Shell overview:

Extensible Firmware Interface (EFI) Basic Instructions:


VirtualBox screen resolution for macOS guests:


Related tutorials:

Clean Install macOS High Sierra On Windows 10 PC With VirtualBox


Install Oracle VM VirtualBox


Follow on Twitter:

More YouTube tutorials:


Watch video Clean Install macOS Mojave On Windows With VirtualBox online without registration, duration 26 minute 24 second in high hd quality. This video was added by user TechFixFlix 08 June 2019, don't forget to share it with your friends and acquaintances, it has been viewed on our site 47 thousand once and liked it 39 people.