I'm trying to have a headless VM always running. Right now I run the following command as root using launchd:
/Applications/VMware Fusion.app/Contents/Library/vmrun -T fusion start vmname nogui
This does what I want and starts the VM in the background at boot. The problem is that the VM quits whenever any user logs in and then out of the machine. So even though the process is running as root, any random user logging out causes it to stop. Is there something I can do about that?