Virtualize macOS Sierra on Ubuntu (Vmware)

I need to run something on macOS, but I don’t have any dedicated Mac devices running as server/workstation.

This is a simple tutorial running macOS VM on Ubuntu with VMware workstation server.

Environment

VMware Fusion 8.5.3
macOS Sierra
Ubuntu Server 16.04
VMware workstation server 12.5.2

Steps

1 Create a macOS virtual machine using VMware Fusion on mac.
Download the macOS installer app from mac AppStore and then create a VM with default settings.

2 Install VMware workstation pro on linux.

3 Stop all VMware service

4 Unlock VMware

4.1 Install VMware unlocker 2.08
Official download page: http://www.insanelymac.com/forum/files/file/339-unlocker/
You can also download from: http://dl.sskaje.me/vmware_unlocker_2.8.zip

4.2 Extract and run lnx-install.sh
VMware unlocker’s python scripts asks for vmplayer version, you can either modify script or run script from GUI console or VNC.

5 Copy VM to linux.
Add line below to your .vmx file

6 Open VM in VMware workstation
Edit your VM settings, choose right guest system before sharing.
Save and run to test if your VM works.
If you meet any problems, like mouse/keyboard not working, try to reboot your host.

7 Share and AutoStart
Right click VMs under ‘My Computer’, Manage => Share … .
If you want your VM auto start, right click ‘Shared VMs’, Manage AutoStart VMs, tick VMs you want.

WARNING

DO NOT CHANGE ANY PROPERTY IF YOU ARE SHARING YOUR MACOS VM!

UNSHARE, MODIFY, RE-SHARE!

Virtualize macOS Sierra on Ubuntu (Vmware) by @sskaje: https://sskaje.me/2016/12/virtualize-macos-sierra-ubuntu-vmware/