Sie sind auf Seite 1von 15

Technical Note

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.0


vCenter Server 5.0 and vSphere Client 5.0
Thistechnicalnotedescribeshowtoinstall,upgrade,anduninstallVMwarevCenterServerandhowtoinstall anduninstallthevSphereClientusingtheWindowscommandlineinterface.Thecommandlineinstallation requiresyoutologontothelocalmachine. ThecommandlineinstallationprocessincludesdownloadingthevCenterServerinstaller,gatheringthe requireddata,andusingthecommandparametersandsamplesinthistechnicalnotetoinstalltheproducts accordingtoyourspecifications. IMPORTANTVMwaredoesnotsupportcommandlineinstallationandupgrademethodsforvCenterServer. However,iftheinstallationorupgradesucceeds,VMwaresupportstheinstalledorupgradedproduct. ThistechnicalnoteprovidesvCenterServerinstallationcommandexamples:

Typicalinstallationacceptingalldefaults. Typicalinstallationwithnondefaults. InstallationinstandaloneorLinkedModegroupenvironments. Installationwithandwithoutthebundleddatabase. Remoteinstallation.

ExamplesarealsoprovidedforvSphereClientinstallationcommands.Theexamplesdescribetypical commandstructures.

vCenter Server Installation Requirements


vCenter Serverhassystemanddatabaserequirements.ForinformationaboutallvCenter Serverinstallation andupgraderequirements,seevSphereInstallationandSetupandvSphereUpgradeatthefollowingsite: http://www.vmware.com/support/pubs. NOTEIfyouplantousetheMicrosoftSQLServer2008R2ExpressdatabasethatisbundledwithvCenter Server,MicrosoftWindowsInstallerversion4.5(MSI4.5)isrequiredonyoursystem.YoucandownloadMSI 4.5fromtheMicrosoftWebsite.

VMware, Inc.

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.0

Information Required for vCenter Server Installation


Table 1liststheinformationthatyoumightneedtoprovideduringtheinstallation.Theinformationyou providedependsonyourspecificinstallation.Forexample,youmustprovidedatabaseinformationifyou haveanexistingdatabase,andyoumustprovideserverinformationifyouareaddingyourvCenter Serverto aLinkedModegroup. NOTERecordthevaluesthatyouenterincaseyoumustreinstallvCenterServerandwanttousethesame values. Table 1. Information Required for vCenter Server Installation
Data Usernameandorganization Default Your organizations name None Comments Followyourorganizationspolicy.

vCenter Serverlicensekey

Ifyouomitthelicensekey,vCenter Serverisinstalledinevaluation mode.AfteryouinstallvCenter Server,youcanenterthe vCenter ServerlicenseinthevSphere Client. Thetypicalinstallationpathis: %SystemDrive%\Vmware\Infrastructure\ JoinaLinkedModegrouptoenablethevSphere Clienttoview, search,andmanagedataacrossmultiplevCenter Serversystems. ThisoptiondoesnotapplyifyouareupgradingtheVirtualCenter databaseschema.YoucanjoinaLinkedModegroupafterthe installationiscomplete.

vCenter Serverinstall location Standaloneorgroup

None Standalone

Fullyqualifieddomainname ofDirectoryServicesforthe vCenter Servergroup

FQDN

Required. IftheinstanceofvCenter Serverisstandalone,thedefaultisthe machinesFQDN. IfthisinstanceofvCenter Serverisjoiningagroup,thisisthenameof aremoteinstanceofvCenter Server.Thelocalandremoteinstances willbemembersofaLinkedModegroup. Insomecases,youcanentertheIPaddressinsteadoftheFQDN. To helpensureconnectivity,thebestpracticeistousetheFQDN. ForIPv6,unlessboththelocalandtheremotemachinesareinIPv6 mode,youmustentertheFQDNoftheremotemachineinsteadofthe IPv6address. IfthelocalmachinehasanIPv4addressandtheremotemachinehas anIPv6address,thelocalmachinemustsupportIPv4andIPv6mixed mode.ThedomainnameservermustbeabletoresolvebothIPv4and IPv6addressesifyourenvironmenthasbothaddressingtypesina singleLinkedModegroup.

LDAPportfortheDirectory Servicesfortheremote vCenter Serverinstance Datasourcename(DSN)

389

RequiredifthisinstanceofvCenter ServerisjoiningaLinkedMode group.ThisistheremoteinstancesLDAPport.SeevSphereInstallation andSetupathttp://www.vmware.com/support/pubsforinformation onrequiredports. Requiredtouseanexistingdatabase.Ifyouareusingthebundled database,youdonotneedtospecifythisfield.Defaultforthebundled databaseisVMwareVirtualCenter. RequirediftheDSNisnotusingWindowsauthentication. RequirediftheDSNisnotusingWindowsauthentication. Requiredtouseanexistingdatabase.ThevCenterServerinstaller shouldgenerateandvalidatetheJDBCURLforthevCenterServer database.Iftheinstallerfailstoconnecttothedatabaseusingthe generatedJDBCURL,theinstallerpromptsyoutospecifytheJDBC URL.TheformatoftheJDBCURLdependsonthedatabasethatyou areusing.SeevSphereInstallationandSetupat http://www.vmware.com/support/pubsforinformation.

