use vmrun to start vmware virtual machine

vmrun

use vmrun to start vmware virtual machine

Start the VM without GUI

vmrun -T player start “path/to/yourVM.vmx” nogui

  1. Start the VM

    1
    vmrun -T player start "path/to/yourVM.vmx"
  2. Stop the VM

    1
    2
    3
    vmrun -T player stop "path/to/yourVM.vmx"
    vmrun -T player stop "path/to/yourVM.vmx" soft
    vmrun -T player stop "path/to/yourVM.vmx" hard
  3. List 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