Installing High Sierra 10.13.6 in VirtualBox 5.2.12 on Linux x86_64

Since the MacOS system updates (minor version upgrade) do not work in Virtual Box (maybe somebody got it going, it does not work for me) I have decided to get my own Mac Mini and produce a usable MacOS ISO for installation in Virtual Box whenever a new version comes out.

I have followed this blog post to create the ISO for High Sierra 10.13.6

So there are no hacks involved in the ISO, all is valid stuff from Apple.

So on the freshly updated MacOS I have executed the following

hdiutil create -o /tmp/HighSierra.cdr -size 5200m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierra.cdr.dmg -noverify -mountpoint /Volumes/install_build
sudo /Applications/Install\ macOS\ High\ --volume /Volumes/install_build 
mv /tmp/HighSierra.cdr.dmg ~/Desktop/InstallSystem.dmg 
hdiutil detach /Volumes/Install\ macOS\ High\ Sierra 
hdiutil convert ~/Desktop/InstallSystem.dmg -format UDTO -o ~/Desktop/HighSierra.iso

And uploaded HighSierra.iso to my Linux system (Intel x86_64) Please be aware that the this won’t work for AMD CPUs since Apple does not support them.

You can get the latest 10.13.6 ISO here ->

Next I have installed the High Sierra 10.13.6 exactly the same way as the previous version 10.13.5

Update from MrQuickFX to get Audio going in VIrtualBox macOS guest

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.
This is how it looks here:
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.
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.
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.


About astr0baby

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