None

Databaseusername Databasepassword JDBCURLfordatabase

None None None

VMware, Inc.

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.0

Table 1. Information Required for vCenter Server Installation (Continued)


Data vCenter Serveraccount information Default Microsoft Windows system account 443 80 902 8080 Comments TheMicrosoftWindowssystemaccountorauserspecifiedaccount. UseauserspecifiedaccountifyouplantouseMicrosoftWindows authenticationforSQLServer.SeevSphereInstallationandSetupat http://www.vmware.com/support/pubsforinformationabout runningvCenter ServeronSQLServer. SeethevSphereInstallationandSetupdocumentationat http://www.vmware.com/support/pubsforinformationabout requiredports.

HTTPSWebservicesport HTTPWebservicesport Heartbeat(UDP)port VMwareVirtualCenter ManagementWebservices port VMwareVirtualCenter ManagementWebservices port WebServiceschangeservice notificationport LDAPportfortheDirectory Servicesforthelocal vCenter Serverinstance SSLportfortheDirectory Servicesforthelocal vCenter Serverinstance vCenterInventoryService HTTPSport vCenterInventoryService servicemanagementport vCenterInventoryService linkedmodecommunication port

8443

60099 389

636

10443 10109 10111

VMware, Inc.

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.0

vCenter Server Installation Commands


vCenter ServercommandlineinstallationusesMicrosoftWindowsInstaller(MSI)commandstructurewith vCenterServerspecificparameters.

Microsoft Windows Installer Commands


ThevCenter ServerinstallationcommandsarebasedontheMicrosoftWindowsInstaller(MSI).

Someactionsduringinstallationrequireinteractiveresponsetoprompts.Onlypassiveinstallationusing themsiexeccommandoption/qrissupported.Thefullysilentoption(/qn)isnotsupported. Allparametersthatappearbetween/v"..."mustuseabackslash(\)toescapethequotationmarks,for example,COMPANY_NAME=\"VMware, Inc.\".Ifaquoteisnotescaped,the/v"..."optionisterminated. ForinformationaboutMSIcommandlineoptions,seeMicrosoftDeveloperNetworkat http://msdn.microsoft.com/enus/library/cc185688(VS.85).aspx.

Aninstallationfromalocaldisk,usingMSIEXECcommandoptions,hasthefollowingformat:
start /wait <path_to_installer.exe><installer.exe> /s /w /L<Language Code> /v" /qr <parameters>"

<path_to_installer.exe>isthelocationoftheextractedfiles. <installer.exe>istheinstallerexecutableforvCenterServer(VMware-vcserver.exe)orthevSphere Client(VMware-viclient.exe). Forexample,ifC:\temp\vCenter50\SetupFilesisthelocationoftheextractedfiles,usethefollowing commandformats.


vCenter Serverinstaller:C:\temp\vCenter50\SetupFiles\vpx\VMware-vcserver.exe vSphere Clientinstaller:C:\temp\vCenter50\SetupFiles\vpx\VMware-viclient.exe

<parameters>aretheoptionalparameterslistedinvCenterServerInstallerCommandParameterson page 4.
Language Codeisthelanguagetobeusedduringtheinstallation.Thelanguagecodeusedintheexamplesis English,L1033.

vCenter Server Installer Command Parameters


Table 2andTable 3listtheparametersthatyoumightneedtoprovideduringvCenter Serverand vSphere Clientinstallation.Theinformationyouprovidedependsuponyourspecificinstallation.For example,youmustprovidedatabaseparametersifyouhaveanexistingdatabase,andyoumustprovide serverparametersifyouareaddingyourvCenter Servertoagroup. Table 2. vCenter Server Installation Command Parameters
Parameter USERNAME=\"<username>\" COMPANYNAME=\"<companyname>\" LICENSEKEY=\"<licensekey>\" Default None None "" Conditions Userperforminginstallation.Ifnotprovided,theinstallation attemptstoreadfromtheregistry.Example:"VMware User" Ifnotprovided,theinstallationattemptstoreadfromthe registry.Example:"VMware, Inc." Ifyouomitthelicensekey,vCenter Serverwillbein evaluationmode,whichallowsyoutousethefullfeatureset. Afterinstallation,youcanconvertvCenter Servertolicensed modebyenteringthelicensekeyusingthevSphere Client.

VMware, Inc.

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.0

Table 2. vCenter Server Installation Command Parameters (Continued)


Parameter DB_SERVER_TYPE=[Bundled|Custom] Default Bundled Conditions ConfiguresvCenter Servertouseanexistingdatabase instance. WhenusingBundled,youmustalsoincludeFORMAT_DB=1. WhenusingCustom,youmustalsoinclude DB_DSN=\"<dns_name>\", DB_PASSWORD=\"<password>\",and DB_USERNAME=\"<username>\".

