VSP 50 Vcserver Cmdline Install
VSP 50 Vcserver Cmdline Install
VSP 50 Vcserver Cmdline Install
ExamplesarealsoprovidedforvSphereClientinstallationcommands.Theexamplesdescribetypical commandstructures.
VMware, Inc.
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.
None Standalone
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.
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
VMware, Inc.
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
VMware, Inc.
Aninstallationfromalocaldisk,usingMSIEXECcommandoptions,hasthefollowingformat:
start /wait <path_to_installer.exe><installer.exe> /s /w /L<Language Code> /v" /qr <parameters>"
<parameters>aretheoptionalparameterslistedinvCenterServerInstallerCommandParameterson page 4.
Language Codeisthelanguagetobeusedduringtheinstallation.Thelanguagecodeusedintheexamplesis English,L1033.
VMware, Inc.
DB_DSN=\"<name>\"
"VMware VirtualCenter"
DB_DSN_WINDOWS_AUTH
DB_USERNAME=\"<name>\"
""
DB_PASSWORD=\"<password>\"
""
SetstheDSNaccountpassword. RequiredonlyifDB_SERVER_TYPE=Custom.
FORMAT_DB=1
None
VMware, Inc.
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.
RatherthandedicatingaseparateservertothevCenter Serversystem,youcanplaceitinavirtual machinerunningonthesameESXihostwhereyourothervirtualmachinesrun. YoucanprovidehighavailabilityforthevCenter ServersystembyusingVMwareHighAvailability(HA). YoucanmigratethevirtualmachinecontainingthevCenter Serversystemfromonehosttoanother, enablingmaintenanceandotheractivities. YoucancreatesnapshotsofthevCenter Servervirtualmachineandusethemforbackups,archiving,and soon.
7
VMware, Inc.
VMware, Inc.
To prepare for installing and joining a group using linked mode 1 2 InstallthefirstvCenterServerinstanceandspecifyVCS_GROUP_TYPE=Single. ForeachsubsequentvCenterServerinstallationthatyouwilladdtotheinitialgroup,specify VCS_GROUP_TYPE=GroupandprovidetheFQDNofthehostofthefirstinstallation.
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.
Thecommandstringformatfromanetworklocationis:
start /wait <installer.exe_file> <parameters>
Thecommandstringformatfromalocaldiskis:
start /wait <installer.exe file> /qr /s /w /L<Language Code> /v" /qr <parameters>"
VMware, Inc.
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\""
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
VMware, Inc.
10
VMware, Inc.
11
VMware, Inc.
12
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
UpgradethevCenterServerdatabasefirst,andthenupgradevCenterServer. UpgradeboththevCenterServerdatabaseandvCenterServerinasinglecommand.
YoucancustomizethiscommandbyusingtheparametersinTable 2.
VMware, Inc.
14
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
If you have comments about this documentation, submit your feedback to: [email protected] 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