54 Responses to Installing High Sierra 10.13.6 in VirtualBox 5.2.12 on Linux x86_64

  1. pazixofibe says:

    Is there a way to make macOS be fullscreen on VirtualBox?
    I do this “View -> Switch to Fullscreen Mode”
    But in full screen mode, part sides of screen is black, and still there is small size of the guest window.

  2. pazixofibe says:

    Do you install virtual box additional tools or guest on macOS?

  3. pazixofibe says:

    Scaling fixed my problem, but now resolution is not good,
    How can I have better resolution?

    • 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”

      • pazixofibe says:

        Thank you so much.
        some of your code commands have “.exe” extension, so i can’t run them on Linux, but others run successfully.
        Here is result:
        I don’t know this is the best result or not.
        Thank you so much.

      • astr0baby says:

        Typos .. remove the exe obviously … but please be aware that this is untested.

      • astr0baby says:

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

  4. pazixofibe says:

    All of them, for example:

    VBoxManage getextradata “High Sierra” “GUI/LastCloseAction” “PowerOff”

    return error:


    VBoxManage getextradata global|

    Syntax error: Incorrect number of parameters

  5. Hi! I’ve followed this guide to install Mojave instead, but after finishing install it looks like it can’t find hard disk and it goes directly to Mac’s shell, where I don’t know what to do and there’s no FS1 unit anymore. Any help would be very appreciated. Thank you and nice tutorial!

    • astr0baby says:

      I dont’t know, I would have to try this .. where did you get the Mojave iso from ?

      • That’s the image I got. I was be able to install and successfully run 10.13.6 though. I’m about to install beamoff because it’s very slow. Any suggestion regarding this? :) Thanks!

      • astr0baby says:

        Its installing, but with slightly different setting in VirtualBox, do you want me to put up a quick blog entry how to do this with this ISO ? :)

      • astr0baby says:

        Give me some time for the installation to finish and I will post the howto .. anyways this is Beta so I have not really paid any attention to this.

      • astr0baby says:

        Its because Apple dropped support with Mojave for the older models – Whereas High Sierra will run on many Macs from 2009 and 2010, the oldest Macs supported by Mojave are 2010 Mac Pros with Metal-compatible graphics cards installed. Otherwise the cutoff is typically 2012, and in fact no basic MacBooks are supported prior to 2015 models.

        The complete compatibility list includes:

        MacBook (Early 2015 or later)
        MacBook Air (Mid-2012 or later)
        MacBook Pro (Mid-2012 or later)
        Mac mini (Late 2012 or later)
        iMac (Late 2012 or later)
        iMac Pro (all models)
        Mac Pro (Late 2013)
        Mac Pro (2010 or later with Metal-compatible GPU)
        And the troublesome part is the following entry to VirtualBox
        VBoxManage modifyvm “Mojave” –cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
        VBoxManage setextradata “Mojave” “VBoxInternal/Devices/efi/0/Config/DmiSystemProduct” “iMac11,3”
        VBoxManage setextradata “Mojave” “VBoxInternal/Devices/efi/0/Config/DmiSystemVersion” “1.0”
        VBoxManage setextradata “Mojave” “VBoxInternal/Devices/efi/0/Config/DmiBoardProduct” “Iloveapple”
        VBoxManage setextradata “Mojave” “VBoxInternal/Devices/smc/0/Config/DeviceKey” “ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc”
        VBoxManage setextradata “Mojave” “VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC” 1

        The iMac11,3 is something from 2010’s,3 so we need to get proper CPUIds for something iMac (Late 2012 or later) ;) that is iMac13,1 for example .. all that is needed is the proper CPUIDs

      • You are great, man! I’ve deleted that VM and I’m just setting up High Sierra. I couldn’t wait because I need (ASAP) to be able to send a new app to AppStore since Xcode >= 9 is now required (I was working on El Capitan with Xcode 8). Those guys are forcing me to start from scratch with a new OS X version every 2 years +/-… :(

        Anyways, I’d love to read and test what you’ve found out about this issue. I’ll give it a new chance once I put out the fire this week so I can at least extend my life support over a year.


      • astr0baby says:

        The Mojave is Beta anyway …. :)

      • astr0baby says:

        Further tests, show that this might still be a problem on Linux Virtual Box … sorry for my previous false alarms… but I have ended up in the same situation like you … even trying the vmdk image from here does not work on Linux .. sorry .. :)

      • astr0baby says:

        Just stick to the latest MacOS 10.13.6 that works great in Virtual Box on Linux (as long as you use Intel CPU x86_64)

      • Thanks for your investigation man! You helped me enough anyways and now I can work again :)

      • astr0baby says:

        VirtualBox 5.2 does not support booting from APFS volumes, maybe thats why we could not get it to boot. Let me try and install it again

      • astr0baby says:

        Yep so the problem is that Mojave most probably uses only APFS even if you install (disk erase hfs+) it still gets converted smoehow during the second stage after the second reboot.

  6. KM says:

    I get no audio device. I’ve tried both pulse and alsa and toggled the VB device/audio menu but no combination shows up in the Mac Output Sound settings. This is on ubuntu 18.04 VB 5.2.10

    Also I presume shared folders doesn’t work because there are no guest additions for MacOS.

    • astr0baby says:

      Why do you need audio ? It does not work . I have never used shared folders in VirtualBox. Always used native Samba or scp to transfer files to/from the guest.

      • KM says:

        Good to know that audio just does not work, and its not some mistake on my part. I live in the Linux world, but some friends and colleagues live on Apple. Occasionally I want to see if something I want to share with them will work and it could involve audio.Today I was checking to see if a video conversion to quick time worked, but since the Mac VM couldn’t open the audio device it wouldn’t even show the video.

        As far as shared folders, I’ve found it useful in a Windows VM. I’m usually short of disk space in the VM so copying is not so desirable. I guess Samba would work, though I’m much more likely to use NFS, where my comfort is, and that would work for the Mac VM.

      • astr0baby says:

        Im pretty sure you can do the “macOS verification” video stuff with ffmpeg. As far as NFS .. yes .. you are right .. its much nicer .. but I still prefer Samba since I deal with both guest Windows/macOS

      • astr0baby says:

        Maybe this could help I have not tried it though .. will check later

  7. SLS Coder says:

    After 6 attempts, I’ve finally got High Sierra 10.13.6 installed and xCode installed.
    THANK YOU!!!!

  8. m says:

    You do not need Mac. You can do (on Linux machine)

    curl -o BaseSystem.dmg

    apt install dmg2img qemu-utils
    dmg2img BaseSystem.dmg
    qemu-img convert BaseSystem.img -O vmdk BaseSystem.vmdk

    which will produce 2GB VirtualBox drive (vmdk).
    Boot it and it will install High-Sierra to another VirtualBox drive (which you have to create first). This is net-install, you need internet connection.

    * You are downloading from Apple. No weird sites!
    * BaseSystem.dmg is about 400MB,
    * BaseSystem.img cannot be booted as CDROM, you have to convert it to vmdk (really!)

  9. Qi Cui says:

    Everything works on Linux except the full screen. The VBoxManager commends got ran but still no change happens. Scale is not an option since it is not real full screen. Any idea? Using VB Version 5.2.10 r122088 (Qt5.9.5).

    • astr0baby says:

      Try to run this
      readonly VM_RES=”1680×1050″

      VBoxManage modifyvm “$NAME” –usbxhci on –firmware efi –chipset ich9 –mouse usbtablet –keyboard usb
      VBoxManage setextradata “$NAME” “CustomVideoMode1” “${VM_RES}x32”
      VBoxManage setextradata “$NAME” VBoxInternal2/EfiGraphicsResolution “$VM_RES”
      VBoxManage modifyvm “$NAME” –cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
      VBoxManage setextradata “$NAME” “VBoxInternal/Devices/efi/0/Config/DmiSystemProduct” “iMac11,3”
      VBoxManage setextradata “$NAME” “VBoxInternal/Devices/efi/0/Config/DmiSystemVersion” “1.0”
      VBoxManage setextradata “$NAME” “VBoxInternal/Devices/efi/0/Config/DmiBoardProduct” “Iloveapple”
      VBoxManage setextradata “$NAME” “VBoxInternal/Devices/smc/0/Config/DeviceKey” “ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc”
      VBoxManage setextradata “$NAME” “VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC” 1

  10. Qi Cui says:

    ran those commands successful but still the same issue.

  11. Qi Cui says:

    Installed virtualbox-5.2_5.2.18-124319_Ubuntu_bionic_amd64.deb. still cannot get the full screen.

  12. Nelson says:


    Thanks for the above. It’s really helped.

    However, I’m still having issues with the following:
    – MacOS boots up wonderfully.
    – App Store shows that there’s an update available.
    – Click Update.
    – Update downloads.
    – Restart.
    – MacOS boots up and there’s till the same update available.

    I use MacOS to develop. Some of my tools include xCode, VS Code etc.
    As you can imagine, it’s important to stay up to date with the updates.

    I can’t afford to keep reinstalling the VM once a new update is released.

    Could you possibly help?

    Virtual Box Version: 5.2.18
    OS: Windows 10
    MacOS Installed: 10.13.4 (installed directly from .iso).



    • astr0baby says:

      Hi, for the updates to work you will need to use the Clover.iso (it will recognize the update partition and upgrade the system) Its better you install Mojave from scratch as it is described here If you wish to stick to HighSierra then do the same steps, but make sure you use the Clover.iso loader.

      • Nelson says:

        Hi :-)

        Thank you for your prompt response. Sadly, I wasn’t successful with my attempts to get anything to work.

        With Mojave – 1) VM Installs correctly. 2) When Clover.iso is attached, screen print looks “shredded”. I tried all possible formats including “APFS”. I also tried following the steps on a separate VM with High Sierra with different possible formats too. Nothing worked as anticipated.

        the Clover.iso attachment would work for High Sierra but then wouldn’t go any further in completing the installation.

        However, without Clover, I’ve not got High Sierra installed and running again, just I’m not sure if the system updates are working (being tested as I type).

        I’m testing this because I actually want to install MacOS on my HP Laptop. See link for specs:(

        If I could get the dual boot with work, with clover and then the system updates too, it would be a win win and I’d move development completely over to Mac and utilise the full spec of the machine.

        Any ideas on whether or not the dual boot option would be better for me?
        Any ideas on where to go from here?

        Any help / direction would be appreciated.



  13. Tron says:

    Is it possible to change iMac 11,1 to a mac pro or mac mini? I want to rotate my monitor into portrait mode but since the OS thinks i’m on an iMac that option is not available.

  14. alevasilev says:

    On VBox 5.2.26 and Mint 18 I managed to fix the width of the screen only with this code
    VBoxManage setextradata “HighSierra” VBoxInternal2/EfiHorizontalResolution 1920
    VBoxManage setextradata “HighSierra” VBoxInternal2/EfiVerticalResolution 1080
    VBoxManage setextradata “HighSierra” VBoxInternal2/EfiGraphicsResolution 1920×1080
    VBoxManage setextradata “HighSierra” VBoxInternal2/CustomVideoMode1 1920x1080x32

    Now I have to deal with the audio, but not sure how to turn off SIP. How do I get to the recovery boot?
    And thanks for all the effort for making this tutorials.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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