2015-01-18

VMWare Fusion Daemon

I've got a Mac mini that I want to set up with a headless copy of VMWare that can run a virtual server.

To do that...

  1. Set up your VM in Fusion like you normally would. Configure it with the appropriate settings as appropriate--OS, processor, network, whatever. Get it set up now.
  2. Create a plist file called /Library/LaunchDaemons/com.vmware.selfhost.plist that look this:
        Disabled
       
        KeepAlive
       
        Label
        com.vmware.selfhost
        ProgramArguments
       
            /Applications/VMware Fusion.app/Contents/Library/vmrun
            -T
            fusion
            start
            /Users/Shared/Virtual Machines/Windows Server 2012 R2.vmwarevm/Windows Server 2012 R2.vmx
            nogui
       
    RunAtLoad
   
    UserName
    jamal
  • Check permissions by running this command from the OS X terminal:
    ls -l /Library/LaunchDaemons/com.vmware.selfhost.plistYou should get output that looks like this:-rw-r--r--  1 root  wheel  787 Jan 13 01:44 com.vmware.headlessvm.plist
  • Set up the daemon using launchctl
    launchctl load /Library/LaunchDaemon//com.vmware.selfhost.plist
  •