In order to have a headless (no screen) Ubuntu vm running in the background in Windows, first you must install and setup Ubuntu, then launch the virtual machine using vmrun
- Install Ubuntu.
- Setup SSH server (Secure shell client and server metapackage).
- Set the resolution.
- Enable VNC remote desktop: Applications > Desktop Sharing:
- Tick Allow other users to view your desktop.
- Tick Allow other user to control your desktop.
- Untick You must confirm each access to this machine (don’t leave this ticked, otherwise you need to already be viewing the desktop in order to access remotely).
- Tick Require the user to enter this password, then enter a password.
- Click Close.
- Confirm that you can log in to Ubuntu via SSH and/or VNC.
- Shutdown virtual machine.
- Open the virtual machine from the command prompt with vmrun and the option nogui.
e.g. c:\Program Files (x86)\VMware\VMware Workstation\vmrun start m:\vm\Ubuntu\Ubuntu.vmx nogui