Академический Документы
Профессиональный Документы
Культура Документы
You can find the most up-to-date technical documentation on the VMware Web site at: http://www.vmware.com/support/ The VMware Web site also provides the latest product updates. If you have comments about this documentation, submit your feedback to: docfeedback@vmware.com
Copyright 2009, 2010 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents. VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. All other marks and names mentioned herein may be trademarks of their respective companies.
VMware, Inc.
Contents
AboutThisBook 5
1 IntroductiontoVMwareAutoDeploy 7
AutoDeployComponents 7 AutoDeployArchitecture 8 ProcessOverview 8 AutoDeployPrerequisitesChecklist 10 DiagnosticPartitionsforESXiHosts 11
2 UsingVMwareAutoDeployforESXiDeployment 13
SettingUpthevCenterServerSystem 13 DeployingandConfiguringtheAppliance 13 SettingUptheDHCPServer 15 AutoDeployDHCPServer 15 PreparingtheDHCPServer 15 ResolvingIPAddressIssues 15 ThirdPartyDHCPServer 16 MakingthevCenterServerSystemaTargetServer 16 DeployingtheFirstHostwiththeDefaultBootProfile 17 CustomizingtheFirstHostandCreatingaHostProfile 17 CustomizingHostsUsingPluginsandBootOptions 17 UsingPlugins 18 UsingBootOptions 19 DeployingAdditionalHosts 19 UpdatingtheDefaultBootProfile 19 AddingaNewImagetotheAutoDeployImageRepository 20 CreatingaCustomBootProfile 20 AddingaHosttotheDatabase 21
3 VMwareAutoDeployInterfaces 23
deploycmdCommandReturnValues 23 deploycmdaddhost 23 deploycmdcreateprofile 24 deploycmddeletehost 26 deploycmddeleteprofile 26 deploycmddhcpconfig 26 deploycmdlisthosts 27 deploycmdlistprofiles 27 deploycmdupdatehost 28 deploycmdupdateprofile 28
4 FrequentlyAskedQuestionsandTroubleshooting 31
UsingLogstoResolveProblems 31 FrequentlyAskedQuestions 31
VMware, Inc.
VMware, Inc.
Intended Audience
ThisbookisforexperiencedsystemadministratorswhoarefamiliarwithvSphereadministrationtasksand datacenteroperationsandknowhowtousecommandsinscripts.AsolidunderstandingofDHCPisessential.
Document Feedback
VMwarewelcomesyoursuggestionsforimprovingourdocumentation.Ifyouhavecomments,sendyour feedbacktodocfeedback@vmware.com.
Related Documentation
ThevSpheredocumentationconsistsofthecombinedVMwarevCenterServerandESX/ESXidocumentation set.ThedocumentationsetcontainsbackgroundinformationaboutvSphere. AutoDeployisbuiltontopofthevSphereManagementAssistant(vMA).SeethevSphereManagement AssistantGuideforadditionalinformationaboutvMAmanagement.Toaccesstheguide,goto http://www.vmware.com,clickCommunities,andclickDeveloperontheright.ThenchoosevSphere ManagementAssistantunderAutomationTools.
Support Offerings
TofindouthowVMwaresupportofferingscanhelpmeetyourbusinessneeds,goto http://www.vmware.com/support/services.
VMware, Inc.
VMware, Inc.
AfteranESXisystemhasbooted,thesystemcontactsAutoDeploy.AutoDeploymanagesconfigurationofthe systembyaddingittothevCenterServerspecifiedinthebootprofileandapplyingthespecifiedhostprofile.
VMware, Inc.
DHCP
TFTP
deploy-cmd database
gPXE.conf
Aspartofthebootprocess,AutoDeploydownloadsthefilesthatmakeupESXi(b.z,k.z,andsoon).The defaultbootprofileincludedinAutoDeployliststhosefiles. TheAutoDeployimagerepositorycomesprepackagedwithanESXiimage.Youcanaddotherimagesto therepositoryusingthedeploy-cmdCLI.SeeAddingaNewImagetotheAutoDeployImage Repositoryonpage 20. ThedeploycmddatabasestorestheinformationaboutthehoststoPXEbootandaboutavailableboot profiles.Usethedeploy-cmdCLItoviewormanipulatedatabasecontent. deploy-cmdscriptsareCGIandCLIscriptsavailableonAutoDeploy.Administratorsusethescriptsto specifytheESXibootandconfigurationprocess.deploy-cmdscriptsconnecttoboththevCenterServer system(hostprofiles)andthedeploy-cmddatabase.
Process Overview
Figure 12illustratestheinteractionbetweenAutoDeployandthephysicalhostonwhichyouPXEbootESXi systems.
VMware, Inc.
physical host
Give me an IP VMware Auto Deploy DHCP server IP and TFTP Give me a boot loader VMware Auto Deploy TFTP server gPXE file and pointer to gPXE.conf Give me configuration info VMware Auto Deploy HTTP server
For your MAC address or Asset Tag, the database tells me to construct this gpxe.conf file. Here it is.
Boot complete. Whats next? VMware Auto Deploy Your profile says you belong to this vCenter
4 5
VMware, Inc.
6 7
TheESXihostnowbootsnormallyusingthefilesdownloadedfromtheimagerepositoryandthe local.tgzfile. Whenthehosthasfinishedbooting,itcontactsAutoDeploy.AutoDeployperformsthefollowingactions tocompleteconfiguration: a b c d AddsthehosttothevCenterServersystemspecifiedinthebootprofile. Instructsthehosttoentermaintenancemode. Appliesthehostprofilespecifiedinthebootprofile. PerformsanyadditionalconfigurationbasedoninformationinthedatabaseandonthevCenter Serversystem.Aspartoftheconfiguration,AutoDeployregistersvirtualmachinesthatwereonthe host.Youcanperformadditionalconfigurationusingaplugin.Ifyoucreateaplugin,makesurethe namestartswithanunderbar(_)character. Instructsthehosttoexitmaintenancemode.
e 8
Attheendoftheprocess,lockdownmode,TSM,andssharedisabledonthefreshlyconfiguredESXihost.
Opteron64bitprocessorsearlierthanrevEandIntelprocessorsthathaveEM64TsupportbutnotVT supportenabled,donotsupporta64bitguestoperatingsystem.
vCenterServersystemversion4.1.
10
VMwarerecommendsthatyouformataVMFSpartitiononalocaldiskforstoringlogsandscratch spaceforeachmachine.
YoualsoneedthefollowinginformationtobeabletorespondtopromptsduringAutoDeployappliancesetup
HostnameforAutoDeploy. Networkconfigurationinformation:StaticIPaddress,subnetmask,DNSServer,andgateway.
IMPORTANTVMwarerecommendssettingupAutoDeploywithastaticIPaddress.
Passwordfortheviadminuser.NorootuserisdefinedonAutoDeploy.Theviadminuserhasrootuser privileges.
6 7 8
VMware, Inc.
11
12
VMware, Inc.
VMware, Inc.
13
5 6 7
8 9
10
NextyouconfigureyourAutoDeployappliance.WhenyoustartAutoDeploythefirsttime,itpromptsyou forthefollowingconfigurationinformation:
Passwordfortheviadminuser.NorootuserexistsonAutoDeploy,buttheviadminuserhasrootuser privileges.
To configure Auto Deploy 1 2 3 InthevSphereClient,rightclickthevirtualappliance,andclickPowerOn. SelecttheConsoletab. Answerthenetworkconfigurationprompts. Ifmultiplenetworkadaptersareonthehost,youcanlaterusethevSphereClienttoaddasecondnetwork adaptertoAutoDeploy. 4 Whenprompted,specifyahostnameforAutoDeploy. Thenamecanincludealphanumericcharactersandcannotbelongerthan80characters. YoucanlaterchangetheAutoDeployhostnamebymodifyingthe/etc/sysconfig/networkfile,asyou wouldforanyLinuxsystem. 5 Whenprompted,specifyapasswordfortheviadminuseronthissystem.Thisuserhasrootprivileges; norootuserisdefined. ThepromptusestheLinuxpasswdutility.
14
VMware, Inc.
VMware, Inc.
15
ThedhcpdconfigurationofthehostsisbasedontheappliancesstaticIPaddress.ThebuiltinDHCPserver handsoutaddressesthatareonthesamenetworksegmentastheappliance.Theserverdividesthenetwork segmentintofifthsandusesthethirdandfourthsubsegmentsfordynamicaddresses.Forexample,ifthe appliancesIPaddressis192.168.2.2anditsnetmaskis255.255.255.0,theDHCPrangeis 192.168.2.100192.168.2.200.Thebottomandtoppartsoftherangeareavailableforyouruse. Ifthisconfigurationcausesproblems,forexample,becauseyouknowtheIPaddressesyouwanttoassignto thePXEbootedhosts,openthedhcpd.conf.templatefileandchangeit. Forexample,tobindahostsEthernetMACaddresstoanIPaddress,followthesesteps: 1 Modifythefile/etc/dhcpd.conf.template andaddthebinding,asinthefollowingexample:
host esx1 { hardware ethernet 00:e0:63:81:f7:d3; fixed-address 192.168.46.66; }
Runthefollowingcommandtoregeneratetheetc/dhcpd.conffile.
sudo deploy-cmd dhcpconfig
Restarttheserver.
16
VMware, Inc.
IMPORTANTHostprofilesmustbefullyspecified;theycannotincludesettingsthatprompttheuserfor information.
VMware, Inc.
17
Using Plugins
ApluginisaPythonmoduleplacedinthefollowingdirectory:
/var/lib/spindoctor/.plugins/deployplugins
host IDThenumberthatdeploy-cmdusestouniquelyidentifyahostinitsdatabase. Youcanusethatnumberwithotherhostrelateddeploy-cmdcommands. boot macBootMACaddresssetforthishost. asset tagAssettagsetforthishost. profile nameBootprofilethehostisusingasspecifiedinacalltodeploy-cmd addhost anddeploy-cmd updatehost.
bootProfile
Bootprofileasreturnedbythedatabase.Containstheinformationyouusedwhencreatingthe bootprofile,forexample:
WhenAutoDeploybootsotherhosts,theyusetheupdatedprofile,andthereferencehostshostprofileis appliedtothem. Forthiscase,youneedonlytoturnonthesystemsyouwanttobootandtheyareconfiguredautomatically. SeeUpdatingtheDefaultBootProfileonpage 19. YoucanfurthercustomizethePXEboothoststousedifferentimages,beassignedtodifferentvCenterServer systems,orincludeothercustominformationbycreatingadditionalbootprofiles.Forthiscase,youproceed asfollows: 1 2 Addeachsystemtothedeploycmddatabasebyrunningdeploy-cmd addhost. Specifythebootprofiletousebyusingthe--profileoptiontodeploy-cmd addhost. Whenyouturnonasystem,itcontactsAutoDeployandisbootedwiththebootprofilethatmatchesits MACaddressorassettag. Youcancustomizethehostsasfollows:
Addanondefaultimagetotheimagerepository.SeeAddingaNewImagetotheAutoDeployImage Repositoryonpage 20. MakesurethehostprofileyouwanttoapplyisavailableonthevCenterServersystemyouwanttodeploy to. Createacustombootprofile.SeeCreatingaCustomBootProfileonpage 20. Addahosttothedeploycmddatabase.Whenyouaddthehost,youcanspecifyacustomprofile.When thehostlaterboots,AutoDeploychecksthedeploycmddatabaseandconfiguresthehostbasedonthe customprofile.
Tospecifythehostprofilethedefaultbootprofileshouldapplytoeachhost,runthiscommand:
VMware, Inc. 19
Forexample:
# sudo vibddi -i VMware-VMvisor-big-26drivers-4.X.X-14XX15.x86_64.dd -q < vmware-esx-tools-light (4.X.X-0.3.14XX15) > < ESXi Firmware (4.X.X-14XX15) >
CreateadirectorytostoretheDDimagein.
$ mkdir /var/lib/deploy/images/my-image $ cd /var/lib/deploy/images/my-image
Unziptheimageandwriteittothenewdirectory.
bunzip2 -c /mnt/iso/imagedd.bz2 > imagedd
ExtracttheESXisystemfilesandlockerfile.
sudo vibddi -i imagedd -e . sudo vibddi -i imagedd -e . -a /opt/vmware/vibddi/conf/locker_export.cfg
Updatetheprofiletopointtothenewimage.
deploy-cmd updateprofile --name=default --repo=my-image
nameNameoftheprofile. vcenterNameorIPaddressofavCenterServersystemtoaddthehostto.
20
VMware, Inc.
Seedeploycmdcreateprofileonpage 24.
VMware, Inc.
21
22
VMware, Inc.
ThischapterisareferencetothecommandsthataresupportedbyAutoDeploy.Thechapterpresents commandsinalphabeticalorder.
deploy-cmd addhost
Addsahosttothedeploycmddatabaseandallowsyoutospecifyacustombootprofile. WhenyouturnonasystemthatissetuptocontactAutoDeploy,AutoDeploybootsthesystemwiththe defaultprofilebydefault.Youspecifyacustombootprofileandothercustominformationinthedeploy-cmd addhostcall.Theinformationisstoredinthedatabase. Thebootprofileinformationinthedatabaseisusedduringthebootprocess.Thebootprofilecanspecify,for example,theimageshouldrunonthehost,thehostprofiletoapply,andthefolderorclusteronthevCenter Serversystemtoaddthehostto.
VMware, Inc.
23
Options
Option --profile <profile_name> Description Setsthebootprofiletobindthehostto.Specifyanexistingbootprofilename. Ifyoudonotspecifyaprofile,thecommandappliestothedefaultprofile. Seedeploycmdlistprofilesonpage 27,deploycmdupdatehostonpage 28and deploycmdupdateprofileonpage 28. --bootmac <mac> MACaddressinhexadecimalform,forexample: 00:50:56:c0:00:01 MachinesareidentifiedbytheirethernetNICMACaddressesorbytheassettagsetin themachinesBIOS. Youmustspecifyeitherbootmacorassettagandcanspecifyboth. --assettag <asset_tag> Stringrepresentingtheassettag. ManymachinesletuserssettheassettagintheBIOSforinventorytracking.AutoDeploy canusetheassettagforidentification. Youmustspecifyeitherbootmacorassettagandcanspecifyboth.
Output Ifthecommandissuccessful,itprintsthefollowingvalues.
Error Conditions boot mac or asset tag already presentIftheMACaddressorassettagisalreadypresentinthe deploy-cmddatabase,youcaneitherusethedeploy-cmd deletehostcommandtoremovethehostfrom thedatabase,orthedeploy-cmd updatehostcommandtochangesettings. profile not foundIfyougetthismessage,thesystemwasunabletofindthebootprofileyouspecified. Rundeploy-cmd listprofilestoverifythespelling,orrundeploy-cmd createprofiletocreatea profile. Example
$ deploy-cmd addhost --bootmac=00:50:56:c0:00:08 --profile=profile42
AddsahostwiththeMACaddress00:50:56:c0:00:08andbindsittotheprofile42.
deploy-cmd createprofile
Createsanewbootprofile. ThiscommandverifiesthatcredentialsforthespecifiedvCenterServersystemareavailable,andthatthe specifiedhostprofileexistsonthevCenterServersystem. Options The--nameoptionisrequired.Allotheroptionsareoptional.Ifanoptionvalueistheemptystring,the commandpullsdefaultvaluesforanoptionfromabootprofilenameddefault.Theexceptionistheplugins option,whichisalwayssettotheemptystringifnovalueisset.
24
VMware, Inc.
--vcenter <vcenter_server_name>
NameorIPaddressofavCenterServertoaddthehostto. Ifthisoptionisanemptystring,thecommandusesadefaultvaluefromthebootprofile nameddefault.IfdefaultdoesnotpointtoavCenterServer,thehostisnotaddedto avCenterServersystemandnohostprofileisapplied. ThelocationoftheESXisoftwarethatthehostsboundtothisprotocolshouldboot.You canspecifyafilepathrelativeto /var/lib/deploy/imagesontheappliance,oraURL. Forexample,avalueof 4.1.0-123456indicatesthatthefilesarein /var/lib/deploy/images/4.1.0-123456. IfyoucreateabootprofilethatusesaURLtopointtotherepository,youcannotaccess VMwareToolsdirectly.DownloadVMwareToolsfromvmware.comexplicitly.
--repo <repo_url>
--bootimages <image_list>
Acommaseparatedandorderedlistoffilesthatthemachinesshouldboot.Thedefault isb.z,k.z,s.z,c.z,oem.tgz,m.z.ThePXEbootloaderdownloadsthosefiles separatelyfromtheimagerepositoryonthehost. Ifnotspecified,defaultstothelistofESXiversion4.1imagefilesb.z,k.zandsoon. Kernelcommandlineoptions. AutoDeploysupportstheno-auto-partitionoption,whichisturnedonbydefault. SeeUsingBootOptionsonpage 19. Tosetmultiplebootoptions,separatethembyspaces. NameofahostprofileinthespecifiedvCenterServersystem.AutoDeployappliesthat hostprofiletothehostthatusesthisbootprofile.Defaultisnohostprofile. Ifyouaddahosttoacluster,AutoDeployignoresthisoptionandappliestheclusters hostprofile. Hostprofilesmustbefullyspecified,theycannotincludesettingsthatprompttheuser forinformation.
--bootoptions <options>
--hostprofile <profile_name>
--plugins <names>
Pluginmodulenames.Namesofthepythonmodulesstoredin /var/lib/deploy/.plugins/deployplugins/... Youcanaddmodulestothedirectoryandspecifythemasoptionto--plugins.For example,ifaPythonmoduleisnamedmy_module.py,use--plugins my_module. Anyfunctionsinsidethemodulesyouaddmuststartwithanunderbar(_)character. Ifyouspecifymorethanonemodule,theyareexecutedintheordertheyarespecified. SeeUsingPluginsonpage 18 PathtothefolderorclusterinthevCenterServersystemtoaddthehostto,forexample /MyDataCenter/MyFolder. Ifyoudonotspecifythisoption,andifthehostisaddedtoavCenterServersystem,the hostisaddedtothefirstdatacenteronthatvCenterServer.Youcanlatermovethehost toadifferentdatacenter. Ifyouspecifyapath,thehostisaddedtothespecifiedfolderorcluster.Ifthehostwas addedtothevCenterServersystemduringadifferentbootprocess,thehostismovedto thespecifiedfolder. Ifthefolderorclusterdoesnotexist,amessageisloggedin/var/log/deploy.
--hostfolder <folder>
Warnings ThiscommandprintsawarningifnohostprofileornovCenterServersystemisspecified.
Examples
deploy-cmd createprofile --name=Test1
CreatesaprofilenamedTest1.Youcancustomizetheprofilewithdeploy-cmd updateprofile.
VMware, Inc. 25
deploy-cmd deletehost
Removesthehostfromthedeploycmddatabase. IftheDHCPserverissetupsothehostbootsusingAutoDeploy,thehostisautomaticallyaddedtothe databasewhenitboots. Options
Option --hostid <host_id> Description HostIDassignedtothehostbyAutoDeploy.Usethedeploy-cmd listhostscommand tolistallhostsandtheirdeploy-cmdIDnumbers. WhenAutoDeployaddsahosttothedatabase,itassignsanIDtothehost.
deploy-cmd deleteprofile
Removesabootprofilefromthedeploycmddatabase.Allhostsmustbedissociatedfromtheprofilebefore youcandeleteit. Options
Option --name <profile_name> Description Nameofthebootprofiletodelete
Error Conditions Profile doesn't existIftheprofiledoesnotexist,checkthespelling. Profile is in use by hosts (that is, in the hostid to boot profile table)Dissociatehosts thatareusingtheprofileusingdeploy-cmd updatehost. Cannot delete the default profileIfyoutrytodeletethedefaultprofile,thismessagedisplays.You cannotdeletethedefaultprofile. Examples deploy-cmd deleteprofile --name Test1
deploy-cmd dhcpconfig
ConfiguresDHCPontheAutoDeployvirtualappliance.TheDHCPconfigurationisbasedontheappliances staticIPaddress.AnyaddressestheDHCPserverontheapplianceassignstohostsareonthesamenetwork segmentastheapplianceitself. Thenetworksegmentisdividedintofivesubsegments,andthethirdandfourthsubsegmentareusedfor dynamicaddresses.IftheappliancesIPis192.168.2.2andnetmaskis255.255.255.0,theDHCPrangeis 192.168.2.100192.168.2.200. Ontheappliance,thedhcpd.conffileisgeneratedfromatemplatefile,/etc/dhcpd.conf.template.To updateDHCPsettings,updatethetemplatefileandregeneratetheconfigurationfile,asfollows: 1 2 Changethetemplate/etc/dhcpd.conf.templatefile(nottheconfigurationfile). Rundeploy-cmd dhcpconfigagaintoregeneratethe/etc/dhcpd.conffile.
Options Thiscommandsupportsnooptions.
26
VMware, Inc.
Createsthe/etc/dhcpd.confconfigurationfile,setsupthesystemtostarttheDHCPservereachtimeAuto Deploystarts,andstartstheDHCPserver.
deploy-cmd listhosts
Displaysthefollowinginformationabouteachhostatthecommandprompt:
deploy-cmd listprofiles
Displaysthefollowinginformationforeachbootprofileorforaspecifiedbootprofileatthecommandprompt.
VMware, Inc.
27
Listsprofileinformationforthetwospecifiedprofiles.
deploy-cmd updatehost
Assignsanewbootprofiletoahost.Anewbootprofileisoftennotneeded.Instead,youupdatethedefault profileandthehostsusetheupdatedprofile.However,ifyourenvironmentusesmultipleprofiles,youcan usethiscommandtoassignanondefaultprofiletoahost. Thiscommanddoesnotaffectacurrentlyrunninghost.Toapplythechanges,rebootthehost. Options
Option --hostid <host_id> Description HostIDassignedtothehostbyAutoDeploy.Usethedeploy-cmd listhostscommand tolistallhostsandtheirdeploy-cmdIDnumbers. WhenAutoDeployaddsahosttothedatabase,itassignsanIDtothehost. UsethehostIDdefaulttoconfiguretheprofilethatunknownhostsarebootedwith. --profile <profile_name> Nameofaprofilecreatedwithdeploy-cmd createprofile.
Error Conditions host id not foundIfthehostidisnotfound,youmighthavemisspelledtheID.Rundeploy-cmd listhoststolistallhostsandtheirdeploy-cmdIDnumbers. profile not foundIftheprofileisnotfound,youmighthavemisspelledtheprofile.Rundeploy-cmd listprofiles tolistallprofiles.
deploy-cmd updateprofile
Updatesanexistingbootprofile.Youmustspecifyanamefortheprofileyouwanttoupdate.Youcanspecify alloptionsthatdeploy-cmd createprofilesupports. Options Thecommandonlychangesoptionsyouprovide.
Option --name <profile name> Description Nameofthebootprofiletoupdate. deploy-cmdusesthenametoidentifytheprofilewhenyoucallothercommands,for example,deploy-cmd updatehost. --vcenter <vcenter_server_name> NameorIPaddressofavCenterServertoaddthehostto. Ifthisoptionisanemptystring,thecommandusesadefaultvaluefromthebootprofile nameddefault.IfdefaultdoesnotpointtoavCenterServer,thehostisnotaddedto avCenterServersystemandnohostprofileisapplied. ThelocationoftheESXisoftwarethatthehostsboundtothisprotocolshouldboot.You canspecifyafilepathrelativeto /var/lib/deploy/imagesontheappliance,oraURL. Forexample,avalueof 4.1.0-123456indicatesthatthefilesarein /var/lib/deploy/images/4.1.0-123456. IfyouupdateabootprofiletouseaURLtopointtotherepository,youcannotaccess VMwareToolsdirectly.DownloadVMwareToolsfromvmware.comexplicitly. --bootimages <image_list> Acommaseparatedandorderedlistoffilesthatthemachinesshouldboot.Thedefault isb.z,k.z,s.z,c.z,oem.tgz,m.z.ThePXEbootloaderdownloadsthosefiles separatelyfromtheimagerepositoryonthehost.
--repo <repo_url>
28
VMware, Inc.
Description Kernelcommandlineoptions. AutoDeploysupportstheno-auto-partitionoption,whichisturnedonbydefault. SeeUsingBootOptionsonpage 19. Tosetmultiplebootoptions,separatethembyspaces. NameofahostprofileinthespecifiedvCenterServersystem.AutoDeployappliesthat hostprofiletothehostthatusesthisbootprofile.Defaultisnohostprofile. Ifyouaddahosttoacluster,AutoDeployignoresthisoptionandappliestheclusters hostprofile. Hostprofilesmustbefullyspecified,theycannotincludesettingsthatprompttheuser forinformation.
--hostprofile <profile_name>
--plugins <names>
Pluginmodulenames.Namesofthepythonmodulesstoredin /var/lib/deploy/.plugins/deployplugins/... Youcanaddmodulestothedirectoryandspecifythemasoptionto--plugins.For example,ifaPythonmoduleisnamedmy_module.py,use--plugins my_module. Anyfunctionsinsidethemodulesyouaddmuststartwithanunderbar(_)character. Ifyouspecifymorethanonemodule,modulesareexecutedintheordertheyare specified. SeeUsingPluginsonpage 18 PathtothefolderorclusterinthevCenterServersystemtoaddthehostto,forexample /MyDataCenter/MyFolder. Ifyoudonotspecifythisoption,andifthehostisaddedtoavCenterServersystem,the hostisaddedtothefirstdatacenteronthatvCenterServer.Youcanlatermovethehost toadifferentdatacenter. Ifyouspecifyapath,thehostisaddedtothespecifiedfolderorcluster.Ifthehostwas addedtothevCenterServersystemduringadifferentbootprocess,thehostismovedto thespecifiedfolder. Ifthefolderorclusterdoesnotexist,amessageisloggedin/var/log/deploy.
--hostfolder <folder>
UpdatesthedefaultprofiletousethespecifiedbootimagesandvCenterServersystem.
deploy-cmd updateprofile --name=Test1 --hostprofile=demoprofile --hostfolder=/Techpubs/host/Test1
UpdatestheTest1profiletousethedemoprofilehostprofileandtoplacetheESXihostthatiscreatedusing Test1intheTechpubs/host/Test1folder.
VMware, Inc.
29
30
VMware, Inc.
ThischapterhelpsyoufindlogsonVMwareAutoDeploy,listssomeFAQs(frequentlyaskedquestions),and discussesbestpractices.Thechapterincludesthesetopics:
UsingLogstoResolveProblemsonpage 31 FrequentlyAskedQuestionsonpage 31
HostsbootwhenvCenterServerisnotavailable.WhathappenswhenESXihostsbootandthevCenter Serversystemspecifiedinthebootprofileisnotavailable?
VMware, Inc.
31
HostscannotcompletethebootprocesswhenthevCenterServersystemisnotavailable.Thehostreboots periodicallyuntilthevCenterServersystembecomesavailable.
Resourcepools Virtualmachineregistrationafterreboot
32
VMware, Inc.