Thebundleddatabaseissuitablefordeploymentsof upto5hostsand50virtualmachines. Whenyouuseanexisting(custom)database,oneof thefollowingchoicesapplies:

IfyourdatabaseisalocalSQLServerdatabase usingWindowsNTauthentication,donot specifytheusernameandpassword. IfyouspecifyaremoteSQLServerdatabasethat usesWindowsNTauthentication,thespecified databaseuserandtheloggedinuseronthe vCenter Servermachinemustbethesame.

DB_DSN=\"<name>\"

"VMware VirtualCenter"

CustomizestheDSN. RequiredonlyifDB_SERVER_TYPE=Custom. Setto1ifintegratedsecurityisusedwithSQLServeror SQLServerExpressdatabase.Otherwise,thisparameter isnotpassed.

DB_DSN_WINDOWS_AUTH

DB_USERNAME=\"<name>\"

""

SetstheDSNaccountname. RequiredonlyifDB_SERVER_TYPE=Custom. TouseWindowsauthenticationforSQLServer,specify anaccountthatisanadministratoronthelocalmachine. Asabestpractice,typetheaccountnameas <domain_name>\<user_name>.

IfyourdatabaseisalocalSQLServerdatabaseusing WindowsNTauthentication,donotspecifytheuser nameandpassword. IfyouspecifyaremoteSQLServerdatabasethatuses WindowsNTauthentication,thespecifieddatabase userandtheloggedinuseronthevCenter Server machinemustbethesame.

DB_PASSWORD=\"<password>\"

""

SetstheDSNaccountpassword. RequiredonlyifDB_SERVER_TYPE=Custom.

IfyourdatabaseisalocalSQLServerdatabaseusing WindowsNTauthentication,donotspecifytheuser nameandpassword. IfyouspecifyaremoteSQLServerdatabasethatuses WindowsNTauthentication,thedatabaseuserand theloggedinuseronthevCenter Servermachine mustbethesame.

FORMAT_DB=1

None

Createsafreshdatabaseschema.Allexistingdataislost ifthedatabasealreadyexists. RequiredonlyifDB_SERVER_TYPE=Bundled,butcanbe usedwithDB_SERVER_TYPE=Customasameansto overwriteexistingdatabase.

CAUTIONUsingFORMAT_DB=1resultsinlossof data.Donotuseitifyouwanttopreservethe existingdataandthedatabaseschema.

VMware, Inc.

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.0

Table 2. vCenter Server Installation Command Parameters (Continued)


Parameter JVM_MEMORY_OPTION Default S Conditions ChoicesrefertovCenterServerinventorysize.

S - Smallinventory(1100hostsor11000virtual machines) M - Mediuminventory(100400hostsor10004000 virtualmachines) L - Largeinventory(morethan400hostsor4000 virtualmachines)

ThisparameterdeterminesthemaximumJVMheap settingsforVMwareVirtualCenterManagement Webservices(Tomcat),InventoryService,and ProfileDrivenStorageService.Youcanadjustthissetting afterinstallationifthenumberofhostsinyour environmentchanges.Seetherecommendationsinthe vSphereInstallationandSetupdocumentation. VPX_USES_SYSTEM_ACCOUNT=[""|1] System SystemUsesystemaccount. 0Nonnullvalue,suchas0,behavesthesameas1. Whenvalueis1,donotincludetheparameters VPX_ACCOUNT_UPN=\"<acctname>@<UNCname>\", VPX_PASSWORD=\"<pwd>\", VPX_PASSWORD_VERIFY=\"<pwd>\",or VPX_ACCOUNT=\"<UNCname>\<acctname>\". ""Useaccountprovided. Whenvalueis"",youmustinclude VPX_ACCOUNT_UPN=\"<acctname>@<UNCname>\", VPX_PASSWORD=\"<pwd>\", VPX_PASSWORD_VERIFY=\"<pwd>\",and VPX_ACCOUNT=\"<UNCname>\<acctname>\". VPX_ACCOUNT=\"<UNCname>\ <acctname>\" None UseraccounttorunVMwarevCenter Serverservice. <UNCname>caneitherbethedomainnameorlocalhost name. <acctname>defaultisthecurrentloggedinuser. TheadministratorusermusthaveLogonasaService right. RequiredonlyifVPX_USES_SYSTEM_ACCOUNT=""; ignoredif1.Example:mydomain\john VPX_PASSWORD=\"<pwd>\" None Useraccountpassword. RequiredonlyifVPX_USES_SYSTEM_ACCOUNT=""; ignoredif1. VPX_PASSWORD_VERIFY=\"<pwd>\" None Verifyuseraccountpassword. RequiredonlyifVPX_USES_SYSTEM_ACCOUNT=""; ignoredif1. INSTALLDIR=\"<installdir>\" None Specifiesanalternateinstalldirectory. Theinstallationpathcannothavecommas(,)orperiods(.). ToinstallvCenter ServeronadriveotherthanC:,verify thatthereisenoughspaceintheC: \WINDOWS\InstallerfoldertoinstalltheMicrosoft WindowsInstaller.msifile. IfyouuseanOracleDSN,thepathnamecannotcontain openingorclosingparentheses. VC_DSN VC_JDBC_URL VCS_GROUP_TYPE=[Single|Group] Single TheDSNnamethatyoucreateforthedatabase. JDBCURLforthedatabase.Requiredifyouusean existingdatabase. TypesofDirectoryServicesinstance. WhenusingGroup,youmustinclude VCS_ADAM_PRIMARY_PORT=\"<port>\" and VCS_ADAM_PRIMARY_SERVER=\"<IPaddr>\".

