These steps assume that you already have purchased OS X 10.9 through the Mac App Store. Open the Mac App Store. Press the Alt Key and hold it during the following steps. Click at the purchased tab.
To start, we’ll need to create an ISO file of macOS High Sierra’s installer, so we can load it in VirtualBox on our Windows machine. Grab your borrowed Mac, head to the Mac App Store, search for Sierra, and click “Download.” When the process is done, the installer will launch—that’s okay, just close it with Command+Q. If you want to run OS X inside VirtualBox on Windows. How to Run Mac OS X Inside Windows Using VirtualBox. Free program VirtualBox. Apart from VirtualBox, you'll also need an OSX86 ISO.
Scroll to OS X Mavericks. Click at the Download button. If you already have OS X Mavericks installed, you will be asked if you want to continue.
Click continue. Now, you can release the Alt Key To get the dmg file: 1. Go to the downloaded install application in the applications folder 2. Control+click on the installer, and choose Show Package Contents, and choose Show Package Contents. Navigate to Contents Shared Support 4.
The file you are looking for is called InstallESD.dmg If you need a.iso file, you have to.
MacOS VirtualBox VM Instructions Current macOS version: High Sierra (10.13), tested with VirtualBox 5.2.16 r123759 To build a VM running macOS, follow the directions below:. Download the installer from Mac App Store (it should be available in the 'Purchases' section if you've acquired it previously). The installer will be placed in your Applications folder. (Should work for Yosemite, El Capitan, Sierra and High Sierra, Mojave - 10.10-10.14.). Note: On newer hardware, you might not be able to download older OS releases that Apple doesn't support on the newer hardware (e.g. The 2016 MacBook Pro can only download 10.12 Sierra or later). In this case, you need to use an older Mac to download the older OS.
Make the script executable and run it: chmod +x prepare-iso.sh &&./prepare-iso.sh. If the script fails to find the installer you can specify its path as the first parameter. By default, the output is saved as.iso on the Desktop. You can change this using the second parameter.
Example:./prepare-iso.sh /Applications/Install macOS Sierra 2.1 Beta 2.app sierra-2.1-b2. Open VirtualBox and create a new VM. Set:. name: Choose a name. type: Mac OS X. version: Mac OS X (64-bit). Follow the rest of the VM creation wizard and either leave the defaults or adjust to your liking.
Go into the Settings for the new VM you created and: 1. Under 'Display', increase the Video Memory to at least 128MB, otherwise macOS might not boot correctly, and display performance will be abysmal. Under 'Audio', uncheck 'Enable Audio', otherwise the VM may display 'choppy' performance. In Terminal, run the command VBoxManage modifyvm VMNAME -cpuidset 00006a9 0000201 178bfbff (where VMNAME is the exact name of the VM set in step 4) so the VM has the right CPU settings for macOS. Click 'Start' to boot the new VM. Select the iso created in step 2 when VirtualBox asks for it.
In the installer, select your preferred language. Open Disk Utility and format the volume: 1. Go to Utilities Disk Utility, select the VirtualBox disk, and choose Erase to format it as:. For macOS Storage. VirtualBox uses the left command key as the 'host key' by default. If you want to use it for shortcuts like command+c or command-v (copy&paste), you need to remap or unset the 'Host Key Combination' in Preferences - Input - Virtual Machine.
The default Video Memory of 16MB is far below Apple's official requirement of 128MB. Increasing this value may help if you run into problems and is also the most effective performance tuning. Depending on your hardware, you may also want to increase RAM and the share of CPU power the VM is allowed to use. When the installation is complete, and you have a fresh new macOS VM, you can shut it down and create a snapshot. This way, you can go back to the initial state in the future.
I use this technique to test the, which I use to set up and configure my own Mac workstation for web and app development. If for High Sierra you can not find the VirtualBox disk created inside the Disk Utility select View - Show All Devices and format the newly visible device. If for High Sierra you encounter boot / EFI problems, restart the VM and hit F12 to get to the VirtualBox boot manager. Select EFI In-Terminal Shell and run: Shell fs1: FS1: cd 'macOS Install Data' FS1: macOS Install Data cd 'Locked Files' FS1: macOS Install Data Locked Files cd 'Boot Files' FS1: macOS Install Data Locked Files Boot Files boot.efi. If keyboard and mouse do not work inside the VM:. Ensure the VirtualBox Extension Pack is installed. In the VM settings, under Ports USB, select USB 3.0 (xHCI) Control.
Larger VM Screen Resolution To control the screen size of your macOS VM:. Shutdown your VM.
Run the following VBoxManage command: VBoxManage setextradata VMNAME VBoxInternal2/EfiGopMode N Replace VMNAME with the name of your Virtual Machine. Replace N with one of 0,1,2,3,4,5. These numbers correspond to the screen resolutions 640x480, 800x600, 1024x768, 1280x1024, 1440x900, 1920x1200 screen resolution, respectively. The video mode can only be changed when the VM is powered off and remains persistent until changed. See more details in.
Notes. The code for this example originally came from VirtualBox forums and especially. Subsequently updated to support Yosemite - Sierra based on, and High Sierra and beyond based on the work of a number of contributors (thanks!). To install command line tools after macOS is booted, open a terminal window and enter xcode-select -install (or just try using git, gcc, or other tools that would be installed with CLI tools). Author This project was created in 2015.