Hello there! I'm trying to build a Vagrant box for macOS 10.13 High Sierra, in order to setup a convenient, command line driven environment for compiling macOS applications. I can script most of the macOS installation with packer, but unfortunately the boot after SetupAssistant finishes, fails. Does anyone know of a working VMX configuration to successfully install and boot High Sierra in VMware (Fusion)?
Installing: About 15 minutes remaining
...
Installing on "Macintosh HD"
...
An error occurred installing macOS. To use Apple Diagnostics to check your Mac hardware, shut down, press the power button, and immediately hold the 'D' key until diagnostics begins.
Quit the installer to restart your computer and try again.
Restart
https://i.imgur.com/Fezqad1.png
https://i.imgur.com/ZMe6VUn.png
https://i.imgur.com/4UpW4lc.png
VMX: https://gist.github.com/mcandre/df4a69809afb8103ef37ae32371c6e23
ISO generation scripts, packer configuration, and VMX settings are available as a work-in-progress "macos" branch in my packer templates repository:
https://github.com/mcandre/packer-templates/tree/macos
I've already tried:
I'm not sure if I'm missing some critical VMX configuration, or perhaps High Sierra introduces further complications when run in VMware, compared to earlier editions of macOS? Or maybe an alternative EFI bootloader (Clover?) is necessary, I just don't know. I'd prefer to install macOS with as vanilla/default a configuration as possible.
If anyone else has experience getting macOS to boot in VMware, let me know how the VMX configuration can be improved, or if some kind of SMC toggling intervention is necessary to get the thing to boot better. I've already tossed so many hacks and workarounds into the mix that I'm starting to run out of ideas :smileysilly:
Also posting this to Reddit, in case those folks can help as well.
I don't think this is a .vmx related issue.
You could check by creating a macOS VM the 'normal' way (without using Packer or Vagrant), and then compare the .vmx files.
Are you installing from Recovery Partition or using the 'Install macOS 20.13 High Sierra.dmg' standalone installer?
Apparently, the problem was that packer was supplying an incomplete configuration of the guest VM parameters to VMware Fusion. When I ignore packer and go through the VMware Fusion VM creation wizard normally, then High Sierra successfully installs and boots.
Here is my working VMX: