9.0
Table Of Contents
Using vmrun to Control Virtual Machines
8 VMware, Inc.
Checkifafileordirectoryexistsintheguest,deleteafileordirectory,renameafile,listfiles,orcreatea
newdirectory.
Copyafilefromthehosttotheguest,orfromtheguesttothehost.
Createatemporaryfileintheguestoperatingsystem.
Addasharedfolderfromthehost,makeasharedfolderwritableintheguest,orremoveasharedfolder.
Captureascreenimagefromtheguest(WorkstationandVMwareFusiononly).
Listtheprocessesrunningintheguestoperatingsystem,orendaprocess(withpermission).
Readorwriteavariableintheguestoperatingsystem’senvironmentorvirtualmachinestate.
Thetimeout(waitforVMwareTools)isfiveminutesforallguest‐relatedcommands.
Maintenance Commands
Thiscategoryincludescommandstolistallrunningvirtualmachines,upgradethevirtualmachinehardware
version,andinstallVMwareToolsintheguestoperatingsystem.
Additionally,exceptonVMwareServer(discontinued),youcancloneavirtualmachineimagetoanother
virtualmachine.
OnVMwarevSphereandVMwareServer(discontinued),youcanregisterandunreg
istervirtualmachines.
VProbes Commands
OnWorkstationandFusion,vmruncaninteractwithVProbes,afacilityforinstrumentingapowered‐onguest
operatingsystem,itsprocesses,andthevirtualizationlayer.SeetheVProbesProgrammingReferencefordetails.
Limitations
VMwareFusiondoesnotsupportsnapshottrees.
VMwarePlayerdoesnotsupportpauseandunpause,snapshotoperations,virtualmachinecloning,orvirtual
hardwareupgrade.
VMwareServer(discontinued)didnotsupportteams,sharedfolders,virtualmachinecloning,ormultiple
snapshots.Whenyoutriedtocreateasecondsnapshot,theUIaskedtooverwriteyo
urexistingsnapshot.
TherecordandreplaycommandsweredeprecatedforWorkstation7.1andremovedinWorkstation8.
Setting Up vmrun
Theprocedureforsettingupvmrunvariesbasedontheoperatingsystemoftheclientcomputer.
How to Get vmrun
ThevmrunutilityinstallswithWorkstationandVMwareFusion.
Forusewithremoteproductplatforms,youcanobtainvmrunbyinstallingtheVIXstandalonelibraries,
availablefreeofchargeontheVMwaredownloadsite.
Linux Setup
To use the vmrun utility on Linux
1Inacommandorterminalwindow,typevmruntoseecommand‐lineoptions.
2IfthisfailsonanoldLinuxdistribution:asrootorsuperuser,editthe/etc/ld.so.conffile,addthe
followinglinewiththedefaultlocationoftheVIXlibrary,savethefile,andruntheldconfigcommand.
/usr/lib/vmware-vix/lib