vmrun -T server -h https://192.168.0.2:8333/sdk -u root -p password start “[standard] vhost-11-win2k3_1/vhost-11-win2k3.vmx”
find more help try
vmrun -h
vmrun version 2.0.2 build-203138
Usage: vmrun [AUTHENTICATION-FLAGS] COMMAND [PARAMETERS]
AUTHENTICATION-FLAGS
--------------------
These must appear before the command and any command parameters.
-h POWER COMMANDS PARAMETERS DESCRIPTION stop Path to vmx file Stop a VM reset Path to vmx file Reset a VM suspend Path to vmx file Suspend a VM pause Path to vmx file Pause a VM unpause Path to vmx file Unpause a VM SNAPSHOT COMMANDS PARAMETERS DESCRIPTION deleteSnapshot Path to vmx file Remove a snapshot from a VM revertToSnapshot Path to vmx file Set VM state to a snapshot RECORD/REPLAY COMMANDS PARAMETERS DESCRIPTION endRecording Path to vmx file End recording a VM beginReplay Path to vmx file Begin replaying a VM endReplay Path to vmx file End replaying a VM GUEST OS COMMANDS PARAMETERS DESCRIPTION fileExistsInGuest Path to vmx file Check if a file exists in Guest OS setSharedFolderState Path to vmx file Modify a Host-Guest shared folder addSharedFolder Path to vmx file Add a Host-Guest shared folder removeSharedFolder Path to vmx file Remove a Host-Guest shared folder listProcessesInGuest Path to vmx file List running processes in Guest OS killProcessInGuest Path to vmx file Kill a process in Guest OS runScriptInGuest Path to vmx file Run a script in Guest OS deleteFileInGuest Path to vmx file Delete a file in Guest OS createDirectoryInGuest Path to vmx file Create a directory in Guest OS deleteDirectoryInGuest Path to vmx file Delete a directory in Guest OS listDirectoryInGuest Path to vmx file List a directory in Guest OS copyFileFromHostToGuest Path to vmx file Copy a file from host OS to guest OS copyFileFromGuestToHost Path to vmx file Copy a file from guest OS to host OS renameFileInGuest Path to vmx file Rename a file in Guest OS captureScreen Path to vmx file Capture the screen of the VM to a local file writeVariable Path to vmx file Write a variable in the VM state readVariable Path to vmx file Read a variable in the VM state VPROBE COMMANDS PARAMETERS DESCRIPTION vprobeLoad Path to vmx file Load VP script vprobeReset Path to vmx file Disable all vprobes vprobeListProbes Path to vmx file List probes vprobeListGlobals Path to vmx file List global variables GENERAL COMMANDS PARAMETERS DESCRIPTION upgradevm Path to vmx file Upgrade VM file format, virtual hw installtools Path to vmx file Install Tools in Guest register Path to vmx file Register a VM unregister Path to vmx file Unregister a VM listRegisteredVM List registered VMs clone Path to vmx file Create a copy of the VM Examples: Starting a virtual machine with Workstation on a Windows host Stopping a virtual machine with Server on a linux host Running a program in a virtual machine with Workstation on a Windows host with Windows guest Running a program in a virtual machine with Server on a linux host with linux guest Creating a snapshot of a virtual machine with Workstation on a Windows host Reverting to a snapshot with Workstation on a Windows host Deleting a snapshot with Workstation on a Windows host
-P
-T
for example, use '-T server' for Server 2.0
use '-T server1' for Server 1.0
-u
-p
-gu
-gp
-------------- ---------- -----------
start Path to vmx file Start a VM
[gui|nogui]
[hard|soft]
[hard|soft]
[hard|soft]
----------------- ---------- -----------
snapshot Path to vmx file Create a snapshot of a VM
Snapshot name
Snapshot name
Snapshot name
---------------------- ---------- -----------
beginRecording Path to vmx file Begin recording a VM
Snapshot name
Snapshot name
----------------- ---------- -----------
runProgramInGuest Path to vmx file Run a program in Guest OS
[-noWait]
[-activeWindow]
[-interactive]
Complete-Path-To-Program
[Program arguments]
Path to file in guest
Share name
Host path
writable | readonly
Share name
New host path
Share name
process id
Interpreter path
script_text
Path in guest
Directory path in guest
Directory path in guest
Directory path in guest
Path on host
Path in guest
Path in guest
Path on host
Original name
New name
Path on host
[runtimeConfig|guestEnv]
variable name
variable value
[runtimeConfig|guestEnv]
variable name
--------------- ---------- -----------
vprobeVersion Path to vmx file List VP version
'VP script text'
---------------- ---------- -----------
list List all running VMs
Path to destination vmx file
full|linked
[Snapshot name]
vmrun -T ws start "c:\my VMs\myVM.vmx"
vmrun -T server -h https://myHost.com/sdk -u hostUser -p hostPassword stop "[storage1] vm/myVM.vmx"
vmrun -T ws -gu guestUser -gp guestPassword runProgramInGuest "c:\my VMs\myVM.vmx" "c:\Program Files\myProgram.exe"
vmrun -T server -h https://myHost.com/sdk -u hostUser -p hostPassword -gu guestUser -gp guestPassword runProgramInGuest "[storage1] vm/myVM.vmx" /usr/bin/X11/xclock -display :0
vmrun -T ws snapshot "c:\my VMs\myVM.vmx" mySnapshot
vmrun -T ws revertToSnapshot "c:\my VMs\myVM.vmx" mySnapshot
vmrun -T ws deleteSnapshot "c:\my VMs\myVM.vmx" mySnapshot