Installing High Sierra 10.13.4 in VirtualBox 5.x

Latest update see here https://astr0baby.wordpress.com/2018/08/03/installing-mojave-10-14-beta-in-virtualbox-5-2-16-on-linux-x86_64/

Update see here https://astr0baby.wordpress.com/2018/07/15/installing-high-sierra-10-13-6-in-virtualbox-5-2-12-on-linux-x86_64/

A short post here that might help somebody struggling to install the latest MacOS in VirtualBox on Linux.  Im running VirtualBox 5.2.10 on X86_64 Linux. The process below can be replicated on Windows as well, but the networking part at the end will of course be different.

So lets first get the MacOS 10.13.4 iso (You can get the DMG and convert it to ISO, but I have little disk space now and just used a ready available ISO from the below link)

https://bit.ly/DownloadMacOSHS10134

Extract the rar and setup the new VM as follows in VirtualBox

Networking and other options are pretty straight forward, attach the extracted ISO as your boot media, and before we boot make sure to set these in the terminal

I have used “High Sierra” directory name here since this is what I have it called, your can be different (Depends on how you named the VM during creation in VirtualBox)

$ VBoxManage modifyvm "High Sierra" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
$ VBoxManage setextradata "High Sierra" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
$ VBoxManage setextradata "High Sierra" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
$ VBoxManage setextradata "High Sierra" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
$ VBoxManage setextradata "High Sierra" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
$ VBoxManage setextradata "High Sierra" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1

Now boot the VM and the MacOS installer will come up after some time.

Setup the Disk first before installing (Erasing works the best if you don’t care about the defaults) via the Disk Utility

Exit the Disk Utility and Install MacOS, this takes approx 10 minutes and then suddenly reboots (for me this happens when its 2 minutes remaining)

Now if you don’t do anything the VM will reboot back to the installer, which we do not want. If that happens, simply power off the VM and remove the installation ISO. Now when you boot the VM again you get dropped to an EFI shell. You need to input the following commands to get this going further.

Shell> fs1:
FS1:\> cd "macOS Install Data"
FS1:\macOS Install Data\> cd "Locked Files"
FS1:\macOS Install Data\Locked Files\> cd "Boot Files"
FS1:\macOS Install Data\Locked Files\Boot Files\> boot.efi

Now this will boot and  continue with the installation and this time the setup will finish properly, but will take considerably more time than previous run.

And after some time you should have the new MacOS 10.13.4 High Sierra ready in you VirtualBox.

For Networking I choose the following script to help me interact with the VirtualBox VM and other VMs

#Setup tap and bridge 
tunctl -t tap0 -u user
ifconfig tap0 up
brctl addbr br0
brctl addif br0 eth0 vboxnet0 
brctl setfd br0 0
ifconfig eth0 10.0.2.1 up 
ifconfig br0 10.0.2.2 netmask 255.255.255.0 broadcast 10.0.2.255 up
brctl addif br0 tap0 vboxnet0 
ifconfig tap0 0.0.0.0
sysctl net.ipv4.ip_forward=1
iptables -A FORWARD --in-interface eth0 -j ACCEPT
iptables --table nat -A POSTROUTING --out-interface wlan0 -j MASQUERADE

And the networking on the VM is set as follows

And the Network configuration inside the MacOS VM is static as following:

 

About astr0baby

Please run Adblock or similar... we have been told to do so since Carl Sagan wrote the Contact .
This entry was posted in Uncategorized. Bookmark the permalink.

