9.0
Table Of Contents
VMware, Inc. 9
Using vmrun to Control Virtual Machines
Windows Setup
To use the vmrun utility on Windows
1IfyouarerunningVMwareWorkstation,acopyofvmrunisincludedinthefolderwhereyouinstalled
Workstation.IfyouinstalltheVIXAPI,apossiblynewervmrunisplacedinoneofthesefolders:
32‐bitsystems–C:\Program Files\VMware\VMware VIX
64‐bitsystems–C:\Program Files (x86)\VMware\VMware VIX
2 (Optional)Mostusersfinditconv
enienttoaddthevmruninstalllocation,eitherVMwareWorkstationor
VMwareVIX,tothesystempath.OnWindows7:
(right‐click)Computer>(click)Properties>AdvancedSystemSettings>EnvironmentVariables>
(inlistof)SystemVariables>(select)Path>(click)Edit
Withtherightarrowkey,movetheins
ertionpointtotheendofline,addasemicolon,addthefullpath
ofthefolderwherevmrunislocated,andclickOKthreetimes.
3Inacommandwindow,typevmruntoseecommand‐lineoptions.
Mac OS X Setup
To use the vmrun utility on Mac OS
1InaTerminalwindow,addtheVMwareFusion(4.0andlater)directorytoyoursystempath.
export PATH="$PATH:/Applications/VMware\ Fusion.app/Contents/Library"
2Typevmruntoseecommand‐lineoptions.
Specifying the VMware Product Platform
Thevmrunutilityacceptsoptionflags,commands,andparametersinthefollowingsyntax:
vmrun <flags> <command> <parameters>
Inthefollowingsyntaxexamples,optionsenclosedinanglebracketsindicatevariablesthatyousupply.
Encrypted Virtual Machines
Encryptedvirtualmachinesrequireapasswordformostoperations.
-vp <password for encrypted virtual machine>
Guest Operations
Guestoperationsrequireauthenticationbytheguestoperatingsystem,sotheircommanddescriptionsin
Table 2,“vmrunCommandsandParameters,”onpage 11saythata“validguestlogin”isrequired.Usethe
followingflagstospecifytheguestlogin:
-gu <userName in guest OS>
-gp <userPassword in guest OS>
AsoftheVIX1.10release,younolongerneedtospecifyaguestusernameandpassword,oranencryption
password.Ifvmrunneedsauthenticationinformation,itpromptsforit.
Running Hosted Platforms Locally
OnWorkstationandVMwareFusion,vmruncontrolsguestoperatingsystemsonthelocalhost.Youdonot
needtospecifyaremotehostnameorport.Usethe-TflagforWorkstation,Player,andVMwareFusion:
vmrun -T ws
vmrun -T player
vmrun -T fusion