VMware, Inc.

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.0

Table 2. vCenter Server Installation Command Parameters (Continued)


Parameter VCS_ADAM_PRIMARY_SERVER= \"<IPaddr>\" Default "" Conditions IPaddressorfullyqualifiedDNSnameoftheremote vCenter Servertowhichyouwanttojointhis vCenter Serverinstance.Example: vcms-internal.eng.vmware.com. RequiredonlyifVCS_GROUP_TYPE=Group. VCS_ADAM_PRIMARY_PORT=<port> 389 LDAPportthattheremoteDirectoryServicesinstanceis listeningon. RequiredonlyifVCS_GROUP_TYPE=Group. VCS_HTTPS_PORT=<port> VCS_HTTP_PORT=<port> VCS_HEARTBEAT_PORT=<port> TC_HTTP_PORT=<port> TC_HTTPS_PORT=<port> VCS_ADAM_LDAP_PORT=<port> VCS_ADAM_SSL_PORT=<port> QUERY_SERVICE_HTTPS_PORT QUERY_SERVICE_XDB_PORT QUERY_SERVICE_FEDERATION_PORT QUERY_SERVICE_NUKE_DATABASE 443 80 902 8080 8443 389 636 10443 10109 10111 1 vCenter ServerHTTPSport. vCenter ServerHTTPport. vCenter ServerHeartbeatport. VMwarevCenterWebservicesHTTPport. VMwarevCenterWebservicesHTTPSport. LDAPportofDirectoryServiceswhereVMware VCMSDSlistens. SSLportofDirectoryServiceswhereVMwareVCMSDS listens. InventoryServiceHTTPport. vCenterInventoryServiceservicemanagementport. vCenterInventoryServicelinkedmodecommunication port. Setto1tocleartheexistingdatabaseforInventory Service

Table 3. vSphere Client Installation Command Parameters for thevmware-client.exeCommand


Parameter INSTALLDIR=\"<installdir>\" Default None Conditions SpecifiesanalternateinstalldirectoryandcreatesaVirtual Infrastructure Clientdirectory. Theinstallationpathcannothavecommas(,)orperiods(.). IfyouinstallvSphere ClientonadriveotherthanC:,verifythatthereis enoughspaceintheC: \WINDOWS\Installerfoldertoinstallthe MicrosoftWindowsInstaller.msifile.

Performing a Command-Line Installation


ThissectiondescribeshowtoinstallvCenter ServerandthevSphere Clientfromthecommandline.

Using a Virtual Machine for Installation


YoucaninstallvCenter ServerinaMicrosoftWindowsvirtualmachine,whichrunsonaVMwareESXihost. DeployingthevCenter Serversysteminthevirtualmachinehasseveraladvantages.

RatherthandedicatingaseparateservertothevCenter Serversystem,youcanplaceitinavirtual machinerunningonthesameESXihostwhereyourothervirtualmachinesrun. YoucanprovidehighavailabilityforthevCenter ServersystembyusingVMwareHighAvailability(HA). YoucanmigratethevirtualmachinecontainingthevCenter Serversystemfromonehosttoanother, enablingmaintenanceandotheractivities. YoucancreatesnapshotsofthevCenter Servervirtualmachineandusethemforbackups,archiving,and soon.
7

VMware, Inc.

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.0

Preparing for Installation


BeforeyouperformthevCenter ServerorvSphere Clientinstallation,prepareyoursystem.

Installing with Required Administrator Rights


WhenyouareinstallingavCenter Server,theadministratorusermustbeabletoensurethatvCenter Server receivesLogonasaServicerights. To ensure that the administrator user that vCenter Server uses for startup has Logon as a Service rights 1 2 3 4 SelectControlPanel>AdministrativeTools. SelectLocalSecurityPolicy. SelectLocalPolicies>UserRightsAssignment DoubleclickLogonasaserviceintherightsidepaneandaddtheVPX_ACCOUNTusertothelist.

Installing on a Standalone Server


Ifyouareinstallingonastandaloneserver,installthevSphereClientfirst. To prepare for installing on a standalone server 1 2 3 OnanymachinethathasnetworkaccesstotheESXihost,installthevSphereClient. UsingthevSphere Client,accessanESXihostdirectlytocreatethevirtualmachineforhosting vCenter Server. Inthevirtualmachine,installvCenter Server.

Installing over a Network


Ifyouareinstallingoveranetwork,runtheinstallerfromalocalmachine. To prepare for installing over a network 1 2 Placetheinstalleronanetworkdriveandcalltheinstallerfromalocalmachine. EntertheUniversalNamingConvention(UNC)addressintheformat\\servername\path.