67 Responses to Installing High Sierra 10.13.4 in VirtualBox 5.x

  1. Worked perfectly, thanks. On Windows 10 host using VirtualBox 5.2.8, I could get FHD 1920×1080 using:

    C:\Windows\System32>”c:\Program Files\Oracle\VirtualBox\VBoxManage.exe” setextradata MacOSX-HighSierra VBoxInternal2/EfiGraphicsResolution 1920×1080

    C:\Windows\System32>”c:\Program Files\Oracle\VirtualBox\VBoxManage.exe” setextradata MacOSX-HighSierra VBoxInternal2/EfiHorizontalResolution 1920

    C:\Windows\System32>”c:\Program Files\Oracle\VirtualBox\VBoxManage.exe” setextradata MacOSX-HighSierra VBoxInternal2/EfiVerticalResolution 1080

    C:\Windows\System32>”c:\Program Files\Oracle\VirtualBox\VBoxManage.exe” modifyvm MacOSX-HighSierra –vram 256

    C:\Windows\System32>”c:\Program Files\Oracle\VirtualBox\VBoxManage.exe” getextradata MacOSX-HighSierra enumerate
    Key: GUI/LastCloseAction, Value: PowerOff
    Key: GUI/LastNormalWindowPosition, Value: 0,132,640,480,max
    Key: GUI/ScaleFactor, Value: 2
    Key: VBoxInternal/Devices/efi/0/Config/DmiBoardProduct, Value: Iloveapple
    Key: VBoxInternal/Devices/efi/0/Config/DmiSystemProduct, Value: iMac11,3
    Key: VBoxInternal/Devices/efi/0/Config/DmiSystemVersion, Value: 1.0
    Key: VBoxInternal/Devices/smc/0/Config/DeviceKey, Value: ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc
    Key: VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC, Value: 1
    Key: VBoxInternal2/EfiGraphicsResolution, Value: 1920×1080
    Key: VBoxInternal2/EfiHorizontalResolution, Value: 1920
    Key: VBoxInternal2/EfiVerticalResolution, Value: 1080

    • astr0baby says:

      Thanks for the FHD tip

    • jan says:

      This doesn’t work for me. My version of VirtualBox is Version 5.2.12. Any ideas?

    • Jackill says:

      any idea how to get the fhd working on linux? no matter what i do i dont see the key that shows the resolution when i run the last command :(

      • astr0baby says:

        Try this
        (Replace “High Sierra” with the name of your MacOS VirtualBox instance directory)

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

        $ VBoxManage setextradata “High Sierra” “VBoxInternal2/EfiGraphicsResolution” “1920×1080”
        $ VBoxManage setextradata “High Sierra” “VBoxInternal2/EfiHorizontalResolution” “1920”
        $ VBoxManage setextradata “High Sierra” “VBoxInternal2/EfiVerticalResolution” “1080”
        $ VBoxManage modifyvm “High Sierra” –vram 256

        $ VBoxManage.exe getextradata “High Sierra” “GUI/LastCloseAction” “PowerOff”
        $ VBoxManage.exe getextradata “High Sierra” “GUI/LastNormalWindowPosition” “0,132,640,480,max”
        $ VBoxManage.exe getextradata “High Sierra” “GUI/ScaleFactor” “2”
        $ VBoxManage.exe getextradata “High Sierra” “VBoxInternal2/EfiGraphicsResolution” “1920×1080”
        $ VBoxManage.exe getextradata “High Sierra” “VBoxInternal2/EfiHorizontalResolution” “1920”
        $ VBoxManage.exe getextradata “High Sierra” “VBoxInternal2/EfiVerticalResolution” “1080”

    • toto says:

      I followed the same steps but change the resolution from 1920×1080 to 1366×768 according to my HOST resolution. Now every step worked except the one with “-vram 256”.
      VboxManager.exe is giving me error: “invalid option”.
      Can you please help me out?

  2. dcialdella says:

    Can’ t work on Linux with VirtualBox, show me options for booting.

  3. dcialdella says:

    I did all the steps and all was fine, but in this point “And after some time you should have the new MacOS 10.13.4 High Sierra ready in you VirtualBox.” never boot. Show me options to select disk/ or access UEFI menu. no info in the partitions.

    I have another VirtualBox server with 10.13.3 version, and can’ t upgrade…

    May be it’ s a bug related with my hardware.

    ideas ?

    • astr0baby says:

      What ISO image did you use to install ? I have used the one in the article ( https://drive.google.com/uc?export=download&confirm=7plO&id=1NCYqmwqgbt_PahzmVmiTtYw59lpArjV7)

      • dcialdella says:

        Yes, I downloaded it. it’s what I’m trying to install.

      • astr0baby says:

        I have installed MacOS 10.13.4 on VirtualBox 5.2.10 (now I have 5.2.12) with no issues. Did you use the proper folder name where your MacOS virtual files are ? during the below command sequence ? In this example I have used “High Sierra”, since this is the name of my folder, yours could be different.

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

      • astr0baby says:

        I have just recreated the steps on a brand new Linux distro on Virtual Box 5.2.12 and it WORKS. So you must be doing something wrong … please follow the steps as they are described in the article.

  4. dcialdella says:

    I have to download another ISO (vmdk) and had work perfectly.
    Anyway, Thanks,

  5. Alessio Biancheri says:

    How can I get it connected to the internet? I am using windows 10, I managed to install it and everything but it is not clear to me which script I have to run and where.. thanks in advance!

    • astr0baby says:

      The article I have written is about how to setup the networking for VirtualBox in Linux. For Windows VirtualBox just use basic NAT network in the VirtualBox Network config menu and let choose DHCP in your MacOS network config.

  6. santi says:

    Hi! I’ve tried to install HS 10.13.4, using VM 5.2.12 r122591 (Qt5.6.2), and windows 10. It looks well in the begining, but after “Now boot the VM and the MacOS installer will come up after some time”, it nevers happened. Can you help me?

  7. James Wilkinson says:

    The install worked well, Windows 10 host, but there’s no sound even though I enabled sound from virtualbox settings. Any fix?

  8. Daniel Fuciu says:

    I am using the image you provided on Ubuntu 16.04 w/ VirtualBox 5.2.12.
    It boots, then appears to be stuck on “Start CalculateAdler32”. Any ideas?

  9. Daniel Fuciu says:

    OK i should have mentioned I have an AMD processor! That’s probably the issue, right?

  10. Pingback: ติดตั้ง macOS High Sierra 10.13.4 บน VirtualBox | Phaisarn Sutheebanjard

  11. charl says:

    all good now my screen look like this from last 30mits… it will automatically showup or i need to close and restart the VM?

    (to mention- MY INTERNET CONNECTION IS BIT SLOW 250kb/s)

  12. The link no longer works for 10.13.4 I get not a valid archive

  13. TheSwede says:

    Hi and thanks for your tutorial. It works great. I have Windows 10 Pro -> Virtualbox -> High Sierra in 1920×1080. BUT, I have no sound on the Mac. Any suggestions?

  14. lowan64 says:

    Just about to solve the resolution thing, this as it is we get macos with 1024*768 or something like it. So solve it with this:

    VBoxManage setextradata “HighSierra” VBoxInternal2/EfiGraphicsResolution 1920×1080

  15. MrQuickFX says:

    Here is my vbox small virtual drive with kext and utility, compressed, just set it on second controller and it should be visible when you boot up. http://www.mediafire.com/file/i71mhsw48twe49h/VBox+AudioFix.zip
    This is how it looks here: http://www.mediafire.com/view/jm264yfpgg8bjyw/Audio.jpg/file

    That kext is from my first 10.13.1 install in VirtualBox where audio worked.
    After you install it don’t reboot just yet, test first with “sudo kextutil /System/Library/Extensions/AppleHDA.kext”. It should return nothing as there are no problems with permissions.
    I don’t know if there is any other specific thing to set as this works for me. Another pointer, I did 10.13.1 install (working sound), upgrade to 10.13.6 (no sound), fix with kext and sound was back.

    • astr0baby says:

      Thanks for the links. Downloaded your vbox image file and tried to run the utility and load your AppleHDA.kext, ran under root the kextutil /System/Library/Extensions/AppleHDA.kext, reboot works now, but no sound device visible. What Audio Device do you emulate ? Im using PulseAudio and ICH AC97

    • astr0baby says:

      I did a clean install of High Sierra 10.13.6 .. and the method does not work unfortunately. (Tried Intel HD Audio emulation in VBox now) Thanks for the help anyway. Appreciate it !

  16. MrQuickFX says:

    I will try with vanilla 10.13.6 install and check if I can spot what’s different.

    • MrQuickFX says:

      Ok, I got it. Since those kexts are protected by SIP you need to turn it off first using apple recovery boot. Disable SIP, reboot to normal OS and install AppleHDA.kext with Kext Utility. You can also clear kext cache with before another reboot (do “sudo kextunload /System/Library/Extensions/AppleHDA.kext” and “sudo kextcache -i /”.Reboot and check if it’s working. Reenable SIP after everything is up and running.

      • astr0baby says:

        Thanks for the feedback ! There were some people that were asking me about this (I don’t really need audio for VB VMs) so hopefully they will find this info helpful.

  17. m says:

    I can confirm that MrQuickFX Audio_Fix is working on clean install of 10.13.6.
    You have to reboot to recover, do ‘csr disable’, reboot back to HS and replace AudioHDA.kext with old one. Than reboot and it works.

  18. Brad says:

    Now I did everything here on Windows 7, but when I start the Vbox, it stucks at primary loading, and I cant do anything afterwards. I have attached a screenshot would you please help me here?
    Its frustrating really.

    https://ibb.co/cDTQmV

    cheers

  19. Timothy Madden says:

    On my Ubuntu 18 VirtualBox I got an error when starting the virtual machine, after setting the extradata for EFI from the command line:

    Invalid config value(s) for the EFI device (VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES).

    The fix was to add my user to vboxusers group, as it looks like I am not a group member by default

  20. DavidH says:

    Thank you so much for this guide! The only one I’ve found that describes all the necessary steps without relying on people downloading some prebuilt virtual drive.

  21. igor says:

    Thanks for guide!
    I try to install Mojave and I have problem after last step. After VM auto-reboot, I have only EFI shell.
    https://ibb.co/nR4QV8R

  22. osx NooB says:

    Hi what a super guide!
    I just installed on a dell latitude e5450 and works like a charm.
    Except audio…

    First time i did this with a osx and was realy proud to get it working.
    But i hope that someone can help me to get my audio fixed..?!

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.