2.0

Table Of Contents
VMware, Inc. 139
Chapter 7 Running Virtual Machines
Advanced Options for Application Developers
ApplicationdeveloperscanusethefollowingAPIs,SDKs,andIDEswhenwritingand
debuggingapplicationsthatruninvirtualmachines:
VIXAPIforwritingprogramstoautomatevirtualmachineoperations TheAPI
ishighlevel,easytouse,andpracticalforbothscriptwritersandapplication
programmers.APIfunctionsallowyoutoregister,poweronoroffvirtual
machines,andrunprogramsintheguestoperatingsystems.Additionallanguage
bindings
areavailableforPerl,COM,andshellscripts(vmrun).Formore
information,seetheVMwareVIXAPIReleaseNotes.
Tolaunchthevmrunapplication,fromthecommandprompt,enter:
vmrun COMMAND [OPTION]
OnLinux,vmrunisinthedirectoryforVIXAPIbinaryfiles,typically/usr/bin.
BeforeusingthevmruncommandonaWindowshost,youmustdooneofthe
following:
ChangeyourworkingdirectorytotheVMwareServerdirectory.Thedefault
locationis:
c:\Program Files\VMware\VMware Server
AddtheVMwareVIXdirectorytothesystempath.OnWindows2000Server,
youcanchangethissettingfromtheWindowscontrolpanel:
ControlPanel>System>Advanced>EnvironmentVariables>
System variables>Path
VMCISocketsinterface ThisfeatureisasocketsinterfacefortheVirtual
MachineCommunicationInterface,whichprovidesafastermeansof
communicationamongapplicationsrunningonthehostandinvirtualmachines.
Thisfeatureiswellsuitedfordeveloperswhowanttowriteclientserver
applications.Formoreinformation,see
theVMCISocketsProgrammingGuide.
Toallowavirtualmachinetocommunicatewithothervirtualmachinesand
applicationsonthehost,youmustaddthevmci0.unrestricted configuration
fileparameterandsetittoTRUE,asdescribedin“ChangingVirtualMachine
AdvancedSettings”onpage 127.Ifvmci0.unrestrictedisnotsetorset
to
FALSE,thevirtualmachinecannotcommunicatewithothervirtualmachinesor
applicationsonthehost.