Installing with an Existing Database


Ifyouareinstallingonasystemandthereisanexistingdatabase,preparefordatabaseaccess. To prepare for installing with an existing database 1 2 3 Ensurethatthedatabasehostmachinebelongstothedomain. Logintothedatabasehostmachineasadomainuserthatbelongstothelocaladministratorgroup. CreatetheDSNwithintegratedOSauthenticationmode. TheDSNusermustbethesameasthelocaladministratorforvCenterServerserviceaccount.

Installing and Joining a Group Using Linked Mode


IfyouareinstallingavCenterServerthatyouwanttojointoaLinkedModegroup,ensurethatthereisanother version5.0vCenter Server,sothatyouhaveagroupofatleasttwoservers.TheremustbeatleasttwovCenter Serverinstallationstocreateagroup.vCenterServerdoesnotsupportLinkedModegroupsthatcontainboth version5.0andearlierversionsofvCenterServers.

VMware, Inc.

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.0

To prepare for installing and joining a group using linked mode 1 2 InstallthefirstvCenterServerinstanceandspecifyVCS_GROUP_TYPE=Single. ForeachsubsequentvCenterServerinstallationthatyouwilladdtotheinitialgroup,specify VCS_GROUP_TYPE=GroupandprovidetheFQDNofthehostofthefirstinstallation.

Installing vCenter Server Remotely


ToinstallvCenterServerremotely,installvCenterServer,InventoryServiceandProfileDrivenStorageService (SPS)separatelyinthisorder:vCenterServer,InventoryService,andSPS.Seethecommandlineexamplesin vCenterServerRemoteInstallationExamplesonpage 12.

Installing vCenter Server and the vSphere Client


Beforeyoubegin,reviewthecommandlineinstallationoptionsandselecttheappropriatemethods.See vCenterServerInstallerCommandParametersonpage 4. Followthesesyntaxandinstallationguidelines:

Youmustincludedoublequotationmarksforvaluesthatcontainspaces.Otherwise,theinstallationfails. Usingnull,asin<parameter>=,for\"\"isnotallowed.Forvaluesotherthannull,doublequotation marksarenotrequired,forexampleFORMAT_DB = 1andFORMAT_DB = "1"areidentical. Commandoptionsarecasesensitive.Forexample,useBundled,notbundledorBUNDLED. Thecommandinstallationprocessisnotcompletelysilent.Promptscanoccur.Respondtotheprompts. Whenyouenterresponsestoprompts,orvaluestoparameters,thecontentoftheresponseorparameter isnotvalidated.Itisaccepted.Ensurethatthevaluesenteredasresponsestopromptsorvaluesfor parametersarecorrect.Otherwise,vCenter Serverwillnotstartupafterinstallation. LinkedModeinstallationissupportedbetweendifferentdomainsonlywhenthosetwodomainshavea twowaytrustrelationship.Ifthetwodomainsdonotshareatwowaytrust,youcannotinstall vCenter Servercannotbeinstalled.

To install vCenter Server or the vSphere Client from the command line 1 DownloadtheinstallerandanyadditionalmodulesforvCenter ServerandthevSphere Client. a DownloadthezipfileforvCenter ServerfromtheVMwareproductpageat http://www.vmware.com/products. TheinstallerzipfilenameisVMware-VIMSetup-xx-5.0.0-yyyyyy.zip,wherexxisthe twocharacterlanguagecode,andyyyyyyisthebuildnumber. b 2 3 4 Extractthefilesfromtheziparchive.

OpenaWindowscommandpromptonthevirtualmachineorserverthatyouaregoingtoinstall vCenter ServerorvSphere Clienton. Changedirectorytothelocationoftheinstallationexecutables. FromthecommandlineoftheserverorvirtualmachinewhereyouareinstallingvCenter Serverorthe vSphere Client,runtheappropriatecommandstring

Thecommandstringformatfromanetworklocationis:
start /wait <installer.exe_file> <parameters>

Thecommandstringformatfromalocaldiskis:
start /wait <installer.exe file> /qr /s /w /L<Language Code> /v" /qr <parameters>"

VMware, Inc.

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.0

vCenter Server Local Installation Examples


Theexamplesassumethatyouarerunningtheinstallationfromalocaldisk,notanetworklocation.See InstallingoveraNetworkonpage 8. ForexamplesofvCenterServerremoteinstallationcommands,seevCenterServerRemoteInstallation Examplesonpage 12.

Typical Install
UsethedefaultsettingstoinstallvCenter Servertothedefaultlocationwiththebundleddatabase. Example 1. Typical Installation Use the Default Settings
start /wait C:\VMware-VIMSetup-5.0.0_150520\vpx\VMware-vcserver.exe /s /w /L1033 /v" /qr DB_SERVER_TYPE=Bundled FORMAT_DB=1 /L*v \"%TEMP%\vmvcsvr.log\""

