VirtualBox: How to create a macOS High Sierra VM to run on a Mac host system

So I have a MacBook Pro running macOS Sierra (10.12) and I wanted to run a virtual machine (VM) of macOS High Sierra to try out the new operating system. It's always a struggle to get macOS as a guest system running on macOS as the host system, but today was my lucky day and after several failures I managed to get it running! So here is how I did it...
My environment
macOS Sierra 10.12.6, VirtualBox 5.1.28 with installed VirtualBox Extension Pack
You will need at least 4096 MB RAM of host memory, more is better. You also need ~20 GB disk space for the virtual machine, as well as ~18 GB free space temporarily for the creation of the install media.
Create a macOS install ISO file for VirtualBox
- Download macOS High Sierra from the Mac App Store
- Hint: if you have downloaded macOS High Sierra before the 5th of October, delete it and redownload it. Apple made some changes to the previous released version, especially to the installer, which are important to get this VM running. The version of the "Install macOS High Sierra.app" has to be 13.0.66 or above.
- Hint: if you have downloaded macOS High Sierra before the 5th of October, delete it and redownload it. Apple made some changes to the previous released version, especially to the installer, which are important to get this VM running. The version of the "Install macOS High Sierra.app" has to be 13.0.66 or above.
- Open a Terminal window, create a "virtual USB flash drive"/disk image:
1hdiutil create -o /tmp/HighSierra -size 8G -layout SPUD -fs HFS+J -type SPARSE - Mount it:
1hdiutil attach /tmp/HighSierra.sparseimage -noverify -mountpoint /Volumes/install_build - Put the installer files into this new disk image:
1sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build - Unmount the disk image, so that the resource is not busy for the next step:
1hdiutil detach /Volumes/Install\ macOS\ High\ Sierra/ - Convert the disk image into an ISO file (VirtualBox is not capable of booting from a .dmg or .sparseimage file):
1hdiutil convert /tmp/HighSierra.sparseimage -format UDTO -o /tmp/HighSierra.iso - Move it to the desktop folder and rename the extension of the file to .iso:
1mv /tmp/HighSierra.iso.cdr ~/Desktop/HighSierra.iso - Delete the sparseimage in the tmp folder:
1rm /tmp/HighSierra.sparseimage
Create the VM
- Create a new machine
- Edit the new machine
- System -> Motherboard -> Boot Order: deactivate Floppy
- System -> Processor -> change CPU to two, optional: set execution cap to 80% (this value is up to you and your host system configuration)
- Display -> Screen -> Video Memory: increase it to 128 MB
- Storage -> virtual hard disk -> don't activate "Solid-state Drive" (this is pretty important, because the macOS installer converts your virtual partition to APFS if it detects it as a solid state drive, unfortunately VirtualBox doesn't support APFS at this moment, so the boot process will fail while installing High Sierra. For non solid state drives, the installer is not going to convert the virtual disk to APFS and leave it untouched as a HFS+ volume)
- Storage -> Optical Drive ("Empty") -> choose the HighSierra.iso from your desktop folder (to choose it, click on the CD icon next to "SATA Port 1")
- Audio -> deactivate Enable Audio
- stick with the default values of all the other options and apply the settings with the "OK" button
- System -> Motherboard -> Boot Order: deactivate Floppy
Installation of macOS High Sierra Part 1
- Start the VM
- wait until the language chooser appears and choose your language (optional: change the keyboard layout to your country keyboard layout in the top right corner with a click on the US flag icon)
- Open Disk Utility
- Click on "View" in the top left corner of the Disk Utility window and choose "Show All Devices"
- Highlight "VBOX HARDDISK Me...", then click "Erase", choose a name for the virtual hard disk and click the "Erase" button to partition and format the virtual hard disk
- When the erase process is done, close Disk Utility
- Next choose "Install macOS"
- Click Continue
- Agree to the terms of the license agreement
- Choose your previously created virtual hard disk and finally start the installation with a click on "Install"
- The installer installs some files and after a while the machine will reboot automatically
Installation of macOS High Sierra Part 2
- After the reboot, the VM will display an error message: "Boot Failed. Mac OS X"
- Because of this error, after 10 seconds, the machine will then do a "fallback boot" into the "Part 1" installation process. Why? VirtualBox doesn't recognize that there is a new disk, containing a second EFI, which we need to boot into. So we have to do this manually.
- To do this, restart the machine (CMD+R will hard reset it, or, if the "Part 1"-Installer is already running, click on the Apple logo in the menu bar and choose "Restart").
- Now you have to be very fast: while the VM restarts, press the fn+F12 keys a few times, so that it gets into the VirtualBox boot manager. You have to be very quick! If the machine is already displaying "Boot Failed. Mac OS X", hit CMD+R to reset it and try again.
- If you were fast enough, choose "Boot Maintenance Manager" and hit the Enter key.
- Go to "Boot from File" and hit Enter again.
- Choose the entry with ...HD(2,GPT)...
- Choose <macOS Install Data>
- Choose <Locked Files>
- Choose <Boot Files>
- Choose boot.efi, this will boot the machine into the "Part 2" installation process of macOS
- macOS High Sierra will then continue to install itself.
- Click through the steps of the "first run wizard"
- ...and you are done! 🙂
- Finally shutdown the virtual machine, remove the ISO from the virtual optical disk and create a snapshot of the VM, just in case... it's always nice to have a backup 😉
Have fun with your newly created virtual machine running macOS High Sierra 10.13!
//Update (2018-02-10): A huge thanks to all of you, who appreciated this article and were thankful for it in the comments. I'm overwhelmed by all the feedback in the comments! Thank you.
Oktober 17th, 2017
how I get the password?
Oktober 17th, 2017
you don‘t need a password?
Juni 6th, 2019
Thank you so much for the article, it’s a life saver! 😀
Oktober 17th, 2017
After: sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia –volume /Volumes/install_build
I get this Error:
Erasing Disk: 0%… 10%…
Error erasing disk error number (22, 0)
A error occurred erasing the disk.
Oktober 17th, 2017
you need to type in your administrator password
Oktober 17th, 2017
Great! All the other tutorials I found on the web got stuck at the “Boot Failed. Mac OS X” step. Thank you!
Oktober 20th, 2017
Geiler Typ. Thanks a lot! Seems to work!
Oktober 24th, 2017
When I start the VM im virtualbox I get a reboot after a while which is infinite. Last message has something to do with wrong Power Management.
Oktober 26th, 2017
Thank you so much. It’s a perfect doc to me. 🙂
November 5th, 2017
hat mir super geholfen, danke
November 6th, 2017
Great guide, thanks for that! I needed to press F12 after starting the VM for the first time, otherwise the VM wouldn’t boot from the disk.
November 6th, 2017
Followed all the steps but get a blank black screen at start up… does not take me to the language chooser. I have tried pressing F12 also… stuck – any help?
November 6th, 2017
it can take some time to boot into the installer, did you wait for at least 5-10 minutes?
November 15th, 2017
Hmm.. been waiting for 10+ minutes now.. did a third test 14 minutes passed and just a black screen
Using:
MacBook Pro (15-inch, 2017) macOS 10.13.1
VirtualBox Version 5.2.0 r118431 (Qt5.6.3)
Dezember 1st, 2017
Your CPU might be too new for VirtualBox to handle correctly. See if the instructions from https://forums.virtualbox.org/viewtopic.php?f=22&t=85631#p407278 can help you, primarily the “–cpu-profile” modification option.
November 8th, 2017
thanks a lot man!!!
November 10th, 2017
Thanks for this! I was stuck with the problem with the first boot.
Wish I would’ve found this post earlier 🙂
I also had problems converting the .cdr.dmg to an .iso file, always kept having errors. I went around the problem by copying the file to an external drive and doing the convert from there – worked like a charm.
I also had to erase the created virtual disk in the first part of the process through the GUI since I was getting the same error as above
Erasing Disk: 0%… 10%…
Error erasing disk error number (22, 0)
A error occurred erasing the disk.
Once I erased the created partition via Disk utility GUI -> I was able to proceed.
November 11th, 2017
Changing to ‘boot.efi’ works for the second part works only I haven’t been able to boot afterwards into the the ‘first run wizard’
Dezember 10th, 2017
I just did the “boot.efi” trick again.
November 19th, 2017
Thanks, worked great on Arch Linux using Virtualbox 5.2 🙂
November 21st, 2017
Thank you for this guide!
November 25th, 2017
Thanks a lot it worked . . .
November 28th, 2017
After completing all of the steps I receive a
The path /system/Installation/Packages/OSInstall.mpkg appears to be missing or damaged
Any ideas?
Juli 6th, 2020
Late by a few years.
Had the same issue. I used another iso file and did not get the error.
November 30th, 2017
Thank you for this instruction.
Everything is working without problems (after three other wrong solutions)
I think thats the best google result that google has given to me today.
Dezember 10th, 2017
Thanks. The tip about finding the needed boot.efi was exactly what I needed. Now up and running…
Dezember 10th, 2017
THANK YOU SO MUCH!! I got stuck at the failed boot and none of the other installs directions mentioned that part.
Dezember 10th, 2017
It worked thx
but when I shut it down to change some settings in VirtualBox and reopened it, I had to do Install High Serria again starting from Part two, is it because I changed some settings in VirtualBox?
Dezember 10th, 2017
Depends on the settings you have changed, can you provide more details?
Dezember 17th, 2017
I just changed the specs and CPUs, to add there four boot orders I could choose from (weird).
I ask Virtualbox and here are some of the responses I got:
https://forums.virtualbox.org/viewtopic.php?f=22&t=85915
Dezember 11th, 2017
Hi Tobi
Thank you! You helped me a lot.
Do you know if I can also use this same iso file to install the HS in the VMWare?
Dezember 12th, 2017
I think that should be possible, although I‘m not a VMware user.
Dezember 11th, 2017
I have a problem: after I installed and updated the system, when I turn off and turn on again the VM, the black screen that appeared when I installed at the 1st time was showed again and the installation windows appears when the VM loaded.
Dezember 11th, 2017
I found the problem but I don’t know how to solve it. I had to define the initialization disk on this screen. What I need to do to keep this setup? Another doubt: how to install the “Guest Additions” on Mac? I need to resize the window and keep it with 1280×720 resolution. Thanks.
Dezember 12th, 2017
Have a look into your VM EFI options. There is some option to define where to boot from.
Guest additions are not available for macOS guests, but you can change the resolution of the VM to certain fixed resolutions, have a look at this thread: https://forums.virtualbox.org/viewtopic.php?f=22&t=54030
Dezember 12th, 2017
Thanks for answering, Tobi. I read the post you cited but I did not find there a solution for me. I need to open a 1280×720 window vm and I saw only another dimensions (Where N can be one of 0,1,2,3,4 referring to the 640×480, 800×600, 1024×768, 1280×1024, 1440×900 screen resolution respectively.). Do you know if I can open this exactly dimension (1280×720)?
Dezember 12th, 2017
Hi. Just to tell you that I got the 1280×720 resolution. The related post: https://forums.virtualbox.org/viewtopic.php?f=8&t=85846&p=408709#p408709
Thanks for all.
Dezember 12th, 2017
Great Job! This is awesome article =)
Dezember 18th, 2017
Fantastic Step by Step Guide, could not have managed without it!
Just have one small issue, the Graphics are not working like I expected, I have a new MacBookPro with Touchbar in 15″ and the screen I set only covers 2/3 or so.
Do you have a trick, to fix that?
Kind regards,
Jeffry
Dezember 19th, 2017
Have a look at this thread to set up certain resolutions for the VM: https://forums.virtualbox.org/viewtopic.php?f=22&t=54030
Januar 11th, 2018
Remember that this option changed with 5.2.2. The best option is to direct people to the User Manual, their current version (they *do* have a PDF, searchable), at chapter “3.14.1 Video modes in EFI”. Even the chapter might change in the future… 😉
Dezember 20th, 2017
Thank you for detail guide and for the boot manager trick. That saved a lot of time!!!
Januar 2nd, 2018
Hi
Great guide.
Thought i am trying on 10.13.2 new installation, No other setups but cant get the sudo /App script to work.
”Command not found”
Im writing
sudo /Applications/Install\ myfolder\ tosierra\ Sierra.app/Contents/Resources/createinstallmedia –volume /Volumes/install_build
The sierra app is 5.2 gb version 13.2.77
And newest VB with extensionpack
Januar 3rd, 2018
Worked great for me on my MBP11,3. Thank you very much!!
But, significantly, you didn’t mention anything about the networking. It is important to choose the right network adapter, and “Intel PRO/1000 MT Server (82545EM)” worked for me using NAT (though Bridged would probably work as well).
If you select an incompatible adapter (like the MT Desktop), you will be presented with a page titled: “How Do You Connect?” and you will need to choose the ‘not connected’ option. This will be a problem later if you decide you do want to have access to the internet, and change the network settings in VB. My experience indicates that this will likely force the boot sequence to display the re-install screen on when you boot.
Januar 4th, 2018
Thank you for this hint. I left the network default and didn‘t have any problems with connection to the Internet from within the VM.
Januar 11th, 2018
He didn’t also mention that you should boot from the floppy. Did he have to? Of course not!
People will try all sorts of uneducated options, with no logical explanation and then complain that if fails! Duh…
Januar 19th, 2018
Followed all of your instructions upto right after to creating the VM. When starting the VM, the initial boot just keeps looping. Ending with a message like “Please switch to XPC or bottstrap_check():…” Any ideas on what is happening here and how to fix it? Thanks.
Useful info:
Running
ubuntu 16.04
virtualbox: 5.2.6
created iso from High Sierra installer as of January 2018.
Januar 31st, 2018
I have this issue too
Windows 10 Host
April 20th, 2018
I had the same issue. Running the commands in the “Adding some code” section of this article (https://www.pcsteps.com/2157-mac-os-x-virtual-machine-vmware-player) worked for me.
Mai 20th, 2018
+1, I too was stuck in a boot loop (1st boot, no UI) and needed the following to boot into the UI; here’s my env:
virtualbox 5.2.12
ubuntu 18.04
high sierra 13.4.09 (downloaded direct from app store on 5/18/18)
here are the config changes deployed:
// cut off by Tobi: This article describes the virtualization on Mac hardware, so you don’t need to customize the VM settings
Januar 24th, 2018
Great tutorial. Worked perfectly for me. Thanks a lot.
Januar 27th, 2018
worked fine for me too, thank you
Februar 3rd, 2018
Thx for this good Tutorial!
One Hint: The boot before the wizard sticks during my installation and I had to make one restart; after that everything works fine
Februar 5th, 2018
Outstanding documentation.
Articles such as this is a huge benefit to everyone.
Februar 7th, 2018
Vielen Danke! Ich hatte keine Probleme!!! (I’m just practicing my German)
Februar 8th, 2018
Hi Tobi,
I would like to install VM Mac OS 10.8.5. I am running my Mac on High Sierra 10.3.2. Would the procedure be the same as you explained here?
Thank, Nenad
Februar 10th, 2018
It should be the same procedure, but I haven’t tried older macOS versions than 10.13.x
Februar 15th, 2018
Danke, hat gut geklappt!
Wie bekomme ich das fertige Image denn denn auf einem Virtualbox unter Windows 7 / 10 zum funktionieren?
Wenn ich das Image kopiere und starte, führt das dort in eine Bootschleife.
Muss man da noch was anders machen?
Februar 16th, 2018
Das ist aus lizenztechnischen Gründen so. Laut Apple EULA ist es nicht erlaubt macOS auf nicht-Apple Hardware zu installieren (Virtualisierung eingeschlossen).
Februar 16th, 2018
Tobi,
Great article. I saw other people as the question but did not see an answer. After reboot the VM wants to start from installation again. What needs to change that it boots into the already installed Mac OS?
Thanks Kobus
Februar 16th, 2018
Hey Kobus,
have you changed the boot order to HDD in the setting of the VM or have you removed the ISO from the virtual disc device?
Februar 18th, 2018
macOS 10.13.3 is working well on VB 5.2.6r 120293 on Win 10 Pro (1709 – 16299.248) host HW Intel Core i5-6400 16 GB DDR4
Februar 19th, 2018
I floowed the whole process with success till the end but after all the steps the VM is not starting. I get “UEFI Interactive Shell v2.1″….”press ESC to skip startup.msh or any key to continue”. I’ve removed the disk image e changed the priority in the VM options. I also tried to boot from “EFI Hard Drive” and “EFI Internal Shell” but didn’t work. Can you help me?
Februar 25th, 2018
I’m having this issue aswell…Anyone has some help?
Mai 11th, 2018
It unfortunately means the .ISO wasn’t created correctly. The same thing happened to me with the above instructions. For the life of me, I can NOT create a bootable high sierra no matter what tutorials I use.
However my regular Sierra .iso boots fine with these Virtual Box settings so that’s cool I guess.
Mai 11th, 2018
What‘s your host system? Windows?
Februar 21st, 2018
I wanted to thank you as well! Every step is so well explained!
Februar 23rd, 2018
Thanks Thanks Thanks!
Finally I can test my post install script on high sierra.
I wish you a great day sir.
Februar 25th, 2018
Many thanks for your guide, easy to follow and works great
Februar 26th, 2018
If anyone is having issues with Virtualbox, complete part 1 as above, go here: https://www.howtogeek.com/289594/how-to-install-macos-sierra-in-virtualbox-on-windows-10/ and complete part 4 and 5 (the commands work on Ubuntu 16.04 and probably Windows 10, not sure about Mac). Part 2 of this guide should lead you to the end 🙂
Februar 26th, 2018
Excellent guide, the only one that works for me for all the google results provided.
März 5th, 2018
这些对我很有帮助,感谢!
this is helpful for me, thx!
März 12th, 2018
Thanks so much for posting this! Without it I would have never gotten my VM machine to run!
März 14th, 2018
Excellent work! Thank you very much, you saved me days of try and errors !
März 15th, 2018
Great work! Thanks for your patience to get this done 🙂
März 17th, 2018
Thanks a ton! This was absolutely perfect!
März 19th, 2018
Just tried this … using Mac OS as host, and Mac Os 10.13.3 running vbox 5.28.
All worked nice. The important thing here: you only need to remove the installation ISO.
Then there is no need to “hurry” at all. Because then vbox tries to boot from the virtual disk, will fail, and then the rest of your explanations kick in.
April 2nd, 2018
at with moment do you remove the installation ISO?
März 20th, 2018
Hey,
Just like to say “Many Thanks”! Mac OS vm has been the most challenged one, and I’ve followed many instructions and yours is the only one that works.
Thanks again for a great, details instructions.
März 22nd, 2018
Thanks so much for this! Saved me having to by VMWare Fusion to run a Mac inside my Mac. I’m using this to check I can get my developers up-to-speed on their clean machines.
Toby
März 22nd, 2018
Excellent !! (The part Fn+F12 was hard :-))
März 31st, 2018
A+++++ failed getting 10.13.3 working when it came out, but now on 10.13.4’s desktop. This will help me migrate off macOS Server for DNS/VPN \o/ Thanks much
April 4th, 2018
Hi there
thanks for the very good tutorial which served the purpose! One thing I encountered is that I installed a 10.12 image the way you describe and all runs well till today. All the security updates etc installed from the image inside as well so the current version is 10.12.6. However, when I tried to upgrade to 10.13 all went well and no error messages etc appeared BUT the system rebooted into the existing 10.12 version …
What went wrong under the hood and what do I have to tweak to get it into booting the new system ??
Thanks in advance
MG
April 4th, 2018
Choose the 10.13 startup disk via system preferences
April 4th, 2018
hmm …
where do I find it? in the guest system or somewhere in VB? In the guest macosx 10.12 I don’t find a 10.13 startup disk . . .
April 4th, 2018
Yes, inside of the guest system. Have a look at this support article from Apple: https://support.apple.com/en-us/HT202796
April 4th, 2018
I come to the part where HS installs itself but then does not reboot for the “first run wizard” I get a shell command line. Trying to re-apply F12 method the …HD(2,GPT)… is no longer present. Any solutions?
THY
Robert
April 9th, 2018
I’ve not seen the definitive answer to the vm looping through the install process again after a restart or power on after shutdown. I did the F12 and everything. I made sure I set the correct drive (the Mac HDD) as the startup disk both in System Preferences and during the boot as the link to Apple support indicates, but still having issue. now it has stopped completely at “libBootCache: unable to get playiist for /var/db/dslocal/nodes/Default/sqlindex-wal: 2 No such file or directory”. I saw someone ask if they changed the boot order or any other settings. In my case I have don’t nothing but restart. This is third time going through the process. I did initially reset the order for startup to put HDD in front of the CD drive that still has the ISO installer. One time I did take out the installer, but every time, I keep coming to the same problem and errors.
Kobus
Februar 16th, 2018
Tobi,
Great article. I saw other people as the question but did not see an answer. After reboot the VM wants to start from installation again. What needs to change that it boots into the already installed Mac OS?
Thanks Kobus
Antworten
Tobi
Februar 16th, 2018
Hey Kobus,
have you changed the boot order to HDD in the setting of the VM or have you removed the ISO from the virtual disc device?
Antworten
April 11th, 2018
Hi,
Great article, and definitely it clear many concepts about how to install MAC OSX High Sierra. Just only a problem:
Trying to install MAC OSX High Sierra 10.13.4 on VB running in a MAC, and all steps works fine except the “Choose boot.efi, this will boot the machine into the “Part 2″ installation process of macOS”
I have just selected the boot.efi file and the process gets hanged on a black screen and I do not see the second part of the installation. Any ideas?
(if you need more details about the parameters, i will attach an screenshot)
Mai 30th, 2019
Hi Luis Enrique,
I’ve the same problem. Can you fix it now? Have you a solution about this? Can you help me?
April 12th, 2018
Thank you! The Fn-F12 process worked like a charm. (note it’s ctrl-F12 for win hosts)
Can anyone help with the system update process once onto 10.13.3.. as the standard update to 10.13.4 proceeds but then reboots into the main OS rather than the update process.
However..at this point I don’t see any additional EFI boot files I can select in order to get into the update process.
Any ideas on what to try?
Thanks!
April 17th, 2018
Mate you’re a life saver thank you so much for this detailed guide and all the shortcuts for copy paste. You sir are an amazing person!
April 18th, 2018
Thank you so much! 🙂
April 24th, 2018
Thank you. It worked
April 28th, 2018
This is unbelievable. I am going to host a wiki detailing my technical conquests, as trivial as they may be in comparison, from this day forward, as a tribute to this page.
You have not only accomplished an awesome feat of technological acrobatics but have also authoritatively demonstrated how to make a how-to!
Can’t wait for work to see this!
April 28th, 2018
Thank you so much Matthew 🙂
Mai 1st, 2018
Is there a way one can install VirtualBox guest additions into the MacOS VM.
Mai 1st, 2018
They are not available for macOS as far as I know.
Mai 6th, 2018
In the “Boot From File” in boot maintenance manager I got nothing, it just blank gray nothing to select
Mai 6th, 2018
Have you done every step as described in the article?
Mai 15th, 2018
huge help! Thanks!
Mai 16th, 2018
Btw, Great tuto!
Need to install french keyboard?
When asked to press the key at the right side of the left Shift key (which is the ” (instead of the single “<" key). That will do the trick, else you will be stuck with a misconfigured french keyboard with @ and < switched.
Mai 16th, 2018
Hmfff, should be read : (which is the ‘<' key)
Mai 16th, 2018
arghh wtf! why does it convert all my writings?
So I rewrite it:
When asked to press the key at the right side of the left Shift key (which is the < key), also hold down the Shift key. ok ? 🙂
Mai 21st, 2018
Great instructions.
However, I got stuck at part 2. After I had chosen boot.efi the screen goes blank, a flat cursor appears, and that’s it. I have waited some 20 minutes, but nothing changes. Does anyone have any tips for this?
Mai 21st, 2018
Ok, after a lot of testing I found a solution. I have added a new boot option: to boot from that boot.efi described above. I moved that new boot option to the top, and then it booted properly to the second part of the installation.
Mai 29th, 2018
How does it work with upgrades? is there something that needs to be done or i can just update to new version of high Sierra ? as in to 10,13,3 to 10.13.4 for example. will a simple new version 10.14 also update or does this need to be installed again separately ?
Mai 30th, 2018
For minor updates (10.13.x): I have tried to update the system via the app store, but afterwards the VM was completely broken and didn‘t boot up anymore.
For major upgrades (10.x): I can‘t provide that info yet, since there is no 10.14 available at this moment, but because the minor update already failed, I would suggest, that an upgrade would fail, too 🙁
Haven‘t found a working solution yet…
Juni 6th, 2018
ok good to know
Juni 2nd, 2018
Danke for that, first time trying on a VM and I have to say I spent a few hours on it with the problems I encountered, especially that one. All clear, smooth and well detailed. Bravo!
Juni 5th, 2018
It does not install for me. am getting stuck on endSeed wenn starting the ISO
Juni 6th, 2018
So it appears 10.14 Mojave will install and convert to APFS no matter what. So unless VirtualBox supports APFS, it seems to be stuck.
Juni 8th, 2018
Anyone know how to have an iPhone connect to the VM without crashing the VM?
Juni 18th, 2018
Thank you!!
Juni 30th, 2018
MacOS 10.13.5
Rezept für vollständige Freude. Sehr vielen Dank!
Juli 3rd, 2018
Is it safe to delete both the installation files (the .iso and the install application)?
Juli 3rd, 2018
Absolutely! Your VM boots from it‘s own virtual hard disk, which contains all the system files it needs to boot up.
Juli 3rd, 2018
Thanks tons! I tried several other approaches that I found on the web. Yours was the first that worked.
Juli 4th, 2018
Hello there. Thanks for the tutorial, very easy to follow.
I have a problem, though. My Virtualbox boot manager has only one entry (the one that has HD(1,GPT)).
What went wrong?
Juli 4th, 2018
Have your formated the virtual disk as an AFP volume?
Juli 4th, 2018
Tobi – no questions here, I just wanted to say thank you so much for this guide! Your instructions on generating a .iso that VirtualBox can boot from were invaluable, and I also would never have been able to figure out the “Boot Maintenance Manager” portion of the install process. All the best!
Juli 4th, 2018
Thanks man! Really appreciate it 🙂
Juli 6th, 2018
Thanks! works perfectly
Juli 6th, 2018
Hey, many thanks!
Just did it on the latest versions of MacOs, VirtualBox and VB Extension!
Great tutorial!
Juli 7th, 2018
Thank you for being so thorough with this tutorial. I was able to get the latest MacOs installed with no problems!
Juli 17th, 2018
Thank you so much for preparing this.
Blessings
Alex
Juli 31st, 2018
Great guide, many thanks. Who knew this could be so fiddly? This is the first time I’ve created a macOS Virtual Machine. Did so on a Mac Pro Late 2013, so Apple can’t complain it isn’t on Mac hardware. 😉
Juli 31st, 2018
Just found your article. Extremely useful! Very thorough and clearly written. This was a *huge* help and time saver for me. Thank you!
August 1st, 2018
Just found this life saver article, THANK YOU SO MUCH
August 24th, 2018
Worked perfectly, thank you!!
August 25th, 2018
Many thanks for posting this. After wasting nearly a week battling qemu with no luck – this worked right away. Should we ever meet – beers on me!
August 25th, 2018
Thanks Shane 🙂
August 25th, 2018
Danke Tobi, hat sehr geholfen.
September 10th, 2018
[Quote]
New at this
Januar 2nd, 2018
Hi
Great guide.
Thought i am trying on 10.13.2 new installation, No other setups but cant get the sudo /App script to work.
”Command not found”
Im writing
sudo /Applications/Install\ myfolder\ tosierra\ Sierra.app/Contents/Resources/createinstallmedia –volume /Volumes/install_build
The sierra app is 5.2 gb version 13.2.77
And newest VB with extensionpack
[/Quote]
Just go to your application folder and Drag the file to the prompt after Sudo … You will have to add Contents/Resources/createinstallmedia –volume /Volumes/install_build after but it fills in the full system path to the file when making the media.
Great Walkthrough Though FN + F12 on Most apple keyboards will now give you the Volume option Just using F12 worked for me after using the “Reboot” option from the Part 1 Reboot. Using CMD R doesn’t give enough time to lock your keyboard into the screen for use.
September 19th, 2018
Thank you for the clear steps! They worked. Quick question, anyone know how to make SIP status persistent? I changed it on recovery mode but when I shut down the VM and rebooted, SIP was enabled again 🙁
I am running High Sierra VM on a High Sierra Host
September 19th, 2018
How did you disable it? Via
csrutil disable
in recovery mode?Try to reboot directly from recovery, without shuting down, to see if its persists.
Since the setting is stored in NVRAM (which VirtualBox has to provide virtually as well, there could be a problem, that it‘s not able to emulate it properly).
September 25th, 2018
Vielen Dank!
Regarding Part 2, “Now you have to be very fast: while the VM restarts, press the fn+F12 keys a few times, so that it gets into the VirtualBox boot manager. You have to be very quick!”
Once I got to UEFI shell prompt, I just typed “exit” and got to the menu with the Boot Maintenance Manager (see https://superuser.com/questions/1235970/stuck-on-uefi-interactive-shell-with-mac-os-x-high-sierra-vm)
September 26th, 2018
Thanks for the tip, didn‘t know that! 🙂
September 27th, 2018
Thank you. This worked like a charm for me.
However, I seem to have an issue when there’s updates on the MacOS. I use xCode/Visual Studio etc and from time to time, Apple pushes it’s updates. The update will download from the App Store, however once you reboot to “install” the VM just reboots, no update is installed and the App Store tells you there’s still updates outstanding.
Do you perhaps know how to get around this?
Any help would be appreciated.
Oktober 24th, 2018
Big Thanks! Managed to set up everything following these steps.
November 28th, 2018
Thank you.
After getting High Sierra installed, it seems that there is a security update I need to run. Unfortunately it downloads the security update, starts installing it, then seems to fail and reboots itself. Only to find the security update not installed.
How can I install a security update?
Januar 2nd, 2019
i appreciate your query my problem is resolve thanks a lot dear
Januar 22nd, 2019
Your guide worked perfectly! Very straightforward and easy to follow. Thanks for taking the time to write this!
Februar 19th, 2019
The best.
The “do not activate SSD” and the “be quick to fn+F12” part was my savior! Thank you, thank you, thank you!
– Worked on: #1
– MacBookPro Early 2015
– 2.7GHz Intel Core i5, Mem 8GB 1867MHz DDR3, Intel Iris Graphics 6100 1536MB
– HOST OS: macOS Mojave (OSX 10.14.3, Japanese Edition)
– GUEST OS: HighSierra ISO image
– VirtualBox 6.0.4 r128413 (Qt5.6.3)
– Worked on: #2
– Mac mini Late 2012
– 2.6GHz Intel Core i7, Mem 16GB 1600MHz DDR3, Intel HD Graph 4000 1536MB
– HOST OS: macOS High Sierra (OSX 10.13.6, Japanese edition)
– GUEST OS: High Sierra ISO image
– VirtualBox 6.0.4 r128413 (Qt5.6.3)
Februar 20th, 2019
For those who couldn’t update to 10.13.6 and/or patch the security updates:
– Use the same technique of “quick fn+F12” at “Installation of macOS High Sierra Part 2” section of this article.
If the update repeats downloading and feels like you’re having a deja vu, then once the update files were download, do not let it reboot by itself. Delay it, and shut down by your self.
Then do the same “quick fn+F12” thing in “Installation of macOS High Sierra Part 2” section.
In “Boot from file” there will be a 3rd new entry. But that’s the recovery boot image so choose the 2nd one.
I suggest to take a snapshot before any update but hope this will help somebody.
April 5th, 2019
Outstanding. Das war wunderbar. Many Thanks for this guide.
best regards from hamburg germany
April 23rd, 2019
Thank you for this. I am doing this on a Mojave system–partially for fun, partially to be able to run some legacy software once I go to 10.15. The fn/12 made all the difference. In his comment just above mine, Keinos confirmed that one also follows this procedure to install security updates, and also added useful information (though it took a few tries before the update completed without error.)
Mai 10th, 2019
Installing Mojave on Vbox6.0.6 on Mac OSX host
Followed steps:
format VBOX disk (non-apfs)
install recovery (GPT2)
Boot from EFI and boot from .efi
run installer..
reboot and right back to EFI shell when i eject the .iso should I leave it as is?
Any tips?
Mai 18th, 2019
Thank you for this article! Its a super good article. Its also easier then other tutorails.
Mai 24th, 2019
Thank you!
I had a running macOS Sierra which I wanted to upgrade to High Sierra.
The reboot hung on “boot-args …”
(Another reboot then booted back to macOS Sierra)
By using your F12 … method I finally got the upgrade running. (Still running but looks good so far)
Mai 24th, 2019
Ok, finally I had to switch the chipset to PIIX (was ICH9) to let the “final step” boot proceed past “Darwin Bootstrapper …. boot-args …”. Took long but worked in the end.
Mai 30th, 2019
To get rid of all the hastle with .iso file i dorectly downloaded it from internet and then followed the steps in this article…
Everything worked smoothly…
Thanks a lot..very helpful article!!!
Juni 4th, 2019
I thought something was wrong with my installer disk so I kept recreating it and trying different options. All along it was just a matter of VirtualBox not seeing the new HD as you stated. Thanks so much for your contribution!
Juni 19th, 2019
Worked like a dream. Many thanks.
However, I don’t know how to connect to internet via wifi. Any help greatly appreciated.
Juli 13th, 2019
Awesome guide! Thank you. Probably never would have figured it out.
I was able to avoid the “quick Fn+F12” by shutting down, then removing the virtual CD from the drive. When the VM starts, boot fails and the UEFI interactive shell appears. If you type “exit”, it takes you to the boot manager.
Oktober 9th, 2019
Brilliant! People like Tobi are not only enormously helpful to people for getting things fixed, they also keep the internet useful. A big thank you!
Oktober 9th, 2019
Thank you so much, this means a lot to me 🙂
Oktober 25th, 2019
Well…. there is instructions and magnificent instructions.
These ones and I know for fact took a lot of energy and I thank you for that.
Recently move to Catalina and I needed another OS version to run a few 32bytes application.
This saved me a lot of trouble.
regards
Oktober 29th, 2019
This was a very good tutorial, and you obviously took a lot of time composing it. Much appreciated!
I was trying to do the same thing, except with Mojave instead of High Sierra. I followed each of your steps, substituting my own filenames:
hdiutil create -o /tmp/Mojave -size 8G -layout SPUD -fs HFS+J -type SPARSE
hdiutil attach /tmp/Mojave.sparseimage -noverify -mountpoint /Volumes/install_build
sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia –volume /Volumes/install_build
hdiutil detach /Volumes/Install\ macOS\ Mojave
hdiutil convert /tmp/Mojave.sparseimage -format UDTO -o /tmp/Mojave.iso
mv /tmp/Mojave.iso.cdr ~/Desktop/Mojave.iso
rm /tmp/Mojave.sparseimage
and they seemed to have worked:
Bryans-iMac:~ bryanhiggs$ hdiutil create -o /tmp/Mojave -size 8G -layout SPUD -fs HFS+J -type SPARSE
created: /tmp/Mojave.sparseimage
Bryans-iMac:~ bryanhiggs$ hdiutil attach /tmp/Mojave.sparseimage -noverify -mountpoint /Volumes/install_build
/dev/disk4 Apple_partition_scheme
/dev/disk4s1 Apple_partition_map
/dev/disk4s2 Apple_HFS /Volumes/install_build
Bryans-iMac:~ bryanhiggs$ sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia –volume /Volumes/install_build
Password:
Ready to start.
To continue we need to erase the volume at /Volumes/install_build.
If you wish to continue type (Y) then press return:
Operation canceled.
Bryans-iMac:~ bryanhiggs$ sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia –volume /Volumes/install_build
Ready to start.
To continue we need to erase the volume at /Volumes/install_build.
If you wish to continue type (Y) then press return: y
Erasing disk: 0%… 10%… 20%… 30%… 100%
Copying to disk: 0%… 10%… 20%… 30%… 40%… 50%… 60%… 100%
Making disk bootable…
Copying boot files…
Install media now available at “/Volumes/Install macOS Mojave”
Bryans-iMac:~ bryanhiggs$ hdiutil detach /Volumes/Install\ macOS\ Mojave/
“disk4” ejected.
Bryans-iMac:~ bryanhiggs$ hdiutil convert /tmp/Mojave.sparseimage -format UDTO -o /tmp/Mojave.iso
Reading Driver Descriptor Map (DDM : 0)…
Reading Apple (Apple_partition_map : 1)…
Reading (Apple_Free : 2)…
Reading disk image (Apple_HFS : 3)…
…………………………………………………………………..
Elapsed Time: 27.354s
Speed: 299.5Mbytes/sec
Savings: 0.0%
created: /tmp/Mojave.iso.cdr
Bryans-iMac:~ bryanhiggs$ mv /tmp/Mojave.iso.cdr ~/Desktop/Mojave.iso
Bryans-iMac:~ bryanhiggs$ rm /tmp/Mojave.sparseimage
Bryans-iMac:~ bryanhiggs$
I followed your steps for creating a new VirtualBox machine (the screens were slightly different, presumably because I am using a later version of VirtualBox (Version 6.0.14 r133895 (Qt5.6.3)) ), and I substituted my filenames, of course.
However, when I started up the VirtualBox machine I had created, it showed some promise because it seemed to be executing a lot of commands. But then it stopped, and the “Choose Language” window never came up.
You can see an image of where it left me at https://sites.google.com/view/capturedimages/virtualbox-images
I would really appreciate it if someone could guide me about how to make things work, so I can get Mojave working within a VirtualBox machine. Thanks, in advance!
Then, when I
November 1st, 2019
Anyone? Please?
November 2nd, 2019
Followed the guide and i’m 95% of the way there i think. I run the installer ‘Part 1’ open the boot manager and change the boot option and run ‘Part 2’ of the installer. At the point the installer is done it then reboots. On this re-boot i get the Boot Failed. Mac OS X error again. However i am unable to go into the boot manager again and run the boot.efi again as it’s not available. Any help much appreciated have spent hours on this all because my legacy programs i kinda need to keep won’t run on my updated Catalina OS.
November 2nd, 2019
Is the virtual disk formatted as HSF+ or APFS? APFS doesn‘t work.
November 7th, 2019
Works great on Catalina too. Thabnks for the EFI boot tip.
November 15th, 2019
God bless you sir! This is the fourth tutorial I’ve tried to follow, but the first that did not leave out essential steps. I thank you for helping so many people get legacy versions up and running.
November 15th, 2019
Thanks mate! Nice to hear, that I could help you.
November 20th, 2019
Hi
Did you ever succeeded in getting an iPhone connected and recognized in the VM ?
Thank you
Januar 16th, 2020
Thanks for this article. It worked perfectly for me.
August 8th, 2020
Thank you for your time and dedication. I’m almost to the hit f12 fast step!! It’s crazy that with a new machine we need to jump through these insane hoops just to avoid needing to purchase Photoshop, etc. again!
Oktober 4th, 2020
2020, and still saving asses. Thanks a lot, man. Whenever you come to Irvine, let me know, I owe you a beer 🙂
November 22nd, 2020
Oh I’m so pleased to hear this!
I visited LA a few times already, but the next time I will let you know 😉
November 13th, 2020
Unfortunately, I’m never fast enough with F12 or fn+F12. It would be great if there was an alternative way to boot from an alternative EFI.
November 22nd, 2020
Hi Paolo, I entry once time but no able to entry again, I thought was an issue of spanish keyboard and maybe in your case in Italian. But I add an American keyboard and American pc keyboard on my Mac and can’t entry in boot options.
Tobi how can solution this issue ? I spent lot of time pressing fn+F12
November 22nd, 2020
Hmm… I’m using a German layout keyboard and it worked without problems..
Have you clicked in the window of the virtual machine, when it boots up, so that it has the active focus?
November 28th, 2020
This really helped me a lot as I kept circling around the same problem. Following another guide the installation just kept failing with an absolutely non-helpful error message. With an incomplete installation on the hard drive booting was not possible. boot.efi was missing.
So I went through your guide and I figured that my .iso somehow might be the problem. But I kept thinking that if it was corrupted it would probably not start the installation process at all. That other guide used “asr restore” to build the disc image.
Well i started from scratch your way and it all went through without any further issues.
I’m running Virtualbox 6.1 and it even automatically recognized the second efi. So “part 2” of your guide just worked out of the box.
Again, thanks for putting and keeping this up!
Dezember 10th, 2020
I’ve noticed that pressing Esc is Ok. Unfortunately, the procedure to reach the boot.efi file are not the same as the ones described here, so there is no way to understand if I’m selecting the right one. The only alternative one is in a partition containing the recovery system; but selecting that one, I continue to enter the boot from command line.
April 13th, 2021
Tausend Dank für dieses hervorragende Tut! So kann ich mit Sierra meine alten Adobe-Programme nutzen und mit High Sierra WISO Steuer Mac, das leider für Sierra nicht mehr kompatibel war. Mit Virtualbox 6 und dem HS-Installer 13.6.02 war Part 2 hier übrigens nicht nötig.
Was mich am meisten Zeit gekostet hat, war, das richtige High Sierra zu finden. Es ist über Safari hier zu finden: https://support.apple.com/de-de/HT211683. Mit Firefox funktioniert das Laden nicht!
November 4th, 2021
This page is brilliant! Thanks for saving me much grief: following the instructions on other websites, I’d been unable to make this installation work.
May I suggest that you include a final step? If the optical drive containing the ISO file isn’t removed, then the VM will repeat the installation once launched.
(Also, a minor editing note: it should be “into which we need to boot” or “which we need to boot into” but not “in which we need to boot into”.)
Thanks again!
November 5th, 2021
Thank you for your feedback! 🙂
I updated the article accordingly.