Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Implementing VMware vCenter Server

You're reading from   Implementing VMware vCenter Server This book starts with the basics then leads you by the hand through a complete Vmware vCenter Server implementation course. Designed to help you administer and manage your environment on a day to day basis.

Arrow left icon
Product type Paperback
Published in Oct 2013
Publisher
ISBN-13 9781849689984
Length 324 pages
Edition Edition
Arrow right icon
Author (1):
Arrow left icon
Kostantin Kuminsky Kostantin Kuminsky
Author Profile Icon Kostantin Kuminsky
Kostantin Kuminsky
Arrow right icon
View More author details
Toc

Configuring a database for vCenter Server


In case you choose not to use the bundled database option for vCenter Server deployment, there are certain requirements and steps that need to be done to set up a database.

Using Microsoft SQL Server is the most common practice, and further on in this section, we will be assuming this database is used. More information on other supported databases—IBM DB2 and Oracle—can be found in the VMware vCenter Server documentation.

Microsoft SQL Server 2008 R2 Express can be used only as a bundled option for deployments with up to five hosts and 50 virtual machines. If you choose to use Microsoft SQL Server 2005 or Microsoft SQL Server 2008, make sure the machine has a valid ODBC DSN entry.

The first step is to create a database and user. This can be accomplished from Microsoft SQL Server Management Studio using the following script from /<installation directory>/vpx/dbschema/DB_and_schema_creation_scripts_MSSQL.txt:

use [master] 
go 
CREATE DATABASE [VCDB] ON PRIMARY 
(NAME = N'vcdb', FILENAME = N'C:\VCDB.mdf', SIZE = 2000KB, FILEGROWTH = 10% ) 
LOG ON 
(NAME = N'vcdb_log', FILENAME = N'C:\VCDB.ldf', SIZE = 1000KB, FILEGROWTH = 10%) 
COLLATE SQL_Latin1_General_CP1_CI_AS 
go
use VCDB 
go 
sp_addlogin @loginame=[vpxuser], @passwd=N'vpxuser!0', @defdb='VCDB', @deflanguage='us_english'
go 
ALTER LOGIN [vpxuser] WITH CHECK_POLICY = OFF 
go 
CREATE USER [vpxuser] for LOGIN [vpxuser]
go
use MSDB
go
CREATE USER [vpxuser] for LOGIN [vpxuser]
go

Once the database and user have been created, the user needs to be assigned the db_owner role for the database.

The next step is to configure the ODBC connection. As described earlier, this can be done by navigating to Control Panel | Administrative Tools | Data Sources (ODBC).

For vCenter statistics to function properly, the remote SQL server needs TCP/IP to be enabled for the database. To accomplish this, perform the following steps:

  1. Navigate to Start | All Programs | Microsoft SQL Server | Configuration Tool and click on SQL Server Configuration Manager.

  2. Navigate to SQL Server Network Configuration | Protocols for Instance name.

  3. Enable the TCP/IP option.

  4. Click on TCP/IP Properties.

  5. In the Protocol tab, make the following entries:

    • Enabled: Yes

    • Listen All: Yes

    • Keep Alive: 30000

  6. In the IP Addresses tab, make the following selections:

    • Active: Yes

    • TCP Dynamic Ports: 0

  7. Restart the SQL Server service by navigating to SQL Server Configuration Manager | SQL Server Services.

  8. Start the SQL Server Browser service by navigating to SQL Server Configuration Manager | SQL Server Services.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image