VMware Workstation 7 Manual de usuario Pagina 131

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 512
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 130
VMware, Inc. 131
Chapter 5 Installing and Using VMware Tools
To use a string in a startup script to set a name and IP address
1Definethestringbyusingoneofthefollowingmethods:
Onthehostmachine,addthefollowinglinetoyourvirtualmachine’s
configurationfile(.vmxfile):
machine.id = "W2K-VM 148.30.16.24"
Openthevirtualmachineusingthisconfigurationfile.
Openthevirtualmachinefromthecommandlinebyenteringthefollowing
ononeline:
“C:\Program Files\VMware\VMware Workstation\vmware -s
'machine.id=W2K-VM 148.30.16.24' C:\Virtual
Machines\win2000\win2000.vmx”
2Dooneofthefollowingtoretrievethestringinthevirtualmachine:
InaWindowsguest,enterthefollowingcommandtoretrievethestring:
vmtoolsd --cmd machine.id.get
InaLinuxguest,intheoperatingsystem’sstartupscript,addthefollowing
commandbeforethenetworkstartupsection.Forexample:
/usr/sbin/vmtoolsd --cmd 'machine.id.get'
Thelocationofvmtoolsddependsonthedirectoryyouspecifyatthetimeof
installation.
3Furthercustomizethisstartupscriptsothatitusesthestringtheserviceretrieved
duringstartuptosetthevirtualmachine’snetworknametoW2KVMandits
IP addressto148.30.16.24.
4Placethisstringinthescriptbe
forethecommandtostartthenetworkservices.
Ifyou’reusingaWindows2000guestoperatingsystem,forexample,youcancall
theNetShellutility(netsh)andpassitthecontentsofthestring,whichusesthe
stringaccordingly.Thatis,itcansetanewIPaddressforthevi
rtualmachine,if
thatiswhatwa
spassedinthestringoriginally.
Passing Information Between the Guest and Another Program
TheVMwareToolsserviceallowsyoutouseVMwareprogrammaticinterfacesto
managevirtualmachinesfromyourownindependentprogramsandfromexisting
frameworksdevelopedbypartnersandthirdparties.
FormoreinformationabouttheVMwareInfrastructureSDK,gototheVMwareAPIs
andSDKsDocumentationpageoftheVMwareWebsite.
Vista de pagina 130
1 2 ... 126 127 128 129 130 131 132 133 134 135 136 ... 511 512

Comentarios a estos manuales

Sin comentarios