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 https://tylermade.net/2017/10/05/how-to-create-a-bootable-iso-image-of-macos-10-13-high-sierra-installer/

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\ Sierra.app/Contents/Resources/createinstallmedia --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 -> https://drop.me/ByWxnP

Next I have installed the High Sierra 10.13.6 exactly the same way as the previous version 10.13.5 https://astr0baby.wordpress.com/2018/06/11/installing-high-sierra-10-13-5-in-virtualbox-5-2-12-on-linux-x86_64/

Advertisements

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.

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

  1. pazixofibe says:

    Hi,
    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.
    Thanks.

  2. pazixofibe says:

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

  3. pazixofibe says:

    Thanks,
    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:
        https://ibb.co/en6B8d
        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:

    Usage:

    VBoxManage getextradata global|
    |enumerate

    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 https://everymac.com/ultimate-mac-lookup/?search_keywords=iMac11,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.

        Thanks!

      • 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 https://techsviewer.com/install-macos-10-14-mojave-on-virtualbox-on-windows/ 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 http://incomingtech.weebly.com/how-to-enable-sound-on-mac-os-x-in-virualbox.html I have not tried it though .. will check later

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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.