Install Mac OS on a virtual machine using Virtual Box on a Mac OS Host.

Hasanka Amarasinghe
4 min readOct 12, 2019

--

Click here to EARN MONEY BY CLICKING ADS NOW!

Install macOS on Virtual Box

VirtualBox

Go to https://www.virtualbox.org/wiki/Downloads and download last virtual box package for you OS.

MacOS Sierra ISO

Get it here https://drive.google.com/drive/folders/0Bx7BAMlD-ZOQSTc2NmpDU2g2WDA

macOS Mojave 10.14.3 HFS (18D109) February 7, 2019

  • macOS Mojave 10.14.3 HFS (One Full — Google Drive): Download Now
  • macOS Mojave 10.14.3 HFS (6 of 6 — Google Drive): Download Now
  • macOS Mojave 10.14.3 HFS (One Full — MediaFire): Download Now
  • macOS Mojave 10.14.3 HFS (6 of 6 — MediaFire): Download Now

macOS Mojave 10.14.3 APFS Version for VirtualBox

Let Us Begin :D

This guide is for Mac OS hosts for our Windows host guide click here

Open VirtualBox and start creating new VM for OSX in expert mode(by default).

Name your new machine as “MacOS”.

Choose last version from possible versions. Currently is “Mac OS X 10.11 El Capitan (64-bit)”. Or High Sierra if you want to install Mojave because thats what the latest update of virtal box is still giving out. :/

Set memory size to 4096 MB.

Choose “Create a virtual hard disk now”(by default).

Click “Create”

On next step all options are good for our task. Just click “Create”.

Virtual machine is now created and ready to launch

In list of VMs open context menu for “MacOS” VM and choose “Settings”.

On “System/Motherboard” set “Boot order” like on screenshot

On “System/Processor” increase processors count to maximum green value.

On “Display/Screen” increase “Video Memory” to 128 MB

On “Storage” delete “Empty” controller and create “Add SATA Controller”. Add optical drive to new controller. Choose ISO file from step dependencies.

On “Audio” disable “Enable audio” checkbox

On “Network” use default options. Click on “Port forwarding” and add new row.

Close VM settings and open console in host machine and run next commands:

VBoxManage modifyvm “MacOS” — cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff

VBoxManage 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

VBoxManage setextradata “MacOS” VBoxInternal2/EfiGopMode 4

Start VM and start to install MacOS

When installation request for disk start “Disk Utility”

Erase “VBOX HARDDISK”

And choose it

After installation enable “Remote Login” in MacOS virtual machine.

Open “System Preferences/Sharing” and enable “Remote Login” checkbox. Set “Allow access for” for “All users”. Check address below “Remote Login: On”. It is look like “ssh user@10.0.2.15”. Check this IP with “Guest IP” in “Settings/Network/Port forwarding” for virtual machine. They must be equal.

Finish!

Now you can to connect via ssh to your local port.

ssh user@127.0.0.1 -p2222

--

--

Hasanka Amarasinghe
Hasanka Amarasinghe

Written by Hasanka Amarasinghe

Blogs on latest security events + CTF writeups

No responses yet