VMware command line control VM
I haven't used the vmwarevm for a long time. Today I want to install an XP instance for testing. It's too slow to install it with virtualpc. If I don't wait for a long time, I will install it with Vmware, which is much faster than virtualpc.
After the installation is complete, it is important to enable the host operating system to automatically start the specified virtual machine for running. The keyword is a command line that can be completed. The search result is always the vmrun.exe file of the truth, which is recorded here to prevent you from forgetting it again next time.
Vmrun.exe -- Help
Vmrun version 5.0.0 build-13124
Usage: vmrun Command [parameter]
Command parameter description
List list all running VMS.
Start path to vmx file. Start a VM.
Stop path to vmx or vmtm file. Stop a VM or team.
Reset path to vmx or vmtm file. Reset a VM or team.
Suspend path to vmx or vmtm file. Suspend a VM or team.
Upgradevm path to vmx file. Upgrade VM file format, virtual HW.
Examples:
Vmrun list
Vmrun reset myteam. vmtm
Vmrun upgradevm w2k. vmx
Clearly stated, list: displays all running VMS with no parameter; Start: starts a virtual machine. The parameter is to start the vmx file of the virtual machine; stop: stops a virtual machine, the parameter is the vmx file of the VM to be stopped; Reset: resets a VM; the parameter is the vmx file of the VM to be reset; suspend: suspends (suspends) a VM, the parameter is the vmx file of the VM to be paused; upgradevm: the format of upgrading a VM file to the new version. The parameter is the vmx file of the VM.