How to Install macOS Sierra 10.12 on VirtualBox?

How to Install macOS Sierra On VirtualBox on Windows- VMDK

In our previous post, we have shown you how to install macOS Sierra 10.12 on VMware, and now in this article, I’m going to show you how to install macOS Sierra 10.12 on VirtualBox on Windows 10. Apple has announced the next version of its Mac operating system “macOS Sierra”. Of course, the real change is that, after fifteen years, Apple has finally ditched the “OS X” moniker. All things old are new again, and the new operating system will only call “macOS.” So, I’m not going to discuss anymore regarding Apple’s new release “macOS Sierra” instead; I’m going to walk you through installing macOS Sierra on VirtualBox on Windows operating system.

Update: Before we get started, let me mention that several versions of macOS have come out since macOS Sierra and we have already created a step by step guides to install them on VMware or VirtualBox. So if you want to install the newer versions of macOS then please check out the links below:

System Requirements

Before we start, make sure to read the following requirements. Please do not skip this step because it’ll help you to successfully install macOS Sierra on VirtualBox on Windows 10 PC.

  • Minimum 2 GB memory (Recommended 8GB or higher)
  • Minimum 2 cores of processors (Recommended 4 cores or higher)
  • Hard disk free space 20 GB (Recommended 100GB or higher)
  • Your system should support Intel or AMD VT (Virtualization Technology)
  • Intel/AMD VT (Virtualization Technology) Should be enabled from BIOS setup

Required: If you haven’t already then you should enable Virtualization Technology (aka Intel VT or AMD-V).

Furthermore, it’s highly recommended that you install macOS Sierra on SSD (Solid State Drive) instead of HDD (Hard Disk Drive) because you will have a much faster performance with SSD rather than HDD

Steps to Install macOS Sierra on VirtualBox Using  VMDK

  1. Download the Prerequisites
  2. Install VirtualBox on Windows / PC
  3. Install & Update VirtualBox Extension (Optional)
  4. Create a New Virtual Machine for macOS Sierra
  5. Execute the VirtualBox Code
  6. Perform a Clean Installation of macOS Sierra
  7. Update macOS Sierra to the Latest Version (Optional)

Step 1: Download the Prerequisites

To install macOS Sierra on VirtualBox on Windows, you must download the following files and read the step by step guide to avoid any problems. If you miss any of the steps below, then you might be unsuccessful in running the macOS Sierra on VirtualBox.

  1. Download macOS Sierra VMDK (Required)
    1. macOS Sierra 10.12.6 (16G29) Latest
    2. macOS Sierra 10.12  (16A323) Stable
  2. Download VirtualBox & VBox Code (Required)
    1. VirtualBox Latest Version Setup
    2. macOS Sierra VBox Code
  3. Alternative Download Files  (Not Required)
    1. Download VirtualBox 6.1.12 (Direct Link)
    2. Download VirtualBox Code  (VirtualBox 5.x.x & 4.x.x)

Step 2: Install VirtualBox on Windows 10

From the “Download the Prerequisites” section of this post, you should have downloaded VirtualBox and if you didn’t, download VirtualBox latest version and install it on your Windows system. If you’ve already installed VirtualBox, then you can skip this step. Otherwise, follow the steps below to install VirtualBox on your Windows machine.

  1.  On the welcome Wizard page, click Next.
  2. Keep the default setting on the Custom Setup page and click Next.
  3. Again Click Next to accept the default options unless you want to change something.
  4. On the warning Network interface page, just click Yes to process with Virtualbox installation.
  5. Click the Install button to install VBox. Again click Yes if required.
  6. While installing VBox, you might see a security warning about “Oracle Corporation”. You need to click Install on this page to process with the installation. If you click Don’t install, the installation process will be terminated here and you can’t go ahead. If you see the security warning again click the Install button
  7. Finally, click Finish.

    Step 3: Install & Update VirtualBox Extension (Optional)

    This step is not 100% necessary but it’s highly recommended to do this step because macOS Sierra might not function properly on VirtualBox. For this reason, it might cause problems during the installation. Go to the Virtualbox download page. Under VirtualBox 6.1.10 Oracle VM VirtualBox Extension Pack section, click All supported platforms to download the latest version of Virtualbox Extension Pack.

    Download Virtualbox Extensions

    Download Virtualbox Extensions

    Once you’ve downloaded the Extension pack. Now, follow the steps below to update the Virtualbox extension pack.

    1. Open up VirtualBox, navigate to Tools>Pereferences>Extensions.
    2. Click on Plus (+) icon and select VirtualBox extension which you’ve downloaded at the beginning of this section. Click Install or Upgrade and then Agree to the terms and conditions. Click the OK button.

    Finally, you should see something like the screenshots below.

Step 4: Create a New Virtual Machine for macOS Sierra

After installing VirtualBox, now you will need to create a new virtual machine on Virtualbox. Creating a virtual machine for macOS Sierra is kind of the same as you create a VM for the Windows Operating system or Linux but with some minor changes. In this post, I’ll outline those changes. Follow the steps below to create a new virtual machine for macOS Sierra using the VMDK file.

    1. Open up your VirtualBox application and click New.

      Create a New VM

    2. Click Expert Mode and select the following options then click Create.
      1. Type a suitable Virtual Machine Name.
      2. Virtual Machine Location (a separate drive is recommended).
      3. Type (Mac OS X).
      4. Version (Mac OS X 64-bit).
      5. Memory 4 GB (recommended 8 GB or higher).
      6. Hard Disk: Select Use an existing virtual machine hard disk file. Click on the Folder icon to browse the macOS Sierra VMDK file.
      7. Click Add and select the Sierra VMDK image
    3. It’s time to edit the virtual machine to make it works. Select macOS Sierra VM and click on Settings. Now, bring the following changes to macOS Sierra VM.
      1. Under System>Motherboard, increase the Base Memory to 10248MB. However, you can use a bit lower memory if your system doesn’t have this much RAM.
      2. Uncheck Floppy from the Boot Order section.
      3. Under the Processor tab, increase the processors to 4 or higher.
    4. On the Display window, increase the Video Memory to 128MB.

      Increase macOS Sierra Video Memory

      Increase macOS Sierra Video Memory

Step 5: Execute the VirtualBox Code

Once you’ve created and customized your virtual machine, it’s time to run some codes in order to install macOS Sierra on VirtualBox. First, you should note your virtual machine name because later on, we will use it. Open the VirtualBox code which you should have downloaded from the “Download the Prerequisites” section of this post. If you’ve not downloaded, doesn’t matter. Just use the following code.
Note: Before, you execute the code by command prompt. You should read the following steps.

cd "C:\Program Files\Oracle\VirtualBox\"
VBoxManage.exe modifyvm "VM Name" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata "VM Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac19,1"
VBoxManage setextradata "VM Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "VM Name" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Mac-AA95B1DDAB278B95"
VBoxManage setextradata "VM Name" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "VM Name" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
  1. When you opened VirtualBox code via notepad or any other text editor, use the replace function of the program to Replace the “VM Name” with your virtual machine name. See the picture below to get an idea of how to do it.

    Replace VM name with macOS Sierra

    Replace VM name with macOS Sierra

  2. Now, you’ve two choices. First, if you want to fix your macOS Sierra screen resolution in the first place. You should also execute the following code. You have to change “VM Name” with your virtual machine name and HxV with a screen resolution such as “1280×720“. For more supported screen resolution on VirtualBox and detailed guide, visit fix macOS Catalina screen resolution on VirtualBox.
    VBoxManage setextradata "VM Name" VBoxInternal2/EfiGraphicsResolution HxV

    Important Note: We highly recommend to quit the VirtualBox program before executing the code. If you don’t do it, your virtual machine might not proceed to the installation step.

    Exit VirtualBox

    Exit VirtualBox

  3. Once you replaced the “VM Name” with your virtual machine name, then run the code one by one via command prompt (CMD). You can open the command prompt by pressing the Windows+X key in Windows 10 and select Command Prompt from the list. Or simply press Windows key and type CMD. Click Run As Administrator and click Yes
    Execute macOS Sierra VirtualBox Code

    Execute macOS Sierra VirtualBox Code


  4. Now, that you’ve executed the macOS Sierra VirtualBox code. Open the VirtualBox app then click the Start button to power on the VM. A black screen with a lot of white text will appear on the screen. Just wait for a few minutes and the macOS Sierra installation will start.

Step 6: Perform a Clean Installation of macOS Sierra

Once you hit enter, a whole bunch of code will run on the screen, but you should not worry about it. Wait for a few minutes, and you should see the macOS Sierra installation window. Have a cup of coffee until the installation complete. It’s going to take around 15 minutes to finish.

  1. Choose your Country and click on Continue.

    macOS Sierra Welcome Page

    macOS Sierra Welcome Page

  2. Pick a keyboard Layout and click on Continue.

    Select Your Keyboard

    Select Your Keyboard

  3. Now, select Don’t transfer information to this Mac and click on Continue.

    Don't Transfer any Information Now

    Don’t Transfer any Information Now

  4. Uncheck Enable location services and click on Continue.

    Enable Location Services

    Enable Location Services

  5. In this step, you have to Sign in with your Apple ID. If you don’t have one, create a free Apple ID by following this article, how to create an Apple ID on iPhone, iPad or iPod Touch”. We recommend to not log in with your Apple ID at this point. Just select  Don’t Sign in and click on Continue and Skip.

    Sign in with Your Apple ID

    Sign in with Your Apple ID

  6. Agree to the Terms and Conditions.

    Agree to the macOS Sierra Terms and Condition

    Agree to the macOS Sierra Terms and Condition

  7. Fill out the Full name,  Account name, Password, Hint, and click Continue to create your user account for macOS Sierra.

    Create macOS Sierra Computer Account

    Create macOS Sierra Computer Account

  8. Select your time zone and click Continue

    Select Your Time Zone

    Select Your Time Zone

  9. Select the options for Diagnostics & Usage and click on Continue. Don’t set up Siri at this point.

    Setup Siri on macOS Sierra

    Set up Siri on macOS Sierra

  10. Wait a little while to Setting Up Your Mac. Then it will run on the desktop of the macOS Sierra.

    Installed macOS Sierra on VirtualBox

    Installed macOS Sierra on VirtualBox

Important: For any kind of error while installing Mac OS X El Capitan and macOS Sierra visit this article.

Step 7: Update macOS Sierra to the Latest Version (Optional)

