vmrun
use vmrun to start vmware virtual machine
Start the VM without GUI
vmrun -T player start “path/to/yourVM.vmx” nogui
Start the VM
1
vmrun -T player start "path/to/yourVM.vmx"
Stop the VM
1
2
3vmrun -T player stop "path/to/yourVM.vmx"
vmrun -T player stop "path/to/yourVM.vmx" soft
vmrun -T player stop "path/to/yourVM.vmx" hardList all possible commands supported by vmrun
1
vmrun -h
If you want to control VMs in VMware Workstation, you need change “player” to “ws”, like:
1 | vmrun -T ws start "path/to/yourVM.vmx" nogui |
Ref
[1] https://mudongliang.github.io/2017/07/01/use-vmrun-to-start-vmware-virtual-machine.html