Vous êtes sur la page 1sur 4

vmrun version 1.11.

0 build-471780 Usage: vmrun [AUTHENTICATION-FLAGS] COMMAND [PARAMETERS]

AUTHENTICATION-FLAGS -------------------These must appear before the command and any command parameters. -h <hostName> (not needed for Workstation) -P <hostPort> (not needed for Workstation) -T <hostType> (ws server server1 fusion esx vc player) for example, use '-T server' for VMware Server 2.0 use '-T server1' for VMware Server 1.0 use '-T ws' for VMware Workstation use '-T ws-shared' for VMware Workstation (shared mode) use '-T esx' for VMware ESX use '-T vc' for VMware vCenter Server -u <userName in host OS> (not needed for Workstation) -p <password in host OS> (not needed for Workstation) -vp <password for encrypted virtual machine> -gu <userName in guest OS> -gp <password in guest OS>

POWER COMMANDS -------------start stop reset suspend pause unpause

PARAMETERS ---------Path to vmx file [gui nogui] Path to vmx file [hard soft] Path to vmx file [hard soft] Path to vmx file [hard soft] Path to vmx file Path to vmx file

DESCRIPTION ----------Start a VM or Team Stop a VM or Team Reset a VM or Team Suspend a VM or Team Pause a VM Unpause a VM

SNAPSHOT COMMANDS ----------------listSnapshots snapshot deleteSnapshot

PARAMETERS ---------Path to vmx file [showTree] Path to vmx file Snapshot name

DESCRIPTION ----------List all snapshots in a VM Create a snapshot of a VM

Path to vmx file Remove a snapshot from a VM Snapshot name [andDeleteChildren]

revertToSnapshot

Path to vmx file Snapshot name

Set VM state to a snapshot

GUEST OS COMMANDS ----------------runProgramInGuest

PARAMETERS DESCRIPTION -------------------Path to vmx file Run a program in Guest OS [-noWait] [-activeWindow] [-interactive] Complete-Path-To-Program [Program arguments] Path to vmx file Check if a file exists in Guest OS Path to file in guest Path to vmx file Check if a directory exists in Gue

fileExistsInGuest directoryExistsInGuest st OS setSharedFolderState

Path to directory in guest Path to vmx file Modify a Host-Guest shared folder Share name Host path writable readonly Path to vmx file Share name New host path Path to vmx file Share name Path to vmx file [runtime] Path to vmx file [runtime] Path to vmx file Path to vmx file process id Path to vmx file [-noWait] [-activeWindow] [-interactive] Interpreter path Script text Path to vmx file Add a Host-Guest shared folder

addSharedFolder

removeSharedFolder enableSharedFolders disableSharedFolders listProcessesInGuest killProcessInGuest runScriptInGuest

Remove a Host-Guest shared folder Enable shared folders in Guest Disable shared folders in Guest List running processes in Guest OS Kill a process in Guest OS Run a script in Guest OS

deleteFileInGuest Path in guest

Delete a file in Guest OS Create a directory in Guest OS Delete a directory in Guest OS

createDirectoryInGuest Path to vmx file Directory path in guest deleteDirectoryInGuest Path to vmx file Directory path in guest

listDirectoryInGuest

Path to vmx file List a directory in Guest OS Directory path in guest Copy a file from host OS to guest

CopyFileFromHostToGuest Path to vmx file OS Path on host Path in guest CopyFileFromGuestToHost Path to vmx file OS Path in guest Path on host renameFileInGuest Path to vmx file Original name New name Path to vmx file

Copy a file from guest OS to host

Rename a file in Guest OS

captureScreen local file Path on host writeVariable

Capture the screen of the VM to a

Path to vmx file Write a variable in the VM state [runtimeConfig guestEnv guestVar] variable name variable value Path to vmx file Read a variable in the VM state [runtimeConfig guestEnv guestVar] variable name

readVariable

VPROBE COMMANDS --------------vprobeVersion vprobeLoad vprobeLoadFile vprobeReset vprobeListProbes vprobeListGlobals

PARAMETERS ---------Path to vmx file Path to vmx file 'VP script text' Path to vmx file Path to VP file Path to vmx file Path to vmx file Path to vmx file

DESCRIPTION ----------List VP version Load VP script Load VP file Disable all vprobes List probes List global variables

GENERAL COMMANDS ---------------list upgradevm installTools register

PARAMETERS ---------Path to vmx file Path to vmx file Path to vmx file

DESCRIPTION ----------List all running VMs Upgrade VM file format, virtual hw Install Tools in Guest Register a VM

unregister listRegisteredVM deleteVM clone

Path to vmx file

Unregister a VM List registered VMs

Path to vmx file

Delete a VM

Path to vmx file Create a copy of the VM Path to destination vmx file full linked [Snapshot name]

Examples: Starting a virtual machine with Workstation on a Windows host vmrun -T ws start "c:\my VMs\myVM.vmx" Stopping a virtual machine on an ESX host vmrun -T esx -h https://myHost.com/sdk -u hostUser -p hostPassword stop "[sto rage1] vm/myVM.vmx" Running a program in a virtual machine with Workstation on a Windows host with W indows guest vmrun -T ws -gu guestUser -gp guestPassword runProgramInGuest "c:\my VMs\myVM .vmx" "c:\Program Files\myProgram.exe" Running a program in a virtual machine with Server on a Linux host with Linux gu est vmrun -T server -h https://myHost.com:8333/sdk -u hostUser -p hostPassword -g u guestUser -gp guestPassword runProgramInGuest "[standard] vm/myVM.vmx" /usr/bi n/X11/xclock -display :0 Creating a snapshot of a virtual machine with Workstation on a Windows host vmrun -T ws snapshot "c:\my VMs\myVM.vmx" mySnapshot Reverting to a snapshot with Workstation on a Windows host vmrun -T ws revertToSnapshot "c:\my VMs\myVM.vmx" mySnapshot Deleting a snapshot with Workstation on a Windows host vmrun -T ws deleteSnapshot "c:\my VMs\myVM.vmx" mySnapshot Enabling Shared Folders with Workstation on a Windows host vmrun -T ws enableSharedFolders "c:\my VMs\myVM.vmx"

Vous aimerez peut-être aussi