Sierra OS in a virtual machine


To run Mac OS (Sierra) in VMware Workstation 12 on Linux follow these instructions:

  1. Download the Sierra installer from the App Store on a Mac (yes, this is required ...)
  2. Convert the *.dmg file to a ISO:
    hdiutil attach /Applications/Install macOS -noverify -nobrowse -mountpoint /Volumes/install_app
    hdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+J
    hdiutil attach /tmp/Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build
    asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
    rm /Volumes/OS X Base System/System/Installation/Packages
    cp -rp /Volumes/install_app/Packages /Volumes/OS X Base System/System/Installation/
    cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/OS X Base System/BaseSystem.chunklist
    cp -rp /Volumes/install_app/BaseSystem.dmg /Volumes/OS X Base System/BaseSystem.dmg
    hdiutil detach /Volumes/install_app
    hdiutil detach /Volumes/OS X Base System/
    hdiutil convert /tmp/Sierra.cdr.dmg -format UDTO -o /tmp/Sierra.iso
    mv /tmp/Sierra.iso.cdr ~/Desktop/Sierra.iso
  3. Copy the Sierra.iso to your linux system.
  4. Install VMware Workstation 12.
  5. Grab unlocker208 from and run the script.
  6. Create a new virtual machine in VMware. Set some reasonable defaults - f.ex. 4GB memory, pre-allocate all disk-space (vmdk) and so forth. Select to install OS later.
  7. Exit VMware Workstation.
  8. Add to the bottom of the *.vmx file:
    smc.version = "0"
  9. Start VMware Workstation, attach the Sierra.iso ISO file to the CD-Rom drive. Boot the virtual machine and perform a new installation.
  10. Once installed and booted into your new desktop, shut down your virtual machine.
  11. Go ahead and install a fresh copy of VMware Tools (google "VMware Tools Sierra" - loads of sites will turn up ...)