You should do this step if your macOS Sierra is not updated and not the latest version. So, you can update it by following the instructions below.

  1. Click on the Apple logo at the top-left corner of your screen. Select System Preferences from the list. Under System Preferences, click on the App Store.

    macOS Sierra App Store

    macOS Sierra App Store

  2. On the App Store window, you’ll see Software Updates are available. Click Check Now/Show Updates.

    macOS Sierra Software Update

    macOS Sierra Software Update

  3. Now, you should see different kinds of updates are available. Just click Update All. Click Download & Restart.
    Update All

    Update All

    Download & Restart

    Download & Restart

  4. Wait for couple of minutes so that the update should be installed. It might take 5-15 minutes to download all updates. However, it depends on your internet speed.

    Updates are Available for macOS Sierra

    Updates are available for macOS Sierra

  5. Once the update is downloaded, your system will restart automatically. Again wait for 15-20 minutes for update installation.

    Installing Software Update

    Installing Software Update

  6. Once the installation update process finishes, you’ll see the macOS Sierra login page. Type your user account name and password and log in. If you check our below screenshot with the one on Step #6 of this guide, the last screenshot. You can check that our macOS Sierra (16G2136) is updated to the latest version.

    How to update macOS Sierra to the Latest Version

    macOS Sierra Updated to the Latest Version

See Our other Useful Guides:


After performing a clean installation and Setting up your macOS Sierra then you should be able to see macOS Sierra wallpaper. In this step by step guide, I’ve covered the followings;

  1. Download the Prerequisites
  2. Install VirtualBox on Windows / PC
  3. Install & Update VirtualBox Extension (Optional)
  4. Create a New Virtual Machine for macOS Sierra
  5. Execute the VirtualBox Code
  6. Perform a Clean Installation of macOS Sierra
  7. Update macOS Sierra to the Latest Version (Optional)

