ESXi Setup
ESXi Setup
ESXi Setup
Setup Guide
Update 1
ESXi 4.0 Embedded
vCenter Server 4.0
EN-000257-05
ESXi Embedded and vCenter Server Setup Guide
You can find the most up-to-date technical documentation on the VMware Web site at:
http://www.vmware.com/support/
The VMware Web site also provides the latest product updates.
If you have comments about this documentation, submit your feedback to:
[email protected]
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.
VMware, Inc.
3401 Hillview Ave.
Palo Alto, CA 94304
www.vmware.com
2 VMware, Inc.
Contents
Updated Information 7
2 System Requirements 13
vCenter Server and vSphere Client Hardware Requirements 13
vCenter Server Software Requirements 15
vSphere Client Software Requirements 15
Support for 64-Bit Guest Operating Systems 15
Requirements for Creating Virtual Machines 15
Required Ports 16
DNS Requirements for vSphere 17
Supported Remote Management Firmware Versions 17
3 Setting Up ESXi 19
Network Access to Your ESXi 4.0 Host 20
Configure the Network Settings on a Detached Host 20
Direct Console User Interface 20
Configure the Keyboard Layout 21
Create a Security Banner for the Direct Console 21
Configuring the BIOS Boot Settings 21
Change the BIOS Boot Setting for ESXi 22
Configure the Boot Setting for Virtual Media 22
Configuring Network Settings 23
Storage Behavior 28
Recording the ESXi 4.0 License Key 29
View System Logs 30
Redirect System Log Files to a Remote Host 30
Set the Password for the Administrator Account 30
Configure Lockdown Mode 31
Reset the System Configuration 31
Managing ESXi 4.0 Remotely 31
About ESXi Evaluation Mode 32
Convert an ESXi Host to Evaluation Mode 32
Remove All Custom Packages on ESXi 32
Disable ESXi 32
VMware, Inc. 3
ESXi Embedded and vCenter Server Setup Guide
4 VMware, Inc.
Contents
Index 105
VMware, Inc. 5
ESXi Embedded and vCenter Server Setup Guide
6 VMware, Inc.
Updated Information
This ESXi Embedded and vCenter Server Setup Guide is updated with each release of the product or when
necessary.
This table provides the update history of the ESXi Embedded and vCenter Server Setup Guide.
Revision Description
EN-000257-05 n Removed the text "No outbound traffic is allowed through the assigned IP aaddress" from “Configuring
IP Settings for ESXi,” on page 24.
n Minor change in “vCenter Server Prerequisites,” on page 67.
EN-000257-04 n In the topic “vCenter Server Software Requirements,” on page 15, added a link to the vSphere
Compatibility Matrixes guide.
n In the topic “vSphere Client Software Requirements,” on page 15, added a link to the vSphere
Compatibility Matrixes guide.
n In the introduction to Chapter 7, “Preparing the vCenter Server Databases,” on page 45, added a link
to the vSphere Compatibility Matrixes guide.
EN-000257-03 In the topic “Enable the Scratch Partition,” on page 29, corrected details in the code of the procedure.
EN-000257-02 n In the topic “About ESXi,” on page 12, in the paragraph on vSphere Client, changed
"An ESXi Embedded host is a physical server that contains an ESX image" to "An ESXi Embedded host
is a physical server that contains an ESXi image"
n Removed the redundant chapter "Post-Setup Considerations for ESXi".
EN-000257-01 n “Enable the Scratch Partition,” on page 29 now states that the -g parameter gets the current state of
the scratch partition instead of the -s parameter.
n In “vCenter Server Database Patch and Configuration Requirements,” on page 46, Table 7-1 now
contains information that the patch version is updated to 10.2.0.4 for Oracle 10g database.
n “vCenter Server Prerequisites,” on page 67 now contains information that to use vCenter Linked
Mode, multiple vCenter Server systems should be added to a domain.
n In the topic “About ESXi,” on page 12, in the paragraph on vSphere Client, changed
"An ESXi Embedded host is a physical server that contains an ESX image installed on a local hard drive"
to "An ESXi Embedded host is a physical server that contains an ESXi image installed on a local hard
drive"
VMware, Inc. 7
ESXi Embedded and vCenter Server Setup Guide
8 VMware, Inc.
About This Book
®
The ESXi Embedded and vCenter Server Setup Guide covers ESXi Embedded and VMware vCenter Server only.
It does not include information on ESX or ESXi Installable.
Intended Audience
This book is intended for anyone who needs to install vCenter Server and set up ESXi 4.0 Embedded.
The information is written for experienced Windows or Linux system administrators who are familiar with
virtual machine technology and datacenter operations.
Document Feedback
VMware welcomes your suggestions for improving our documentation. If you have comments, send your
feedback to [email protected].
Online and Telephone To use online support to submit technical support requests, view your product
Support and contract information, and register your products, go to
http://www.vmware.com/support.
Support Offerings To find out how VMware support offerings can help meet your business needs,
go to http://www.vmware.com/support/services.
VMware Professional VMware Education Services courses offer extensive hands-on labs, case study
Services examples, and course materials designed to be used as on-the-job reference
tools. Courses are available onsite, in the classroom, and live online. For onsite
pilot programs and implementation best practices, VMware Consulting
VMware, Inc. 9
ESXi Embedded and vCenter Server Setup Guide
Services provides offerings to help you assess, plan, build, and manage your
virtual environment. To access information about education classes,
certification programs, and consulting services, go to
http://www.vmware.com/services.
10 VMware, Inc.
Introduction to VMware vSphere 1
These topics describe VMware vSphere.
The following figure illustrates the basic components of VMware vSphere.
Figure 1-1. VMware vSphere Components
vSphere Client
machines
databases
vCenter Server
ESXi hosts and
additional modules
Each vCenter Server system manages multiple ESX hosts. You can run the vSphere Client and vSphere Web
Access on multiple workstations.
VMware ESXi Embedded Provides a virtualization layer that abstracts the processor, memory, storage,
and networking resources of the physical host into multiple virtual machines.
You do not need to install ESXi Embedded because it is embedded as firmware
on hardware that you purchase from a vendor.
vCenter Server A service that acts as a central administrator for ESX/ESXi hosts connected on
a network. This service directs actions on the virtual machines and the hosts.
The vCenter Server is the working core of vCenter. You can have multiple
vCenter Server systems joined to a Linked Mode group. This allows you to log
in to any single instance of vCenter Server and view and manage the
inventories of all the vCenter Server systems in the group.
VMware, Inc. 11
ESXi Embedded and vCenter Server Setup Guide
vCenter Server Provide additional capabilities and features to vCenter Server. Generally,
additional modules additional modules (sometimes called plug-ins) are released separately, install
on top of vCenter Server, and can be upgraded independently. You can install
additional modules on the same computer as the vCenter Server system or on
a separate one. After the additional module is installed, you can activate the
module’s client component, which enhances the vSphere Client with user
interface (UI) options. Additional modules include vCenter Update Manager,
vCenter Converter, and vCenter Guided Consolidation Service.
vSphere Client Installs on a Windows machine and is the primary method of interaction with
VMware vSphere. The vSphere Client acts as a console to operate virtual
machines and as an administration interface into the vCenter Server systems
and ESX hosts.
The vSphere Client is downloadable from the vCenter Server system and ESX
hosts. The vSphere Client includes documentation for administrators and
console users.
Databases Organize all the configuration data for the VMware vSphere environment. For
small deployments, the bundled Microsoft SQL Server 2005 Express database
lets you set up to 5 hosts and 50 virtual machines. vCenter Server supports
other database products for larger deployments. vCenter Update Manager also
requires a database. VMware recommends that you use separate databases for
vCenter Server and vCenter Update Manager.
About ESXi
ESXi differs from ESX in several ways.
An ESXi Embedded host is a physical server that contains an ESXi image preinstalled as firmware in the factory
or burned onto an external USB key. (Moving ESXi Embedded USB keys from one server to another is not
supported.)
When you power on the ESXi host for the first time or after resetting the configuration defaults, the host enters
an autoconfiguration phase during which system network and storage devices are configured with defaults.
By default, Dynamic Host Configuration Protocol (DHCP) configures IP, and all visible blank internal disks
are formatted with the virtual machine file system (VMFS) so that virtual machines can be stored on the disks.
ESXi has an interface called the direct console. You can use the direct console for initial configuration and
troubleshooting. Connect a keyboard and monitor to the host to use the direct console. After the host completes
the autoconfiguration phase, the direct console appears on the monitor. You can examine the default network
configuration and change any settings that are not compatible with your network environment.
You can also use vSphere client applications to manage the host.
12 VMware, Inc.
System Requirements 2
Hosts running vCenter Server and ESX must meet specific hardware and operating system requirements.
This chapter includes the following topics:
n “vCenter Server and vSphere Client Hardware Requirements,” on page 13
n “vCenter Server Software Requirements,” on page 15
n “vSphere Client Software Requirements,” on page 15
n “Support for 64-Bit Guest Operating Systems,” on page 15
n “Requirements for Creating Virtual Machines,” on page 15
n “Required Ports,” on page 16
n “DNS Requirements for vSphere,” on page 17
n “Supported Remote Management Firmware Versions,” on page 17
See your database documentation for the hardware requirements of your database. The database requirements
are in addition to the vCenter Server requirements if the database and vCenter Server run on the same machine.
VMware, Inc. 13
ESXi Embedded and vCenter Server Setup Guide
You must also have 400MB free on the drive that has your %temp% directory.
If all of the prerequisites are already installed, 300MB of free space is required on the drive that has your
%temp% directory, and 450MB is required for the vSphere Client 4.0.
IMPORTANT The recommended disk sizes assume default log levels. If you configure more granular log levels,
more disk space is required.
vCenter Server must be hosted on a 64-bit Windows operating system for this configuration.
14 VMware, Inc.
Chapter 2 System Requirements
For a list of supported operating systems, see the vSphere Compatibility Matrixes at
http://www.vmware.com/pdf/vsphere4/r40/vsp_compatibility_matrix.pdf on the VMware vSphere
documentation Web site.
The vSphere Client requires the Microsoft .NET 3.0 SP1 Framework. If your system does not have it installed,
the vSphere Client installer installs it.
For a list of supported operating systems, see the vSphere Compatibility Matrixes at
http://www.vmware.com/pdf/vsphere4/r40/vsp_compatibility_matrix.pdf on the VMware vSphere
documentation Web site.
See the Guest Operating System Installation Guide for a complete list.
To determine whether your server has 64-bit VMware support, you can download the CPU Identification
Utility at the VMware downloads page: http://www.vmware.com/download/shared_utilities.html.
VMware, Inc. 15
ESXi Embedded and vCenter Server Setup Guide
Virtual processor One, two, four, or eight processors per virtual machine
NOTE If you create a two-processor virtual machine, your ESXi machine must have
at least two physical core in processor.
Virtual chip set Intel 440BX-based motherboard with NS338 SIO chip
Required Ports
vCenter Server requires certain ports to send and receive data.
The vCenter Server system must be able to send data to every managed host and receive data from every
vSphere Client. To enable migration and provisioning activities between managed hosts, the source and
destination hosts must be able to receive data from each other.
VMware uses designated ports for communication. Additionally, the managed hosts are listening for data from
the vCenter Server system on designated ports. If a firewall exists between any of these elements and Windows
firewall service is in use, the installer opens the ports during the installation. For custom firewalls, you must
manually open the required ports. If you have a firewall between two managed hosts and you want to perform
source or target activities, such as migration or cloning, you must configure a means for the managed hosts to
receive data.
Table 2-5 lists the default ports that are required for communication between components.
80 vCenter Server requires port 80 for direct HTTP connections. Port 80 redirects requests to HTTPS port
443. This is useful if you accidentally use http://server instead of https://server.
389 This port must be open on the local and all remote instances of vCenter Server. This is the LDAP port
number for the Directory Services for the vCenter Server group. The vCenter Server system needs to
bind to port 389, even if you are not joining this vCenter Server instance to a Linked Mode group. If
another service is running on this port, it might be preferable to remove it or change its port to different
port. If needed, you can run the LDAP service on any port from 1025 through 65535.
If this instance is serving as the Microsoft Windows Active Directory, change the port number from 389
to an available port from 1025 through 65535.
443 The default port that the vCenter Server system uses to listen for connections from the vSphere Client.
To enable the vCenter Server system to receive data from the vSphere Client, open port 443 in the
firewall.
The vCenter Server system also uses port 443 to listen for data transfer from the vSphere Web Access
Client and other SDK clients.
If you use another port number for HTTPS, you must use <ip-address>:<port> when you log in to the
vCenter Server system.
636 For vCenter Linked Mode, this is the SSL port of the local instance. If another service is running on this
port, it might be preferable to remove it or change its port to different port. If needed, you can run the
SSL service on any port from 1025 through 65535.
902 The default port that the vCenter Server system uses to send data to managed hosts. Managed hosts
also send a regular heartbeat over UDP port 902 to the vCenter Server system. This port must not be
blocked by firewalls between the server and the hosts, or between hosts.
902/903 Ports 902 and 903 must not be blocked between the vSphere Client and the hosts. These ports are used
by the vSphere Client to display virtual machine consoles.
16 VMware, Inc.
Chapter 2 System Requirements
8080 Web Services HTTP. Used for the VMware VirtualCenter Management Webservices.
8443 Web Services HTTPS. Used for the VMware VirtualCenter Management Webservices.
If you want the vCenter Server system to use a different port to receive vSphere Client data, see Basic System
Administration.
To tunnel the vSphere Client data through the firewall to the receiving port on the vCenter Server system, see
Basic System Administration. VMware does not recommended this method because it disables the vCenter Server
console function.
Assign a static IP address and host name to the Windows server that will host the vCenter Server system. This
IP address must have a valid (internal) domain name system (DNS) registration.
Ensure that the ESXi host management interface has a valid DNS resolution from the vCenter Server and all
vSphere Clients and vSphere Web Clients. Ensure that the vCenter Server has a valid DNS resolution from all
ESXi hosts and all vSphere Clients and vSphere Web Clients. Ensure that the vCenter Server is installed on a
machine that has a resolvable fully qualified domain name (FQDN).
If you use DHCP instead of a static IP address for vCenter Server, make sure that the vCenter Server computer
name is updated in the domain name service (DNS). Ping the computer name to test the connection. For
example, if the computer name is host-1.company.com, you can ping the name by running the following
command in the Windows command prompt:
ping host-1.company.com
If you can ping the computer name, the name is updated in DNS.
Table 2-6 lists the remote management firmware versions that are supported for installing ESX 4.0 remotely.
NOTE If you are using a remote management application to access the ESXi direct console, consider enabling
high-contrast mode in the direct console by pressing F4.
Table 2-6. Supported Remote Management Server Models and Firmware Versions
Remote Controller
Make and Model Firmware Version Java ActiveX
VMware, Inc. 17
ESXi Embedded and vCenter Server Setup Guide
Table 2-6. Supported Remote Management Server Models and Firmware Versions (Continued)
Remote Controller
Make and Model Firmware Version Java ActiveX
18 VMware, Inc.
Setting Up ESXi 3
These topics provide information about using the direct console user interface and configuring defaults for
ESXi 4.0.
VMware, Inc. 19
ESXi Embedded and vCenter Server Setup Guide
Table 3-1 summarizes the network configuration scenarios that ESXi 4.0 supports.
You want to accept the DHCP-configured IP Note the IP address that DHCP assigns and use the vSphere Client or
settings. another desktop client interface to connect to the ESXi 4.0 host.
One of the following is true: During the autoconfiguration phase, the software assigns the link
n You do not have a DHCP server. local IP address, which is in the subnet 169.254.x.x/16. The assigned
n The ESXi 4.0 host is not connected to a DHCP IP address appears on the direct console.
server. You can override the link local IP address by configuring a static IP
address using the direct console.
n Your connected DHCP server is not functioning
properly.
The ESXi 4.0 host is connected to a functioning During the autoconfiguration phase, the software assigns a DHCP-
DHCP server, but you do not want to use the DHCP- configured IP address.
configured IP address. You can make the initial connection by using the DHCP-configured
IP address. Then you can configure a static IP address.
If you have physical access to the ESXi 4.0 host, you can override the
DHCP-configured IP address by configuring a static IP address using
the direct console.
Your security deployment policies do not permit Follow the setup procedure in “Configure the Network Settings on a
unconfigured hosts to be powered on the network. Detached Host,” on page 20.
Procedure
3 Use the direct console to configure the password for the administrator account (root).
Table 3-2 lists the keys you can use to navigate and perform actions in the direct console.
20 VMware, Inc.
Chapter 3 Setting Up ESXi
Procedure
1 From the direct console, select Configure Keyboard and press Enter.
4 Press Enter.
Procedure
The BIOS boot configuration determines whether your server boots into the ESXi 4.0 boot device or another
boot device. Generally, the USB flash device is listed first in the BIOS boot settings on the machine that hosts
ESXi. You can change the boot setting by configuring the boot order in the BIOS during startup or by selecting
a boot device from the boot device selection menu.
When you change the boot order in the BIOS, the new setting affects all subsequent reboots. When you select
a boot device from the boot device selection menu, the selection affects the current boot only.
VMware, Inc. 21
ESXi Embedded and vCenter Server Setup Guide
Some servers do not have a boot device selection menu, in which case you must change the boot order in the
BIOS even for one-time boots, and then change it back again during a subsequent reboot.
NOTE The boot device selection menu discussed here is different from the system boot options that you can
configure in the vSphere Client.
The vSphere Client boot options allow you to configure the boot sequence for floppy, CD-ROM, and hard disk
drives only. For some servers, the system BIOS has two options. One is for the boot sequence (floppy, CD-
ROM, hard disk) and another for the hard disk boot order (USB key, local hard disk). When you are using the
vSphere Client, the boot options correspond to the BIOS boot sequence (floppy, CD-ROM, hard disk).
Prerequisites
ESXi Installable must not be on the host. ESXi Installable and ESXi Embedded cannot exist on the same host.
Procedure
1 While the ESXi host is powering on, press the key required to enter your host’s BIOS setup.
Depending on your server hardware, the key might be a function key or Delete. The option to enter the
BIOS setup might be different for your server.
2 Select the USB flash device and move it to the first position in the list.
The host powers on in ESXi mode. If the host does not boot into ESXi, you might need to reimage the USB
flash as described in “Recover the ESXi Embedded Software,” on page 37.
Virtual media is a method of connecting a remote storage media such as CD-ROM, USB mass storage, ISO
image, and floppy disk to a target server that may be anywhere on the network. The target server has access
to the remote media, and can read from and write to it as if it were physically connected to the server's USB
port.
Prerequisites
ESXi Installable must not be on the host. ESXi Installable and ESXi Embedded cannot exist on the same host.
Procedure
For example, if you are using a Dell server, log in to the Dell Remote Access Controller (DRAC) or a similar
remote management interface and select a physical floppy or CD-ROM drive, or provide a path to a floppy
image or CD-ROM image.
3 While the server is powering on, enter the device selection menu.
Depending on your server hardware, the key might be a function key or Delete.
The server boots from the configured device once and goes back to the default boot order for subsequent boots.
22 VMware, Inc.
Chapter 3 Setting Up ESXi
Examples of external management software include the vSphere Client, vCenter Server, and SNMP client.
network adapters on the host are named vmnic<N>, where N is a unique number identifying the network
adapter (for example, vmnic0, vmnic1, and so forth).
During the autoconfiguration phase, the ESXi 4.0 host chooses vmnic0 for management traffic. You can override
the default choice by manually choosing the network adapter that carries management traffic for the host. In
some cases, you might want to use a Gigabit Ethernet network adapter for your management traffic. Another
way to help ensure availability is to select multiple network adapters. Using multiple network adapters enables
load balancing and failover capabilities.
Procedure
1 From the direct console, select Configure Management Network and press Enter.
After the network is functional, you can use the vSphere Client to connect to the ESXi 4.0 host.
Procedure
1 From the direct console, select Configure Management Network and press Enter.
VMware, Inc. 23
ESXi Embedded and vCenter Server Setup Guide
For DHCP to work, your network environment must have a DHCP server. If DHCP is not available, the host
assigns the link local IP address, which is in the subnet 169.254.x.x/16. The assigned IP address appears on the
direct console. If you do not have physical access to the host, you can access the direct console using a remote
management application.
When you have access to the direct console, you can optionally configure a static network address. The default
subnet mask is 255.255.0.0.
Procedure
4 Enter a the IP address, subnet mask, and default gateway and press Enter.
Procedure
6 Enter a static IP address, subnet mask, and default gateway and click OK.
The default is automatic. For automatic DNS to work, your network environment must have a DHCP server
and a DNS server.
In network environments where automatic DNS is not available or not desirable, you can configure static DNS
information, including a host name, primary name server, secondary name server, and DNS suffixes.
24 VMware, Inc.
Chapter 3 Setting Up ESXi
Procedure
4 Enter the primary server, an alternate server (optional), and the host name.
Procedure
7 On the DNS Configuration tab, enter a static primary server, alternate server, host name, and DNS suffixes
and click OK.
Procedure
Procedure
1 From the direct console, select Test Management Network and press Enter.
VMware, Inc. 25
ESXi Embedded and vCenter Server Setup Guide
Restarting the management agents restarts all management agents and services that are installed and running
in /etc/init.d on the ESXi host. Typically, these agents include hostd, ntpd, sfcbd, slpd, wsman, and vobd.
The software also restarts the Automated Availability Manager (AAM) if it is installed.
NOTE Automated Availability Manager (VMware HA agent) is installed on individual hosts when you
configure HA using vCenter Server. The HA agent runs a heartbeat mechanism on each host in a cluster to
signal that the host is running and is a part of the cluster.
Users accessing this host through the vSphere Client or vCenter Server lose connectivity when you restart
management agents.
Procedure
1 From the direct console, select Restart Management Agents and press Enter.
The ESXi 4.0 host restarts the management agents and services.
Restarting the management network will result in a brief network outage that might temporarily affect running
virtual machines.
If a renewed DHCP lease results in a new network identity (IP address or host name), remote management
software will be diconnected.
Procedure
1 From the direct console, select Restart Management Network and press Enter.
Users accessing this host through the vSphere Client or vCenter Server lose connectivity when you disable the
management network.
One scenario under which you would disable the management network is if you want to isolate an ESXi host
from an HA and DRS cluster, but you do not want to lose your static IP and DNS configurations or reboot the
host.
This operation does not require downtime for virtual machines. The virtual machines continue to run while
the host is disconnected from vCenter Server and the vSphere Client.
26 VMware, Inc.
Chapter 3 Setting Up ESXi
Procedure
1 From the direct console, select Disable Management Network and press Enter.
When you restore the standard switch, a new virtual adapter is created and the management network uplink
that is currently connected to vNetwork Distributed Switch is migrated to the new virtual switch.
You might need to restore the standard switch for the following reasons:
n The vNetwork Distributed Switch is no longer needed or is not functioning.
n The vNetwork Distributed Switch needs to be repaired to restore connectivity to vCenter Server. In the
meantime, the hosts need to remain accessible, so the standard switch is needed.
n YOu no longer want the host to be managed by vCenter Server. When the host is not connected to vCenter
Server, most vNetwork Distributed Switch features are unavailable to the host.
Prerequisites
Procedure
1 From the direct console, select Restore Standard Switch and press Enter.
If the host is already on a standard switch, this selection is grayed-out, and you cannot select it.
Procedure
1 From the direct console, select Test Management Network and press Enter.
VMware, Inc. 27
ESXi Embedded and vCenter Server Setup Guide
Storage Behavior
When you power on ESXi, the host enters an autoconfiguration phase during which system storage devices
are configured with defaults.
By default, all visible blank internal disks with VMFS are formatted, so you can store virtual machines on the
disks.
CAUTION ESXi overwrites any disks that appear to be blank. Disks are considered to be blank if they do not
have a valid partition table or partitions. If you are using software that makes use of such disks, in particular
if you are using logical volume manager (LVM) instead of (or in addition to) conventional partitioning schemes,
ESXi could cause local LVM to be reformatted. Be sure to back up your system data before you power on ESXi
for the first time.
On the hard drive or USB device from which the ESXi 4.0 host is booting, the disk-formatting software retains
existing diagnostic partitions that are created by the hardware vendor. In the remaining space, the software
creates these partitions:
n One 4GB VFAT scratch partition for system swap, if this partition is not present on another disk. See
“About the Scratch Partition,” on page 28.
n One 110MB diagnostic partition for core dumps, if this partition is not present on another disk.
n One VMFS3 partition on the remaining free space.
When you install on a disk, the installer overwrites the entire disk. When the installer autoconfigures storage,
the installer does not overwrite hardware vendor partitions.
The VFAT scratch and diagnostic partitions are created only on the disk from which the ESXi host is booting.
On other disks, the software creates one VMFS3 partition per blank disk, using the whole disk. Only blank
disks are formatted.
You might want to override this default behavior if, for example, your policy is to use shared storage devices
instead of local storage. To prevent automatic disk formatting, detach the local storage devices from the host
before you power on the host for the first time (or before you power on the host after you reset the host to the
configuration defaults).
Automatic disk formatting occurs the first time you power on the host and when you power on the host after
you reset the host to the configuration defaults. For subsequent reboots, you do not need to detach the local
storage devices. If automatic disk formatting already occurred and you want to override the VMFS formatting,
you can remove the datastore. See the Server Configuration Guide.
When ESXi boots, the system tries to find a suitable partition on a local disk to create a scratch partition.
The scratch partition is not required. It is used to store vm-support output, which you need when you create
a support bundle. If the scratch partition is not present, vm-support output is stored in a ramdisk. This might
be problematic in low-memory situations, but is not critical.
For ESXi Embedded, if a partition is not found but an empty local disk exists, the system formats it and creates
a scratch partition. If no scratch partition is created, you can configure one, but you do not need to. You can
also override the default configuration. In particular, you might want to create the scratch partition on a remote
NFS mounted directory.
28 VMware, Inc.
Chapter 3 Setting Up ESXi
Prerequisites
To enable the scratch partition, you must use the VMware vSphere command-line interface (vSphere CLI).
You can install the vSphere CLI on your Microsoft Windows or Linux system or import the vSphere
Management Assistant (vMA) virtual appliance onto your ESX/ESXi host. For information about importing or
installing the vSphere CLI, see the vSphere Command-Line Interface Installation and Reference Guide.
Procedure
1 To get the current state of the scratch partition, use the following command.
vicfg-advcfg --server <ip-address> --username username --password <password> -g
ScratchConfig.ConfiguredScratchLocation
You can access the license key from the direct console or the vSphere Client. If the host becomes inaccessible
or unbootable, it is important that you have a record of the license key.
Access the ESXi 4.0 License Key from the Direct Console
If you have physical access to the host or remote access to the direct console, you can use the direct console to
access the ESXi license key.
Procedure
u From the direct console, select View Support Information.
The physical machine serial number also appears. Do not confuse the license key with the physical machine
serial number.
Access the ESXi 4.0 License Key from the vSphere Client
If you need to locate the ESXi license key, you can access it from the vSphere Client. This is the recommended
method if you are not local to the host and cannot access the direct console.
Procedure
VMware, Inc. 29
ESXi Embedded and vCenter Server Setup Guide
Procedure
vCenter Server Agent (vpxa) logs appear if you add the host to vCenter Server.
3 Press Enter or the spacebar to scroll through the messages.
c Press Enter.
What to do next
See also “Redirect System Log Files to a Remote Host,” on page 30.
Procedure
3 Click Syslog.
4 For Syslog.Remote.Hostname, enter a host name to which log files can be forwarded.
What to do next
The administrative user name for the ESXi 4.0 host is root. By default, the administrative password is not set.
Procedure
30 VMware, Inc.
Chapter 3 Setting Up ESXi
By default, lockdown mode is disabled. If you enable lockdown mode and do not configure other local host
user accounts to have standalone host access through the vSphere Client, the root user does not have access
through the vSphere API and CLI. Users can still access the host through the direct console or through an
authorized, centralized management application, such as vCenter Server.
When lockdown mode is enabled, you can create a user with administrator privileges to connect to a standalone
host. Do not use this approach in environments with numerous hosts, because maintaining separate user
password databases for each host might be difficult.
To enable lockdown mode, the host must be in the vCenter Server inventory. You can either enable lockdown
mode in the Add Host wizard when you add the host to the vCenter Server inventory or afterwards from the
direct console. This procedure describes how to enable lockdown mode from the direct console.
Procedure
2 Press the spacebar to select Enable Lockdown Mode and press Enter.
3 Press Enter.
When you reset the configuration, the software overrides all your configuration changes, deletes the password
for the administrator account (root), and reboots the host. Configuration changes made by your hardware
vendor, such as IP address settings and license configuration, might also be deleted.
Resetting the configuration does not remove virtual machines on the ESXi host. Virtual machines are stored
on the datastore, not on the USB flash. After you reset the configuration defaults, the virtual machines are not
visible, but you can retrieve them by reconfiguring storage and reregistering the virtual machines.
CAUTION When you reset the configuration defaults, users accessing the host lose connectivity.
Prerequisites
Before resetting the configuration, back up your ESXi configuration in case you want to restore your
configuration.
Procedure
1 (Recommended) Back up the configuration using the vSphere CLI vicfg-cfgbackup command.
2 From the direct console, select Reset System Configuration and press Enter.
The system reboots after all settings are reset to the default values.
The applications must be installed on a computer serving as a management station with network access to the
ESXi 4.0 host. You can install vCenter Server in licensed mode or in evaluation mode.
VMware, Inc. 31
ESXi Embedded and vCenter Server Setup Guide
You can download vCenter Server from http://www.vmware.com or use the vCenter Server installation DVD.
You can download the vSphere Client directly from the ESXi 4.0 host or use the vCenter Server installation
DVD.
The evaluation period is 60 days and begins as soon as you power on the ESXi machine, even if you start in
license mode initially. To make full use of the evaluation period, decide as soon as possible on whether to use
evaluation mode.
ESXi Embedded comes from your hardware vendor preinstalled on an internal USB device. It might be in
evaluation mode or prelicensed by your hardware vendor.
Procedure
Prerequisites
Before you remove custom packages, shut down or migrate running virtual machines off of the ESXi host.
Procedure
2 In the direct console, select Remove Custom Extensions and press F11 to confirm.
Disable ESXi
If you do not want your server to be an ESXi host, you can deactivate the ESXi 4.0 setup.
Procedure
1 Remove VMFS datastores on the internal disks so that the internal disks are no longer set up to store virtual
machines.
2 Change the boot setting in the BIOS so that the host no longer boots into ESXi.
32 VMware, Inc.
Post-Setup Considerations for ESXi 4
After ESXi is set up, you must consider host management through the vSphere Client, licensing, and adding
and removing custom extensions.
Prerequisites
You must have the URL of the host. This is the IP address or host name.
Procedure
What to do next
See Chapter 13, “Managing ESX/ESXi and vCenter Server Licenses,” on page 91.
VMware, Inc. 33
ESXi Embedded and vCenter Server Setup Guide
34 VMware, Inc.
Backing Up and Restoring ESXi 4.0 5
You can back up and restore the ESXi 4.0 configuration and recover the ESXi 4.0 boot image if it becomes
damaged. In addition, you can remove ESXi 4.0 from the host.
You can back up the ESXi 4.0 host configuration data after preliminary tasks are completed. Always back up
your host configuration after you change the configuration or upgrade the ESXi image.
When you perform a configuration backup, the serial number is backed up with the configuration and is
restored when you restore the configuration. The serial number is not preserved when you run the Recovery
CD (ESXi Embedded) or perform the repair operation (ESXi Installable). For this reason, the recommended
procedure is to first back up the configuration, run the Recovery CD or repair operation, and then restore the
configuration.
You perform the backup by using the vicfg-cfgbackup command, which you run from the vSphere CLI.
You can install the vSphere CLI on your Microsoft Windows or Linux system or import the vSphere
Management Assistant (vMA). For information about importing or installing the vSphere CLI, see the vSphere
Command-Line Interface Installation and Reference Guide.
When you back up the host configuration, you can run the vicfg-cfgbackup command from a vSphere CLI
virtual appliance that is running on the target host (the host that you are backing up or restoring), or on a
remote host. To restore a configuration on the target host, you must run the vSphere CLI virtual appliance
from a remote host.
When you restore the configuration, the target host must be in maintenance mode, which means all virtual
machines (including the vSphere CLI virtual appliance) must be powered off.
VMware, Inc. 35
ESXi Embedded and vCenter Server Setup Guide
For example, suppose you have two ESXi 4.0 hosts (host1 and host2) and you import the virtual appliance into
both hosts. To back up the host1 configuration, run the vicfg-cfgbackup command in the vSphere CLI on either
host1 or host2 and point to host1 in the --server command-line option.
Likewise, to back up the host2 configuration, run the vicfg-cfgbackup command in the vSphere CLI on either
host1 or host2 and point to host2 in the --server command-line option.
To restore the host1 configuration, run the vicfg-cfgbackup command in the vSphere CLI on host2 and point
to host1 in the --server command-line option. To restore the host2 configuration, run the vicfg-cfgbackup
command in the vSphere CLI on host1 and point to host2 in the --server command-line option.
The following procedure describes how to back up your ESXi 4.0 configuration data.
The --portnumber and --protocol options are optional. If you exclude them, the defaults are port 443 and
protocol HTTPS.
If your administrative password includes special characters, such as $ or &, you must include a backslash escape
character (\) before each special character.
For the backup filename, include the build number that is currently running on the host that you are backing
up. If you are running the vSphere CLI as a virtual appliance, the backup file is saved locally on the virtual
appliance. Local storage for backup files is safe because virtual appliances are stored in
the /vmfs/volumes/<datastore> directory, which is separate from the ESXi 4.0 image and configuration files.
Procedure
2 Run the vicfg-cfgbackup command with the -s flag to save the host configuration to the specified backup
filename.
vicfg-cfgbackup --server <ESXi-host-ip> --portnumber <port_number> --protocol <protocol_type>
--username username --password <password> -s <backup-filename>
The --portnumber and --protocol options are optional. If you exclude them, the defaults are port 443 and
protocol HTTPS.
If your administrative password includes special characters, such as $ or &, you must include a backslash escape
character (\) before each special character.
Procedure
1 Power off any virtual machines that are running on the host that you want to restore.
2 (Optional) Restore the host to the ESXi build that was running when you created the configuration backup.
When you restore configuration data, the build number currently running on the host must be the same
as the build number that was running when you created the backup file. You can override this requirement
by including the -f (force) flag with the vicfg-cfgbackup command.
3 On a host other than the host that you are restoring, start the vSphere CLI virtual appliance.
36 VMware, Inc.
Chapter 5 Backing Up and Restoring ESXi 4.0
4 Run the vicfg-cfgbackup command with the -l flag to load the host configuration from the specified
backup file.
vicfg-cfgbackup --server <ESX_host_IP> --portnumber <port_number> --protocol <protocol_type>--
username username --password <password> -l <backup_filename>
The host you are restoring reboots and the backup configuration is restored.
Running the Recovery CD overwrites all configuration data with most of the system defaults. The serial number
that your hardware vendor installed is lost when you run the Recovery CD. When you perform a configuration
backup, the serial number is backed up with the configuration and is restored when you restore the
configuration. For this reason, the recommended procedure is to first back up the configuration, run the
Recovery CD, and then restore the configuration. You cannot back up the configuration unless the host boots
into ESXi at least once, so it is not always possible to follow the recommended procedure. When there is no
configuration backup, call your hardware vendor’s technical support to retrieve the serial number.
CAUTION If your system uses logical volume management (LVM) instead of (or in addition to) conventional
partitioning schemes, ESXi recovery could cause local LVM to be reformatted. Be sure to back up your system
data before you recover ESXi. Before you run the repair operation, back up your existing VMFS as a precaution.
Procedure
The Recovery CD installs the ESXi image on the first USB memory device that it discovers. Unplug all
USB devices before you use the Recovery CD to rebuild the ESX image on the internal USB device.
2 For Dell servers with DRAC 5 firmware, disable the Virtual Flash drive.
4 Use the system BIOS to change the boot order so that the CD-ROM drive is listed first. To modify the boot
sequence:
b While the host is powering on, press a function key or Delete to open the BIOS setup.
c Select the CD-ROM drive and move it to the first position in the list.
The option to open the BIOS setup might be different for your server. You might need to open the BIOS
configuration screens to modify the boot setting.
As the host continues to power on, the Recovery CD Welcome screen appears.
To cancel the recovery operation, press the Esc key. If you press the Esc key, the host reboots and the data
contained on your server’s embedded USB flash remains intact.
If you press Enter through all the screens and the recovery operation begins, you cannot cancel or undo
the recovery.
VMware, Inc. 37
ESXi Embedded and vCenter Server Setup Guide
8 Reopen the system BIOS to change the boot order so that the USB flash is listed first.
After the reboot, a new ESXi software build is installed and all configuration data is lost. If you backed up the
ESXi configuration, you can restore it. When you perform a configuration backup, the serial number is backed
up with the configuration and is restored when you restore the configuration. To restore configuration data,
first upgrade to the ESXi build that was running when you created the backup. Then use the vSphere CLI to
run the vicfg-cfgbackup command.
After you restore the host firmware, virtual machines on that host might not be listed in the host inventory.
This does not mean that the virtual machines are lost or destroyed. Any virtual machines that you added to
the host remain in the VMFS datastore, unless you explicitly remove them. For information about returning a
virtual machine to the vCenter Server inventory, see the Basic System Administration Guide.
Your disk storage area might have changed during the reboot and your virtual machines might not be visible
in the vSphere Client Inventory. If your storage area is visible but your virtual machines are not visible, do one
of the following:
n Reregister the virtual machines with vSphere Client. See the vSphere Client Help.
n Restore your host configuration data. This option is available only if you backed up your host configuration
data.
If your storage area is not visible, the ESXi 4.0 repair operation did not complete successfully. Do not try to
recreate your data storage area because this might overwrite existing data and could destroy your virtual
machines. Call VMware support for help in recovering your existing datastore.
38 VMware, Inc.
Installing, Removing, and Updating
Third-Party Extensions 6
A third-party extension is designed to be incorporated into ESX/ESXi in order to enhance, or extend, the
functions of ESX/ESXi. For example, an extension might be a VMkernel module, a driver, or a CIM provider.
VMware provides the following tools for installing, removing, and updating extensions to ESX/ESXi hosts:
vSphere Host Update Graphical utility for ESXi only. See the Upgrade Guide.
Utility
vCenter Update Manager For ESX and ESXi, automates patching and updating of extensions. See the
vCenter Update Manager Administration Guide.
esxupdate Command-line utility for ESX only. See the Patch Management Guide.
VMware, Inc. 39
ESXi Embedded and vCenter Server Setup Guide
IMPORTANT Run vihostupdate on ESX 4.0/ESXi 4.0 hosts. Run vihostupdate35 on ESX 3.5/ESXi 3.5 hosts.
NOTE The esxupdate utility is supported as well. It is for ESX only. See the Patch Management Guide.
The vihostupdate command works with bulletins. Each bulletin consists of one or more vSphere bundles and
addresses one or more issues.
Towards the end of a release, bulletins include a large number of other bulletins. Bulletins are available in
offline bundles and in a depot with associated metadata.zip files.
n If you use offline bundles, all patches and corresponding metadata are available as one ZIP file.
n If you use a depot, the metadata.zip file points to metadata, which describes the location of the files.
The command supports querying installed software on a host, listing software in a patch, scanning for bulletins
that apply to a host, and installing all or some bulletins in the patch. You can specify a patch by using a bundle
ZIP file or a depot’s metadata ZIP file.
vihostupdate supports https://, http://, and ftp:// downloads. You can specify the protocols in the
download URL for the bundle or metadata file. vihostupdate also supports local paths. See “Update an
ESX/ESXi Host Using Offline Bundles with the vihostupdate Utility,” on page 40. To search a local depot
where the vSphere CLI is installed, use /local/depot/metadata.zip without of the file:/// parameter.
Prerequisites
Before you can update or patch an ESX/ESXi host from the command line, you must have access to a machine
on which you can run the VMware vSphere Command-Line Interface (vSphere CLI). You can install the
vSphere CLI on your Microsoft Windows or Linux system or import the VMware vSphere Management
Assistant (vMA) virtual appliance onto your ESX/ESXi host. For information about importing or installing the
vSphere CLI, see the VMware vSphere Command-Line Interface Installation and Reference Guide.
Procedure
1 Power off any virtual machines that are running on the host and place the host into maintenance mode.
You can specify more than one bundle at the command line each time you run the command. For multiple
bundles, use a comma to separate the path and file name of the bundle. Do not include a space after the
comma.
40 VMware, Inc.
Chapter 6 Installing, Removing, and Updating Third-Party Extensions
3 (Optional) List all the bulletins that are available in the bundle.
n Search an offline HTTP server:
vihostupdate.pl --server <server> --list --bundle http://<webserver>/rollup.zip
This command lists all the bulletins contained in the bundle, even those that do not apply to the host.
n Install from the local machine. The following example installs both VMware bulletins and bulletins
made available by a partner.
vihostupdate.pl --server <server> --install --bundle
<local_path>/rollup.zip,<local_path>/rollupPartner1.zip --bulletin bulletin1,bulletin2
If you omit the --bulletin argument, this command installs all the bulletins in the bundle.
Use this option only for removing bulletins that are third-party or VMware extensions. Do not remove
bulletins that are VMware patches or updates. vihostupdate can remove only one bulletin at a time.
Prerequisites
Before you can update or patch an ESX/ESXi host from the command line, you must have access to a machine
on which you can run the VMware vSphere Command-Line Interface (vSphere CLI). You can install the
vSphere CLI on your Microsoft Windows or Linux system or import the VMware vSphere Management
Assistant (vMA) virtual appliance onto your ESX/ESXi host. For information about importing or installing the
vSphere CLI, see the VMware vSphere Command-Line Interface Installation and Reference Guide.
Procedure
1 Power off any virtual machines that are running on the host and place the host into maintenance mode.
2 Scan the depot for bulletins that are applicable to the host:
vihostupdate.pl --server <server> --scan --metadata http://<webserver>/depot/metadata.zip
Do not specify more than one ZIP file at the command line each time you run the command. If you specify
--metadata more than once, the command processes only the last file that was specified.
VMware, Inc. 41
ESXi Embedded and vCenter Server Setup Guide
3 (Optional) List all bulletins in the depot at the metadata.zip file location:
vihostupdate.pl --list --metadata http://<webserver>/depot/metadata.zip
This command lists all the bulletins in the depot, even those that do not apply to the host.
4 Install bulletins in the depot on the host:
vihostupdate.pl --install --metadata http://<webserver>/depot/metadata.zip --bulletin
bulletin1,bulletin2
If you omit the --bulletin argument, this command installs all the bulletins in the bundle.
Use this option only for removing bulletins that are third-party or VMware extensions. Do not remove
bulletins that are VMware patches or updates. vihostupdate can remove only one bulletin at a time.
For detailed information about the esxupdate command, see the Patch Management Guide.
Prerequisites
Before you remove a custom package, shut down or migrate running virtual machines off of the ESX host.
Procedure
2 Run the esxupdate query command to display a list of the installed bulletins.
3 Run esxupdate -b <bulletinID> remove command, where <bulletinID> is the bulletin for the extension to
remove.
The specified custom package is removed.
For detailed information about the vihostupdate command, see the VMware vSphere Command-Line Interface
Installation and Reference Guide.
Prerequisites
Before you remove a custom package, shut down or migrate running virtual machines off of the ESX/ESXi
host.
42 VMware, Inc.
Chapter 6 Installing, Removing, and Updating Third-Party Extensions
Procedure
VMware, Inc. 43
ESXi Embedded and vCenter Server Setup Guide
44 VMware, Inc.
Preparing the vCenter Server
Databases 7
vCenter Server and vCenter Update Manager require databases to store and organize server data.
You do not need to install a new database for the vCenter Server installation to work. During installation, you
can point the vCenter Server system to any existing supported database. vCenter Server supports IBM DB2,
Oracle, and Microsoft SQL Server databases. vCenter Update Manager supports Oracle and Microsoft SQL
Server databases. For a list of supported database server versions, see the vSphere Compatibility Matrixes at
http://www.vmware.com/pdf/vsphere4/r40/vsp_compatibility_matrix.pdf on the VMware vSphere
documentation Web site.
CAUTION If you have a VirtualCenter database that you want to preserve, do not perform a fresh installation
of vCenter Server. See the Upgrade Guide.
VMware recommends using separate databases for vCenter Server and vCenter Update Manager. However,
for a small deployments, a separate database for vCenter Update Manager might not be necessary.
Each vCenter Server instance must have its own database. vCenter Server instances cannot share the same
database schema. Multiple vCenter Server databases can reside on the same database server, or they can be
separated across multiple database servers. For Oracle, which has the concept of schema objects, you can run
multiple vCenter Server instances in a single database server if you have a different schema owner for each
vCenter Server instance, or use a dedicated Oracle database server for each vCenter Server instance.
VMware, Inc. 45
ESXi Embedded and vCenter Server Setup Guide
Table 7-1 lists the configuration and patch requirements for the databases that are supported with
vCenter Server.
Contact your DBA for the appropriate database credentials, or install the bundled Microsoft SQL Server 2005
Express database.
For a complete list of database versions supported with vCenter Server, see the Compatibility Matrixes on the
VMware vSphere documentation Web site.
IBM DB2 9.5 If the database is not local to the vCenter Server system, install the IBM Data Server Runtime
Client.
Install the IBM DB2 native client according to the IBM instructions for your DB2 version.
Ensure that C:\Program Files\IBM\SQLLIB\BIN is in the system path. DB2 might be
installed at a different location.
You might need to restart the Microsoft Windows machine for the service to recognize the
change in the environment variable.
Ensure that the machine has a valid ODBC data source name (DSN) entry.
Microsoft SQL Server 2005 Bundled database that you can use for small deployments of up to 5 hosts and 50 virtual
Express machines.
If the machine has Microsoft SQL Native Client installed, remove it before installing
vCenter Server with the bundled database.
If the machine has MSXML Core Services 6.0 installed, remove it before installing
vCenter Server with the bundled database. If you cannot remove it using the
Add or Remove Programs utility, use the Windows Installer CleanUp utility. See
http://support.microsoft.com/kb/968749.
Microsoft SQL Server 2005 For Microsoft Windows XP, apply MDAC 2.8 SP1 to the client. Use the SQL Native Client
driver (version 9.x) for the client.
Ensure that the machine has a valid ODBC DSN entry.
If Microsoft SQL Server 2005 is not already installed and the machine has MSXML Core
Services 6.0 installed, remove MSXML Core Services 6.0 before installing Microsoft SQL Server
2005. If you cannot remove it using the Add or Remove Programs utility, use the Windows
Installer CleanUp utility. See http://support.microsoft.com/kb/968749.
Microsoft SQL Server 2008 For Microsoft Windows XP, apply MDAC 2.8 SP1 to the client. Use the SQL Native Client
driver (version 10.x) for the client.
Ensure that the machine has a valid ODBC DSN entry.
46 VMware, Inc.
Chapter 7 Preparing the vCenter Server Databases
Oracle 10g If necessary, first apply patch 10.2.0.4 (or later) to the client and server.
Ensure that the machine has a valid ODBC DSN entry.
For the Oracle Instant client, copy ojdbc14.jar to the vCenter Server tomcat directory
(<vCenter install location>\Infrastructure\tomcat\lib)
The Oracle 10g client comes with ojdbc14.jar (<Oracle client install
location>\oracle\product\10.2.0\<instance_name>\jdbc\lib). The vCenter Server
installer copies the file from the Oracle client install location to the vCenter Server tomcat
directory (<vCenter install location>\Infrastructure\tomcat\lib)
If the ojdbc14.jar file is not found in the Oracle 10g client location, the vCenter Server installer
prompts you to copy the file manually. You can download the file from
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc101040.html.
Oracle 11g Ensure that the machine has a valid ODBC DSN entry.
For the Oracle Instant client, copy ojdbc14.jar to the vCenter Server tomcat directory
(<vCenter install location>\Infrastructure\tomcat\lib)
The Oracle 11g client comes with ojdbc14.jar (<Oracle client install
location>\app\Administrator\product\11.1.0\<instancename>\sqldeveloper\jd
bc\lib). The vCenter Server installer copies the file from the Oracle client install location to
the vCenter Server tomcat directory (<vCenter install
location>\Infrastructure\tomcat\lib)
If the ojdbc14.jar file is not found in the Oracle 11g client location, the vCenter Server installer
prompts you to copy the file manually. You can download the file from
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc101040.html.
Even though vCenter Server is supported on 64-bit operating systems, the vCenter Server system must have
a 32-bit DSN. This requirement applies to all supported databases. By default, any DSN created on a 64-bit
system is 64 bit.
Procedure
You now have a DSN that is compatible with vCenter Server. When the vCenter Server installer prompts you
for a DSN, select the 32-bit DSN.
VMware, Inc. 47
ESXi Embedded and vCenter Server Setup Guide
Changing the vCenter Server computer name impacts database communication if the database server is on the
same computer with vCenter Server. If you have changed the machine name, verify that communication
remains intact by completing the following procedure.
The name change has no impact on communication with remote databases. You can skip this procedure if your
database is remote.
NOTE The name-length limitation applies to the vCenter Server system. The data source name (DSN) and
remote database systems can have names with more than 15 characters.
Check with your database administrator or the database vendor to make sure all components of the database
are working after you rename the server.
Procedure
2 Make sure that the vCenter Server computer name is updated in the domain name service (DNS).
One way to test this is by pinging the computer name. For example, if the computer name is
host-1.company.com, run the following command in the Windows command prompt:
ping host-1.company.com
If you can ping the computer name, the name is updated in DNS.
If the machine has Microsoft SQL Native Client installed, remove it before installing vCenter Server with the
bundled database.
These include:
n Monitoring the growth of the log file and compacting the database log file, as needed. See the
documentation for the database type you are using.
n Scheduling regular backups of the database.
n Backing up the database before any vCenter Server upgrade. See your database documentation for
information on backing up your database.
48 VMware, Inc.
Chapter 7 Preparing the vCenter Server Databases
Procedure
5 (Optional) Use a Script to Create the DB2 Database Schema (Optional) on page 53
The vCenter Server installer creates the schema automatically during installation. Experienced database
administrators who need more control over schema creation due to environmental constraints can
optionally use a script to create their database schema.
You can configure a DB2 database for vCenter Server either locally on the same Microsoft Windows machine
as vCenter Server or remotely on a network-connected Linux, UNIX, or Windows host.
Prerequisites
Before you configure your DB2 user and group, do the following tasks:
n Review the software requirements for vCenter Server with DB2.
n Make sure that a DB2 instance is created and configured for incoming TCP connections. For more
information, see the DB2 documentation Web site.
Procedure
You must create a user on the operating system. By default, DB2 uses the operating system authentication
for all its database users. This procedure assumes that you have created a user called vcx.
VMware, Inc. 49
ESXi Embedded and vCenter Server Setup Guide
2 If the database is hosted on a Microsoft Windows machine, add the user vcx as a member of the group
DB2USERS.
Ignore this step if you are running the database on a remote UNIX or Linux system.
3 Create a user group called DBSYSMON and add the user vcx as a member.
4 Open a DB2 command window or Command Line Processor (CLP) as the DB2 instance owner.
n On Microsoft Windows, select Start > IBM DB2 > DB2Copy1 > Command Line Tools > Command
Window.
n On Linux or UNIX, open a terminal and switch your user to the DB2 instance owner.
5 In the DB2 command window, run the following command to add the group DBSYSMON to the group
of users capable of database system monitoring:
db2 update dbm cfg using sysmon_group dbsysmon
You now have a DB2 database user that you can reference in the vCenter Server installer.
What to do next
Prerequisites
Before you add the registry variables, configure an IBM DB2 database user and group.
Procedure
1 Open a DB2 Command window or Command Line Processor (CLP) as the DB2 instance owner.
n On Microsoft Windows, select Start > IBM DB2 > DB2Copy1 > Command Line Tools > Command
Window.
n On Linux or UNIX, open a terminal and switch your user to the DB2 instance owner.
5 Enable the table or index access scans to defer or avoid row locking until a data record is known to satisfy
predicate evaluation.
db2set DB2_EVALUNCOMMITTED=ON
6 Enable the DB2 database system to skip deleted keys during index access and deleted rows during table
access.
db2set DB2_SKIPDELETED=ON
50 VMware, Inc.
Chapter 7 Preparing the vCenter Server Databases
What to do next
Prerequisites
Before you add the registry variables, perform the following tasks:
n Configure an IBM DB2 database user and group.
n Add the database instance registry variables.
n Make sure that the DB2 runtime client is installed on the Windows machine that will host vCenter Server.
If the database server and the vCenter Server are running on the same machine, you don't have to install
the runtime client separately.
Procedure
1 Open a DB2 Command window or Command Line Processor (CLP) as the DB2 instance owner.
n On Microsoft Windows, select Start > IBM DB2 > DB2Copy1 > Command Line Tools > Command
Window.
n On Linux or UNIX, open a terminal and switch your user to the DB2 instance owner.
2 To configure the vSphere Client to behave as a Unicode application, set the DB2CODEPAGE registry variable
to 1208.
db2set DB2CODEPAGE=1208
NOTE If you are configuring the DB2 database on the same machine as the one that is running vCenter
Server, you need to run the db2set command after connecting to the database server (which is the same
as the vCenter Server host).
What to do next
Create the DB2 database, including all necessary buffer pools, table spaces, and privileges.
Prerequisites
VMware, Inc. 51
ESXi Embedded and vCenter Server Setup Guide
Procedure
1 Copy the following DB2 script into a text editor and save it with a descriptive filename, such as
vcdbcreate.sql.
CONNECT TO VCDB;
grant select on sysibmadm.applications to user vcx;
CREATE BUFFERPOOL VCBP_8K IMMEDIATE SIZE 250 AUTOMATIC PAGESIZE 8K;
CREATE LARGE TABLESPACE VCTS_8k PAGESIZE 8K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32
OVERHEAD 12.67 PREFETCHSIZE 32 TRANSFERRATE 0.18 BUFFERPOOL VCBP_8K;
CREATE BUFFERPOOL VCBP_16K IMMEDIATE SIZE 250 AUTOMATIC PAGESIZE 16K;
CREATE LARGE TABLESPACE VCTS_16k PAGESIZE 16K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32
OVERHEAD 12.67 PREFETCHSIZE 32 TRANSFERRATE 0.18 BUFFERPOOL VCBP_16K;
CREATE BUFFERPOOL VCBP_32K IMMEDIATE SIZE 250 AUTOMATIC PAGESIZE 32K;
CREATE LARGE TABLESPACE VCTS_32k PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 32
OVERHEAD 12.67 PREFETCHSIZE 32 TRANSFERRATE 0.18 BUFFERPOOL VCBP_32K;
CREATE TABLESPACE SYSTOOLSPACE IN IBMCATGROUP MANAGED BY AUTOMATIC STORAGE EXTENTSIZE 4;
CREATE USER TEMPORARY TABLESPACE SYSTOOLSTMPSPACE IN IBMCATGROUP MANAGED BY AUTOMATIC STORAGE
EXTENTSIZE 4;
CREATE SYSTEM TEMPORARY TABLESPACE VCTEMPTS_8K PAGESIZE 8K MANAGED BY AUTOMATIC STORAGE
BUFFERPOOL VCBP_8K;
CREATE SYSTEM TEMPORARY TABLESPACE VCTEMPTS_16K PAGESIZE 16K MANAGED BY AUTOMATIC STORAGE
BUFFERPOOL VCBP_16K;
CREATE SYSTEM TEMPORARY TABLESPACE VCTEMPTS_32K PAGESIZE 32K MANAGED BY AUTOMATIC STORAGE
BUFFERPOOL VCBP_32K;
commit work;
connect reset;
terminate;
52 VMware, Inc.
Chapter 7 Preparing the vCenter Server Databases
n Database path: C:\ for Microsoft Windows, or a UNIX path with sufficient permissions.
n User name: vcx. The same value must be used for the ODBC setup.
Do not modify the script in any other way. Changing the setup for table spaces or buffer pools might
prevent successful installation of vCenter Server.
3 Run the script in a DB2 Command window.
You now have a DB2 database that you can use with vCenter Server.
What to do next
To have the vCenter Server installer create a schema for you, see “Configure a Connection to a Local DB2
Database on Microsoft Windows,” on page 54 or “Configure a Connection to a Remote DB2 Database on
Linux, UNIX, or Microsoft Windows,” on page 55, depending on your environment.
Prerequisites
Create the DB2 database and user. You can create the DB2 database manually or by using scripts.
Procedure
1 Open a DB2 Command Editor window and log in as the user that you created on the vCenter Server
database.
3 In the DB2 Command Editor window, run each SQL file query in the order shown here by opening the
SQL files one at a time and pressing Ctrl+Enter.
For the following files, change the statement termination character from ; to @.
purge_stat1_proc_db2.sql
purge_stat2_proc_db2.sql
purge_stat3_proc_db2.sql
purge_usage_stats_proc_db2.sql
stats_rollup1_proc_db2.sql
stats_rollup2_proc_db2.sql
stats_rollup3_proc_db2.sql
cleanup_events_db2.sql
delete_stats_proc_db2.sql
VMware, Inc. 53
ESXi Embedded and vCenter Server Setup Guide
upsert_last_event_proc_db2.sql
job_schedule1_db2.sql
job_schedule2_db2.sql
job_schedule3_db2.sql
job_cleanup_events_db2.sql
load_usage_stats_proc_db2.sql
load_stats_proc_db2.sql
You now have a database schema that is compatible with vCenter Server 4.0 Update 1.
What to do next
1 On the machine on which you intend to install vCenter Server, create a data source name (DSN) that points
to the database server with the schema.
a If a database reinitialization warning message appears in the vCenter Server installer, select Do not
overwrite, leave my existing database in place and continue the installation.
This message appears if you are using a database that has vCenter Server tables created by a previous
installation. The message does not appear if the database is clean.
If you leave your existing database in place, you cannot join the vCenter Server to a Linked Mode
group during the installation. You can join after the installation is complete. (See “Join a Linked Mode
Group After Installation,” on page 83.)
Prerequisites
Before you configure the database to work locally, perform the following tasks:
n Configure a user and group for the database.
n Add the database instance registry variables.
n Add the client instance registry variable.
n Create the database with the required buffer pools, table spaces, and privileges.
n On the vCenter Server machine, catalog the server node and the database.
a To catalog the server node to TCP/IP, run the following command in the command window:
b To catalog the database to the newly created TCP/IP node, run the following command in the
command window:
c Ensure that the database directory entry type is Remote, and not Indirect.
54 VMware, Inc.
Chapter 7 Preparing the vCenter Server Databases
You can verify this by running the following command in the command window:
If the database directory entry type is Indirect, repeat the previous step.
Procedure
1 On the Microsoft Windows machine that will host vCenter Server, open the Microsoft ODBC
Administrator utility by clicking Start > Run and entering odbcad32.exe.
4 Enter a name for the DSN (for example, VCDB2) and select your database from the menu.
5 To make sure that the database connection works, select the DSN and click Configure.
6 Enter the database user name (for example, vcx) and password, and click Connect.
What to do next
You can now install vCenter Server. When the vCenter Server installer prompts you for a DSN, point to the
DSN that you created in this procedure.
Prerequisites
Before you configure the database to work remotely, perform the following tasks:
n Download the IBM Data Server Driver for ODBC and CLI at
http://www-01.ibm.com/software/data/db2/express/.
n On the remote machine, configure a database user and group.
n On the remote machine, create the database with the required buffer pools, table spaces, and privileges.
n On the remote machine, add the database instance registry variables.
n On the machine where vCenter Server will be installed, add the client instance registry variable.
n On the machine where vCenter Server will be installed, make sure that the IBM Data Server Runtime
Client is installed.
n On the machine where vCenter Server will be installed, catalog the server node and the database.
VMware, Inc. 55
ESXi Embedded and vCenter Server Setup Guide
Procedure
1 On the Microsoft Windows machine that will host vCenter Server, open the Microsoft ODBC
Administrator utility by selecting Start > Run and entering odbcad32.exe.
4 Enter a name for the DSN (for example, VCDB2_remote) and click Add.
5 On the TCP/IP tab of the CLI/ODBC settings dialog box, configure the database values.
n Database name: The default value is vcdb.
n Database alias: The database alias can be the same as the database name.
n Host name: Enter the fully qualified domain name or IP address of your data server.
n Port number: To determine the correct port number, look up the dbm cfg SVCENAME parameter
and its associated port number in the file C:\Microsoft Windows\system32\drivers\etc\services on
Windows, or in the/etc/servicesfile on UNIX and Linux.
What to do next
You can now install vCenter Server. When the vCenter Server installer prompts you for a DSN, point to the
DSN that you created in this procedure.
Procedure
1 Use a Script to Create a Local or Remote Microsoft SQL Server Database on page 56
To simplify the process of creating the SQL Server database, users, and privileges, you can run a script.
If you do not use this script, you can create the database manually.
2 (Optional) Use a Script to Create the Microsoft SQL Server Database Schema (Optional) on page 58
The vCenter Server installer creates the schema automatically during installation. Experienced database
administrators who need more control over schema creation due to environmental constraints can
optionally use a script to create a database schema.
In the script, you can customize the location of the data and log files.
56 VMware, Inc.
Chapter 7 Preparing the vCenter Server Databases
The user created by this script does not follow any security policy. The passwords are provided only for
convenience. Change the passwords as appropriate.
To prepare a SQL Server database to work with vCenter Server, you generally need to create a SQL Server
database user with database operator (DBO) rights. When you do this, make sure that the database user login
has the db_owner fixed database role on the vCenter Server database and on the MSDB database. The
db_owner role on the MSDB database is required for installation and upgrade only, and you can revoke it after
installation.
If you run this script as well as the script to create the database schema, you do not have to grant DBO
permissions on the vCenter Server database. For environments in which the vCenter Server database user
cannot have DBO permissions, these scripts are especially useful. The user created by this script has DBO
privileges on both VCDB and MSDB databases. To change this, remove the two occurrences of this line:
sp_addrolemember @rolename = 'db_owner', @membername = 'vpxuser'
IMPORTANT If you remove these lines, you must also run the script that creates the vCenter Server database
schema, instead of allowing the vCenter Server installer to create the schema.
Procedure
1 Log in to a Query Analyzer session as the sysadmin (SA) or a user account with sysadmin privileges.
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
sp_addrolemember @rolename = 'db_owner', @membername = 'vpxuser'
go
use MSDB
go
CREATE USER [vpxuser] for LOGIN [vpxuser]
go
sp_addrolemember @rolename = 'db_owner', @membername = 'vpxuser'
go
You now have a Microsoft SQL Server database that you can use with vCenter Server.
What to do next
VMware, Inc. 57
ESXi Embedded and vCenter Server Setup Guide
(Optional) Use a Script to Create the Microsoft SQL Server Database Schema
(Optional)
The vCenter Server installer creates the schema automatically during installation. Experienced database
administrators who need more control over schema creation due to environmental constraints can optionally
use a script to create a database schema.
To have the vCenter Server installer create your schema for you, see “Configure a SQL Server ODBC
Connection,” on page 59.
Prerequisites
Before you use this script, create the SQL Server database. You can create the SQL Server database manually
or by using a script.
Procedure
1 Create a vCenter Server database user with the db_datawriter and db_datareader permissions.
2 Open a query analyzer window with a user having DBO rights on the vCenter Server and MSDB databases.
3 Locate the dbschema scripts in the vCenter Server installation package /<installation
directory>/vpx/dbschema directory.
The DBO user must own the objects created by these scripts. Open the scripts one at a time in the Query
Analyzer window and press F5 to execute each script in the order shown here.
VCDB_mssql.SQL
purge_stat1_proc_mssql.sql
purge_stat2_proc_mssql.sql
purge_stat3_proc_mssql.sql
purge_usage_stats_proc_mssql.sql
stats_rollup1_proc_mssql.sql
stats_rollup2_proc_mssql.sql
stats_rollup3_proc_mssql.sql
cleanup_events_mssql.sql
delete_stats_proc_mssql.sql
upsert_last_event_proc_mssql.sql
load_usage_stats_proc_mssql.sql
load_stats_proc_mssql.sql
5 For all supported editions of Microsoft SQL Server (except Microsoft SQL Server 2005 Express), ensure
that the SQL Server Agent service is running by using these additional scripts to set up scheduled jobs on
the database.
job_schedule1_mssql.sql
job_schedule2_mssql.sql
job_schedule3_mssql.sql
job_cleanup_events_mssql.sql
What to do next
1 On the machine on which you intend to install vCenter Server, create a DSN that points to the database
server with the schema.
a If a database reinitialization warning message appears in the vCenter Server installer, select Do not
overwrite, leave my existing database in place and continue the installation.
58 VMware, Inc.
Chapter 7 Preparing the vCenter Server Databases
This message appears if you are using a database that has vCenter Server tables created by a previous
installation. The message does not appear if the database is clean.
If you leave your existing database in place, you cannot join a Linked Mode group during the
installation. You can join after the installation is complete. (See “Join a Linked Mode Group After
Installation,” on page 83.)
See your Microsoft SQL ODBC documentation for specific instructions regarding configuring the SQL Server
ODBC connection.
Prerequisites
n Review the required database patches specified in “vCenter Server Database Patch and Configuration
Requirements,” on page 46. If you do not prepare your database correctly, the vCenter Server installer
displays error and warning messages.
n Create a database using SQL Server Management Studio on the SQL Server.
n Create a database user with database operator (DBO) rights.
The default database for the DBO user is the one that you created using SQL Server Management Studio.
Make sure that the database login has the db_owner fixed database role on the vCenter Server database
and on the MSDB database. The db_owner role on the MSDB database is required for installation and
upgrade only. You can revoke this role after installation.
n If you are using a named instance of Microsoft SQL Server 2008 Standard Edition with vCenter Server, do
not name the instance MSSQLSERVER. If you do, the JDBC connection does not work, and certain features,
such as Performance Charts, are not available.
Procedure
1 On your vCenter Server system, open the Microsoft Windows ODBC Data Source Administrator.
n On a 32-bit system, select Settings > Control Panel > Administrative Tools > Data Sources
(ODBC).
n On a 64-bit system, open C:\WINDOWS\SYSWOW64\odbc32.exe.
2 On the System DSN tab modify or create a SQL Server ODBC connection.
n To modify an existing SQL Server ODBC connection, select the connection from the System Data
Source list and click Configure.
n To create a new SQL Server ODBC connection, click Add, select SQL Native Client, and click
Finish.
5 Select the server name from the Server drop-down menu and click Next.
Type the SQL Server host name in the text box if it is not in the drop-down menu.
VMware, Inc. 59
ESXi Embedded and vCenter Server Setup Guide
7 If you selected SQL authentication, type your SQL Server login name and password and click Next.
8 Select the database created for the vCenter Server system from the Change the default database to menu
and click Next.
9 Click Finish.
What to do next
To test the data source, from the ODBC Microsoft SQL Server Setup menu, select Test Data Source and click
OK. Ensure that the SQL Agent is running on your database server.
This applies to SQL Server 2005 and SQL Server 2008 editions.
This procedure applies to remote Microsoft SQL Server database servers. You can skip this procedure if your
database is local.
Procedure
1 Start the SQL Server Configuration Manager by selecting Start > All Programs > Microsoft SQL Server >
Configuration Tools > SQL Server Configuration Manager.
3 Enable TCP/IP.
Option Action
Enabled Select Yes.
Listen All Select Yes.
Keep Alive Enter 30000.
Option Action
Active Select Yes.
TCP Dynamic Ports Select 0.
7 Restart the SQL Server service from SQL Server Configuration Manager > SQL Server Services.
8 Start the SQL Server Browser service from SQL Server Configuration Manager > SQL Server Services.
60 VMware, Inc.
Chapter 7 Preparing the vCenter Server Databases
Procedure
3 (Optional) Use a Script to Create the Oracle Database Schema (Optional) on page 62
The vCenter Server installer creates the schema automatically during installation. For experienced
database administrators who need more control over schema creation due to environmental constraints,
you can optionally use a script to create your database schema.
When using the script, you can customize the location of the data and log files.
NOTE The user created by this script does not follow any security policy. The passwords are provided only
for convenience. Change the passwords as appropriate.
Procedure
For a Windows installation, change the directory path to the vpx01.dbf file.
You now have an Oracle database that you can use with vCenter Server.
VMware, Inc. 61
ESXi Embedded and vCenter Server Setup Guide
What to do next
You can configure an Oracle database for vCenter Server either locally on the same Microsoft Windows
machine as vCenter Server or remotely on a network-connected Linux, UNIX or Microsoft Windows host.
Prerequisites
Procedure
2 Run the following SQL command to create a vCenter Server database user with the correct permissions.
By default, the RESOURCE role has the CREATE PROCEDURE, CREATE TABLE, and CREATE
SEQUENCE privileges assigned. If the RESOURCE role does not have these privileges, explicitly grant
them to the vCenter Server database user.
You now have an Oracle database user that you can reference in the vCenter Server installer.
What to do next
Create the Oracle database, including all necessary table spaces and privileges.
To have the vCenter Server installer create your schema for you, see “Configure an Oracle Connection for Local
Access,” on page 63 or “Configure an Oracle Connection for Remote Access,” on page 64, depending on
your environment.
Prerequisites
Before you use this script, create the Oracle database and user. You can create the Oracle database and user
manually or by using scripts.
Procedure
1 Open a SQL*Plus window with a user that has schema owner rights on the vCenter Server database.
62 VMware, Inc.
Chapter 7 Preparing the vCenter Server Databases
2 Locate the dbschema scripts in the vCenter Server installation package /<installation
directory>/vpx/dbschema directory.
@<path>/VCDB_oracle.SQL
@<path>/purge_stat1_proc_oracle.sql
@<path>/purge_stat2_proc_oracle.sql
@<path>/purge_stat3_proc_oracle.sql
@<path>/purge_usage_stats_proc_oracle.sql
@<path>/stats_rollup1_proc_oracle.sql
@<path>/stats_rollup2_proc_oracle.sql
@<path>/stats_rollup3_proc_oracle.sql
@<path>/cleanup_events_oracle.sql
@<path>/delete_stats_proc_oracle.sql
@<path>/load_usage_stats_proc_oracle.sql
@<path>/load_stats_proc_oracle.sql
4 For all supported editions of Oracle Server, run these additional scripts to set up scheduled jobs on the
database.
@<path>/job_schedule1_oracle.sql
@<path>/job_schedule2_oracle.sql
@<path>/job_schedule3_oracle.sql
@<path>/job_cleanup_events_oracle.sql
You now have a database schema that is compatible with vCenter Server 4.0.
What to do next
1 On the machine where you are installing vCenter Server, create a DSN that points to the database server
with the schema.
a If a database reinitialization warning message appears in the vCenter Server installer, select Do not
overwrite, leave my existing database in place and continue the installation.
This message appears if you are using a database that has vCenter Server tables created by a previous
installation. The message does not appear if the database is clean.
If you leave your existing database in place, you cannot join a Linked Mode group during the
installation. You can join after the installation is complete. (See “Join a Linked Mode Group After
Installation,” on page 83.)
Prerequisites
Before configuring an Oracle connection, review the required database patches specified in “vCenter Server
Database Patch and Configuration Requirements,” on page 46. If you do not prepare your database correctly,
the vCenter Server installer displays error and warning messages.
Procedure
1 Download Oracle 10g or Oracle 11g from the Oracle Web site, install it, and create a database.
VMware, Inc. 63
ESXi Embedded and vCenter Server Setup Guide
The TNS Service Name is the net service name for the database to which you want to connect. You can
find the net service name in the tnsnames.ora file located in the NETWORK\ADMIN folder in the Oracle database
installation location.
Prerequisites
Before configuring an Oracle connection, review the required database patches specified in “vCenter Server
Database Patch and Configuration Requirements,” on page 46. If you do not prepare your database correctly,
the vCenter Server installer displays error and warning messages.
Procedure
3 Create a new tablespace for a vCenter Server system using a SQL statement such as the following.
CREATE TABLESPACE "VPX" DATAFILE 'C:\Oracle\ORADATA\VPX\VPX.dat' SIZE 1000M AUTOEXTEND ON NEXT
500K;
4 Create a user, such as vpxAdmin, for accessing the tablespace through ODBC.
CREATE USER vpxAdmin IDENTIFIED BY vpxadmin DEFAULT TABLESPACE vpx;
5 Either grant dba permission to the user, or grant the following permissions to the user.
grant connect to <user>
grant resource to <user>
grant create view to <user>
grant unlimited tablespace to <user> # To ensure space is sufficient
By default, the RESOURCE role has the CREATE PROCEDURE, CREATE TABLE, and CREATE
SEQUENCE privileges assigned. If the RESOURCE role does not have these privileges, explicitly grant
them to the vCenter Server database user.
6 Use a text editor or the Net8 Configuration Assistant to edit the tnsnames.ora file located in the directory
C:\Oracle\Oraxx\NETWORK\ADMIN, where xx is either 10g or 11g.
Add the following entry, where HOST is the managed host to which the client must connect.
VPX =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS=(PROTOCOL=TCP)(HOST=vpxd-Oracle)(PORT=1521))
)
(CONNECT_DATA =
(SERVICE_NAME = VPX)
)
)
The TNS Service Name is the net service name for the database to which you want to connect, in this case,
VPX. You can find the net service name in the tnsnames.ora file.
64 VMware, Inc.
Chapter 7 Preparing the vCenter Server Databases
Procedure
1 Create a new tablespace for a vCenter Server system using a SQL statement such as the following.
CREATE TABLESPACE "VPX" DATAFILE 'C:\Oracle\ORADATA\VPX\VPX.dat' SIZE 1000M AUTOEXTEND ON NEXT
500K;
2 Create a user, such as vpxAdmin, for accessing the tablespace through ODBC.
CREATE USER vpxAdmin IDENTIFIED BY vpxadmin DEFAULT TABLESPACE vpx;
3 Either grant dba permission to the user, or grant the following permissions to the user.
grant connect to <user>
grant resource to <user>
grant create view to <user>
grant unlimited tablespace to <user> # To ensure space is sufficient
By default, the RESOURCE role has the CREATE PROCEDURE, CREATE TABLE, and CREATE
SEQUENCE privileges assigned. If the RESOURCE role does not have these privileges, explicitly grant
them to the vCenter Server database user.
What to do next
VMware, Inc. 65
ESXi Embedded and vCenter Server Setup Guide
66 VMware, Inc.
Introduction to Installing
vCenter Server 8
You can install vCenter Server on a physical system or on a virtual machine running on an ESX host.
This chapter includes the following topics:
n “vCenter Server Prerequisites,” on page 67
n “Using a User Account for Running vCenter Server with SQL Server,” on page 68
n “About Installing vCenter Server on IPv6 Machines,” on page 69
n “Configure the URLs on a Standalone vCenter Server System,” on page 69
n “Running the vCenter Server and vSphere Client Installers from a Network Drive,” on page 69
n “vCenter Server Components,” on page 70
n “Required Data for Installing vCenter Server,” on page 70
IMPORTANT If you want to keep your existing VirtualCenter configuration, see the Upgrade Guide.
n There must be no Network Address Translation (NAT) between the vCenter Server system and the hosts
it will manage.
n Create a vCenter Server database, unless you plan to install the bundled SQL Server 2005 Express.
VMware, Inc. 67
ESXi Embedded and vCenter Server Setup Guide
n The system that you use for your vCenter Server installation will belong to a domain rather than a
workgroup. If assigned to a workgroup, the vCenter Server system is not able to discover all domains and
systems available on the network when using such features as vCenter Guided Consolidation Service. To
use vCenter Linked Mode, multiple vCenter Server systems should be added to a domain. To determine
whether the system belongs to a workgroup or a domain, right-click My Computer and click Properties
and the Computer Name tab. The Computer Name tab displays either a Workgroup label or a Domain
label.
n During the installation, the connection between the machine and the domain controller must be working.
n The computer name cannot be more than 15 characters.
n The DNS name of the machine must match the actual computer name.
n Make sure the system on which you are installing vCenter Server is not an Active Directory domain
controller.
n On each system that is running vCenter Server, make sure that the domain user account has the following
permissions:
n Member of the Administrators group
n Act as part of the operating system
n Log on as a service
n Assign a static IP address and host name to the Windows server that will host the vCenter Server system.
This IP address must have a valid (internal) domain name system (DNS) registration that resolves properly
from all managed ESX hosts.
n If you install vCenter Server on Windows Server 2003 SP1, the disk for the installation directory must have
the NTFS format, not the FAT32 format.
n Consider whether the vCenter Server instance will be standalone or in a Linked Mode group. See
Chapter 11, “Creating vCenter Server Linked Mode Groups,” on page 81.
n vCenter Server, like any other network server, should be installed on a machine with a fixed IP address
and well-known DNS name, so that clients can reliably access the service. If you use DHCP instead of a
static IP address for vCenter Server, make sure that the vCenter Server computer name is updated in the
domain name service (DNS). One way to test this is by pinging the computer name. For example, if the
computer name is host-1.company.com, run the following command in the Windows command prompt:
ping host-1.company.com
If you can ping the computer name, the name is updated in DNS.
Using a User Account for Running vCenter Server with SQL Server
You can use the Microsoft Windows built-in system account or a user account to run vCenter Server. With a
user account, you can enable Windows authentication for SQL Server, and it also provides more security.
The user account must be an administrator on the local machine. In the installation wizard, you specify the
account name as DomainName\Username. You must configure the SQL Server database to allow the domain
account access to SQL Server.
The Microsoft Windows built-in system account has more permissions and rights on the server than the
vCenter Server system needs, which can contribute to security problems. Even if you do not plan to use
Microsoft Windows authentication for SQL Server or you are using an Oracle database, you might want to set
up a local user account for the vCenter Server system. In this case, the only requirement is that the user account
is an administrator on the local machine.
For SQL Server DSNs configured with Windows authentication, use the same user account for the VMware
VirtualCenter Management Webservices service and the DSN user.
68 VMware, Inc.
Chapter 8 Introduction to Installing vCenter Server
If you install an instance of vCenter Server as a local system account on a local SQL Server database with
Integrated Windows NT Authentication and you add an Integrated Windows NT Authentication user to the
local database server with the same default database as vCenter Server, vCenter Server might not start. To
resolve this issue, remove the Integrated Windows NT Authentication user from the local SQL database server,
or change the default database for the local system user account to the vCenter Server database for the SQL
Server user account setup.
If you do not update the URLs, remote instances of vCenter Server cannot reach the vCenter Server system,
because the default vCenter Server URL entries are no longer accurate. The vCenter Server installer configures
default URL entries as follows:
n For the VirtualCenter.VimApiUrl key, the default value is http(s)://<FQDN of VC machine>/sdk.
n For the Virtualcenter.VimWebServicesUrl key, the default value is https://<FQDN of VC
machine>:<installed-webservices-port>/vws.
Procedure
1 From the vSphere Client, connect directly to the vCenter Server instance on which you have changed the
domain or host name.
2 Select Administration > vCenter Server Settings and click Advanced Settings.
3 For the Virtualcenter.VimApiUrl key, change the value to point to the location where the vSphere Client
and SDK clients can access the vCenter Server system.
4 For the Virtualcenter.VimWebServicesUrl key, change the value to point to the location where
vCenter Server Webservices is installed.
5 For the Virtualcenter.Instancename key, change the value so that the modified name appears in the
vCenter Server inventory view.
In Windows, you can map a network drive, run the installers from the network drive, and install the software
on the local machine.
VMware, Inc. 69
ESXi Embedded and vCenter Server Setup Guide
Microsoft.NET 3.0 SP1 Software used by the Database Upgrade wizard and the vSphere Client. Also
Framework used by vCenter Server if you are using the bundled database.
VMware vCenter vCenter Server module that provides a comprehensive set of tools to efficiently
Orchestrator manage your virtual IT environment. The vCenter Server performs a silent
installation of vCenter Orchestrator. If you install vCenter Server on an IPv6
operating system, the vCenter Orchestrator module is not supported. If you
install vCenter Server in a mixed environment (both IPv4 and IPv6 enabled),
the vCenter Orchestrator module can only be configured using IPv4. See the
vCenter Orchestrator Administration Guide.
Microsoft SQL Server Free, bundled version of the Microsoft SQL Server database for smaller scale
2005 Express (optional) applications. If you enter a path to an existing database, the installer does not
install the bundled database.
The vCenter Server autorun.exe application includes links to install the following optional components:
vSphere Client Client application used to connect directly to an ESX host or indirectly to an
ESX host through a vCenter Server.
vCenter Converter vCenter Server module that enables you to convert your physical machines to
Enterprise for virtual machines.
vCenter Server
vCenter Guided vCenter Server module that discovers physical systems and analyzes them for
Consolidation Service preparation to be converted into virtual machines.
vCenter Update Manager vCenter Server module that provides security monitoring and patching
support for ESX hosts and virtual machines.
Table 8-1 lists the information that you are prompted for during the installation. Note the values entered in
case you need to reinstall vCenter Server and want to use the same values. VMware Knowledge Base
article 1010023 contains a linked worksheet that complements Table 8-1.
vCenter Server license key None If you omit the license key, vCenter Server is installed in evaluation
mode. After you install vCenter Server, you can enter the
vCenter Server license in the vSphere Client.
70 VMware, Inc.
Chapter 8 Introduction to Installing vCenter Server
Standalone or join group Standalone Join a Linked Mode group to enable the vSphere Client to view,
search, and manage data across multiple vCenter Server systems.
Fully qualified domain name of None Required if this instance of vCenter Server is joining a group. This is
Directory Services for the the name of a remote instance of vCenter Server. The local and remote
vCenter Server group instances will be members of a Linked Mode group.
LDAP port for the Directory 389 Required if this instance of vCenter Server is joining a Linked Mode
Services for the remote group. This is the remote instance’s LDAP port. See “Required
vCenter Server instance Ports,” on page 16.
Data source name (DSN) None Required to use an existing database. Not required if you are using
the bundled database.
Database user name None
vCenter Server account Microsoft Use a user-specified account if you plan to use Microsoft Windows
information Windows system authentication for SQL Server. See “Using a User Account for
Can be the Microsoft Windows account Running vCenter Server with SQL Server,” on page 68.
system account or a user-
specified account
VMware, Inc. 71
ESXi Embedded and vCenter Server Setup Guide
72 VMware, Inc.
Installing vCenter Server 9
After you install vCenter Server and the vSphere Client, you can configure communication between them.
This chapter includes the following topics:
n “Download the vCenter Server Installer,” on page 73
n “Install vCenter Server in a Virtual Machine,” on page 73
n “Install vCenter Server,” on page 74
Procedure
1 Download the zip file for the vCenter Server from the VMware product page at
http://www.vmware.com/products/.
Deploying the vCenter Server system in the virtual machine has the following advantages:
n Rather than dedicating a separate server to the vCenter Server system, you can place it in a virtual machine
running on the same ESX host where your other virtual machines run.
n You can provide high availability for the vCenter Server system by using VMware HA.
n You can migrate the virtual machine containing the vCenter Server system from one host to another,
enabling maintenance and other activities.
n You can create snapshots of the vCenter Server virtual machine and use them for backups, archiving, and
so on.
Prerequisites
Procedure
VMware, Inc. 73
ESXi Embedded and vCenter Server Setup Guide
2 On any machine that has network access to your ESX host, install the vSphere Client.
3 Using the vSphere Client, access the ESX host directly to create the virtual machine for hosting
vCenter Server.
Prerequisites
Procedure
1 In the software installer directory, double-click the autorun.exe file at C:\<installer location>\.
This selection controls the language for only the installer. When you use the vSphere Client to connect to
the vCenter Server system, the vSphere Client appears in the language associated with the locale setting
on your machine. You can alter this behavior with a command-line instruction or by changing the locale
in the registry of the machine. See Basic System Administration.
5 Select I agree to the terms in the license agreement and click Next.
6 Type your user name, organization, and vCenter Server license key, and click Next.
If you omit the license key, vCenter Server will be in evaluation mode, which allows you to use the full
feature set. After installation, you can convert vCenter Server to licensed mode by entering the license key
using the vSphere Client.
If your database is a local SQL Server database using Windows NT authentication, leave the user
name and password fields blank.
If you specify a remote SQL Server database that uses Windows NT authentication, the database user
and the logged-in user on the vCenter Server machine must be the same.
A dialog box might appear warning you that the DSN points to an older version of a repository that must
be upgraded. If you click Yes, the installer upgrades the database schema, making the database irreversibly
incompatible with previous VirtualCenter versions. See the Upgrade Guide.
74 VMware, Inc.
Chapter 9 Installing vCenter Server
If you want to use Windows authentication for SQL Server, specify an account that is an administrator on
the local machine. As a best practice, type the account name as <DomainName>\<Username>. Type the
account password, retype the password, and click Next.
9 Either accept the default destination folders or click Change to select another location, and click Next.
NOTE To install the vCenter Server on a drive other than C:, verify that there is enough space in the
C:\WINDOWS\Installer folder to install the Microsoft Windows Installer .msi file. If you do not have enough
space, your vCenter Server installation might fail.
10 Select Create a standalone VMware vCenter Server instance or Join Group and click Next.
Join a Linked Mode group to enable the vSphere Client to view, search, and manage data across multiple
vCenter Server systems. See Chapter 11, “Creating vCenter Server Linked Mode Groups,” on page 81.
This option does not appear if you are upgrading the VirtualCenter database schema. If it does not appear,
you can join a Linked Mode group after the installation is complete.
11 If you join a group, enter the fully qualified domain name and LDAP port number of any remote
vCenter Server system and click Next.
In some cases, you can enter the IP address instead of the fully qualified domain name. To help ensure
connectivity, the best practice is to use the fully qualified domain name. For IPv6, unless both the local
and the remote machine are in IPv6 mode, you must enter the fully qualified domain name of the remote
machine instead of the IPv6 address. If the local machine has an IPv4 address and the remote machine has
an IPv6 address, the local machine must support IPv4 and IPv6 mixed mode. The domain name server
must be able to resolve both IPv4 and IPv6 addresses if your environment has both addressing types in a
single Linked Mode group.
12 Enter the port numbers that you want to use or accept the default port numbers and click Next.
13 Click Install.
Installation might take several minutes. Multiple progress bars appear during the installation of the
selected components.
14 Click Finish.
What to do next
See Chapter 10, “Postinstallation Considerations for vCenter Server,” on page 77.
VMware, Inc. 75
ESXi Embedded and vCenter Server Setup Guide
76 VMware, Inc.
Postinstallation Considerations for
vCenter Server 10
After you install vCenter Server, consider the postinstallation options and requirements.
n Install the vSphere Client and make sure that you can access the vCenter Server instance.
n Check the license server configuration. A license server is required if this vCenter Server is managing
ESX 3.x/ESXi 3.5 hosts. For information about installing the VMware License Server, see the documentation
for VMware Infrastructure 3.
n For environments that require strong security, VMware recommends that you replace the default
certificates on your vCenter Server system with certificates signed by a commercial Certificate Authority
(CA). See vSphere 4.0 technical note Replacing vCenter Server Certificates at
http://www.vmware.com/resources/techresources/.
n When vCenter Server and the database are installed on the same machine, after rebooting the machine,
the VMware VirtualCenter Management Webservices service might not start. To start the service
manually, select Settings > Control Panel > Administrative Tools > Services > VMware VirtualCenter
Management Webservices and start the service. The machine might require several minutes to start the
service.
n For Oracle databases, note the following:
n For the Oracle Instant client, copy ojdbc14.jar to the vCenter Server tomcat directory (<vCenter
install location>\Infrastructure\tomcat\lib)
n The Oracle 10g client and Oracle 11g client come with ojdbc14.jar (<Install
location>\oracle\product\10.2.0\<instance_name>\jdbc\lib or <Install
location>\app\Administrator\product\11.1.0\<instance_name>\sqldeveloper\jdbc\lib). The
vCenter Server installer copies the file from the Oracle client install location to the vCenter Server
tomcat directory (<vCenter install location>\Infrastructure\tomcat\lib)
n If the ojdbc14.jar file is not found in the Oracle 10g or Oracle 11g client location, the vCenter Server
installer prompts you to copy the file manually. You can download the file from
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc101040.html.
VMware, Inc. 77
ESXi Embedded and vCenter Server Setup Guide
Prerequisites
n You must have the vCenter Server installer or the vSphere Client installer.
n You must be a member of the Administrators group on the machine.
Procedure
This selection controls the language only for the installer. When you use the vSphere Client, the vSphere
Client appears in the language associated with the locale setting on the machine. You can alter this behavior
with a command-line instruction or by changing the locale in the registry of the machine. See Basic System
Administration.
4 Select I agree to the terms in the license agreement and click Next.
5 Type your user name and company name and click Next.
6 Select Install VMware vSphere Host Update Utility to manage host patches, updates, and upgrades from
this machine and click Next.
For large deployments and for environments with clustered hosts, VMware recommends that you use
vCenter Update Manager instead of the vSphere Host Update Utility.
7 Accept the default installation location and click Next, or click Change to select a different location and
click Next.
You can use the vSphere Client to connect to an ESX/ESXi host or to connect to a vCenter Server system.
NOTE Do not use the Windows built-in Guest account to start the vSphere Client. By default, the Guest Account
is disabled. When you use the Guest account to log in to Windows, you cannot access the applications that are
already installed on the computer.
Procedure
1 Select Start > Programs > VMware > VMware vSphere Client.
78 VMware, Inc.
Chapter 10 Postinstallation Considerations for vCenter Server
2 In the vSphere Client login window, log in to an ESX/ESXi host as root or as a normal user, or log in to a
vCenter Server system as the administrator.
3 Click Login.
If you cannot connect to the vCenter Server system, you might need to start the VMware VirtualCenter
Management Webservices service manually. To do this, select Settings > Control Panel > Administrative
Tools > Services > VMware VirtualCenter Management Webservices and start the service. The machine
might require several minutes to start the service.
Security warning messages appear because the vSphere Client detects certificates signed by the ESX/ESXi
host or vCenter Server system (default setting). For highly secure environments, certificates generated by
a trusted third-party are recommended.
The vSphere Host Update Utility is bundled with the vSphere Client. You can install the utility when you
install the vSphere Client. If the vSphere Client is already installed and the vSphere Host Update Utility is not,
use this procedure to install vSphere Host Update Utility.
Prerequisites
To use vSphere Host Update Utility, you must have the following:
n Workstation or laptop with the vSphere Client installed.
n Network connection between the ESX/ESXi host and the workstation or laptop.
n Internet connectivity to download patch and update bundles or upgrade images from VMware.com if you
do not have a local depot.
Procedure
1 Open a command window by selecting Start > Run and then entering cmd.
This executable is in the \vpx subfolder of the vCenter Server installation package.
What to do next
VMware, Inc. 79
ESXi Embedded and vCenter Server Setup Guide
CAUTION Uninstalling a vCenter Server system while it is running disrupts the vSphere Client connections,
which can cause data loss.
Uninstalling vCenter Server or the vSphere Client does not uninstall any of the other components, such as the
bundled database or Microsoft .NET Framework. Do not uninstall the other components if other applications
on your system depend on them.
Procedure
1 If you are uninstalling the vCenter Server, unlicense the vCenter Server and the hosts, and remove the
license keys from the license inventory.
2 If you are uninstalling the vCenter Server, remove the hosts from the Hosts and Clusters inventory.
3 As Administrator on the Microsoft Windows system, select Start > Settings > Control Panel >
Add/Remove Programs.
4 Select the component to remove from the list and click Remove.
5 Click Yes to confirm that you want to remove the program and click Finish.
80 VMware, Inc.
Creating vCenter Server Linked Mode
Groups 11
A Linked Mode group allows you to log in to any single instance of vCenter Server and view and manage the
inventories of all the vCenter Server systems in the group.
You can join multiple vCenter Server systems to form a Linked Mode group. You can configure a Linked Mode
group during vCenter Server installation or after vCenter Server is installed.
To join a vCenter Server group, you enter the fully qualified domain name (or IP address) of a remote machine
on which vCenter Server 4.0 is running. The remote machine can be any vCenter Server 4.0 instance that is or
will become a member of the Linked Mode group.
You must also provide the Lightweight Directory Access Protocol (LDAP) port number of the remote vCenter
Server instance.
vCenter Server instances in a group replicate shared global data to the LDAP directory. The global data includes
the following information for each vCenter Server instance:
n Connection information (IP and ports)
n Certificates
n Licensing information
n User roles
All the requirements for standalone vCenter Server systems apply to Linked Mode systems. See
“vCenter Server Prerequisites,” on page 67.
The following requirements apply to each vCenter Server system that is a member of a Linked Mode group:
n DNS must be operational for Linked Mode replication to work.
VMware, Inc. 81
ESXi Embedded and vCenter Server Setup Guide
n The vCenter Server instances in a Linked Mode group can be in different domains if the domains have a
two-way trust relationship. Each domain must trust the other domains on which vCenter Server instances
are installed.
n When adding a vCenter Server instance to a Linked Mode group, the installer must be run by a domain
user who is an administrator on both the machine where vCenter Server is installed and the target machine
of the Linked Mode group.
n All vCenter Server instances must have network time synchronization. The vCenter Server installer
validates that the machine clocks are not more than 5 minutes apart.
If you do not update the URLs, remote instances of vCenter Server cannot reach the vCenter Server system,
because the default vCenter Server URL entries are no longer accurate. The vCenter Server installer configures
default URL entries as follows:
n For the Virtualcenter.VimApiUrl key, the default value is http(s)://<Fully qualified domain name
(FQDN) of VC machine>/sdk.
Procedure
1 Isolate the vCenter Server system from the Linked Mode group.
See “Isolate a vCenter Server Instance from a Linked Mode Group,” on page 84.
2 Change the domain name or the machine name to make them match.
3 From the vSphere Client, connect directly to the vCenter Server instance on which you have changed the
domain or machine name.
82 VMware, Inc.
Chapter 11 Creating vCenter Server Linked Mode Groups
4 Select Administration > vCenter Server Settings and click Advanced Settings.
5 For the Virtualcenter.VimApiUrl key, change the value to point to the location where the vSphere Client
and SDK clients can access the vCenter Server system.
6 For the Virtualcenter.VimWebServicesUrl key, change the value to point to the location where
vCenter Server Webservices is installed.
7 For the Virtualcenter.Instancename key, change the value so that the modified name appears in the
vCenter Server inventory view.
For example, suppose you have three machines on which you want to install vCenter Server. You want the
three instances to be members of a Linked Mode group.
1 On Machine 1, you install vCenter Server as a standalone instance because you do not yet have a remote
vCenter Server machine to join.
2 On Machine 2, you install vCenter Server, choose to join a Linked Mode group, and provide the fully
qualified domain name of Machine 1.
3 On Machine 3, you upgrade to vCenter Server 4.0. After the upgrade, you configure Machine 3 to join
either Machine 1 or Machine 2. Machine 1, Machine 2, and Machine 3 are now members of a Linked
Mode group.
Prerequisites
See “Linked Mode Prerequisites,” on page 81 and “Linked Mode Considerations,” on page 82.
Procedure
1 Select Start > All Programs > VMware > vCenter Server Linked Mode Configuration.
2 Click Next.
4 Click Join this vCenter Server instance to an existing linked mode group or another instance and click
Next.
5 Enter the server name and LDAP port number of a remote vCenter Server instance that is a member of
the group and click Next.
If you enter an IP address for the remote server, the installer converts it into a fully qualified domain name.
VMware, Inc. 83
ESXi Embedded and vCenter Server Setup Guide
6 If the vCenter Server installer detects a role conflict, select how to resolve the conflict.
Option Description
Yes, let VMware vCenter Server Click Next.
resolve the conflicts for me The role on the joining system is renamed to <vcenter_name> <role_name>,
where <vcenter_name> is the name of the vCenter Server system that is joining
the Linked Mode group, and <role_name> is the name of the original role.
No, I'll resolve the conflicts myself To resolve the conflicts manually:
a Using the vSphere Client, log in to one of the vCenter Server systems
using an account with Administrator privileges.
b Rename the conflicting role.
c Close the vSphere Client session and return to the vCenter Server
installer.
d Click Back and click Next.
The installation continues without conflicts.
A conflict results if the joining system and the Linked Mode group each contain a role with the same name
but with different privileges.
7 Click Finish.
vCenter Server restarts. Depending on the size of your inventory, the change to Linked Mode might take
from a few seconds to a few minutes to complete.
The vCenter Server instance is now part of a Linked Mode group. After you form a Linked Mode group, you
can log in to any single instance of vCenter Server and view and manage the inventories of all the vCenter
Servers in the group. It might take several seconds for the global data (such as user roles) that are changed on
one machine to be visible on the other machines. The delay is usually 15 seconds or less. It might take a few
minutes for a new vCenter Server instance to be recognized and published by the existing instances, because
group members do not read the global data very often.
What to do next
For information about configuring and using your Linked Mode group, see Basic System Administration.
Procedure
1 Select Start > All Programs > VMware > vCenter Server Linked Mode Configuration.
3 Click Isolate this vCenter Server instance from linked mode group and click Next.
vCenter Server restarts. Depending on the size of your inventory, the change to Linked Mode might take
from a few seconds to a few minutes to complete.
The vCenter Server instance is no longer part of the Linked Mode group.
84 VMware, Inc.
Chapter 11 Creating vCenter Server Linked Mode Groups
If this occurs, resolve the problem with the domain controller and restart vCenter Server. If resolving the
problem with the domain controller is not possible, you can restart vCenter Server by removing the
vCenter Server system from the domain and isolating the system from its current Linked Mode group.
n The DNS name of the machine must match with the actual machine name. Symptoms of machine names
not matching the DNS name are data replication issues, ticket errors when trying to search, and missing
search results from remote instances.
n There is correct order of operations for joining a Linked Mode group.
a Verify that the vCenter Server domain name matches the machine name. If they do not match, change
one or both to make them match.
b Update the URLs to make them compatible with the new domain name and machine name.
If you do not update the URLs, remote instances of vCenter Server cannot reach the vCenter Server
system, because the default vCenter Server URL entries are no longer accurate. See “Configure the
URLs on a Linked Mode vCenter Server System,” on page 82.
If a vCenter Server instance is no longer reachable by remote instances of vCenter Server, the following
symptom might occur:
n Clients logging in to other vCenter Server systems in the group cannot view the information that
belongs to the vCenter Server system on which you changed the domain name because the users
cannot log in to the system.
n Any users that are currently logged in to the vCenter Server system might be disconnected.
n Search queries do not return results from the vCenter Server system.
To resolve this issue, make sure that the Virtualcenter.VimApiUrl key points to the location where the
vSphere Client and SDK clients can access the vCenter Server system, and the
Virtualcenter.VimWebServicesUrl key points to the location where vCenter Server Webservices is
installed. For the Virtualcenter.Instancename key, change the value so that the modified name appears in
the vCenter Server inventory view.
n If you cannot join a vCenter Server instance, you can resolve the problem with the following actions:
n Ensure that the machine is grouped into the correct organizational unit in the corresponding domain
controller.
n When you install vCenter Server, ensure that the logged in user account has administrator privileges
on the machine.
n To resolve trust problems between a machine and the domain controller, remove the machine from
the domain and then add it to the domain again.
VMware, Inc. 85
ESXi Embedded and vCenter Server Setup Guide
n To ensure that the Windows policy cache is updated, run the gpupdate /force command from the
Windows command line. This command performs a group policy update.
n If the local host cannot reach the remote host during a join operation, verify the following:
n Remote vCenter Server IP address or fully qualified domain name is correct.
n LDAP port on the remote vCenter Server is correct.
n VMwareVCMSDS service is running.
n Make sure your Windows and network-based firewalls are configured to allow Linked Mode.
Incorrect configuration of firewalls can cause licenses and roles to become inconsistent between instances.
Prerequisites
n The Windows version must be an earlier than Windows Server 2008. For Windows Server 2008, Windows
automatically configures the firewall to permit access.
n There must be no network-based firewalls between vCenter Server Linked Mode instances. For
environments with network-based firewalls, see “Configuring Firewall Access by Opening Selected
Ports,” on page 86.
Procedure
7 Click OK.
Incorrect configuration of firewalls can cause licenses and roles to become inconsistent between instances.
Procedure
u Configure Windows RPC ports to generically allow selective ports for machine-to-machine RPC
communication.
86 VMware, Inc.
Install Additional Modules 12
You can install additional modules on the same machine that hosts vCenter Server or on remote machines.
This chapter includes the following topics:
n “Install VMware vCenter Guided Consolidation,” on page 87
n “Install VMware vCenter Update Manager,” on page 88
n “Install VMware vCenter Converter,” on page 89
This procedure describes how to install vCenter Guided Consolidation as an additional module (sometimes
called a plug-in) on the same machine that hosts vCenter Server or on a remote machine.
The VMware vCenter Guided Consolidation service includes the following components:
vCenter Collector This service discovers computers in your network and collects performance
service data. To enable this service, the installer prompts you to enter a user name and
password for an administrative account on the local machine. This account can
be a domain user account specified as DomainName\UserName. The vCenter
Collector service uses port 8181 and 8182, by default.
Prerequisites
Before you install vCenter Guided Consolidation, download the software installer and install
vCenter Server 4.0 on the local machine or on a machine that is reachable by the local machine.
Procedure
1 In the software installer directory, double-click the autorun.exe file at C:\<vc-installer location>\.
5 Select I agree to the terms in the license agreement and click Next.
6 Accept the default installation location, or click Change to select a different location, and click Next.
VMware, Inc. 87
ESXi Embedded and vCenter Server Setup Guide
8 Enter the port numbers that you want to use or accept the default port numbers and click Next.
10 Enter the port number that the vCenter Server system uses for secure HTTP (HTTPS) communication.
11 Enter the user name and password for the vCenter Server system and click Next.
The user account must have extension registration privileges on the vCenter Server system.
12 Select the server identity from the drop-down menu and click Next.
This procedure describes how to install vCenter Update Manager as an additional module (sometimes called
a plug-in) on the same machine that hosts vCenter Server or on a remote machine.
Prerequisites
Before you install vCenter Update Manager, download the software installer and install vCenter Server 4.0 on
the local machine or on a machine that is reachable by the local machine.
vCenter Update Manager requires a supported database. The database requirements are the same as vCenter
Server, except that DB2 is not supported. You can use a supported database that is configured to work with
vCenter Update Manager, or you can install the Microsoft SQL Server 2005 Express database that is bundled
with vCenter Update Manager. vCenter Update Manager can use the same database as vCenter Server, but
VMware recommends that you have separate databases for vCenter Server and vCenter Update Manager.
Procedure
1 In the software installer directory, double-click the autorun.exe file at C:\<vc-installer location>\.
5 Select I agree to the terms in the license agreement and click Next.
88 VMware, Inc.
Chapter 12 Install Additional Modules
6 Enter the connection information for the vCenter Server system to which vCenter Update Manager will
be an extension.
a Enter the IP address. By default, the IP address is that of the local host.
b Enter the port number that the vCenter Server system is configured to use for HTTP. By default,
vCenter Server uses port 80.
c Enter the user name and password for the vCenter Server system.
7 Choose the type of database that you want to use for vCenter Update Manager.
n To use the bundled database, click Install a Microsoft SQL Server 2005 Express instance and click
Next.
This database is suitable for small deployments of up to 5 hosts and 50 virtual machines.
n To use an existing database, click Use an existing supported database, select your database from the
list of available DSNs, and click Next.
8 If you chose to use an existing database, enter the user name and password for the DSN and click Next.
If your database is a local SQL Server database using Microsoft Windows NT authentication, leave the
user name and password fields blank.
9 Select the fully qualified domain name or IP address to identify this instance of vCenter Update Manager
on the network.
Make sure that the fully qualified domain name is accessible by the vCenter Server system and by all the
ESX/ESXi hosts managed by the vCenter Server system.
10 Enter the port numbers that you want to use or accept the default port numbers.
11 (Optional) Select Yes, I have an Internet connection, and I want to configure proxy settings now.
12 Click Next.
If the local machine has proxy settings configured, the installer uses these settings by default.
14 (Optional) Select Authenticate proxy using the credentials below, and enter the user name and password
to use for authentication.
15 Accept the default installation location or click Change to select a different location.
16 Accept the default location for patch downloads or click Change to select a different location, and click
Next.
What to do next
Install the Update Manager client plug-in. See the vCenter Update Manager Administration Guide.
This procedure describes how to install vCenter Converter as an additional module (sometimes called a plug-
in) on the same machine that hosts vCenter Server or on a remote machine.
VMware, Inc. 89
ESXi Embedded and vCenter Server Setup Guide
Prerequisites
Before you install vCenter Converter, download the software installer and install vCenter Server 4.0 on the
local machine or on a machine that is reachable by the local machine.
Procedure
1 In the software installer directory, double-click the autorun.exe file at C:\<vc-installer location>\.
6 Accept the default installation location and click Next, or click Change to select a different location and
click Next.
8 Enter the connection information for the vCenter Server system to which vCenter Converter will be an
extension.
a Enter the IP address. By default, the IP address is that of the local host.
b Enter the port number that the vCenter Server system is configured to use for secure HTTP (HTTPS).
By default, vCenter Server uses port 443.
c Enter an administrative user name and password for the vCenter Server system.
9 Enter the port numbers that you want to use or accept the default port numbers and click Next.
10 Select the vCenter Server identity from the drop-down menu and click Next.
What to do next
Install the Converter client plug-in. See the vCenter Converter Administration Guide.
90 VMware, Inc.
Managing ESX/ESXi and vCenter
Server Licenses 13
License reporting and management are centralized.
All product licenses are encapsulated in 25-character license keys that you can manage and monitor from
vCenter Server.
Licensing is applicable to ESX/ESXi hosts, vCenter Server, and solutions. However, solutions licensing
management is specific to the solution. For solutions, licensing can be based on processors, asset instances,
virtual machines, and so on. Therefore, the licensing for a solution such as VMware vCenter Site Recovery
Manager might differ entirely from the licensing of another solution. For information about licensing a specific
solution, see the documentation for that solution.
In terms of licensing hosts, if you upgrade all your hosts, you no longer need a license server or host-based
license files.
Each host requires a license and each vCenter Server instance requires a license. You cannot assign multiple
license keys to a host or to a vCenter Server system. You can license multiple hosts with one license key if the
key has enough capacity for more than one host. Likewise, you can license multiple vCenter Server instances
with one license key if the key has a capacity greater than one and you can license multiple solutions with one
license key if the key has a capacity greater than one. When you apply a minor upgrade or patch the ESX/ESXi
or vCenter Server software, you do not need to replace the existing license key with a new one.
If you upgrade the edition of the license (for example, from standard to enterprise), you must replace the
existing license key in the inventory with a new upgraded license key.
VMware, Inc. 91
ESXi Embedded and vCenter Server Setup Guide
n “License a Host When Adding It to the vCenter Server Inventory,” on page 100
n “View Which Features Are Licensed on a Host,” on page 100
n “Set an ESX/ESXi Host to Evaluation Mode,” on page 100
n “Troubleshooting Licensing,” on page 101
Though licensing is applicable to solutions as well as ESX/ESXi hosts and vCenter Server, solutions licensing
management is too variable and, therefore, specific to each solution to be discussed in general terms. For
information about licensing a specific solution, see the documentation for that solution.
IMPORTANT From the ESX/ESXi license perspective, a CPU is a processor with a physical processor in it. When
you purchase a license, you select the edition, the number of CPUs, and the maximum number of cores per
CPU. For example, if you purchase an enterprise license with 100 CPUs, you must also choose the maximum
number of cores per CPU. For example, you might select a maximum of 2 cores per CPU, 6 cores per CPU, or
12 cores per CPU. The choice depends on the type of hardware on which you are installing ESX/ESXi.
92 VMware, Inc.
Chapter 13 Managing ESX/ESXi and vCenter Server Licenses
If you do not have a license server installed and you need one, download the VMware License Server from the
VMware Web site.
The License Server installation requires no downtime. No virtual machines, servers, hosts, or clients need to
be powered off for the installation of the license server.
Procedure
2 In the License Server text box, enter the port number and license server machine name, as in port@host.
3 If you want the hosts and vCenter Server to use the same license server, select the Reconfigure ESX 3
hosts using license servers to use this server check box.
4 Click OK.
VMware, Inc. 93
ESXi Embedded and vCenter Server Setup Guide
After you use the license portal to combine license keys, you must add the new license key to the vCenter Server
license inventory and remove the old license keys.
The examples that follow are specific to ESX/ESXi hosts and might not apply to solutions.
Solutions vary greatly. For example, some solutions are not licensed separately from vCenter Server.
Furthermore, solutions licensing can be based on processors, asset instances, virtual machines, and so on.
Therefore, for license information specific to a solution, see the documentation for that solution.
2 You reinstall vCenter Server and make it part of a different Linked Mode group.
3 The host license keys from the previous group are not transferred to the new group.
94 VMware, Inc.
Chapter 13 Managing ESX/ESXi and vCenter Server Licenses
4 You add hosts that were licensed by the previous vCenter Server group to the new group.
6 The host license keys now belong to two Linked Mode groups. If the total assignment of the key exceeds
the key's capacity, this scenario is not supported and causes your license usage to be out of compliance.
3 You add the host to another vCenter Server instance and choose to retain the license when you perform
the Add Host operation.
4 The host license key belongs to two separate license inventories. If the total assignment of the key exceeds
the key's capacity, this scenario is not supported and causes your license usage to be out of compliance.
4 When you add a license key, the key becomes available to all the vCenter Server systems within the same
Linked Mode group. The license keys are shared, and each system in the group has the same inventory
view, although this might not always seem so because of replication delays.
The examples that follow are specific to ESX/ESXi hosts and might not apply to solutions.
Though licensing is applicable to solutions as well as ESX/ESXi hosts and vCenter Server, solutions licensing
management is too variable and, therefore, specific to each solution to be discussed in general terms. For
information about licensing a specific solution, see the documentation for that solution.
Global.licenses If you have global permission at the root folder, you can view and modify all
licenses in the vCenter Server inventory. This includes other vCenter Server
systems in a Linked Mode group.
Read-only If you have read-only permission on a host, the vCenter Server displays the
first and last five characters of the license key assigned to the host, the features
present in the license, and the expiration date for the license.
If you have neither of these permissions but you can add a host to vCenter Server, you can add a license to the
inventory and assign a license to the host when you perform the add host operation.
VMware, Inc. 95
ESXi Embedded and vCenter Server Setup Guide
Procedure
1 From a vSphere Client session that is connected to a vCenter Server system, click Home > Licensing.
From these report views, you can right-click entities to add, assign, and remove license keys and copy license
information to your clipboard.
Example: Use the Product View to Add and Assign a License Key
In this example, you select the Product view in the Licensing Report window. In the Evaluation Mode list,
right-click a vCenter Server instance and select Change license key. You can then assign a license key that is
in the license inventory or add a new license key and assign it in a single operation.
What to do next
If you have a license with zero assigned capacity, as seen in the Assigned column of the License Report, ask
yourself the following questions:
n Did I forget to assign this license key to an asset?
n Did I forget to remove this license key from the inventory?
96 VMware, Inc.
Chapter 13 Managing ESX/ESXi and vCenter Server Licenses
n You have upgraded your licenses, and you must remove the legacy licenses.
Prerequisites
Procedure
1 From a vSphere Client host that is connected to a vCenter Server system, select Home > Licensing.
5 Enter the license key, enter an optional label for the key, and click OK.
6 Click OK.
Prerequisites
Procedure
1 From a vSphere Client host that is connected to a vCenter Server system, select Home > Licensing.
3 In the Add License Keys text area, enter license keys one per line.
If any of the keys are invalid, an error message lists the invalid keys. You can correct the invalid keys and
try adding them again, or delete them.
6 If you are not ready to assign license keys to assets, click Next through the remaining wizard screens and
click Finish to save your changes.
VMware, Inc. 97
ESXi Embedded and vCenter Server Setup Guide
Though licensing is applicable to solutions as well as ESX/ESXi hosts and vCenter Server, solutions licensing
management is too variable and, therefore, specific to each solution to be discussed in general terms. For
information about licensing a specific solution, see the documentation for that solution.
NOTE After you assign a license to a host, the software might update the license report before the license
assignment operation is complete. If the host becomes disconnected immediately after you assign the license,
the license report might not accurately reflect the host license state. The report might show the host as licensed,
even though the license assignment operation is not yet complete. When the host is reconnected to a
vCenter Server system, the license assignment operation continues, and the host becomes licensed as shown
in the report.
Procedure
1 From a vSphere Client session that is connected to a vCenter Server system, select Home > Licensing.
4 Click the ESX, vCenter Server , or Solutions tab to display the available assets.
7 In the Product window, select an appropriate license key and click Next.
The capacity of the license key must be greater than or equal to the sum of the asset CPUs.
8 If you are not ready to remove any license keys, click Next to skip the Remove License Keys page and
click Finish to save your changes.
98 VMware, Inc.
Chapter 13 Managing ESX/ESXi and vCenter Server Licenses
Procedure
1 From a vSphere Client host that is connected to a vCenter Server system, select Home > Licensing.
4 In the Save As dialog box, select a folder, a filename, and a format for the exported license data and click
Save.
Procedure
3 Click Edit.
VMware, Inc. 99
ESXi Embedded and vCenter Server Setup Guide
5 Click OK.
Prerequisites
You must have a communication channel through a firewall before adding a host.
Procedure
2 Expand the inventory as needed and click the appropriate datacenter, folder, or cluster.
4 When prompted by the Add Host wizard, assign an existing vSphere license key or add a new vSphere
license key.
If you try to configure features that are not included in the host license, the vSphere Client displays an error
message.
Procedure
The Licensed Features window displays the list of features that you can configure on the host.
Procedure
Troubleshooting Licensing
These topics provide guidelines for troubleshooting your license setup for environments with only ESX
4.0/ESXi 4.0 hosts and environments that have a mixture of ESX 4.0/ESXi 4.0 and legacy ESX 3.x/ESXi 3.5 hosts.
If you cannot resolve the problem, contact VMware for support as follows:
n If you have difficulties in configuring licensed features, file a support request at
http://www.vmware.com/support.
n To license vCenter Server, you must apply a vCenter Server license key.
n To license ESX/ESXi, you must apply a vSphere license key.
n If you downgrade your license from evaluation mode to a license that does not support the features that
you configured while using evaluation mode, the features might stop working without warning.
n If a licensing-related error message appears when you try to configure a feature, check the licensed features
on the host and on the vCenter Server system to make sure that the host or vCenter Server system is
licensed to use the feature that you are trying to configure.
n If all the hosts in a vCenter Server system inventory become disconnected, this might be because the
vCenter Server license is expired or the 60-day evaluation period has expired.
n If you cannot power on the virtual machines that reside on a host, this might be because the host license
is expired or the 60-day evaluation period is expired.
n If an ESX/ESXi host is managed by a vCenter Server system, changes made to the host license via direct
connection to the host do not persist, because the changes are overwritten by the license key assigned via
vCenter Server. See “About Overriding the Host License Configuration,” on page 102.
n If vCenter Server is managing ESX 3.x/ESXi 3.5 hosts, vCenter Server must check out vCenter Server Agent
licenses from a license server. If vCenter Server is having trouble communicating with your license server,
do the following:
n Check that the license server Microsoft Windows service is running.
n Check that the license server is listening.
n Check the license server status.
If your license server is operating properly, you might have a problem with your license file.
If your license server is working correctly and your license file is correct, check that you correctly
configured centralized or single-host licensing, as appropriate to your environment.
For detailed troubleshooting and configuration instructions, see the licensing documentation in the
Installation Guide or the Setup Guide for VMware Infrastructure 3.
Applying Licenses
If you cannot apply a license to an asset, the license might not match the currently configured features and
resources. When you assign a license to an asset, the license must be compatible with all the configured
resources and features.
For example, suppose you add 10 ESX hosts to the vCenter Server inventory during the evaluation period.
After the evaluation period expires, you try to assign a Foundation edition license to a vCenter Server system.
The assignment operation fails because the Foundation edition allows a vCenter Server system to manage up
to three hosts only. To correct this issue, you can upgrade the edition or you can remove seven hosts from the
inventory.
As another example, suppose that you configure VMotion and DRS on a cluster of Enterprise edition hosts.
Later, you try to assign Standard license keys to the hosts. This operation fails because the Standard edition
does not include VMotion and DRS. You must assign Enterprise licenses to the ESX hosts or disable VMotion
and DRS. For detailed information about how to disable features, see the VMware Knowledge Base.
Also, make sure you are applying the correct license key, as follows:
n To license vCenter Server assets, you must apply a vCenter Server license key.
n To license ESX/ESXi assets, you must apply a vSphere license key.
If you use the Configuration > Licensed Features > Edit operation, the host license configuration is overridden
by any license assignment operation that you perform in vCenter Server.
License Expiration
Upon license expiration, the vCenter Server software and the ESX/ESXi software continue to run, but certain
operations stop working.
If a vCenter Server license expires, the managed hosts become disconnected from the vCenter Server inventory,
and you cannot add hosts to the inventory. The hosts and the virtual machines on the hosts continue to run.
By using the vSphere Client to connect directly to the host, you can power on or reset the virtual machines.
After you assign a valid vCenter Server license, you can reconnect all the hosts at once as follows:
1 From the vCenter Server inventory, select the datacenter.
If an ESX/ESXi host license expires, the virtual machines that reside on the host continue to run, but you cannot
power on the virtual machines or reset them.
Without a license, you are able to perform some operations, but you cannot power on or reset your virtual
machines. All hosts are disconnected from the vCenter Server system if the evaluation period expires before
you assign a license to the vCenter Server system. Any single ESX/ESXi host is disconnected from the
vCenter Server system if the ESX/ESXi evaluation period expires before you assign a license to the host.
When you switch your vCenter Server system and ESX from evaluation mode to licensed mode, consider the
following:
n If a vCenter Server system is managing VMware Infrastructure 3 hosts (for example, ESX 3.x or ESXi 3.5),
the vCenter Server system must have access to a license server. You can download the VMware License
Server from the VMware Web site.
n To license vCenter Server, you must apply a vCenter Server license key.
n To license ESX/ESXi, you must apply a vSphere license key.
n When you assign a license to a machine on which a VMware vSphere component is installed, the license
must be compatible with all resources and features that you configure during the evaluation period.
For example, suppose you add 10 ESX hosts to the vCenter Server system inventory during the evaluation
period. After the evaluation period expires, you try to assign an edition license that limits the number of
hosts that can be managed by a vCenter Server system. The assignment operation fails because the edition
allows a vCenter Server system to manage fewer than 10 hosts. To correct this issue, you can upgrade your
license key to a higher edition or you can remove hosts from the inventory.
As another example, if you configure a cluster of ESX hosts to use Fault Tolerance and DRS during the
evaluation period, you can only assign a license that allows the use of those features. Hence, the assignment
of a higher edition license succeeds. To assign a lower edition license, you must first disable Fault Tolerance
and DRS.