I am trying to run a VM on VMWare Workstation in sort of 'background' mode, basically I want to start it without a console and connect to it via ssh only. Is it possible?
Asked
Active
Viewed 3.8k times
2 Answers
42
Yes it is possible. You can do this with the "vmrun" command using the "nogui" option:
vmrun -T ws start /export/vmware/rh5/server.vmx nogui
The VM will then come up without starting the Workstation GUI and you can ssh to it.
If your host os is Windows change the path to:
vmrun -T ws start C:\export\vmware\rh5\server.vmx nogui

gm3dmo
- 10,057
- 1
- 42
- 36
-
3This worked for me!, this should be the correct Answer! – Joyal Nov 21 '15 at 13:17
-
1FYI, I had to download VMware VIX to get the vmrun command – Mark Rucker Jul 21 '17 at 18:35
-
What does `-T ws` do? – logicor Nov 15 '21 at 06:14
-
@logicor `-T ws` specifies that the host is Workstation. The other options are fusion or player. – Michael Martin Jul 17 '23 at 17:19
8
You can start the VM in workstation and then you simply close the tab that it's open on. Workstation will ask you if you want to power off, suspend, or background that virtual machine.

Brandon
- 276
- 1
- 2
-
-
2
-
It works fine! Thanks! Much more faster than command line solution... You can close main GUI after closing tab. It will "sit" in the system tray. – Maxim Mar 20 '17 at 11:11