vSphere 5.5 Installation learnings:
During my research for vSphere 5.5 best practices, all the sites and blogs reviewing vCenter installation configure the SQL Server database to reside locally on the vCenter Server. While this is acceptable for reviewing the installation process, it does not account for variants that may arise during an installation of vCenter using a remote SQL Server for the database(s). A vCenter Server installation utilizing a remote SQL Server database has different requirements for the authentication mode for the ODBC DSN.
- A SQL Server database local to the vCenter Server is able to utilize Windows authentication mode, passing through the credentials of the currently logged in user credentials.
- A SQL Server database that is remote to the vCenter Server requires the use a SQL user ID created locally on the SQL Server.
Following are excerpts from either VMware KB articles, or material published by Scott Lowe. References are provided below.
VirtualCenter Cannot Connect to Remote SQL Server Database:
http://kb.vmware.com/kb/1478Cause:
This error might occur if, during installation of VirtualCenter, Windows authentication was selected for the ODBC connection. Configuring VirtualCenter to use an ODBC connection with Windows authentication is not supported.
Resolution:
- Set up an ODBC connection and configure VirtualCenter to use SQL authentication.
- Provide a SQL user ID and password with Database Operator (DBO) access to the database created on SQL Server.
The following three sections are from the publication: Mastering VMware vSphere 5.5*
Remote vCenter Server databases:*
- The ODBC DSN should be created under the context of a database user who has full rights and permissions to the database that has been created specifically for storing vCenter Server data.
- You must set the appropriate permissions for this SQL login by mapping the SQL login to the dbo user on the databases created for vCenter Server.
- Finally, the SQL login created for use by vCenter Server must also have dbo privileges on the MSDB database but only for the duration of the installation process.
VUM Database Configuration:*
Unless you are running the separate database on the same computer as VUM, you will need to set the owner of the database to an SQL login; integrated Windows authentication is not supported with a remote database.
As with the vCenter Server database, the login that VUM will use to connect to the database server must have dbo permissions on the new database as well as on the MSDB database.
Run the 32-bit ODBC Data Source Administrator application found at %systemroot%\SysWOW64\odbcad32.exe.
The 32-bit
ODBC Data Source Administrator application looks identical to the
64-bit version. If you're unsure which one you launched, exit and
restart to be sure that you have the correct version.
Windows Integrated Authentication is an option only if you have installed the database
server component locally on the same server as VUM. It is advised that
you use SQL Server Authentication in all cases, even if the database is local, because it makes moving the database easier in the future should your environment grow and require scaling beyond a local instance.
VUM Notes: *
Be wary of installing VUM on a
VM running on a host in a cluster that it is responsible for
remediating. If DRS is disabled on the cluster at any stage, or the
cluster has a problem migrating this VUM VM to another host, then to
prevent VUM from shutting itself down, the remediation will fail.
View Composer:
While I have not personally configured View Composer to use a remote database, I have included the following as it reinforces the pattern for remote SQL databases requiring a SQL account to establish connectivity.View Composer Install fails when SQL Server database is remote
Cause:
This issue can occur if the Composer
database's owner is a domain account, and you are using an SQL account
in the DSN configuration.
Resolution:To resolve this issue, change the Composer's database owner to the one you are specifying in the DSN configuration, or create a new database where the owner and the account specified in the DSN configuration are the same. Both should be a local SQL account.