Skip to content

            Lost ?  |  Need an account:
 
Home >> Knowledge Base >> Virtualization >> VMware ESX Server >> Configuring VMware vCenter with SQL Server
Configuring VMware vCenter with SQL Server PDF Print E-mail
(7 votes, average 4.86 out of 5)
Written by Tom Hirt   
Saturday, 10 October 2009 18:27
Article Index
Configuring VMware vCenter with SQL Server
vCenter / Virtual Center SQL Server 2005 Installation
Configuring SQL Server for vCenter
SQL Native Client Driver Install
Creating a ODBC Connection for vCenter
vCenter Installation
All Pages

 

Installing vCenter/Virtual Center with SQL Server 2005


In this KB, we will show you how to configure VMware's vCenter 2.5 with SQL Server 2005.  vCenter (formally known as Virtual Center) provides the management interface for ESX hosts and clusters.  ESX hosts can be managed without vCenter however many of the enterprise features of VMware are lost without vCenter.  Some of the features available through vCenter include clustering, DRS (Distributed Resource Scheduling), HA (High Availablity), vMotion and much much more!  That said, lets jump right into it and start configuring our first vCenter instance!

 

vCenter Prerequisite


vCenter can be installed on either physical or virtual machines.  I prefer installation of vCenter on virtual machines for all the obvious benefits that come with virtualization.  However, be aware that should your ESX hosts/cluster crash or have a complete power loss, restoration efforts can be a bit more tricky since some of the enterprise features of VMware will be lost until the vCenter instance is brought back online.

vCenter 2.5 only supports Windows Server 2000/2003/2008 running in 32bit.  So whether you choose a physical or virtual machine to install vCenter on, make sure your OS is 32bit (vCenter will not allow you to install on 64bit platforms.)

A database is also required for vCenter 2.5.  Supported database types include MSDE, Oracle, SQL Server and more.  If you are following along with our KB, we will be using SQL Server 2005.

Note: During the vCenter installation, you will be given the chance to install a SQL Express instance should an enterprise SQL Server instance not be available.  SQL Express has many limitations and is not recommended for larger enterprises.  SQL Express may be adequate for evaluation and small enterprise deployments, but generally recommend against for large production implementations.

The database used for vCenter can be installed on a dedicated host, or the same host depending on the size of your environment.  For scalability, I recommend installing vCenter and SQL Server on separate hosts unless your running a very small environment and know that it will never grow.  The following diagram illustrates a isolated installation where the database server and vCenter are installed on seperate hosts (we will be following this model for our example.)

vCenter Components

Finally, vCenter requires the server vCenter to be installed on to be a member of an active directory domain.  vCenter uses active directory credentials for authentication.  By default, the domain administrator account and/or local administrator will be the only users with access to the vCenter console, but additional users and/or groups can be configured post installation.

With that said, lets begin the installation starting with SQL Server...

 



vCenter / Virtual Center SQL Server 2005 Installation


We will begin our install with SQL Server 2005.  Managing the ESX hosts directly (with the VMware Infrastruce Client), we created a virtual machine that will be used for our SQL Server instance and loaded/patched it with Windows Server 2003 (not shown.)  We are now ready to begin installing SQL Server 2005 on this server:

  1. From the SQL Server Installation screen, select the "Server components, tools, Book Online, and samples" option to being the install

    SQL Server Auto Run Screen

  2. Accept the End User License Agreement (EULA) and click "Next"

    SQL Server EULA

  3. After the prerequisites have been meet, click "Next"

    SQL Server Prerequisites

  4. Click "Next" from the Welcome screen

    SQL Server Welcome Screen

  5. Once the System Checks have completed, click "Next"

    SQL Server Configuration Checks

  6. Enter the appropriate name and company information in the provided blanks and click "Next"

    SQL Server Registration

  7. On the components install screen, select the "SQL Server Database Services" option and then click "Next"

    SQL Server Component Install

  8. Leave the instance name set to the default and click "Next"

    SQL Server Instance Name

  9. Select the "Use the built-in System account" option leaving the Local system account selected.  Also select the "SQL Server" option to ensure SQL Server is started at the completion of installation.

    SQL Server Service Account

  10. Select "Mixed Mode" authentication and provide the 'sa' (SQL Administrator) password in the space provided.

    SQL Server Authentication Mode

    Note: SQL Server must be configured with SQL/local authentication.  vCenter does not support Windows authentication with SQL Server

  11. Leave the defaults selected on the collation screen and click "Next"

    SQL Server Collation Settings

  12. Click "Next" on the Error and Usage reporting settings screen

    SQL Server Error Usage Settings

  13. Click "Install" to begin the installation

    SQL Server Ready to Install

  14. Click "Next" after all the components have been installed successfully

    SQL Server Setup Progress

  15. Click "Finish" to complete the installation

    SQL Server Setup Complete

  16. Open system services window

    Windows Services

  17. Locate the "SQL Server Agent" service.  Right click on the service name and select "Properties"

    SQL Server Agent Properties

  18. On the SQL Server Agent properties screen, ensure the Startup type is set to "Automatic" and the service is "Started"

    SQL Server Agent Startup Type

 


 