Ifthedatabaseisalreadyinstalled,FORMAT_DB=1commandparameterspecifiesreplacingtheexisting database.WhenDB_SERVER_TYPE=Bundledisused,FORMAT_DB=1mustalsobespecifiedasdescribedinthe Table 2conditionforDB_SERVER_TYPE.

Custom Installation
Example 2setsparametersforasinglevCenter Servercustominstallation. Example 2. Custom Installation Single vCenter Server Installation Parameters
start /wait C:\VMware-VIMSetup-5.0.0-xxxxxx\vpx\VMware-vcserver.exe /s /w /L1033 /v" /qr WARNING_LEVEL=0 USERNAME=\administrator\" COMPANYNAME=\"VMware\" LICENSEKEY=\"xxxxx-xxxxx-xxxxx-xxxxx-xxxxx\" DB_SERVER_TYPE=Custom DB_DSN=\"VCCmdLineInstall-2\" DB_USERNAME=\"Administrator\" DB_PASSWORD=\"CENSORED\" VPX_USES_SYSTEM_ACCOUNT=0 VPX_ACCOUNT=\"TEST\administrator\" VPX_PASSWORD=\"CENSORED\" VPX_PASSWORD_VERIFY=\"CENSORED\" INSTALLDIR=\"C:\VCServer\" VCS_GROUP_TYPE=Single VCS_HTTPS_PORT=443 VCS_HTTP_PORT=80 VCS_HEARTBEAT_PORT=902 TC_HTTP_PORT=8080 TC_HTTPS_PORT=8443 VCS_ADAM_LDAP_PORT=389 VCS_ADAM_SSL_PORT=902 QUERY_SERVICE_HTTPS_PORT=10443 QUERY_SERVICE_XDB_PORT=10109 QUERY_SERVICE_FEDERATION_PORT=10111

Installation over a Network


Overanetwork,usethedefaultsettingstoinstallvCenterServertothedefaultlocationwiththebundleddatabase Example 3. Typical Installation from a Network
start /wait \\10.112.121.19\c\VMware-VIMSetup-5.0.0_150520\vCenter-Server\VMware-vcserver.exe /s /w /L1033 /v" /qr FORMAT_DB=1"

VMware, Inc.

10

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.0

WhenDB_SERVER_TYPEisnotspecified,itsdefaultvalueisBundled,soFORMAT_DB=1mustbespecifiedas shownintheTable 2conditionforDB_SERVER_TYPE.

Installation with an Existing Database


Example 4setsthedefaultuserasthecustomdatabaseserveruser.Thedomainusersetsthedefaultuserfor vCenterServer,integratedOSauthentication,andremoteSQLServers.Thesamecommandstringworksfor localSQLServers. Example 4. Typical Installation with an Existing Database
start /wait C:\VMware-VIMSetup-en-5.0.0\vCenter-Server\VMware-vcserver.exe /s /w /L1033 /v" /qr USERNAME=\"administrator\" COMPANYNAME=\"VMware\" LICENSEKEY=\"xxxxx-xxxxx-xxxxx-xxxxx-xxxxx\" DB_SERVER_TYPE=Custom DB_DSN=\"sql2005_NT_mli\" DB_USERNAME=\"mli\" DB_PASSWORD=\"CENSORED\" VPX_USES_SYSTEM_ACCOUNT=\"\" VPX_ACCOUNT=\"PDPVC\mli\" VPX_PASSWORD=\"CENSORED\" VPX_PASSWORD_VERIFY=\"CENSORED\"

IfyouareusingSQLauthenticationforODBCDSN,vCenter Servercanruneitherasalocalsystemaccount orasadomainuseraccount.

Custom Installation with Linked Mode


Example 5setsmultiplevCenter ServerinstallationparametersandjoinsagroupofvCenterServers.This LinkedModeexamplesdescribeshowtohavetheinstallationjointhegroupofanexistingprimary vCenter Server.Youcanspecifyeitheralocalsystemaccountoruserspecifiedaccount. ThecommandinExample 5doesnotinstallastandalonevCenter Server. Example 5. Custom Installation with Linked Mode
start /wait C:\VMware-VIMSetup-en-5.0.0\vCenter-Server\VMware-vcserver.exe /s /w /L1033 /v" /qr USERNAME=\"administrator\" COMPANYNAME=\"VMware\" LICENSEKEY=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx DB_SERVER_TYPE=Custom DB_DSN=\"VCCmdLineInstall-2\" DB_USERNAME=\"Administrator\" DB_PASSWORD=\"CENSORED\" VPX_USES_SYSTEM_ACCOUNT=\"\" VPX_ACCOUNT=\"TEST\administrator\" VPX_PASSWORD=\"CENSORED\" VPX_PASSWORD_VERIFY=\"CENSORED\" INSTALLDIR=\"C:\VCServer\" VCS_GROUP_TYPE=Group VCS_ADAM_PRIMARY_SERVER=\"<IPaddr>\" VCS_ADAM_PRIMARY_PORT=389 VCS_HTTPS_PORT=443 VCS_HTTP_PORT=80 VCS_HEARTBEAT_PORT=902 TC_HTTP_PORT=8080 TC_HTTPS_PORT=8443 VCS_ADAM_LDAP_PORT=389 VCS_ADAM_SSL_PORT=636 QUERY_SERVICE_HTTPS_PORT=10443 QUERY_SERVICE_XDB_PORT=10109 QUERY_SERVICE_FEDERATION_PORT=10111