Mukhtar Jafari is the founder and CEO of He is CISCO CCENT & CCNA Certified and has got his diploma in IT Networking from North Metro TAFE PERTH. He is currently working as a Help Desk Technician at DEEPTECH Perth Western Australia. In addition, he loves helping other tech enthusiasts so he is working part-time on He shares his experience through this website for IT beginners.


  1. luthfi Reply

    hello im trying this but the result is like this.

    failed to load boot0001 uefi vbox cd-rom vb1-1a2b3c4d

    I’m using windows 7 64 bit, I hope you can help me thank you.

  2. Ahmed Yehia Reply

    System: Acceleration page:
    The hardware virtualization is enabled in the Acceleration section of the System page although it is not supported by the host system. It should be disabled in order to start the virtual system.

    and I can’t change the value for the processor

    and don’t show else version 10.6

  3. arman khan Reply

    Hello Mukhtar,
    Could u please help me to rid of issue…after complete set up when black screen comes with some text its looping again again msg like..
    failed to boot…something

  4. Situs Aduq Reply

    Unquestionably imagine that that you stated. Your favourite justification appeared to
    be at the internet the easiest factor to
    keep in mind of. I say to you, I definitely
    get annoyed whilst other folks consider issues that they just don’t understand about.
    You managed to hit the nail upon the top and also defined out the whole thing without
    having side-effects , folks could take a signal. Will probably be back to get more.
    Thank you

  5. moatsem h farg Reply

    what means this message

    System: Acceleration page:
    The hardware virtualization is enabled in the Acceleration section of the System page although it is not supported by the host system. It should be disabled in order to start the virtual system.

    and I can’t change the value for the processor

    and dont show else version 10.6

  6. Patrick M Reply

    Doesn’t seem to work for me. I keep getting this error, no matter how often I re-download and re-extract it, following all the steps to the letter.

    Call to WHvSetupPartition failed: ERROR_SUCCESS (Last=0xc000000d/87) (VERR_NEM_VM_CREATE_FAILED).

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

  7. Anika Reply

    I am stuck at the beginning of this process. How do I extract the image file from the macOS Sierra when the download is in pieces as rar files

  8. Spartan318 Reply

    Worked with some considerable effort on my part to get it to work properly, such as using registervm to get the vm recognized, and downloading a newer version of virtual box, running as admin and deactivating my antivirus, thanks!

  9. Sakura Reply

    The Vm Starts, shows the virtual box Logo and then goes Black. there is no text shown and after waiting for about half an hour there`s still nothing. i did everythin that was shown in the guide above and i got virtualization activated in the bios (amd Phenom II x4 925) but the vm wont show me more than the virtual box logo and then a black screen.

  10. melkzedek rocha Reply

    changed to…? i dont have the network card showed in this how-to-do, so and I dont have network in my instance. what can i do?

  11. Robert Reply

    I’m getting this error when unzipping macOS Sierra 10.12 Files. C:\Users\Desktop\macOS Sierra 10.12 Files.rar: Checksum error in macOS Sierra 10.12 Files\macOS Sierra 10.12 by wikigain.vmdk. The file is corrupt
    C:\Users\Desktop\macOS Sierra 10.12 Files.rar: Unexpected end of archive

  12. jeff Reply

    I am at the step just after entering the new code via cmd prompt, where I have to start to power up masOS Sierra. I was given a prompt instructing me to select a drive, which was defaulted to E:/, which is my cd rom drive. When it tries to start I am getting the following error:

    Cannot open host device ‘E:’ for readonly access. Check the permissions of that device (VERR_ACCESS_DENIED).
    AHCI: Failed to attach drive to Port1 (VERR_ACCESS_DENIED).

    Is there a way to change the drive to something else?

  13. ger Reply

    I keep getting stuck in the startup loop and it repeats itself. I followed your instructions as best as possible. I’m running linux (kali) and I think I just need instructions adapted to that. I deleted the .exe file and ran in !/bin/sh. I don’t fully know what I’m doing with linux or virtualization for that matter. I’m learning everyday. I have every other VBox machine working (kali within a kali host, mint, windows 10, so I did manage that). Just can’t get the Sierra running on linux, stuck in the loop.

  14. jamil Ahmed Reply

    on settings of VM, it is taking only 2 GB max RAM and after that i have paste the code in command its showing me this error massege

    The virtual machine ‘macOS Sierra’ has terminated unexpectedly during startup with exit code 1 (0x1). More details may be available in ‘C:\Users\Administrator\VirtualBox VMs\macOS Sierra\Logs\VBoxHardening.log’.

    Result Code:
    E_FAIL (0x80004005)
    IMachine {85cd948e-a71f-4289-281e-0ca7ad48cd89}

  15. Alejandro Reply

    If anybody ever sees the following UEFI Interactive Sheel (Black Screen) when starting up the Sierra
    Here is how you can move from here to the installation process:
    1-Go to Settings -> System and then to Processor tab at last uncheck the PAE/NX checkbox.
    2-Go to General -> Basic tab then select (64bits version)
    3-Close VirtualBox
    4-Start your VM then you should see the installation process as mentioned in this guide.
    Thanks to wikigain for this helpful tutorial

  16. sai Reply

    after adding code in CMD i am started vmbox but it is not working.
    It is displaying only CLI mode with shell how can I solve this.


  17. 비빔냉면 둥띠디디뎅 Reply

    I’m a Windows 7 computer.
    From my computer to VirtualBox
    When you install a Mac
    Does not my computer ever crash?

  18. Joey Reply

    Hello – I have installed Macos High Sierra 10.13.4 in VirtualBox on my Windows 7. My goal is to run Xcode on this machine to develop a simple iPhone app. However, when I go to unzip/expand the downloaded Xcode.xip, I get an error that says “The archive can’t be expanded because the selected volume doesn’t have enough free space.” If you are able to help, it would be greatly appreciated!

    1. Faiz Orz Reply

      Hi, it seems that your disk storage is not enough for the task that you want to do. Move your VM files to a disk/folder which has more then 100GB free disk space and then try again installing the Xcode.

      1. Joey

        Thanks, but I have the VM files saved to my C drive, which has >110GB of free space. Any other ideas?

      2. Faiz Orz

        Hmm.. try this, create a new disk with higher capacity and attach it to your VM from the settings then try unzip your stuff on that drive.

  19. Arif Reply

    Can someone give me solution of error at cmd???

    ‘VBoxManage.exe’ is not recognized as an internal or external command,
    operable program or batch file.

    1. Deepak Naik Reply

      Try going to virtual box installed directory and run the same command there.
      In my system directory is C:\Program files\Oracle\Virtual box\

      and not need to run command line as administrator.

    1. Faiz Orz Reply

      Hey follow the video tutorial and make sure that every step is the same as the video. Also make sure to enable VT from BIOS.
      Updated: The video is removed from YouTube 'Sorry for the inconvenience guys'

  20. Rob Reply

    I read in another tutorial that when running macOS in the virtual machine there wouldn’t be any audio. I was wondering if this was the case in general using a virtual machine or does the method in this tutorial result in enabled audio in macOS?

  21. Joel Reply

    VirtualBox 5.2.12 on host WIN10 1803 Home.
    Works fine for me.
    Slow as any other VML installed (Fedora, WIN10 PRO). I suspect a problem beetween win10 & VB ….
    Very neat and and staigtforward install & doc.
    Thank you for sharing this.

  22. Tanin Reply

    Missing file “macOS Sierra 10.12 Files.part05.rar” in download link to, where i can download this path please?

  23. Jack Reply

    I am trying to run the Mac code. For starters, I do not have ‘cd “C:\Program Files\Oracle\VirtualBox\”‘, my box is saved elsewhere. I am curious if this is the correct pathway that I should use instead? (C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Oracle VM VirtualBox).

    Also, no matter the pathway, I keep getting this error in the cmd prompt: “[line of code].exe is not recognized as an internal or external command,
    operable program or batch file.” I cannot find the .exe lines in any files on my computer. How do I find them or redownload/extract them? Thanks

  24. ameni Reply

    Thanks for the tutoriel. But when i want to install xcode i got this error “xcode can’t be installed on MacOS Sierra 10.12 by wikigain” because MacOS version 10.13 or later is required”

  25. olavsu1 Reply

    It not work. i get guru meditation:

    00:00:04.145497 VGA Sequencer (3C5): SR index 3C4:00
    00:00:04.145498 SR00:03 SR01:01 SR02:0F SR03:00 SR04:0A SR05:00 SR06:00 SR07:01
    00:00:04.145500 !!
    00:00:04.145500 !! {vgatext}
    00:00:04.145501 !!
    00:00:04.145501 Not in text mode!

    1. olavsu1 Reply

      Thanxs for private message. It does not work too. maybe this is problem: the host is amd not intel. All others (freebsd, linux) VM’s runs correctly. But I are seen macosx in AMD host. it was snowleopard, what runs with specially created bootup (.img file) image.

  26. Alan Ian Ross Reply

    It works! Everything absolutely impeccable, network management included. Here, the key workaround (and kudos to you, Mukhtar, for putting on this point all the due emphasis) was to select “Intel PRO/1000 MT **SERVER** (82545EM)”, in place of everything else.

    As I said, everything is working fine (guest: macOS 10.12 Sierra, on Fedora 27 host), except for one detail (which, unfortunately, is very annoying): the screen resolution.

    Alas, here, while at least I’ve been able to get out of the 1024×768 mode (“Suitable for this screen”), I’m still stuck with the 1280×720 mode the virtual system has put itself into, as a reaction to my attempt at forcing a 1366×768 mode via ‘VBoxManage setextradata “[VM_NAME]” VBoxInternal2/EfiGopMode N’…

    Any idea?

    Best regards 🙂


      1. Alan Ian Ross

        Yes: again, IT WORKS!!

        For the record I repeat that I’m running MacOS Sierra as a guest, in VirtualBox 5.2.10, under Linux Fedora 27 as its host].

        It goes as follows:

        1. with VirtualBox turned OFF, open a NON ADMINISTRATIVE (i.e.: non root) terminal, and check the precise name of your virtual MacOS machine with

        $ VBoxManage list vms

        2. Assume the answer of VirtualBox is

        “MacOSX” {xxxxxxxx-yyyy-zzzz-wwww-nnnnnnnnnnnn}

        (where this latter line is the hex code for the virtual disk). Then you have to input (again, in the non-root CLI)

        $ VBoxManage setextradata “MacOSX” VBoxInternal2/EfiGraphicsResolution 1366×768

        and, IT WORKS! When you’ll log back into your VBox-ed MacOS, you’ll finally find the screen set up to the correct 1366×768 mode.

        Thank you: great job!! ✯✯✯✯✯

  27. Jean-Philippe Reply

    Got problem to start a virtualBox VM of Sierra declared as MAC OS X 10.11. No problem if declared as MAC OS X 10.10. Hope this can help users

  28. v410 Reply

    right, just to leave this clear I am unsure this will work for everyone, but this is my fix :
    So I have IOS in a vm and I have been receiving this dsmos issue for sometime. I found out that reducing the number of processors ( I have 16 ) to 2 somehow ( black magic i would say ) and resetting the NVRAM on the startup I made the whole thing to work, I wish i had more in-deep information about this, i hope this works for someone out there as it did for me. cheers

  29. Dennis Reply

    Hello, i have installed sierra and it works. i also solved the problem with the display solution. but i have one question. how can i install the sierra version from macbook? i don’t have a PC. i use a laptop

  30. Lynx Reply

    This still does not work for AMD following the extra details here or on the page that you guys keep referring to for the Guru fix. Worse, you guys won’t simply place the extra step that says to close VirtualBox so that it doesn’t waste people’s time.

  31. Bonghwan Reply

    Hii, thanks to your great guide on Lenovo Ideapad i5 4G laptop, I could install it successfully. I just got the update by Appstore so soon as finished configuring it. I tried installing it. I failed the next boot. It seemded due to the update. This image doesn’t allow any update further?

  32. Dave Reply

    Does not work on a Surface Pro 4. Just keeps looping through the “white on black” commands. Actually let it run overnight and finally had to kill it.

  33. Chase Reply

    hey there I would love some help with this. I did everything you told me to do i only installed the macosserria final 1 part do i have to download the 7 parts as well? every time I start it up it shows a black screen with the words
    UEFI Interactive Shell v.2.1
    EDK II
    UEFI v2.40 (EDK II, 0X00010000)
    Mapping table
    BLKO: Alias(s):
    BLK1 Alias(s):
    Press ESC in 1 seconds to skip startup.nsh or any other key to continue.

    1. Brandon Reply

      I was confused by this too. I did a checksum on the 1 part and the 7 part, and they are the same files. Just one is separate, smaller files.

      1. Mukhtar Jafari Post author

        Yeah, that’s the same file and it’s for those people who have a slow internet connection. If you’ve downloaded the 7 Parts just right click on one of the part and select extract to macOS High Sierra.

  34. new Reply

    hi Mukhtar

    #3. If you wish, you can add a virtual hard disk to the new machine. You can either create a new hard drive file or select one from the last or another location using the folder icon. Here, you should choose the last option “Use an existing virtual hard disk file“. Select the file and click “Create“.

    this step wont work bcus I downloaded macOS 10.13.1 High Sierra.dmg and here I cant choose dmg format .

    I’ve createdd that by choosing “create a vitual hard disk now” . and after that steps Command Prompt . I start the VM and Insert the dmg file . but it dont work with this error :

  35. Juan Reply

    This worked for me:
    VBoxManage setextradata VBoxInternal2/EfiGraphicsResolution=”1920×1080″
    VBoxManage setextradata VBoxInternal2/EfiHorizontalResolution=”1920″
    VBoxManage setextradata VBoxInternal2/EfiVerticalResolution=”1080″

  36. gustavo Reply

    Hi, Can you help me? I followed all the steps, but I can’t make it connect to the internet.. would you know the problem?

  37. SysProfile Reply

    The operating system works, you just have to follow the steps, it is important to exit VirtualBox before executing the commands. If you have Hyper-V installed, VirtualBox does not work

  38. James Reply


    Been trying to install XCode on Sierra for the nth time on VirtualBox, but everytime it reboots, it gets stuck at “IOGraphics flags 0x43” CLI. Not sure if missing something here, but any guide to accomplish the XCode installation would be really much appreciated.

  39. Steffen Reply

    Great guide! I got everything to work without issues the first time setting this up, thank you. I can now, finally, start experimenting with xcode.

    I might add that the only thing I miss in this guide is how to scale the guest OS screen resolution to fit my screen size. I looked around and saw that you have another guide for this here, but it should be mentioned as a footnote.

    Thanks again!

  40. Raj Reply

    Hello – I am getting the following error-
    Failed to open a session for the virtual machine High Sierra.
    Configuration error: Querying failed (VERR_CFGM_VALUE_NOT_FOUND).

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

    I have done all the steps you mentioned (closing VB before running the commands etc). Any idea what this cloud be?

  41. Vincent Reply

    Worked on my HP Pavilon m6 Running windows 10 Creators Update. Also when creating Virtual Machine in Virtual Box, You can choose Mac OS 10.12 Sierra as Version. Worked beautifull. However, How do I make it go full screen please?

  42. Jonathan Reply

    Everything Working! Just used this tutorial to install on Microsoft Surface tablet. I can’t get iMessage working though, it says “failed to authenticate” when I try to log in. I’m sure this is because I’m running Mac on VM and my apple serial at this point is ‘0’, but is there any possible workaround for this?? Either way, thank you for constructing this tutorial. Also, after getting to installation screen, it was giving me error not enough space. Clicking on the disk utility and partitioning/erasing drive resolved this.

  43. James Reply

    Hi !
    First of all thanks for this it worked perfect for me !
    I have a little question : is it possible to have a better resolution ? I only have 1024 x 768 on the mac settings

    Thanks !!!

  44. Maciek Reply


    I have carefully followed your steps and then read some of ppl’s problems listed above, but noone had mine’s problem.

    When I launch VM, I have “Virtual box – Guru Meditation” error – “A critical error has occurred while running the virtual machine and the machine execution has stopped” window appears.

    When I study log, a first line with [ERROR] header mentions extension pack: “No extension pack by the name ‘Oracle VM VirtualBox Extension Pack’ was found”

    I have downloaded and installed Oracle extension pack and the same error appears.

    I have tried on both Virtual Box 5.2 and 5.1.30 with the same result.

    Any help would be appreciated 🙂

    1. Mukhtar Jafari Post author Reply

      No need to install extensions or something like that. For guru meditation error just quit VBox before adding the code to cmd then run the code. If this method does not work just select the version Mac OS X 64 and try again.

  45. Karim Reply

    those steps working with me and I installed macOS ok, but after use the system for about 3 min. find OS freeze, so i have to end task and open Vbox again and run, so any help ?

  46. P Soutzikevich Reply

    Dear Wikigain,
    Thanks for taking time to post this well-structured tutorial for installing macOS on a Virtual Machine.
    I have only 1 question before trying it out myself.
    Is step 5, where you input the configuration code in CMD, going to interfere with my other Virtual Machines installed ? (Linux Ubuntu and Debian)

  47. Dan Reply

    Thanks for great instructions. Like others, I couldn’t get it to work on virtualbox 5.2 but it works well on 5.1.30.

    One question though – I’m having a problem getting the virtual machine to recognise my iphone, despite installing the virtualbox extension pack and iphone nominally being ‘passed through’ via the virtualbox ‘devices’ tab. I’ve tried uninstalling the windows usb drivers (which then enables the iphone to be seen in the guest (via about this mac/system report)) but it doesn’t show up in xcode or itunes. Any suggestion? Many thx

  48. Bob Rivers Reply

    Hello! I successfully got Sierra running, but it is very low resolution and extremely laggy. How can I fix this? Thanks!

      1. Bob Rivers

        Awesome thanks! How would I fix the severe lag problem? The mouse lags far behind my real mouse. Thanks!

  49. Stefan Busch Reply

    thanks for the instructions, but I when I try to boot to install, I just get a black screen. I don’t even get to the welcome page. I followed the instructions exactly and additionally played around with assigning more CPUs, changing the chipsets settings – but no luck. I noticed that some people here reported the same problem. Is it because I have an old AMD Phenom II X4 955 BE Quad-Core Processor , and if so, is there a workaround? . I desperately need to make this work. Thanks!

  50. Beth Reply

    I am at the point where you start putting in the CMDs on Windows to alter the VM. When I go to paste in the line after you cd into the directory, I get the following 3 error lines.

    VBoxManage.exe: error: Could not find a registered machine named ‘High Sierra’
    VBoxManage.exe: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBoxWrap, interface IVirtualBox, callee IUnknown
    VBoxManage.exe: error: Context: “FindMachine(Bstr(a->argv[0]).raw(), machine.asOutParam())” at line 512 of file VBoxManageModifyVM.cpp

  51. Noorquacker Reply

    Hey, I’m on Arch Linux and changed the VirtualBox code file to run on bash, and it definitely changed the VM extra data, but on boot it says This version of Mac OS X is not supported on this platform! Reason: Iloveapple.
    Maybe it’s an incorrect board product data setting, I set it to iMac11,3 and it said the same but the reason was iMac11,3.

  52. Lockevn Reply

    Windows 10
    Core i7
    The core problem of loop boot (incorrect key : 00000000000000000000*******Dont_Steal_MacOS.cpp:219”) is you don’t run code in CMD correctly.

    How to fix:
    Do Step4.
    Close VirtualBox
    Open Task Manager (Ctrl Shilf Esc)
    Kill all process of VirtualBox Manager, VirtualBox Interface
    Open the Command Prompt (CMD) in Administrator.

    Run Code in Step5.

  53. Psyka Reply

    Hello here,
    I’ve seen that people already ask for this problem but NO solution has been given for it so I will ask again :
    I have this error after all steps and even if i retry all steps a millions times perfectly, I always get the same error :
    Failed to open a session for the virtual machine macOS.

    Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND).

    Code d’erreur :
    E_FAIL (0x80004005)
    Composant :
    Interface :
    IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

  54. Psyka Reply

    I have an issue i’ve done all steps ask many times restart them and always finishing with the same error message when i’m suposed to have finish i launch the vm MACOS and then i get that :

    Failed to open a session for the virtual machine macOS.

    Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND).

    Code d’erreur :
    E_FAIL (0x80004005)
    Composant :
    Interface :
    IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

  55. John Smith Reply

    I confirm AMD FX-8350 doesnt work with this setup. The same setup works without any tricks on a celeron machine with 2GB memory and 1 core. You could include the info that AMD FX is not supported rather than say everybody should test it themselves.

  56. John Smith Reply

    I went thru this rather long thread and tried about everything including the “complete” guide to fix things. Somebody said that it doesnt work with AMD FX and that might be the case with me too. I get guru meditation everytime, sometimes with “error allocation 0x14b6 pages….” or 0x800 pages followed by error loading kernel cache 0x9

  57. Han Reply

    Hi, I followed your installation but I get the following error msg :
    – waiting for DSMOS…
    – HID: legacy shim 2
    – unexpexted session: 100000 uid: -1 requested by: 31
    – AppleKeyStore: operation failed (pid: 31 sel: 7 ret: ‘e00002c2 ‘-536870206’)

    and then after some more lines it reboots again, and again, and again…

    pls help 😉

  58. FirstLeatha Reply

    I have noticed you don’t monetize your site, don’t waste your traffic, you can earn extra bucks every month because you’ve got high quality content.
    If you want to know how to make extra bucks, search for: Mrdalekjd methods for

  59. ithan Reply

    Hello from colombia

    I’m really frustated because i need install whatever version of mac OS X but with unlucky for me still not working

    I’m sure that this tutorial is the best

    Some info of my PC base system:

    – AMD FX(tm)-6300 Six-Core Processor 3500 Mhz
    – RAM 8GB
    – SSD 1 TB
    – virtualbox Versión 5.1.28

    – guru-meditation

    log (i dont know if this help)

    00:00:03.965977 EHCI: Hardware reset
    00:00:03.966025 EHCI: USB Operational
    00:00:04.122631 EFI: Adding variable 8be4df61-93ca-11d2-aa0d-00e098032b8c::’Boot0000′ fAttrib=0x7 cbValue=0xb2
    00:00:04.122994 EFI: Adding variable 8be4df61-93ca-11d2-aa0d-00e098032b8c::’BootOrder’ fAttrib=0x7 cbValue=0x2
    00:00:04.137182 EFI: Replacing variable 8be4df61-93ca-11d2-aa0d-00e098032b8c::’BootOrder’ fAttrib=0x7 cbValue=0x2
    00:00:04.142736 EFI: Adding variable 8be4df61-93ca-11d2-aa0d-00e098032b8c::’Boot0001′ fAttrib=0x7 cbValue=0x42
    00:00:04.143009 EFI: Replacing variable 8be4df61-93ca-11d2-aa0d-00e098032b8c::’BootOrder’ fAttrib=0x7 cbValue=0x4
    00:00:04.150049 EFI: Adding variable 8be4df61-93ca-11d2-aa0d-00e098032b8c::’Boot0002′ fAttrib=0x7 cbValue=0x44
    00:00:04.150319 EFI: Replacing variable 8be4df61-93ca-11d2-aa0d-00e098032b8c::’BootOrder’ fAttrib=0x7 cbValue=0x6
    00:00:04.160067 EFI: Adding variable 8be4df61-93ca-11d2-aa0d-00e098032b8c::’Boot0003′ fAttrib=0x7 cbValue=0x5c
    00:00:04.160498 EFI: Replacing variable 8be4df61-93ca-11d2-aa0d-00e098032b8c::’BootOrder’ fAttrib=0x7 cbValue=0x8
    00:00:04.212278 EFI: Adding variable 8be4df61-93ca-11d2-aa0d-00e098032b8c::’BootCurrent’ fAttrib=0x6 cbValue=0x2
    00:00:04.213807 EFI: Adding variable 4c19049f-4137-4dd3-9c10-8b97a83ffdfa::’MemoryTypeInformation’ fAttrib=0x3 cbValue=0x40
    00:00:04.274849 EFI: VBoxDbg> loadimage64 ‘.efi’ 0x7ebf3000 LB 0x8d000
    00:00:04.276807 EFI: Adding variable 4d1ede05-38c7-4a6a-9cc6-4bcca8b38c14::’ROM’ fAttrib=0x6 cbValue=0x6
    00:00:04.279718 EFI: Adding variable 4d1ede05-38c7-4a6a-9cc6-4bcca8b38c14::’MLB’ fAttrib=0x6 cbValue=0x182
    00:00:05.853880 EFI: Adding variable 7c436110-ab2a-4bbb-a880-fe41995c9f82::’platform-uuid’ fAttrib=0x7 cbValue=0x10
    00:00:05.857818 EHCI: USB Suspended
    00:00:05.857860 EHCI: Hardware reset
    00:00:05.860328 IEM: wrmsr(0x8b,0x0`00000000) -> #GP(0)
    00:00:05.860398 Changing the VM state from ‘RUNNING’ to ‘GURU_MEDITATION’

    thank for your help

  60. Florian Reply

    Thanks for this tutorial, it’s work ! 🙂
    But I have crashes when I empty the trash or I remove dock icon ! Image is fixed and the mouse does not respond.

  61. AS Reply

    Is there any chance that we can update OS to the 10.12.6 version? I was able to download the update from the AppStore but after the restart of the machine I am still on the older version and the update is still available to install.

  62. Pixo Reply

    For those with Guru error -> go to Settings -> General -> and set version to Mac OS X (64-bit)
    For those with shell -> step 3.#3, don’t forget to select the .vmdk file you downloaded

  63. Raj Reply

    Thanks very much for this post. I was able to have Mac 10.12. How can I upgrade to 10.12.6. The reason I want to upgrade to 10.12.6 to install xcode 9.

      1. Raj

        Thanks for the response. I did tried this. After the reboot of VM, the upgrade did not happen. am I missing anything here?

  64. Patrycja Wanat Reply

    Hi, after clicking the Start button everything goes as planned until the “DSMOS has arrived” line, but then a next line “prevent idle sleep list: IODisplayWrangler+ (1) ” appears and after that nothing happens. What should I do?

  65. sbosque Reply

    Hi, you’re awesome, great work!

    Unfortunately I get following error:

    Error allocating 0x14b6 pages at 0x0000000207900 alloc type 2
    Error loading kernel cache (0x9)
    Boot failed. mac Boot.

    A critical error has ocurred while running the virtual machine and the execution has been stopped.

    I’ve trying many times, even starting from scratch deleting the VM and starting again the procedure step by step, specially following carefully step #5, but all my attemps were unsuccesful

    Your help will be greatly appreciated!

  66. luis Reply

    Hi, thanks for this amazing tutorial that works very well.
    However can I give you some advice?
    The name of the virtual machine should not have spaces to avoid any problem. It could have the name of “Sierra” for example and if someone need to run the code on linux just remove de .exe from the first command and run all of them normally from terminal.
    But once again thanks for that great work

  67. swaglord the ghey Reply


    I did the guide to the letter and im just getting to a UEFI INTERACTIVE SHELL.

    I have Virtualization enabled, and every CPU settings are as they should be.

    3 cores, 128mb video ram, virtualization boxes are checked, etc.

    please help.

      1. swaglord the ghey

        choose the vmdk file? seriously? sigh. the problem is i use a amd fx processor. and i have to use /amdfx boot handle. BUT. there is no way to get to the point where i can use this boot flag. so this guide, in all, does not work for AMD. You should really put that in the guide mate, so people dont waste 2 hours of their time with this BS

  68. Elliah Pravin Reply

    After I insert my account pwd at the login screen, I got the busy wheel and beach ball running forever.
    Any solution to this.

  69. Edomera Reply

    Hi, Mukhtar, thanks so much, for your time and effort to contribute with us. All working pretty good, except audio.
    Lenovo ideacentre B320, 5GB ram, 2TB HD, Win 10 Pro(64bit), Oracle VM Virtual Box, macOS Sierra 64bit.
    Thanks in advance, have a good day.

  70. ravi Reply

    hai, i followed the steps, i need some clarification..
    1. where you got .vdi file ( you selected Existing Vdi )
    2.Once finish everything, they ask ” choose virtual disk image” like..

    please share your ideas…

    1. Faiz Orz Reply

      It seems that you have miss understand the guide. Please read it again or watch the video carefully then you will get everything that is required. Updated: The video is removed from YouTube 'Sorry for the inconvenience guys'

  71. Kem Reply

    Actually it never asked me that. All it says is “A critical error has occurred while running the virtual machine, the machine execution has been stopped” then a long message about checking the logs. I have even executed all the steps above including closing the VirtualBox, running the commands, etc… but not luck. If you want I can send you the logs.

    1. Mukhtar Jafari Post author Reply

      It’s because of Virtualbox code. Try to edit the Virtual Machine Name inside the code. If again you failed, you should enable Virtualization Technology (VT) from your system BIOS.

      1. Kem

        Sorry for my ignorance but where can I find the Virtualbox code? Also, I used the same exact Virtual Machine Name.

      2. Kem

        I just got what you meant by the Virtualbox code, I did edit it and changed the name to MacOS Sierra as the machine name in the configuration and ran the code while the Virtualbox is closed. The VT is enabled in the bios and the windows vbox is working fine. My main OS is linux.

  72. Kem Reply

    Okay, I have a new one. I am running Ubuntu 16.04, I installed everything and all works great, done some work/installations/configurations on the VBox with the MacOS. Now I bought a new laptop, I copied the vmdk file from the old laptop to the new as well as the .vbox and all the contents of the “MacOS Sierra” folder under “Virtualbox VMs” including the saved snapshot of the VM. I can resume the saved snapshot and it opens well, I can save it again and open but if I shutdown the MacOS and try to start it, it fails. Got any pointers?
    I copied a windows OS and it works fine. What could be the problem and how should I fix it?

    1. Mukhtar Jafari Post author Reply

      When for the first time you open it gives you an option to choose from. Did you moved the file or copied the file. Choose copied the file and after that, it should not ask you.

  73. Manimegalai A Reply

    Its not working for me. my mac OS sierra its not running showing black screen only.please guide me to this…

      1. David

        Yes : do you have a pre-prepared Windows 10 VBox file that we could use to simply add to our Virtual Box system that is running in Windows 10

        (would allow me to test changes to Win 10 from inside the safety of a VM)

        Nothing to do with Mac

  74. Sophie Reply

    I am still getting the Guru meditation screen with the critical error message.
    I follow all the steps.I close VB before setting the commands and I have restarted my computer but still not working.
    Any ideas?

  75. Fabio Reply

    Hello, I followed the instructions and have sierra 10.12 running (I have only 4 gb of ram and i could reserve only 2 for the virtual machine but it work fine the same). The problem is that the updates to 10.12.5 (also tried offline combo update to 10.12.5, 10.12.4 and 10.12.1). All the update reach the reboot phase but the machine stop to update at 17 min left or 10 min left (always 10 min left for update to 10.12.5). I don’t found a way to boot in safe mode inside virtual box nor to issue COMMAND+L or similar…any suggestion?

      1. Fabio

        As I said, I tryed also with the offline combo updates! The internet connection seems not involved. anyway it is stable here. I also install OFFLINE updates from the commandline with sudo softwareupdate -iv “Mac OS….’ but it stuck at the install stage and when I reboot I always have the same os version. Any suggestion?

      2. Fabio

        Virtualbox Version 5.1.22 r115126 (Qt5.6.2) on Win 10.
        The virtual disk grow correctly. the quest os is ok under all aspect. I can sign in with my Apple ID. But no updates installation work

  76. Bulcsu Reply

    It does not work for me. I have followed the instructions, and also quit VB during the CMD phase.
    I assume that the HD has to be the virtual disk provided (macOS Sierra… .vmdk file) . It is not entirely clear from the instructions.
    All I get is an UEFI interactive shell screen where I can hit ESC to skip startup.nsh.
    Did this process now 3 times very carefully following the instructions and ALWAYS the same result.

  77. Anand Reply

    I have installed successfully in the virtualbox but the mac is working very slow. I have 8 gb of ram and intel core i3 processor.Any solution for solving this ?

  78. John Reply

    Hello, I have intel pentium G620 processor x64 bit processor and windows 10 64 bit and 8 GB of ram will it work ???

  79. Erc Reply

    Nice Article! Got it working pretty quick. Only thing is that it runs really slow. Any new tweaks for that problem? Maybe increase the CPUs or something?

    1. Faiz Orz Reply

      Yeah to enhance it increase CPU and RAM but currently, it’s supported by the VirtualBox, and you can’t make the most out of it. Increase CPU and RAM may enhance the performance a little bit but not perfect.
      But this is not the same on VMware:

  80. jack Reply

    Got it to work ! selecting MacOS 64 generic on version, instead of latest elcapitan. You should add this to the tutorial

  81. Rik Reply

    Hi, it is working well on my Ubuntu 16.04 LTS host but it seems I can not update Sierra. It downloads the macOS updates using the App Store then it reboots and no update are applied.

  82. Morgan Casale Reply

    Hi, I’ve tried to install this virtual machine but every time I try to start it, it doesn’t boot giving an error after the first “HID: Legacy shim 2” in the black screen. The only things that pop up are this:
    unexpected session: 100000 uid:-1 requested by 31
    AppleKeyStore: operation failed (pid: 31 sel: 7 ret: e00002c2 ‘-536870206?)
    IOGraphics flags 0x43
    Previous shutdown cause: 3

  83. Troy Cooper Reply

    I’m going into Guru Meditation. I tried that extra line of code. Help?!
    Guru Meditation 1155 (VINF_EM_TRIPLE_FAULT)

    1. Mukhtar Jafari Post author Reply

      Did you edit the Virtual Machine Name inside the Code?
      Edit the Virtual Machine Name and close VirtualBox completely then try copy and paste the code to CMD.

  84. morten Reply

    got it to work but my video ram only says 3mb even though I asked it to use 128mb, and how do I get it to cover the full screen ? 23.8@ wide screen, ty

      1. morten

        hmm moved my file to a new location and now it does not work even after I removed the machine and did a reinstall with the file in the new location

  85. Josh Reply

    hello, i have a problem with logging in to imessages, it comes up but when i submit my info the words go grey for a bit then goes back to sign in. any ideas? thanks!

  86. Kartar Singh Reply

    i’m using it from past few days, Working Well
    but the problems which i’m facing are:
    1.) when i download applications (like iMovies) it shows that your system configuration doesn’t met the requirements even when i change the video ram to 256MB
    2.) actually it is a question when i start the project from Virtual box it starts in verbose mode is there is any process for normal start.
    rest of things are currently working fine.

  87. Emilio Reply

    AMD FX Processors Don’t Work For this
    Xeon E5 Processors Works Just FINE (takes a little on start the first time)
    Thank you for the information!!!

  88. Sam Reply

    VT-x/AMD-V hardware acceleration is not available on your system. Certain guests (e.g. OS/2 and QNX) require this feature and will fail to boot without it.
    I’m getting this error , Please help,

      1. Anthonique P Ferguson

        There is no virtualization option in my BIOS, even after updating BIOS.

  89. DSDDOS Reply

    I did exactly as described but when i start the VM i get this error:

    Failed to open a session for the virtual machine Mac OS X.

    The virtual machine ‘Mac OS X’ has terminated unexpectedly during startup with exit code -1073741819 (0xc0000005). More details may be available in ‘C:UsersAdminVirtualBox VMsMac OS XLogsVBoxHardening.log’.

    Result Code: E_FAIL (0x80004005)
    Component: MachineWrap
    Interface: IMachine {b2547866-a0a1-4391-8b86-6952d82efaa0}

  90. David Anstey Reply

    If you are having trouble it is because you may not have noticed there are two sets of instructions in the commands only keep for the version of Virtualbox you are using

  91. Arnie Reply

    Hi Mukhtar,

    great article and a neat help.

    The Sierra installation works fine with a normally installed Virtualbox.

    But how do I get Sierra in a portable virtualbox to run?
    (Several error messages -> VBoxManage.exe: error: Could not find a registered machine named ‘Sierra’ etc.)

    Is it related to the path to the virtual machines?

    For my portable Version the Path is:

    A small tip would be great!

    Thanks in advance

      1. Arnie

        Hi Faiz,
        many thanks for your response.
        I had tried it several times and then I switched to the VMware Player.
        Runs absolute smoothly.

        Thank you for your help

  92. Abdulrahman Reply

    For those who are getting the guru message, to fix this you simply right click the (macOS Sierra) virtual machine > Settings > General > Basic > Switch the version to MAC OS X (64-bit)

  93. Mordef Reply

    Thnks for the work, got it run on Win10.
    Maybe change something.
    Before #2 say to quit VBox before run cms.
    If its open it will not work.

  94. Bill Reply

    I followed the directions to the letter and ran the commands several times but to no avail. It just keeps rebooting over and over again.

  95. David Reply

    Thank you for all of your hard work. It works really well and I have Sierra up and running on my Windows 10 machine.

    Sorry if this has been asked before – but Shared Folders and Clipboard do not seem to work for that still a problem?

      1. David

        Ok thanks. I thought I might need to install Guest Additions but could not install those – and perhaps you already did that in your virtual disk anyway?

        But the 2 items i reported do not work for me at present


  96. Anthonique Ferguson Reply

    Here is my error after starting The V:

    VT-x/AMD-V hardware acceleration is not available on your system. Certain guests (e.g. OS/2 and QNX) require this feature and will fail to boot without it.

  97. Jordan van Bergen Reply

    I get this (reboot loop) because of:
    getCPUIDInfo: this is an unknown CPU model 0x3c
    — power management may be incomplete or unsupported
    Results in a kernel PANIC en reboot with the same error.
    panic(cpu 1 caller xxxxxxxxxxxxxxxxxxx): DSMOS: SMC returned incorrect key.
    Virtualbox: 5.1.22r115126

    1. Jordan van Bergen Reply

      “because you are running the commands (Step# 5) while the Oracle VM software is open”.
      I’ve closed all my VirtualBox instances (even in task manager) and runned the script/code for VBoxManage.exe and voilá!
      My VM is now working!!!

  98. Derrix Reply

    Does anyone else experience issues with the sound? I can get sound but when I play someone on Youtube or in iTunes it sounds like someone has taken a song and slowed it down. Help please.

  99. Dat Reply

    Thanks! It works finally!
    After some flickings on boot, I check your step 5. I exited the virtualbox and re-run the command. The start vb and the machine. And it works!

    1. Moody Ahmad Reply

      It is generally working fine. However, in web browsers I get flashing artifacts popping up, for example, shadows around pop up boxes that flicker and then go away. Is there a resolution to this issue?

  100. JH P. Reply

    I used VBox 5.0.38 and I had to rename the vmdk file from macOS Sierra 10.12 by wikigain.vmdk to macos-sierra.vmdk. I don’t know why, but VBox did not recognize the file name.
    Other than that, it worked great.

  101. Alessandra Reply

    Has anyone had problems with the connection? I have to use Bridge because it’s working network. The problem is that in the network settings says that the cable is not connected, and in VirtualBox is.

  102. Votality Reply

    Update iCloud works fine (account issue), however I’m assuming the SMBIOS settings must not be as required for iMessage to operate.. all the the guides I have seen assume your using clover and give you advice on the settings to set there.

    I assume to have it work here you would need to set these same settings in the EFI of vbox..

    Anyone got it working??

  103. Votality Reply

    Has anyone got iCloud & iMessage login working with the sierra vmdk image provided by this site and these instructions?

    If so please post some instructions…

    I’ve tried with a working serial that shows fine in about this mac and the validates ok online.

  104. biotique Reply

    Working like a charm in Virtualbox.
    thank you!

    Follow the instructions step by step and remember to run CMD as ADMINISTRATOR

  105. neil Reply

    I’ve followed the guide and my virtual machine boots, but it runs very slowly.
    My specs are:
    I5 3570k
    16gb ram
    7850 gpu
    Is it because I’ve got no 3d acceleration of the desktop or is there another reason?

  106. Neil Reply

    I’ve followed the guide and my virtual machine runs really slow 🙁
    My hardware is
    16gig ram
    radeon 7850

    Is is because I’m not getting any graphics acceleration? Or is my machine not powerful enough

  107. baas Reply

    Also – before executing the commands in step #5 – make sure no virtualbox processes are running with the Resource Monitor. I tried several times without luck, and when I used the resource monitor to verify that no vbox related processes where running and vbox related resources in use – it worked.

  108. Gustavo (a.k.a. Guga) Reply

    I was getting the SAME error as almost everybody, and my VM was rebooting somewhere after “Waiting for DSMOS”.

    Then I`ve Carefull readed the article attached ( and figured out the following:
    “because you are running the commands (Step# 5) while the Oracle VM software is open”.

    I’ve closed all my VirtualBox instances (even in task manager) and runned the script/code for VBoxManage.exe and voilá!

    My VM is now working!!!

    Mukhtar Jafari, maybe it should be great to add this info to this article just in the paragraph when you describe the VBoxManage.exe code steps. I think it will prevent many flood in the comments, as long as it makes all the diference!

    Kind regards

    1. Mukhtar Jafari Post author Reply

      Ok dear. Right now I’m not in a good location and I don’t have access to laptop or desktop. I reply all the comments by mobile and as soon as I get in a secure place I will add it
      Thanks for informing

  109. Emmanuel Reply

    Fail, After do all step,
    Start “MacOS Sierra” in Virtual Box,
    Virtual Box appear Error message, Close or ignore.
    So bad.

  110. KvackEvolution Reply

    Iam getting Guru Meditation Critical error, even if i done everything correctly with closing VBox during the cmd step. When i checked my log, its say something with CPU 0 changed to Meditation Mode:

    My Specs:
    OS: Windows 10 Pro
    CPU: Intel Core i5 7600K 3.80 GHz (7th gen Kaby Lake)
    GPU: ASUS Strix Geforce GTX 1060 OC6 (6GB version)
    RAM: 16 GB Corsair Vengance LPX 3000 Mhz (2×8 GB)
    Mobo: MSI Krait Gaming z270
    Storage: (SSD: Samsung 850 Evo 250 GB) HDDs: WD Blue 1TB, Seagate Barracuda 1TB, WD “some shit” 400 GB.


  111. BigJoe Reply

    A Good howto (tip: watch the tutorial video while downloading the vmdk)
    Works like a breeze, just make sure to close Virtual box before entering the vboxmanage commands

  112. Chris P. Bacon Reply

    Awesome. All installed. I would recommend putting in GIANT BLOCK LETTERS IN YOUR TUTORIAL that you need to CLOSE VIRTUAL BOX BEFORE STEP 5. It was on a boot loop before that.

  113. Marco Reply

    Works even in Virtualbox 5.x in Debian. Just note that the network card is an Intel Desktop and not Server (match the OEM).

  114. Mike Terner Reply

    can i install it with less ram i am on intel core 2 duo because it’s giving me guru medication error

  115. MrDarkmark Reply

    I am having a problem. It says: A critical error occured while running the virtual machine and the machine execution has stopped. If you would like to know I am running and Intel i5-7200U 2.5GHz with Turbo Boost up to 3.1 GHz
    and NVIDIA GeForce 940MX with 2 gb decidated vram

  116. Jua Reply


    I’m having the “Guru Meditation” error (A critical error has occured…) when I start the virtual machine.

    I followed all the instructions carefully and even repeated all the steps twice – and increased processor count to 4, but it still is not working. Here is my log:

    Please can you help me fix it because I really want to run macOS. By the way, I downloaded the “macOS Sierra Final (1 Part)” file.

  117. Dhanji Parmar Reply

    Setup #6 error
    Guru meditation
    A critical error has occurred while running the virtual the machine execution has been stopped

      1. Dhanji Parmar

        I think you changed my comment. Anyways, I did add it correctly. What do you mean?

  118. Asriel Reply

    I had the same issue others were having with the bootloop, but that was fixed with me actually following the instructions.
    Now I’m getting this, stuck at a Bash prompt with no idea what to do.
    Doing Exit takes me to a menu, no matter where I go from there it always ends up back at this screen.

      1. M. J.

        Same exact problem.
        Virtualization is enabled in BIOS.
        All cmd commands run as Admin while VirtualBox was shut down.
        Any ideas?

  119. Mr. S Reply

    I’ve followed all the instructions, and I made sure to exit VirtualBox before using the commands, but when I start the VM to start installation it only shows a black screen and nothing else, and I’m not sure why that is.

  120. Leo Reply

    Have Sound problem intel hd audio play sound in slow motion, have Intel i3 CPU youtube and other musik in virtual Box all slow motion. Linux say to my audio Hardware is Audio device: Intel Corporation 6 Series C200 Series Chipset Family High Definition Audio Controller

    1. Faiz Orz Reply

      Yeah, it the most of out macOS Sierra on VirtualBox because you can install the guest addition and fix all the issue. But you can fix issues like the sound on VMware because there you can install VMware tools and fix the most common problems including graphics, sound, etc.

      Check out how to install macOS Sierra on VMware workstation 12 here:
      Updated: The video is removed from YouTube 'Sorry for the inconvenience guys'

  121. careyer Reply

    Hi there. I am wondering where the macOS VM image (vdmk Files) comes from? Is there a DIY method to create such a file? Is it a patched version? Would be really interested in this! Thanks in advance

  122. Ni Azevedo Reply

    Hi. I’m having an error on Step 5 and I have the virtual machine off. I even rebooted my computer.

    This is the error that appears:

    C:\Program Files\Oracle\VirtualBox>VBoxManage.exe modifyvm “macOS Sierra” –cpui
    dset 00000001 000106e5 00100800 0098e3fd bfebfbff
    VBoxManage.exe: error: The machine is not mutable (state is Saved)
    VBoxManage.exe: error: Details: code VBOX_E_INVALID_VM_STATE (0x80bb0002), compo
    nent SessionMachine, interface IMachine, callee IUnknown
    VBoxManage.exe: error: Context: “SetCPUIDLeaf(id, aValue[0], aValue[1], aValue[2
    ], aValue[3])” at line 742 of file VBoxManageModifyVM.cpp

  123. Anon Reply

    I’m having this error when clicking start on VirtualBox
    – Failed to open a session for the virtual machine
    Details –
    The virtual machine ‘macOS’ has terminated unexpectedly during startup with exit code -1073741819 (0xc0000005). More details may be available in ‘C:\Users\Owner\VirtualBox VMs\macOS\Logs\VBoxHardening.log’.

    Result Code:
    E_FAIL (0x80004005)
    IMachine {b2547866-a0a1-4391-8b86-6952d82efaa0}

    I have followed all the instructions, including the close the app before running cmd as an admin. However the only setting I cant follow is that I cant set my cpu to 2 which is the minimum, it’s stuck on 1.

  124. Asuka Reply

    Hi there, thanks for this great guide!
    The only step which was unclear was from 4 to 5: Close VirtualBox before adding the code in CMD on Step 5.

  125. Tom Lake Reply

    I followed the instructions exactly, including the code steps. but I get the error shown at the link.
    I have VirtualBox 5.1.14 running on Windows 10, Intel Core i7-7700K with 64GB RAM. I limited myself to setting up the vb exactly as shown in the photos and I created a batch file from the included code. There were no errors when I ran the batch file. I even named my Sierra vb the same as the example. Other OSes run fine in VB (Win 7, Win 8.1, Win Vista) on this PC so I know VirtualBox is installed correctly.

  126. Milind Reply

    Thank you, this actually works !! Make sure you close the Virtual Box while entering the code in the cmd prompt.

    1. Bernhard Reply

      Save this into a file, make it executable and run it. You have to adjust VMNAME if you use a different name for your VM.

      VMNAME=macOS\ Sierra
      vboxmanage modifyvm “$VMNAME” –cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
      vboxmanage setextradata “$VMNAME” “VBoxInternal/Devices/efi/0/Config/DmiSystemProduct” “iMac11,3”
      vboxmanage setextradata “$VMNAME” “VBoxInternal/Devices/efi/0/Config/DmiSystemVersion” “1.0”
      vboxmanage setextradata “$VMNAME” “VBoxInternal/Devices/efi/0/Config/DmiBoardProduct” “Iloveapple”
      vboxmanage setextradata “$VMNAME” “VBoxInternal/Devices/smc/0/Config/DeviceKey” “ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc”
      vboxmanage setextradata “$VMNAME” “VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC” 1

  127. Aekanshu Reply

    there is a error in my vm box that ” a critical error has occur while running the virtual machine and the machine execution has stopped”

      1. Greg

        I’m also having a isue with a critical issue has occured. The video doesn’t help. I’ve followed all the steps and pasted the cmd code in correctly.

  128. Peter Reply

    It doesn’t works on my PC. I have intel chipset.
    The booting restarts again and again.
    I’ve tried run commands from text files, issue still there.
    Are you sure is it works? As i can see, there is a lot of similar problem. 🙁

  129. Amogh G Reply

    I followed all the steps up until the booting up of the VM… For some reason it keeps giving me this “Guru Meditation” error.

    I went into the log files to check, and here is what it said:
    VCPU0: Guru Meditation 1155 (VINF_EM_TRIPLE_FAULT)

    Here is a screenshot of the actual error pop-up uploaded to Imgur:

    Please help me out! I would love to try out Mac OS.

  130. Ismail Yaakob Reply

    Hi bro, thanks for great article. Btw I have problem after click power on wmware as mac os x is not supported with binary translation.
    ‘To run mac you need host on which vmware supports intel vt-x or amd…’
    Any idea bro since Im new for this method. Thanks.

  131. Pedro Reply

    How can i create a vmdk macOSX siera and don’t need to use the vmdk in this article?
    Its works very good.
    Thx for help.

  132. Vizor Reply

    HELP. I followed your guide until I booted the vm, but the vm white text on black is stuck at “VM Subsystem is ON”. Can you help me?

    1. Mukhtar Jafari Post author Reply

      Did you apply the step by step guide with the video?

      Most of the error occurs due to VirtualBox code. When you are entering the code to cmd make sure, you should quit the VirtualBox then it will work.

    1. f Reply

      And after a few restarts, i3-4020Y can’t start anymore, catalog file checking, and then can’t finish some file verification completely, shutdown in 3 seconds ….

      Not worth it ~~~~

  133. Dennis Reply


    i only can chose “macOS X (32 bit)” or “mac OS X Snowleopard (32bit)”, what can I do? I tryed it with virtualbox 5.1.14 and 5.1.6.

    my PC:
    Win 10 64 bit
    Intel i7-6700HQ
    12GB RAM
    Intel HD Graphic and G-Force 960M

  134. Nik Reply

    Hey Guys,
    Just solved the reboot problem!!!!!
    If you made the mistake, to do the cmd thing while vb was opened, you need to reinstall the whole thing! That includes reunarchiving the image and reinstalling virtual box (with reboot)! That worked for me! I hope, I could help some of you! Maybe you could add this to a troubleshooting part at the end of the tutorial 😀
    Thank you 😀

  135. Ish Singh Reply

    hi, I have tried making this machine through the video tutorial, but I keep on getting this guru message. if you need a snapshot of that message please tell me how to send it to you?


  136. Mike Reply

    This worked for me running VirtualBox on a Debian Linux host following the steps almost 1:1…Just have to modify the commands a bit – don’t need to “cd” – vboxmanage is already in your PATH on Debian when you install VirtualBox via apt. Also, obviously remove the .exe extension from any of the other commands.

    Screen resolution fix also worked, although I would love to know how to set custom resolutions (namely 1080p). I think it would require also modifying some configs in the guest OS. I tried to work it out from some other info I found online, but nothing has worked so far.

    Greatly looking forward to the tutorial on getting iMessage to work, as I see mentioned above in a comment from Jan 7 2017!

    THANKS FOR THIS!!!!!!!

    1. Mike Reply

      Also just learned that USB pass-through works! Although, so far doesn’t seem to like having more than 1 device connected at a time….

      That said, though, Xcode works flawlessly and I”m now able to create, build, and deploy my app to my iPad via iTunes right on my Linux workstation!

      This has been a great day…WOO!

  137. William Fulmer Reply

    Trying this setup on both VirtualBox 5.1.6 and the latest 5.1.2 and am getting the same
    “”A critical error has occurred while running the virtual machine and the machine execution has been stopped””

    If I change the Paravirtual type to None – I get
    ““This version of Mac OS X is not supported on this platform”

    I have tried to remove all VirtualBox installations and start from scratch at least a dozen times and not getting this going anywhere.

    Any thoughts? or specific parts of the VBox.log I can post to help get this going?

    * I have tried the latest code and run CMD as Administrator

    1. William Fulmer Reply

      Host machine is an HP Spectre x362 w/
      * Intel Core i7-7500U @ 2.7 GHz
      * 16 GB RAM

      Guru Meditation 1155 (VINF_EM_TRIPLE_FAULT)

      1. omar rici

        Same laptop:Host machine is an HP Spectre x362 w/
        same error:Guru Meditation 1155 (VINF_EM_TRIPLE_FAULT)
        Find a solution ?
        thanks in advance

      2. omar rici

        I’ve got it
        spectre x360 wooo ( I7-7500U kaby lake)
        virtualbox 5.1.14
        Guru Meditation 1155
        error to read msr: rdmsr(0x35) -> #GP(0)

        Just run extradata (cmd command):
        VBoxManage setextradata “your VM” VBoxInternal/CPUM/MSRs/MsrCoreThreadCount/First 0x00000035


      3. Kevin

        Magic – this extra CPUM command got me through the critical error on startup. No idea what it does or the conversation that led you to post it, but thanks!

      4. Jacob

        Did you ever get this figured out? i am having the same problem and cannot seem to find a fix. Host is DELL i5, 8gb RAM, trying to run sierra

  138. CsabaZz Reply

    Very nice article, thanks for the helpful instructions! Can I install Sierra on my PC also, or it won’t be running because of the DSMOS?

  139. Josenildo Reply

    Here functioning but what i do for adjuste resolution for 1280x768x32 or 1366x768x32 on Sierra OS. Here only show 1024x768x16.
    I have executed one clean install after load the VM downloaded here reinstall one clean copy and functioning all minus update resolution for display.

    Thank you for that work! Great work!

  140. Rudy Reply

    During Step 3, there are no 64 bit versions in the drop down list. Step 4, part 3, I cannot go over 1 processor.

    Any suggestions ?

  141. Rudy Reply

    Hello! I’ve successfully got this done on my machine, thank you. On my wife’s, I am having issues.

    Virtualbox 5.1.12 ( same as the one I successfully used on my system) but when I run it, there are no 64-bit options on the list. I also can not go past 1 processor.

    Any suggestions?

  142. Johar Reply

    Initially I stuck but I tried many times. The best thing I did is I updated my virtual box & extension pack, then removed old machines and repeated carefully all steps guided by you, religiously.

    Hola ! now I am running mac os sierra.
    Only one problem is SLOW VOICE FROM SIRI

      1. Oleh

        * i7-6700 last gen, host win10x64, VirtualBox 5.1.12
        And while trying another macOS (El Cap) I’ve managed to reach OS installation process, but I’ve got an error after 3-5 clicks with the message “hfs: unmount initiated on untitled on device disk1” and returning me to the first screen of installation process.

    1. Oleh Reply

      UPD: Fixed this error by rebooting host machine and re-entering commands to cmd
      (donnow which action actually fixed the problem)
      Now everything works fine.
      Tnx, wikigain!

  143. Marcos Santo Reply

    I followed the steps but i get the Considerrebuildofkernel notification wich it stays on.
    Could anyone assist me?

    Thanks in advance

  144. NothingIsReal Reply

    Everything worked OK.
    Please remember to close Virtualbox before proceeding to step’s #5 coding.
    Otherwise you’ll get some problems while booting the VM.


  145. Diogo Reply

    I did everything acording to the video and after I start my virtual machine it gives me this error: “A critical error has occurred while running the virtual machine and the machine execution has stopped.”
    Have I made some mistake?

  146. Insaf Reply

    Hi. Help me!
    I have an error at run, out the black window with the text “fatal no bootable medium found system halted”
    Did everything according to instructions. How can I fix it?

  147. Shazam! Reply

    Thank you for this tutorial!

    For those who are getting the message

    “This version of Mac OS X is not supported on this platform”

    I had to enable some settings not specified in this tutorial (but were visible in the authors VirtualBox screenshot luckily!)

    System -> Processor -> Enable PAE/NX
    System -> Processor -> Acceleration -> Paravirtualization Interface -> Select Minimal
    System -> Processor -> Acceleration -> Enable VT-X / AMD -V
    System -> Processor -> Acceleration -> Enable Nested Paging

    Boom! Then I got it to boot into the installation screen 🙂

  148. Roy Reply

    Hi, my computer is running a Intel(R) Celeron(R) 1017U @ 1.60GHz 1.60 GHz 4.00 GB (3.89 GB usable). Is it possible? I tried once installing it and all I got was a black screen. If it is not possible on VM are there any workarounds. If it IS possilbe to run this without an i7 then I did something wrong. Please is someone can reply. I would be highly grateful.

  149. Ahtisham Shafi Reply

    Asalum alikum brother

    I did everything by following the video but i get the following error when click on ‘Start’ :
    ” Failed to open a session for the virtual machine macOS Sierra. ”

    Details of error:
    “VT-x is disabled in the BIOS for all CPU modes (VERR_VMX_MSR_ALL_VMX_DISABLED).

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

    I also wanna mention that i downloaded macOS Sierra in parts.

    Thanks for your kindness.

  150. none Reply

    something going wrong here :
    EFI: VBoxDbg> loadimage64 ‘E:/tinderbox/efi2-5.1/out/win.amd64/release/obj/VBoxEfiFirmware/amd64/RELEASE_VS2010/X64/

    1. Mukhtar Jafari Post author Reply

      I’m not sure about this error I think you might have missed any step. Read the article, and try once again. One thing I have to mention for you that you should exit VirtualBox while entering the code to the CMD (Step #5).

  151. Noah Reply

    I have the Virtual Machine up and running perfectly, unfortunately, I seem unable to mount USB flash drives to the VM. I get the error (“Failed to create a proxy device for the USB device. (Error: VERR_PDM_NO_USB_PORTS).

    Any advice?

  152. Spicy ITC Reply

    Worked for me! After two years of previous attempts at getting a Hackintosh to work on VirtualBox.
    As others have said, Step 5 should include the instruction to quit VirtualBox before running the commands. I didn’t the first time and the Hackintosh failed to boot properly.
    As an IT admin with twenty years of Windoze experience, it’s great to finally experiment and learn about Mac OS X without shelling big $$$ for hardware.

  153. luckyduck69 Reply

    This no longer works as of 11/27/2016. The first issue you will run into is that the mouse will not be captured by the guest (MacOS) up on booting into first configuration menu. You can get around this by capturing your mouse directly in the VBox menu. The next problem you will run into is that the first time configuration menu will not allow you to login with your Apple account. It will give you a message stating that this machine is no longer authorized to do so.

    1. alec alex Reply

      Works flawlessly. The “warning” message is merely that “this machine cannot create any more Apple ID’s”. Just ignore and continue. Can still log in with an existing Apple ID..Just go to the Apple website and create an ID.

  154. ToadFungoso Reply

    I started up the Virtual Machine and got
    UEFI interactive shell v2.1
    EDK II
    UEFI v2.40 (EDK II, 0x00010000)
    Mapping table
    BLK0: Alias(s):
    Press ESC in 1 seconds to skip startup.nsh or any other key to continue.
    I have an AMD A6 Quad core (Notebook)

    1. Mukhtar Jafari Post author Reply

      Most of the time this error happens due to Virtualization Technology which is disabled from your BIOS.
      Make use that this option is enabled then try again.

      One more thing I have to mention for you. In step #5 when you want to add the code to the CMD, you must exit the VBox.
      If you did not fix the problem let us know.

      1. ToadFungoso

        The same error. I unistalled virtual box, I downloaded and installed Virtual Box 5.1.10. I repeated all the steps but it says me again first a thing with “OS/2 acceleration etc.” and after “UEFI interactive shell v2.1
        EDK II
        UEFI v2.40 (EDK II, 0x00010000)
        Mapping table
        BLK0: Alias(s):
        Press ESC in 1 seconds to skip startup.nsh or any other key to continue.

  155. Me Reply

    Well I was gonna say that the VM is permanently rebooting without ever getting to the welcome screen and ask for an explication, but obviously this is the case for everyone… So my question: Did this work for anyone here ? Cuz it really looks like this is simply another non-working tutrial you can find on the internet

    1. Mukhtar Jafari Post author Reply

      Use the updated code from the article then try step #5
      Keep in mind that exit VirtualBox then add the code to CMD. If you don not exit the VBox, it may not work correctly.

      If this method did not work, let me know.
      Good luck! 😀

  156. doubleplusthink Reply

    I started up the Virtual Machine and got
    UEFI interactive shell v2.1
    EDK II
    UEFI v2.40 (EDK II, 0x00010000)
    Mapping table
    BLK0: Alias(s):
    Press ESC in 1 seconds to skip startup.nsh or any other key to continue.

    could someone help me out?
    It may be noted that I am trying to do this on another drive not the C: drive it is the M: drive the vbox is stored on this drive and so are all of the recommended download files. I also changed the command prompt code to M:\ instead of C:\

  157. Mindaugas Reply

    I’ve got this working on Ubuntu. It was crashing at first, but then I skipped two first lines from code.txt file(change directory and modifyvm) and all other worked like a charm. Thanks for a tutorial and files! 🙂

    1. Mukhtar Jafari Post author Reply

      Have you Enable Virtualization Technology from your BIOS?

      You should enable Virtualization Technology from your BIOS then Follow step by step guide
      Also use the updated patch tools.

  158. Khusk Reply

    I have done all the steps correctly but when I start Virtual Machine it does not show anything. It shows only black screen without any running code. Can you help me please?

    1. Petter Reply

      The same happens to me. I have done all the steps (correctly!), but I just get the black screen as well.. I’m using VB version 5.1.8

      1. Mukhtar Jafari

        Hi dear Petter. It’s because of the VBox code. We have updated the code just download the new version from the link in the post then try step #5 one more time. It will work completely.

  159. Losada Reply

    I made a Vm and it works thanks to you.
    But I have a problem of his it is cut and the sound serious voice deformed and slowed down.
    He does not have a fix for it. You do not have a line of code that resolves the problem.

  160. Petter Reply

    Everything works fin until step 6. I get no errors during step 5. When I then start the vm in step 6 I just get a black screen.. Nothing happens.. My system is Lenovo W520 with Intel Core i7.. Any ideas ? Thanks !

      1. Mukhtar Jafari Post author

        No that’s not a big deal. Just repeat Step #5 once again. Because most of the people have this error when they add the code to the cmd correctly.
        The problem will be solved. Open cmd normally “Not as administrator”. copy and paste the VB code to cmd then open VirtualBox.
        Keep in mind that before adding code, you must exit VirtualBox and it should not be opened while adding the code to CMD.
        Also, don’t forget to set the video memory from Virtual machine settings to 128 MB.

      2. Petter

        Sorry Mukhtar, but I have now repeated step #5 multiple times.. I shut down VirtualBox, open cmd normally and enter er 6 lines. No errors. I then open VirtualBox again, check that video mem is set to 128MB, and start the vm.. Same result.. Just a black screen.. I’m running version 5.1.8

    1. Chad Reply

      what were you missing? The link you provided just shows this, which isn’t helpful to me at least… New Code is Updated!

      Install macOS 10.12 Sierra Retail on VirtualBox on Windows PC (Download links)
      Updated: The video is removed from YouTube 'Sorry for the inconvenience guys'

      1. Mukhtar Jafari Post author

        The code is the same there is not much difference. macOS Sierra 10.12.2 is linked in this guide. 10.12.3 is the update one. It means it’s not very old version.

  161. Jessica Reply

    Hello !
    Thank you for this guide. It seems that your download limits for the “macOS Sierra” file has been reached (on google drive). I can’t download it.

    1. Taras Reply

      Hello, you can create a copy of the file into your G-drive account and download it from there if the download limits for the file has been reached

  162. Eric Reply

    Well , I did read thoroughly… Still have no clue how to edit the code before going into the cmd prompt.. Would love to get some more help.

  163. Eric Reply

    First of all thank you very much for this guide! I am absolutly new to this so forgive me if I have ignorand questions.
    I get stuck at step 5
    I understand I have to edit the VM -name .
    In the on-screen I can see a file being edited in notepad called “virtualbox code”.
    Maybe I just don’t get it but I can’t find any such file on my machine.

    Please help

      1. D

        This is not an answer. Where is the file “virtualbox.code”. Eric is right. I cannot find this file and this step is absolutely unclear. On top of that, your answer is equally confusing.

  164. macOS Fan Reply

    With VMWare version is there a way to add multiple resolutions within the OS? Upon boot, my only option is 1024×768. If I go full screen from VMware, it changes to 1920×1080, but within macOS, I don’t have multiple resolutions to choose from.

  165. Hunter Hemingway Reply

    Stuck on Step 6 part 2.

    Never achieved loading of macOS Sierra continues to reboot through “white text” over and over.

  166. alessio Reply

    Hi all
    I was also stucked in the VM booting point, with the rebooting over rebooting error reported by some of us. Just to share my experience, to me it worked to close all VM and the program virtualbox and redo step 5, then open it again and run the VM

  167. Alberto Reply

    Hi, everything is working great. I have W10 host and MacOS Sierra guest. How could I create a shared folder between them? Thank you 😉

    1. Mukhtar Jafari Post author Reply

      Apply Step #5 once again and be aware of increasing the Ram size as well.
      Before adding the code to the cmd, do remember that exit the VirtualBox then add those codes.
      Good luck!

      1. Michal

        Okay.. you didn’t mention that for those CMD’s you need yo shutdown VirtualBox.

        After that only VM booted properly, but i don’t understand RAM part, i’ve set-up 4gb as you told 🙂

        Also for some reason system is detecting only 3MB of video ram and got poor resolution (1024×768)

  168. Paul Reply

    vid mem is set to 128 and i have tried the vmdk from here but just wont run. i tried a few others as well but they do not run either. i can only select 2 x cpu as this is all my machine has. i’ve tried adding the smc.ver line and changing vrhw to 10. when i tried an iso i get cpu has been disabled ……

    spent a lot of hours on this but getting no where. have used aqnd created lots of vm’s before but this one has got me….. help !

  169. Jo Reply


    I’ve got the following error as in the screenshot.

    Any suggestions?

  170. Paul Reply

    btw. ive got a perferctly good running el capitan on vm. i downloaded a sierra iso and tried with that but no luck ….

  171. Paul Reply

    hi, ive followed this procedure 20+ times now to the letter and just get a quick flash of ‘Found HFS” and I cannot read the rest it is so fast, then a black screen that does nothing. ive tried all the above but still the same. ive got a 1tb hdd, e6700 cpu, 4gb ram and win 10. any thoughts?

  172. Goechi Reply

    Hello 😛
    I get a problem on the first boot where i get the error :
    unexpected session: 100000 uid: -1 requested by: 31
    AppleKeyStore: operation failed (pid: 31 set : 7 ret: e00002c2 ‘-536870206’)
    IDGraphics flags 0x43

    1. Pavel Reply

      Hi! I have absolutely the same error (“unexpected session: 100000 uid: -1…”). And get infinite reboot then with this error. Don’t know what to try.

    2. Pavel Reply

      Update: manual closing of “VirtualBox Interface” process and #5 redo helped.
      For some reason this process was running even after closing VirtualBox.
      So now it’s working. Mukhtar, thanks for the work! But why it shows only 3mb video?

  173. Vlad Reply

    I followed the instructions and installed Sierra virtual machine with no problem. For my purposes i had to change the Network settings but other than that everything else works fine.

  174. getwell2 Reply

    Hello, here I have a little problem with installation to begin 🙂 I followed step by step your tutorial. Unfortunately, this one does not work for me :’-(
    First : I have a laptop Asus Rog with a i5 6300 HQ, an Nvidia 960M and 8go DDR4.
    And when i try to install macOS, my virtualbox do that : Updated: The video is removed from YouTube 'Sorry for the inconvenience guys' (it’s an private youtube video). And he did the same loop again and again…

    Can you help me ?

    1. DavidM Reply

      I solved the infinite boot loop by selecting the correct CPU spoof:

      For some host systems eg those with Haswell and newer CPUs, you might have to spoof an older CPU to avoid VirtualBox errors. You can try from one of the following if this happens:

      To spoof Lynnfield i5 750 CPU

      VBoxManage.exe modifyvm “El_Capitan” –cpuidset 00000001 000106e5 06100800 0098e3fd bfebfbff

      To spoof IvyBridge CPU

      VBoxManage.exe modifyvm “El_Capitan” –cpuidset 00000001 000306a9 04100800 7fbae3ff bfebfbff


      VBoxManage.exe modifyvm “El_Capitan” –cpuidset 00000001 000306a9 00020800 80000201 178bfbff

      My environment:
      Windows 7 with 4 Gb ram and 2 core Intel Celeron E3300 2.5Ghz
      VirtualBox 5.0.40

      When I applied: VBoxManage.exe modifyvm “Mac OS X” –cpuidset 00000001 000306a9 00020800 80000201 178bfbff
      + all the other changes:
      VBoxManage setextradata “Mac OS X” “VBoxInternal/Devices/efi/0/Config/DmiSystemProduct” “iMac11,3”

      VBoxManage setextradata “Mac OS X” “VBoxInternal/Devices/efi/0/Config/DmiSystemVersion” “1.0”

      VBoxManage setextradata “Mac OS X” “VBoxInternal/Devices/efi/0/Config/DmiBoardProduct” “Iloveapple”

      VBoxManage setextradata “Mac OS X” “VBoxInternal/Devices/smc/0/Config/DeviceKey” “ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc”

      VBoxManage setextradata “Mac OS X” “VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC” 1

      it worked and stopped looping on boot.

      NB I tried on another machine but didn’t work cos of the AMD processor – only works with Intel processors

      Very good article – well done indeed!

  175. Georges Reply

    I have the same issue as MANIKANDAN and others. DSMOS: SMC returned incorect key … Dont_Steal_MacOS.cpp:219
    Any solution yet

  176. jamacoe Reply

    Got it all working, great manual, thank you. Easier than ever. To solve my problem, I switched off ‘Nested Paging’. Funny. My Yosemite installation used ‘Nested Paging’.
    Now what can I do to get a full screen resolution?

  177. jamacoe Reply

    Sounded really too easy. Step 5 goes right into guru meditation. Using VB Version 5.0.26 r108824 on Debian Jessie 64bit.

  178. Lorenz Reply

    Hey I have a problem wit the installation. i7 8gb ram

    i only see console ext and it reboots. not sure where the problem is but i have some lines that may be wrong:

    sound assertion in applehda[…] (maybe 10 times

    ans DSMOS: SMC returned incorrect key: 00000000000[…]00000