Configuring SQL Server for vCenter


Continuing with our configuration of vCenter / Virtual Center and SQL Server 2005, its now time to configure the database.  Microsoft provides a free tool called SSMS (SQL Server Management Studio) to help manage SQL Server.  Download and install SSMS on the host you intend to install vCenter on.

In the following section, we will use SSMS to create a new database and set the appropriate permissions to allow vCenter to interface with SQL Server.  Lets begin!

  1. Using SSMS, login to our newly created SQL Server instance

    SSMS Login

  2. Create a new login for vCenter in order to access the database.  Expand the Security folder and right click on Login selecting the "New Login" option

    New vCenter User Login

  3. Provide a login name and password for vCenter removing the "Enforce password expiration" option

    User Login Details

  4. On the Server Roles screen, select the "sysadmin" security privilege and click "OK"

    User Login Roles

  5. From the Object explorer window, right click on the "Databases" folder and select "New Database"

    Create New Database

  6. On the New Database window, provide a name for the database and set the Owner to the user created from step #3 above

    Database General Properties

  7. From the Options page, change the Recovery model to "Simple" and click "OK"

    Database Recovery Model

  8. Locate the user created from step #3 above, and click properties

    User Properties

  9. On the Login Properties window, change the users default database to the database created from step #6 above

    User Default Database

 

Your SQL database is now configured for vCenter!  We will now continue with the configuration installing the SQL Native Client Driver on the vCenter host.

 


 

SQL Native Client Driver Install


Continuing our install, we now need to install the SQL Native Client Driver on the vCenter host.  When using vCenter/Virtual Center with SQL Server 2005, the ODBC source vCenter uses must be created with the SQL Native Client driver (the SQL driver provided with Windows will not work.)  The SQL Native Client driver can be found on the SQL Server 2005 installation media.

In the following section, we will install the SQL Native Client driver on the vCenter server.  Let's begin:

  1. On the SQL Server Install screen, select the "Run the SQL Native Client Installation Wizard" option

    SQL Welcome Screen

  2. Click "Next" on the copyright notice screen

    Copy Right Notice

  3. Accept the license agreement and click "Next"

    SQL Native Client EULA

  4. Provide the appropriate name and organization and click "Next"

    Registration Details

  5. Leave the defaults selected on the feature selection screen and click "Next"

    Feature Selection Screen

  6. Click "Install" to begin the installation on the vCenter server

    Ready to Install Screen

  7. Click "Finish" to complete the install

    Finish Install

 



Creating a ODBC Connection for vCenter


Now that we have the SQL Native Client Driver installed on the vCenter server, we now need to configure a system DNS entry for vCenter to use:

  1. Open the Control Panel

    Open Control Panel

  2. Open Administrative Tools

    Open Administrative Tools

  3. Open Data Sources (ODBC)

    Open ODBC Sources

  4. Click the System DSN tab and click the "Add" button

    Add System DSN

  5. Select the "SQL Native Client" driver and click "Finish"

    Native Client Data Source

  6. Provide a Name for the driver (you will reference this name during the vCenter install) and provide the hostname/IP of the SQL Server instance you created in the previous section in the Server field

    Data Source Description

  7. Select the "SQL Server authentication" type and provide the login and password created from the "Configuring SQL Server for vCenter" section

    Authentication Type

  8. Change the default database to the database created in the "Configuring SQL Server for vCenter" section

    Default Database

  9. Click "Finish" to complete the setup

    Finish

  10. Click the "Test Data Source" button to validate the settings you provided

    Validate DSN

  11. Assuming the test completed successfully, click the "OK" button

    DSN Test Completed Successfully

  12. Click "OK" to complete the test

    DSN Test Complete

  13. Confirm the DSN is present and click "OK"

    DSN Confirmation

 



vCenter Installation