VMware, Inc.

11

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.0

Installation with Linked Mode and Existing Database


Example 6installsvCenterServerwithanexistingdatabaseandkeepstheexistingdatabasedatawhilejoining theinstalledvCenterServertoaLinkedModegroupofvCenter Servers. NOTEForOracle10gandOracle11g,tocontinuetheinstallation,youmustrespondtotheconfirmation promptthatappears. Example 6. Install with Linked Mode and Existing Database
start /wait C:\VMware-VIMSetup-en-5.0.0\vCenter-Server\VMware-vcserver.exe /s /w /L1033 /v" /qr USERNAME=\"administrator\" COMPANYNAME=\"VMware\" LICENSEKEY=\"xxxxx-xxxxx-xxxxx-xxxxx-xxxxx\" DB_SERVER_TYPE=Custom DB_DSN=\"VCCmdLineInstall-2\" DB_USERNAME=\"Administrator\" DB_PASSWORD=\"CENSORED\" FORMAT_DB=0 VPX_USES_SYSTEM_ACCOUNT=\"\" VPX_ACCOUNT=\"TEST\administrator\" VPX_PASSWORD=\"CENSORED\" VPX_PASSWORD_VERIFY=\"CENSORED\" INSTALLDIR=\"C:\VCServer\" VCS_GROUP_TYPE=Group VCS_ADAM_PRIMARY_SERVER=\"<IPaddr>\" VCS_ADAM_PRIMARY_PORT=389 VCS_HEARTBEAT_PORT=902 VCS_HTTPS_PORT=443 VCS_HTTP_PORT=80 TC_HTTP_PORT=8080 TC_HTTPS_PORT=8443 VCS_ADAM_LDAP_PORT=389 VCS_ADAM_SSL_PORT=636 QUERY_SERVICE_HTTPS_PORT=10443 QUERY_SERVICE_XDB_PORT=10109 QUERY_SERVICE_FEDERATION_PORT=10111

vCenter Server Remote Installation Examples


ToinstallvCenterServerremotely,installvCenterServer,InventoryServiceandProfileDrivenStorageService (SPS)separatelyinthisorder:vCenterServer,InventoryService,andSPS. Example 7. vCenter Server Remote Installation
VMware-vcserver.exe /s /v"DB_DSN=VC_DSN DB_DSN_WINDOWS_AUTH=1 DB_SERVER_TYPE=Custom INSTALLDIR=\"C:\Program Files\VMware\Infrastructure\" VCS_GROUP_TYPE=Single JVM_MEMORY_OPTION=S /qr"

Example 8. Inventory Service Remote Installation


msiexec.exe /L*V "C:\Users\ADMINI~1\AppData\Local\Temp\vim-qs-msi.log" /i "C:\\VMware-vpx-en-5.0.0-481269\vCenter-Server\Inventory Service\vCenter Inventory Service.msi" INSTALLDIR="C:\Program Files\VMware\Infrastructure\" HTTPS_PORT=10443 XDB_PORT=10109 FEDERATION_PORT=10111 QUERY_SERVICE_NUKE_DATABASE=1 SSL_PORT=443 TOMCAT_MAX_MEMORY_OPTION=S COMPUTER_FQDN=abc.eng.vmware.com ARPSYSTEMCOMPONENT=1 SKIPVCCHECK=1 /qr

VMware, Inc.

12

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.0

Example 9. Profile-Driven Storage Service Remote Installation


msiexec.exe /L*V "C:\Users\ADMINI~1\AppData\Local\Temp\vim-sps-msi.log" /i "C:\VMware-vpx-en-5.0.0-481269\vCenter-Server\Profile-Driven Storage\VMware vSphere Profile-Driven Storage.msi" INSTALLDIR="C:\Program Files\VMware\Infrastructure\" SPS_HTTP_PORT=31000 SPS_HTTPS_PORT=31100 COMPUTER_FQDN=abc.eng.vmware.com QUERY_SERVICE_NUKE_DATABASE="1" QS_VERSION_INSTALLED="" TOMCAT_MAX_MEMORY_OPTION="S" ARPSYSTEMCOMPONENT=1 SKIPVCCHECK=1 /qr

vSphere Client Installation Examples


Theexamplesassumethatyouarerunningtheinstallationfromalocaldisk,notanetworklocation. Example 10. Typical vSphere Client Installation
start /wait C:\VMware-VIMSetup-en-5.0.0\vSphere-Client\VMware-viclient.exe /s /w /L1033 /v" /qr"

Example 11. vSphere Client Installation with a Log File


start /wait C:\VMware-VIMSetup-en-5.0.0\vSphere-Client\VMware-viclient.exe /s /w /L1033 /v" /qr /L*v \"%TEMP%\vmvcc.log\""

Example 12. Custom vSphere Client Installation


start /wait C:\VMware-VIMSetup-5.0.0\vSphere-Client\VMware-viclient.exe /s /w /L1033 /v" /qr USERNAME=\"Administrator\" COMPANYNAME=\"VMware\" INSTALLDIR=\"C:\VIClient\""

Example 13. vSphere Client Reinstallation


start /wait C:\VMware-VIMSetup-en-5.0.0\vSphere-Client\VMware-viclient.exe /s /w /L1033 /v" /qr /L*v \"%TEMP%\vmvcc.log\""

vSphere Client 5.0 Installation over Virtual Infrastructure Client


InstallingthevSphereClientoveranexistinginstallationoverwritestheoriginalinstallation.Youarenot promptedtoconfirmtheinstallation.YoucansafelyinstallthevSphere Clientoverthefollowingversionsof theVirtualInfrastructureClient(VI Client)orthevSphereClient:

VI Client2.0 VI Client2.0.1 VI Client2.0.1P1,P2 VI Client2.0.2 VI Client2.0.2U1,U2,U3,U4,U5 VI Client2.5 VI Client2.5U1,U2,U3,U4 vSphereClient4.0 vSphereClient4.1

Example 14. vSphere Client 5.0 Installation over Virtual Infrastructure Client
start /wait C:\VMware-VIMSetup-en-5.0.0\vSphere-Client\VMware-viclient.exe /s /w /L1033 /v" /qr /L*v \"%TEMP%\vmvcc.log\""

VMware, Inc.

13

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.0

Performing a Command-Line Upgrade of vCenter Server


YoucanupgradevCenterServerfromthecommandlineineitherofthefollowingways.

UpgradethevCenterServerdatabasefirst,andthenupgradevCenterServer. UpgradeboththevCenterServerdatabaseandvCenterServerinasinglecommand.

To upgrade vCenter Server from the command line 1 (Optional)UpgradethevCenterServerdatabasebeforeupgradingvCenterServer.


<path_to_vCenter-Server>\vCenter-Server\dbupgrade\bin\VCDtabaseUpgrade.exe DSN=<DSN_name> UID=<DB_username> PWD=<DB_password> LOGFILE=<optional or specify another name with path>

Torunthiscommandsilently,addtheparameterQUIET=true.The<DB_username> dependsonthe databasetype:

ForSQLServerdatabases.IftheDSNusesWindowsauthentication,the<DB_username> istheuser nameforthelogonuser.IftheDSNusestheSQLServerauthentication,the<DB_username> isthe specificdatabaseuser. ForOracleorIBMDB2databases,the<DB_user name> isthedatabaseuser.

The<DB_password> isthepasswordforthespecified<DB_username>. 2 UpgradevCenterServerandthevCenterServerdatabase.


<path_to_vCenter-Server>\vCenter-Server\VMware-vcserver.exe /S /L1033 /v"DB_EXISTING_VERSION=<existing_database_version> DB_DSN=<database_DSN> DB_USERNAME=<database_user_name> DB_PASSWORD=<database_password>
LAUNCHWIZARD=\"1\" VCS_DB_BACKUP=\"1\" /qr

IfthevCenterServerdatabaseisalreadyupgraded,thiscommanddoesnotupgradethedatabaseagain. Forthe/L1033 parameter,usetheappropriatelanguagecodeforyoursystem.Forthe DB_EXISTING_VERSIONparameter,usethefollowingschemaversionnumbers:


VirtualCenter2.5Update6:5 vCenterServer4.0.x:400 vCenterServer4.1.x:410 vCenterServer5.0:500

YoucancustomizethiscommandbyusingtheparametersinTable 2.

VMware, Inc.

14

Command-Line Installation and Upgrade of VMware vCenter ServerTM 5.0

Uninstalling vCenter Server or the vSphere Client from the Command Line
vCenterServerinstallationsincludetheProfileDrivenStorageService(SPS)andInventoryService.Youcan enterasinglecommandtouninstallvCenterServer,ProfileDrivenStorageService(SPS)andInventory Service. To uninstall vCenter Server, Profile-Driven Storage Service, and Inventory Service 1 2 OpenaWindowscommandpromptonthevirtualmachineorserverthatvCenterServerisinstalledon. Runthefollowingcommand:
msiexec.exe /I{1FBCB62E-6178-455F-ADE2-07957D81A7D4} REMOVE=ALL SUPPRESS_CONFIRM_UNINSTALL="1" /qr

To uninstall the vSphere Client 1 2 OpenaWindowscommandpromptonthevirtualmachineorserverthatthevSphere Clientisinstalled on. Runthefollowingcommand:


MsiExec.exe /x{04805AB6-F757-496A-8D56-37A0FC5FF6F3}

If you have comments about this documentation, submit your feedback to: docfeedback@vmware.com VMware, Inc. 3401 Hillview Ave., Palo Alto, CA 94304 www.vmware.com Copyright 2009-2011 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. Item: EN-000638-00

15

Das könnte Ihnen auch gefallen