Virtualbox Sierra Install

  • In this article, we will install macOS on Windows 10 using the Oracle VM VirtualBox program without the need for a Mac computer. In our previous articles, we installed High Sierra with Oracle and VMware software.
  • Install Macos High Sierra in Virtualbox On Windows 10 by Janeth Kent Date: osx virtualbox Whether you want to occasionally test a website in Safari, or try out a little bit of software in the Mac environment, having access to the latest version of macOS in a virtual machine is useful.

There are three major steps to install OS X High Sierra in VirtualBox in a Windows 10 host:

I’m trying to install macOS Sierra on VirtualBox, but can’t seem to make it work. For reference, here are the steps I took. Downloaded the Install macOS Sierra app from the App Store.

I used a Mac in the first two steps and completed the last two steps on the target Windows machine.

Downloading High Sierra

At the time of this writing, High Sierra was the most recent version of Mac OS X that could be installed in a VirtualBox virtual machine. However, High Sierra is no longer available for download from the Apple App Store.

High Sierra can still be downloaded from third-party websites. I downloaded a copy through this macOS High Sierra Patcher Tool for Unsupported Macs. Once the tool is downloaded, open it and use its built-in downloading feature. In the menu bar, select Tools > Download macOS High Sierra…

After a few minutes, you should have a copy of the High Sierra installer.

Preparing an ISO

Once you have a copy of the High Sierra installer, an iso file must be prepared to install it in the virtual machine. The only way I could get an iso that worked on VirtualBox was by using the script suggested in this superuser.com answer:

Note that this is the original script, and it was written assuming that the High Sierra installer was downloaded from the App Store into the Applications directory. Before running the script, make sure the installer variable points to the right location of your High Sierra installer.

Festingerbhw

Setting up the Virtual Machine

Switch to the Windows 10 machine in which you want to set up the virtual machine. Copy over the iso created in the previous step and make sure both VirtualBox and its extension pack are installed. If not, both can be downloaded from this page. With both pieces of software installed, create the virtual machine the following steps:

  1. Open VirtualBox
  2. Click New to create a new virtual machine.
  3. Enter the name for the new virtual machine; e.g., High Sierra, and click Next.
  4. Select the amount of RAM for your virtual machine, making sure you leave enough for Windows, and click Next.
  5. Choose Create a virtual hard disk now and click Create.
  6. Leave the default setting VDI (Virtual Disk Image) and click Next.
  7. Leave the default setting Dynamically allocated and click Next.
  8. Choose the size of the virtual hard disk and click Create.

At this point, the virtual machine has been created, but it requires extra configuration to install High Sierra from the iso file you created earlier.

  1. Select the High Sierra virtual machine you just created and click Settings (the button with the cog icon).
  2. On the side menu, click System.
  3. On the Motherboard tab of the right panel, uncheck the Floppy option from the Boot Order list.
  4. Switch to the Processor tab, set the number of Processor(s) to 2 or more and check the Enable PAE/NX option.
  5. On the side menu, click Storage.
  6. Under storage devices, click Empty.
  7. Under Attributes, click the optical disk icon.
  8. Select the High Sierra iso, and check the Use host I/O cache option.
  9. On the side menu, click Display.
  10. Set Video Memory to 128 MB.
  11. Click OK to save.

For the last configuration steps, close VirtualBox, open the Windows command line prompt, and run the following commands:

Finally, open VirtualBox again, select your High Sierra virtual machine, and click Start. This will boot your virtual machine with the High Sierra iso set up earlier. Simply follow the steps to install the operating system.

Virtualbox High Sierra Install

References

During a recent pentest, I needed to throw together a macOS virtual machine. Although there was lots of guides around the web, none seemed to work from start to finish. This post contains the steps I extracted from various resources in order to get a fully working High Sierra install within VirtualBox 5.

Step 1: Download The High Sierra Installer

To do this, you need to be on an existing macOS system. I was unable to find the download within the App Store itself, but following this link opened the App Store at the correct page: https://itunes.apple.com/us/app/macos-high-sierra/id1246284741?mt=12

After opening the aforementioned page in the App Store, start the download, but cancel the installation when it starts.

You can then verify that the installer has been downloaded by checking that '/Applications/Install macOS High Sierra.app' exists.

Step 2: Create a Bootable ISO

Virtualbox

Next, you need to create an ISO from the installer application that was downloaded in step 1.

Running the below commands will create an ISO on your desktop named HighSierra.iso:

Step 3: Creating the Virtual Machine

I experimented with a few different settings in regards to the CPU and RAM allocation. I didn’t find a combination that didn’t work, but create a VM with the following things in mind:

  • Ensure the name of the VM is MacOS (ensure to keep the same casing)
  • Ensure the type is Mac OS X and the version is macOS 10.12 Sierra (64-bit) (there is a High Sierra option too, but I chose Sierra by accident and it worked)
  • Untick Floppy in System > Motherboard > Boot Order
  • Use >= 4096 MB of memory in System > Motherboard
  • Use >= 2 CPUs in System > Processor
  • Use 128 MB of video memory in Display > Screen
  • Optionally enable 3D acceleration in Display > Screen
  • Remove the IDE device in Storage > Storage Devices and replace it with a SATA controller
  • Add a new hard disk device under the SATA controller with >= 60 GB of space
  • Ensure an optical drive is present under the SATA controller and mount the previously created ISO to it
  • Untick the Enable Audio option under Audio

After creating the virtual machine with the above configuration, hit OK and exit the settings screen. Now, a number of extra options need to be set.

If you’re on Windows, you’ll need to cd into the appropriate directory under the VirtualBox installation path to run VBoxManage. For Linux users, this should be in your PATH variable already:

After running the above commands, the VM should be ready to boot!

Step 4: Installation

This is where near enough everything I read stopped, despite there being one more problem in the way - UEFI.

Boot into the VM, go into Disk Utility and erase the virtual disk that you added to the machine.

After erasing the disk, start the installation procedure. After a short amount of time, it will reboot the VM.

Mac Os Sierra Virtualbox Installieren

Once it reboots, it’s going to boot back off the ISO again, once it’s done this, just shutdown the VM and eject the disk [the ISO] and then start the VM again to boot from disk.

On the next boot, it should boot into the installer that was copied to disk, but instead, you will be presented with a UEFI shell like below:

To continue the macOS installation, follow these steps:

  1. Type exit and hit return
  2. Select Boot Maintenance Manager and hit return
  3. Select Boot From File and hit return
  4. You will see two partitions, select the second partition and hit return
  5. Select macOS Install Data and hit return
  6. Select Locked Files and hit return
  7. Select Boot Files and hit return
  8. Select boot.efi and hit return

After following these steps, you will boot into the remainder of the macOS installation. From here, just follow the steps as per a regular macOS installation.

Virtualbox Sierra Installation

The next time you boot your virtual machine, you will not have to go through the UEFI shell; it should work without any further problems.

Step 5: Tweaking The Resolution

Virtualbox High Sierra Install

As there is no VirtualBox additions for macOS, the screen resolution won’t automatically change. If you know what resolution you wish to use, however, you can set it manually.

Virtualbox

Ensure the virtual machine is powered off, and then run the following command; replacing 1920x1080 with whatever resolution you would like to use:

After running the above command, the next time you boot the machine, it will use the resolution specified.

Now, you should have a fully working macOS virtual machine!

References

The information found in this post was pieced together from the following sources: