Summary: How to do a vCenter 5.1 Simple Install.
Date: Around 2012
Refactor: 29 April 2025: Checked links and formatting.
This is a report of a vCenter 5.1 simple install. There is nothing wrong with that, except when you need to do a linked mode setup later on. This will not work. You'll need a SSO multisite setup, which is only possible when installing all components one by one. If you do not need that, you can follow this page, otherwise you'll have to think with all the extra questions.
First of all, read the best practice provided by VMware.
This article is based on the installation of vCenter 5.1 on a Windows Server 2008 R2 Enterprise SP1 using this media:
Also, the database is installed on a separate database server. The only work done on that server (also Windows Server 2008 R2 Enterprise SP1) is installing the MS SQL 2008 R2 SP1. Furthermore, the installation is being performed with a user account that has the sysadmin role on that database server. My DBA has set that up for me, and afterwards these permissions will be revoked.
Also note that both servers should be listed correctly in DNS, both A and PTR records.
You'll need quite some additional software to have all installations completed succesfully:
Installing .Net 3.5 is quite easy since this is a Windows Server Feature. You can do so by going to server manager and selecting it from the installation list:
Keep all settings default.
Download the SQL Native Client by pointing your browser to the Microsoft SQL Server 2008 R2 SP1 Feature Pack website and download the “1033\x64\sqlncli.msi” file. Keep all settings default.
This one is (luckily) optional, but you need Adobe flash to access the web client, which you'll need to configure the Single Sign On Service. If you follow this article the Single Sign On service will be configured automatically for the correct domain, but I've listed it here to let you know before you get started. If you decide you want to use the web client go to the Adobe Flash website and click Download Now.
You'll need the following accounts:
The database users will be created when doing the database configurations. The vCenter service account needs to be created in Active Directory and needs the following configuration:
You need to configure two databases:
Note that Windows Authentication for the Single Sign On database is not supported as stated here.
To configure the database for the Single Sign On service go to your CD/ISO of the installation and navigate to this directory:
\Single Sign On\DBScripts\SSOServer\schema\mssql
You need two scripts here, the rsaIMSLiteMSSQLSetupTablespaces.sql and the rsaIMSLiteMSSQLSetupUsers.sql file. You need to make small modifications, these are the final scripts/queries I used:
Setup database: rsaIMSLiteMSSQLSetupTablespaces.sql:
USE MASTER GO CREATE DATABASE RSA ON PRIMARY( NAME='RSA_DATA', FILENAME='D:\MSSQL\DATA\RSA_DATA.mdf', MAXSIZE=UNLIMITED, FILEGROWTH=10%), FILEGROUP RSA_INDEX( NAME='RSA_INDEX', FILENAME='D:\MSSQL\DATA\RSA_INDEX.ndf', MAXSIZE=UNLIMITED, FILEGROWTH=10%) LOG ON( NAME='translog', FILENAME='D:\MSSQL\DATA\translog.ldf', MAXSIZE=UNLIMITED, FILEGROWTH=10% ) GO -- Set recommended perform settings on the database EXEC SP_DBOPTION 'RSA', 'autoshrink', TRUE GO EXEC SP_DBOPTION 'RSA', 'trunc. log on chkpt.', TRUE GO CHECKPOINT GO
To execute the script open SQL Server Management Studio, where you'll automatically get a prompt to connect to the local database server. After connecting click “New Query” and paste the text above in the query field, then click “Execute”:
Setup users: rsaIMSLiteMSSQLSetupUsers.sql:
USE MASTER GO CREATE LOGIN RSA_DBA WITH PASSWORD = 'XXXXXXXXXX', DEFAULT_DATABASE = RSA GO CREATE LOGIN RSA_USER WITH PASSWORD = 'XXXXXXXXXX', DEFAULT_DATABASE = RSA GO USE RSA GO ALTER AUTHORIZATION ON DATABASE::RSA TO [RSA_DBA] GO CREATE USER RSA_USER FOR LOGIN [RSA_USER] GO CHECKPOINT GO
For vCenter we'll use the Windows Authentication (with the created service account) so we'll have to configure this. We'll use a script for this as well:
USE [master] GO CREATE DATABASE [VCDB] ON PRIMARY (NAME = N'vcdb', FILENAME = N'D:\MSSQL\DATA\VCDB.mdf', FILEGROWTH = 10% ) LOG ON (NAME = N'vcdb_log', FILENAME = N'D:\MSSQL\DATA\VCDB.ldf', FILEGROWTH = 10%) COLLATE SQL_Latin1_General_CP1_CI_AS GO USE VCDB GO sp_grantlogin @loginame=[SHIFT\SRV-vCENTER02SQL-VC] GO sp_defaultdb @loginame=[SHIFT\SRV-vCENTER02SQL-VC], @defdb='VCDB' GO ALTER LOGIN [SHIFT\SRV-vCENTER02SQL-VC] WITH DEFAULT_LANGUAGE = us_english; GO CREATE USER [SHIFT\SRV-vCENTER02SQL-VC] FOR LOGIN [SHIFT\SRV-vCENTER02SQL-VC] GO sp_addrolemember @rolename = 'db_owner', @membername = 'SHIFT\SRV-vCENTER02SQL-VC' GO USE MSDB GO CREATE USER [SHIFT\SRV-vCENTER02SQL-VC] FOR LOGIN [SHIFT\SRV-vCENTER02SQL-VC] GO sp_addrolemember @rolename = 'db_owner', @membername = 'SHIFT\SRV-vCENTER02SQL-VC' GO
This script uses three settings that need to be adjusted to your environment:
This script basically does:
Note: All DSN created on a 64-bit system are also 64-bits by default.
On the vCenter Server perform the following steps to configure a correct DSN:
You now have a valid DSN you can use.
So now we're ready for vCenter installation. When you start the installation program you'll notice there is something called a simple install. Now that's only simple when you've everything prepared and ready to go, otherwise you'll be doing a lot of work while the installer is open and waiting for you, instead of the other way around:
The installation process starts with the installation of the “vCenter Single Sign On” service: Go through the initial screens, accept the license agreement until you get to the screen where you can enter the administrator account for Single Sign On. This account is always named the “admin@System-Domain” and cannot be changed. The password is located in KeePass:
Then select to use an existing database, since we've already created one:
Then configure the database connection according to what you've done during the preparation:
Accept the FQDN of the server if it's correct and keep the default regarding the network service account (shown below) and the installation directory:
Also, keep the default port (7444):
Then, the actual installation starts, which is automatically followed by the installation for the inventory service, which you don't have to configure anything for:
This is automatically followed by the installation for vCenter which starts by allowing you to enter the vCenter license. I'm keeping it blank for now, since you get 60 days to do so afterwards. In the next screen you'll see the option to select the DSN connection to the database you've created:
Verify the databse setup and continue to the next screen. Here you select the account under which vCenter will run. Now I've started the installation with my own admin sccount, making it impossible to change anything here, and giving me another step afterwards to change this to the vCenter service account:
Keep all the default ports:
Then select the size of your environment so the amount of memory for the JVM can be configured. From my own experience I would select one a little higher than actually your case:
Then the installation will start which will finish a little while later.
If you want to you can install the vSphere client on the vCenter server as well, which is always a good idea in my opinion. You can install it from the vCenter installation cd, as well as from the start screen as from “<CDROOT>\vsphere-client\vmware-viclient”.
Start the installation for the vSphere Web Client from the start screen from the CD, and accept the license agreement as well as the default installation directory. Keep the default ports, and write them down because you need them to access the web client server afterwards:
Then enter the Single Sign On information requested:
Then the installation starts. If the installation is finished you can point your browser to https://localhost:9443/vsphere-client/ which will give you a logon screen.
Go into the Web Client to access the Single Sign On service using the credentials you created during the installation of the Single Sign On service:
Then browse to Administration → Sign-On and Discovery → Configuration which will show you the current Identity Sources:
This is the configuration of the source:
Now the only thing left to do is changing the account vCenter runs on. Go into Windows Services (services.msc) and change these two services to run under the vCenter service account you created during preparations:
To do so, right click the service and select properties. Go to the tab “Log On” and enter the correct details:
Restart the services and you're all done. If everything went correct you can now login using both the vSphere web client as the vSphere client.