How to install Mac OS X Sierra 10.12 on VirtualBox?

Years ago I wrote a post for installing Mac OS Yosemite on Virtual Box. A new version of Mac OS X with code name Sierra has been just published therefore I would like to update my post for installing this new version on Virtual Box with the host of Windows 10.

1. Steps

1. Download pre-installed VirtualBox image from following link.
Mirror 1:
https://drive.google.com/drive/folders/0B08CMVb2YK_EaTBKNUV2LWVVOUU

Mirror 2:
https://drive.google.com/open?id=0B52GrzXI5cXhYjduY0V0N0NENW8
For mirror 2, use HjSplit to join the files back. It’s about 5GB. HjSplit is also in Google Drive folder.

2. Extract macOS 10.12 Sierra by TechReviews.rar file to a folder, you’ll get a list of these files

List of files

3. In VirtualBox, create a new machine with following settings

VirtualBox settings

VirtualBox Settings

4. For Hard drive, browse to macOS 10.12 Sierra by TechReviews.rar file which can be found in extract folder before.

Hard disk

5. Click Create. Right click on the new machine and select Settings. Be sure that Floppy Disk is disabled.

System

6. Set number of processors to the max of real processors you have, it’ll speed up the installation. I have a dual core so I set the number of processors to 2.

CPU

7. In Display settings, set Video Memory to max 128MB.

Video memory

7+. Start your cmd and execute following code. Please adjust the script with your installation path of your VirtualBox and the name of your virtual machine (in my case it is macOS Sierra)

cd "C:\Program Files\Oracle\VirtualBox\"
VBoxManage.exe modifyvm "macOS Sierra" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata "macOS Sierra" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata "macOS Sierra" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "macOS Sierra" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata "macOS Sierra" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "macOS Sierra" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1

8. Start your machine. It will take a while depending on the power of your real CPU and hard disk to set up the installation process.

Start up

9. When boot finishes, you should land on the welcome screen for setting up Mac OS X. The following images show my sample settings, you can change them if you want.

Start up
Start up
Start up
Start up
Start up
Start up
Start up
Start up
Start up

10. Create account takes a while. Just wait until you’re forwarded to the login screen.

Start up

11. Login with your new created account. You’ll be asked for some more settings before going to the main screen of Mac OS X.

Start up
Start up
Start up
Start up
Start up

12. Done. Enjoy your hackintosh.

26 thoughts on “How to install Mac OS X Sierra 10.12 on VirtualBox?”

  1. I tried this and it just keeps continuously rebooting before getting to the startup screen. There don’t appear to be any meaningful errors except “Previous shutdown cause 3”

  2. @osxinterest: Some readers said that maybe the chipset should be PII* to get system works. If your system doesn’t work, try to change chipset to PII*.

  3. @Massimiliano: Opps, thank you for your comment. We need to execute some commands to change CPUID. I update my post with step 7+. You don’t need to change chipset anymore.

  4. I tried using this guide on a VBox 4.3 install on my Ubuntu headless server. Everything I do with VM’s is via RDP. You’re guide works great, and gets me to the setup screen, but I can’t issue any input. No mouse, no keyboard.

    Any advice? Thanks!

  5. I don’t think I can. There doesn’t seem to be guest additions for Mac OSX, and I can’t install it within the VM anyways because I have no input.

    I’m kinda stumped :(.

  6. @TMan459: I take a look. There is no Guest Addition for Mac OSX. You won’t get your mouse and keyboard work with Virtual Box over RDP.

  7. I am having this error while running the machine :

    Failed to open a session for the virtual machine macOS Sierra.
    Configuration error: Invalid config value(s) for the EFI device (VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES).

    Result Code: E_FAIL (0x80004005)
    Component: ConsoleWrap
    Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

  8. @Wings : I think it works.
    @Maverick: At steps 5, uncheck Enable EFI. When it still doesn’t work, try with chipset PII*. Try combination of these 2 options.

  9. @why me: At steps 5, uncheck Enable EFI. When it still doesn’t work, try with chipset PII*. Try combination of these 2 options.

    Read the comments above to see if there’s a solution for you.

  10. I can’t run the machine for the first time, it shows an error and change the state to “guru meditation”. I tried every combination enabling EFI and changing the chipset.

    In VBox.log.2 i have these lines

    00:00:03.985653 VMSetError: F:\tinderbox\win-5.0\src\VBox\Devices\EFI\DevEFI.cpp(2160) int __cdecl efiConstruct(struct PDMDEVINS *,int,struct CFGMNODE *); rc=VERR_CFGM_VALUE_NOT_FOUND
    00:00:03.985722 VMSetError: Configuration error: Querying “UUID” failed
    00:00:03.985787 PDM: Failed to construct ‘efi’/0! VERR_CFGM_VALUE_NOT_FOUND (-2103) – Value not found.
    00:00:04.225664 ERROR [COM]: aRC=E_FAIL (0x80004005) aIID={872da645-4a9b-1727-bee2-5585105b9eed} aComponent={ConsoleWrap} aText={Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)}, preserve=false aResultDetail=0
    00:00:04.226841 Console: Machine state changed to ‘PoweredOff’
    00:00:04.366864 Power up failed (vrc=VERR_CFGM_VALUE_NOT_FOUND, rc=E_FAIL (0X80004005))
    00:00:04.662496 GUI: UIMachineViewNormal::resendSizeHint: Restoring guest size-hint for screen 0 to 800×600

    Do you have a hint? Thank You in advance

  11. @Gustavo Quinteros: Error seems to be because of EFI settings. If you already tried all combinations of EFI and Chipset (4 cases) and it still doesn’t help then just give up. The VM won’t work on your machine.

  12. hey I couldn’t make the app store work for some reason. Were you able to? Can you help please, I’m quite new to virtualbox.

    thanks

  13. I am having resolution issues that guest additions would normally handle. Anyone have any ideas on how to get real full screen rather than just a small box?

  14. Gives me a Guru Meditation with EFFI on and a session error without EFFI, this error is:

    “Failed to open a session for the virtual machine macOS Sierra.

    Configuration error: Querying "UUID" failed (VERR_CFGM_VALUE_NOT_FOUND).

    Result Code: E_FAIL (0x80004005)
    Component: ConsoleWrap
    Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}”

  15. Exists some configuration to fix resolutions, and fix to allow see local network? I see vmware and vware allows me to view my HD and share folders in guest and host, and not in virtualbox, exists some fix?

Leave a Reply

Your email address will not be published. Required fields are marked *