We are now ready to install vCenter.  We will install our vCenter instance using a license file.  However, if you have not yet purchased a license for vCenter or want to evaluate vCenter, you will be given the chance to install vCenter using a evaluation license that will expire after 60 days.  If you decide to run on an evaluation license, just make sure you remember to either purchase or extend your license prior to the expiration date or you will lose management of your ESX hosts/clusters via vCenter.  That said, lets get to the install!

  1. On the Welcome screen, click "Next" to continue

    vCenter Welcome Screen

  2. Click "Next" on the Introduction screen to continue

    vCenter Introduction Screen

  3. Accept the EULA and click "Next" to continue

    vCenter EULA

  4. Provide the appropriate name and company information on the customer information screen click "Next" when complete

    Customer Info Screen

  5. Select the "Custom" install type and click "Next"

    vCenter Install Type

  6. Select the "Use an existing database server" entering the DSN information you configured in the "Creating a ODBC Connection for vCenter" section

    vCenter System DSN

  7. Click "OK" on the informational message about SQL Server Agent (we already configured SQL Server Agent to run in the earlier section of this KB)

    vCenter SQL Server Agent

  8. If you have a license, un-check the evaluate option and browse to the location of your license file clicking "Next" once complete.  If you are going to evaluate vCenter, leave the evaluate option checked and click "Next" to continue.

    vCenter License Page

  9. Leave the defaults set on the port settings page and click "Next"

    vCenter Port Settings

  10. Leave the default set on the destination folder selection and click "Next"

    vCenter Destination Folder

  11. Click "Install" on the ready to install screen

    vCenter Ready to Install

  12. Click "Finish" to complete the installation

    vCenter Installation Complete

Nice work!  You can now begin managing your ESX servers/clusters using vCenter!  Just point your VMware Infrastructure Client at the IP address or hostname of your vCenter server and enter either the domain or local administrator username and password.  Enjoy!

VMware Infrastructure Client


 


Add this page to your favorite website
AddThis Social Bookmark Button
Comments
Add New Search
Anonymous |04/11/2009 08:06:43
thank you very much, it saved me ton of time.
Anonymous |04/11/2009 09:47:51
Thanks for this. I stumbled across this from Google and as above was a great help :)
Jess |04/12/2009 10:31:19
I wasn't finding a lot of info on vmware's site about SQL Server 2005. Thanks!
Anonymous |09/12/2009 12:06:02
this is the best document i found. I just don't understand why vmware themself dont have something like that
Dutchy |28/01/2010 06:39:53
This is indeed a great document. Thanks for taking the time to write this and make it available to the public.
YOUR A ROCK STAR |02/03/2010 01:03:18
DUDE you should be a publisher, clear, direct, nice screens, XLNT
Curt  - Question - Configuring VMware vCenter with SQL Ser |02/03/2010 11:14:52
Great job!
Will this SQL setup also work with vCenter 4 ?
Anonymous |08/04/2010 05:14:39
yes i have just installed vCenter4 accoding this tutorial
Anonymous |03/04/2010 09:40:46
hi, VCenter Server Service will not start, can you help
fred  - consultant |03/05/2010 04:27:17
Great job, thank you for sharing your knowledges ! :D
Dyonisius Visser |21/07/2010 10:14:52
Hi, I;m trying to set up SQL Server 2008 ENterprise for use with Vcenter 4.1, do you have some docs available on that? Thanks.
Daniel Martinez  - Great vCenter Setup Guide |30/07/2010 10:52:11
Excellent resource. I am going to refer my students to this site.
Ravikumar |07/08/2010 17:01:12
Outstanding article and thanks a ton for posting this info, I have been searching for this guide for a while and finally landed in your blog.

Thanks Again. :D :D :D
Rob Z  - sys Ad |22/10/2010 07:20:16
Awesome Document thank you for the help it provided!
Anonymous |21/12/2010 12:15:18
great man!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
i love you......
Anonymous |21/01/2011 03:18:19
Thanks for investing the time and effort; great explanations and screen shot examples!

… The folks at VMware need to take notes, no doubt!

"Love, Peace and Blessings" -- IPH
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:D:):(:0:shock::confused:8):lol::x:P:oops::cry::evil::twisted::roll::wink::!::?::idea::arrow:
 
Please input the anti-spam code that you can read in the image.

!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved."

Last Updated on Thursday, 29 October 2009 19:31
 

Forum Activity

Author:
Author: kenny22
Jan.24.12
Author: AaronRiley
Jan.15.12

Online Stats

Guests Online: 62
Members Online: 0