Vsphere Esxi Vcenter Server 50 Virtual Machine Admin Guide
Vsphere Esxi Vcenter Server 50 Virtual Machine Admin Guide
This document supports the version of each product listed and supports all subsequent versions until the document is replaced by a new edition. To check for more recent editions of this document, see http://www.vmware.com/support/pubs.
EN-000523-01
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 20092011 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.
Contents
2 About Provisioning Virtual Machines 17 3 Deploying Virtual Machines in the vSphere Web Client 19
Deploy a Virtual Machine from a Template in the vSphere Web Client 19 Create a Virtual Machine without a Template or Clone in the vSphere Web Client Clone a Virtual Machine in the vSphere Web Client 26
22
Start the Virtual Machine Creation Process in the vSphere Client 31 Select a Configuration Option for the New Virtual Machine in the vSphere Client Enter a Name and Location for the Virtual Machine in the vSphere Client 33 Select a Host or Cluster in the vSphere Client 33 Select a Resource Pool in the vSphere Client 34 Select a Datastore in the vSphere Client 34 Select a Virtual Machine Version in the vSphere Client 35 Select an Operating System in the vSphere Client 35 Select the Number of Virtual CPUs in the vSphere Client 36 Configure Virtual Memory in the vSphere Client 36 Configure Networks in the vSphere Client 37 Select a SCSI Controller in the vSphere Client 38 Selecting a Virtual Disk Type 38 Complete Virtual Machine Creation in the vSphere Client 42 Installing a Guest Operating System 42
32
Clone a Virtual Machine in the vSphere Client 46 Create a Scheduled Task to Clone a Virtual Machine in the vSphere Client Create a Template in the vSphere Client 49
48
VMware, Inc.
Deploy a Virtual Machine from a Template in the vSphere Client 52 Change Template Software or Virtual Machine Configuration 55 Change Template Name in the vSphere Client 55 Deleting Templates 55 Convert a Template to a Virtual Machine in the vSphere Client 57 Customizing Guest Operating Systems 57
About OVF 71 Deploy an OVF Template 72 Browse VMware Virtual Appliance Marketplace 73 Export an OVF Template 74
Install the Microsoft Sysprep Tool from a Microsoft Web Site 77 Install the Microsoft Sysprep Tool from the Windows Operating System CD 78
Virtual Machine Hardware, Options, and Resources Available to vSphere Virtual Machines 82 Virtual Machine Hardware Versions 85 Determine the Hardware Version of a Virtual Machine in the vSphere Web Client 86 Locate the Hardware Version of a Virtual Machine in the vSphere Client 87 Change the Virtual Machine Name in the vSphere Web Client 87 Change the Virtual Machine Name in the vSphere Client 87 View the Virtual Machine Configuration File Location in the vSphere Web Client 88 View the Virtual Machine Configuration File Location in the vSphere Client 88 Edit Configuration File Parameters in the vSphere Web Client 88 Edit Configuration File Parameters in the vSphere Client 89 Change the Virtual Machine Console Options for Remote Users in the vSphere Web Client 90 Change the Configured Guest Operating System in the vSphere Client 90 Configure Virtual Machines to Automatically Upgrade VMware Tools 91 Virtual CPU Configuration 92 Virtual Memory Configuration 104 Network Virtual Machine Configuration 111 Parallel and Serial Port Configuration 115 Virtual Disk Configuration 125 Understanding Virtual Machine Storage Profiles 135 SCSI Controller Configuration 136 Other Virtual Machine Device Configuration 140 Configuring vServices 152 USB Configuration from an ESXi Host to a Virtual Machine 153 USB Configuration from a Client Computer to a Virtual Machine in the vSphere Web Client 163 USB Configuration from a Client Computer to a Virtual Machine in the vSphere Client 168 Cannot Copy Data From an ESXi Host to a USB Device That Is Connected to the Host 174 Add a Shared Smart Card Reader to Virtual Machines in the vSphere Client 174 Add a Shared Smart Card Reader to Virtual Machines in the vSphere Web Client 175 Manage Power Management Settings for a Virtual Machine 175 Configure the Virtual Machine Power States 176
VMware, Inc.
Contents
Delay the Boot Sequence in the vSphere Web Client 178 Delay the Boot Sequence in the vSphere Client 178 Enable Virtual Machine Logging in the vSphere Web Client 179 Enable Logging in the vSphere Client 179 Disable Virtual Machine Acceleration in the vSphere Web Client 179 Disable Acceleration in the vSphere Client 180 Configure Virtual Machine Debugging and Statistics in the vSphere Web Client Configure Debugging and Statistics in the vSphere Client 181
180
Edit Virtual Machine Startup and Shutdown Settings 207 Install the Client Integration Plug-In in the vSphere Web Client 208 Open a Virtual Machine Console in the vSphere Web Client 209 Open a Console to a Virtual Machine 209 Adding and Removing Virtual Machines 210 Using Snapshots To Manage Virtual Machines 211 Migrating Virtual Machines 225
VMware, Inc.
VMware, Inc.
vSphere Virtual Machine Administration describes how to create, configure, and manage virtual machines in the VMware vSphere environment. In addition, this information provides introductions to the tasks that you can do within the system as well as cross-references to the information that describes the tasks. This information focuses on managing virtual machines in the VMware vSphere Web Client and the VMware vSphere Client and includes the following information.
n n n n n n n
Creating and deploying virtual machines Working with templates and clones Deploying OVF templates Configuring virtual machine hardware, options, and resources Managing multitiered applications with VMware vSphere vApp Monitoring solutions with the vCenter Solution Manager Managing virtual machines, including migration with VMware vSphere vMotion and using snapshots
vSphere Virtual Machine Administration covers Vmware ESXi and VMware vCenter Server.
Intended Audience
This information is written for experienced Windows or Linux system administrators who are familiar with virtualization.
VMware, Inc.
VMware, Inc.
Updated Information
This vSphere Virtual Machine Administration documentation is updated with each release of the product or when necessary. This table provides the update history of the vSphere Virtual Machine Administration documentation.
VMware, Inc.
Revision EN-000523-01
Description
n n n n
n n n n n n n n n n n n
n n n n
The topic Connect USB Devices to an ESXi Host, on page 157 clarifies that the ESXi host must be shut down if you are adding USB CD/DVD-ROM devices to the host. The topic Install the Microsoft Sysprep Tool from the Windows Operating System CD, on page 78 includes the Sysprep file location for vCenter Server Virtual Appliance. The topic Install the Microsoft Sysprep Tool from a Microsoft Web Site, on page 77 includes the Sysprep file location for vCenter Server Virtual Appliance. The topic Configure a Script to Generate Computer Names and IP Addresses During Guest Operating System Customization in the vSphere Client, on page 58 provides instructions for using a name-ipapp algorithm to create a custom application for vCenter Server to use to generate computer names and IP addresses during guest operating system customization. The topic Change the Floppy Drive Configuration in the vSphere Web Client, on page 144 clarifies that connecting virtual floppy drives to a floppy drive on a host is not supported. The topic Change the Floppy Drive Configuration in the vSphere Client, on page 145 clarifies that connecting virtual floppy drives to a floppy drive on a host is not supported. The topic Add a Floppy Drive to a Virtual Machine in the vSphere Web Client, on page 146 clarifies that connecting virtual floppy drives to a floppy drive on a host is not supported. The topic Add a Floppy Drive to a Virtual Machine in the vSphere Client, on page 146 clarifies that connecting virtual floppy drives to a floppy drive on a host is not supported. The new topic Adding a Firewall Rule Set for Serial Port Network Connections, on page 116 provides instructions for changing firewall settings for serial port network connections. The topic Change the Serial Port Configuration in the vSphere Client, on page 118 includes a prerequisite to change the firewall rule set for serial port network connections. The topic Using Serial Ports with vSphere Virtual Machines, on page 115 includes a prerequisite to change the firewall rule set for serial port network connections. The topic Add a Serial Port to a Virtual Machine in the vSphere Web Client, on page 119 includes a prerequisite to change the firewall rule set for serial port network connections. The topic Add a Serial Port to a Virtual Machine in the vSphere Client, on page 121 includes a prerequisite to change the firewall rule set for serial port network connections. The topic Customize Windows During Cloning or Deployment in the vSphere Client, on page 59 includes information about resetting the Windows 2008 administrator password after customization. The topic Create a Customization Specification for Windows in the vSphere Client, on page 64 includes information about resetting the Windows 2008 administrator password after customization. The topic Add USB Devices From a Client Computer to a Virtual Machine in the vSphere Web Client, on page 166 clarifies that the Client Integration Plug-in must be installed before you add USB devices to a host. The topic Using PXE with Virtual Machines, on page 43 includes a link to the VMware Guest Operating System Installation. The topic Guest Operating System Customization Requirements, on page 57 includes updated information about accessing the VMware Compatibility Guide online tool. The topic Restoring Snapshots, on page 219 now clarifies the results of a restore operation. The topic Virtual Machine Hardware, Options, and Resources Available to vSphere Virtual Machines, on page 82 table includes chipset information.
EN-000523-00
Initial release.
10
VMware, Inc.
This information introduces the concept of virtual machines and how they function in the infrastructure environment with vSphere. You will find information about what constitutes a virtual machine and the features available for managing them. This chapter includes the following topics:
n n n n n n n
What Is a Virtual Machine?, on page 11 Virtual Machines and the Virtual Infrastructure, on page 12 Virtual Machine Lifecycle, on page 13 Virtual Machine Components, on page 13 Virtual Machine Options and Resources, on page 13 Where to Go From Here, on page 14 vSphere Client and vSphere Web Client, on page 15
VMware, Inc.
11
12
VMware, Inc.
VMware, Inc.
13
All recent operating systems provide support for virtual memory, allowing software to use more memory than the machine physically has. Similarly, the ESXi hypervisor provides support for overcommitting virtual machine memory, where the amount of guest memory configured for all virtual machines might be larger than the amount of the host's physical memory. You can add virtual disks and add more space to existing disks, even when the virtual machine is running. You can also change the device node and allocate shares of disk bandwidth to the virtual machine. VMware virtual machines have the following options: General Options View or modify the virtual machine name, check the location of the configuration file and the working location of the virtual machine, or change the guest operating system type. Enable or disable vApp functionality. When vApp is enabled, you can edit and configure an IP allocation policy and other configurations particular to vApps. Manage the power controls for the virtual machine and run VMware Tools scripts. You can also upgrade VMware Tools during power cycling and synchronize guest time with the host. Disable acceleration and enable logging, debugging, and statistics. You can also add configuration parameters. Manage guest power options. Suspend the virtual machine or leave the virtual machine powered on when you put the guest operating system into standby. Hide or expose the NX/XD flag. Hiding the NX/XD flag increases vMotion compatibility between hosts. Enable or disable CPU and memory hotplug. If the guest operating system supports this option, you can add Memory or CPU resources to a virtual machine while the virtual machine is running. You can disable Memory or CPU hotplug to avoid adding memory or CPUs while the virtual machine is running. Memory hotplug is supported on all 64 bit operating systems. Set the boot delay when powering on virtual machines or to force BIOS setup and configure failed boot recovery. Control virtual machine access to LUNs on a per-virtual machine basis. N-port ID virtualization (NPIV) provides the ability to share a single physical Fibre Channel HBA port among multiple virtual ports, each with unique identifiers.
14
VMware, Inc.
Locally installed application. Windows operating system only. Can connect to vCenter Server or directly to hosts. Full range of administrative functionality.
Web application. Cross platform. Can connect to only vCenter Server. Subset of full functionality, focused on virtual machine deployment and basic monitoring functions. Cannot configure hosts, clusters, networks, datastores, or datastore clusters. Extensible plug-in-based architecture.
Users: Virtual infrastructure administrators, help desk, network operations center operators, virtual machine owners.
The vSphere Client uses the VMware API to access vCenter Server. After the user is authenticated, a session starts in vCenter Server, and the user sees the resources and virtual machines that are assigned to the user. For virtual machine console access, the vSphere Client first uses the VMware API to obtain the virtual machine location from vCenter Server. The vSphere Client then connects to the appropriate host and provides access to the virtual machine console. Users can use the vSphere Web Client to access vCenter Server through a Web browser. The vSphere Web Client uses the VMware API to mediate the communication between the browser and the vCenter Server.
VMware, Inc.
15
16
VMware, Inc.
VMware provides several methods to provision vSphere virtual machines. The optimal method for your environment depends on factors such as the size and type of your infrastructure and the goals that you are trying to achieve. Create a single virtual machine if no other virtual machines in your environment have the requirements you are looking for, such as a particular operating system or hardware configuration. For example, you might need a virtual machine that is configured only for testing purposes. You can also create a single virtual machine and install an operating system on it, then use that virtual machine as a template to clone other virtual machines from. See Create a Virtual Machine without a Template or Clone in the vSphere Web Client, on page 22 or Chapter 4, Creating a Virtual Machine in the vSphere Client, on page 31. Deploy and export virtual machines, virtual appliances, and vApps stored in Open Virtual Machine Format (OVF) to use a preconfigured virtual machine. A virtual appliance is a prebuilt virtual machine that typically has an operating system and other software already installed. You can deploy virtual machines from local file systems, such as local disks (such as C:), removable media (such as CDs or USB keychain drives), and shared network drives. See Chapter 6, Deploying OVF Templates, on page 71. Create a template to deploy multiple virtual machines from. A template is a master copy of a virtual machine that you can use to create and provision virtual machines. Templates can be a real time saver. If you have a virtual machine that you want to clone frequently, make that virtual machine a template. See Deploy a Virtual Machine from a Template in the vSphere Web Client, on page 19 or Chapter 5, Working with Templates and Clones in the vSphere Client, on page 45. Cloning a virtual machine can save time if you are deploying many similar virtual machines. You can create, configure, and install software on a single virtual machine and clone it multiple times, rather than creating and configuring each virtual machine individually. See Clone a Virtual Machine in the vSphere Web Client, on page 26 or Chapter 5, Working with Templates and Clones in the vSphere Client, on page 45.
VMware, Inc.
17
18
VMware, Inc.
To deploy virtual machines in the vCenter Server inventory, you can deploy from a template, create a virtual machine, or clone an existing virtual machine. This chapter includes the following topics:
n n n
Deploy a Virtual Machine from a Template in the vSphere Web Client, on page 19 Create a Virtual Machine without a Template or Clone in the vSphere Web Client, on page 22 Clone a Virtual Machine in the vSphere Web Client, on page 26
Virtual machine .Inventory.Create from existing on the datacenter or virtual machine folder. Virtual machine.Configuration.Add new disk on the datacenter or virtual machine folder. Virtual machine.Provisioning.Deploy template on the template or template folder. Resource.Assign virtual machine to resource pool on the destination host, cluster, or resource pool. Datastore.Allocate space on the destination datastore or datastore folder. Network.Assign network on the network to which the virtual machine will be assigned. Virtual machine.Provisioning.Customize on the template or template folder if you are customizing the guest operating system. Virtual machine.Provisioning.Read customization specifications on the root vCenter Server if you are customizing the guest operating system.
Procedure 1 2 Select to Deploy from a Template on page 20 You can deploy a virtual machine from a template to create a virtual machine that is a copy of the template. Select a Template on page 20 You can create a virtual machine from a template.
VMware, Inc.
19
Select the Virtual Machine Name and Folder on page 21 When you deploy a virtual machine to the vCenter Server inventory, you name it and select the folder where it will be located.
Select a Resource Pool on page 21 When you deploy a virtual machine, select the host, cluster, vApp, or resource pool in which the virtual machine will run.
Select a Datastore on page 21 When you add a virtual machine to the vCenter Server inventory, you must select the datastore on which to create the virtual machine's disks.
Customize the Guest Operating System on page 22 When you clone a virtual machine or deploy a virtual machine from a template, you can customize the guest operating system of the virtual machine to change properties such as the computer name, network settings, and license settings.
7 8
Customize Virtual Machine Hardware in the vSphere Web Client on page 22 Before you deploy a new virtual machine, you have the option to configure the virtual hardware. Finish Virtual Machine Creation on page 22 Before you deploy the virtual machine, you can review the virtual machine settings.
Select a Template
You can create a virtual machine from a template. Procedure 1 2 3 4 5 6 Browse or search to locate a template. Select the template. (Optional) Select Customize the operating system to customize the guest operating system of the virtual machine. (Optional) Select Customize this virtual machine's hardware to configure the virtual machine's hardware before deployment. (Optional) Select Power On Virtual Machine after creation to power on the virtual machine after creation is complete. Click Next.
20
VMware, Inc.
Select a Datastore
When you add a virtual machine to the vCenter Server inventory, you must select the datastore on which to create the virtual machine's disks. Procedure
u
Select the datastore location where you want to store the virtual machine files.
Option Store all virtual machine files in the same location on a datastore. Store all virtual machine files in the same datastore cluster. Action Select a datastore and click Next. a b Select a datastore cluster. (Optional) If you do not want to use Storage DRS with this virtual machine, select Disable Storage DRS for this virtual machine and select a datastore within the datastore cluster. Click Next. Click Advanced. For the virtual machine configuration file and for each virtual disk, click Browse and select a datastore or datastore cluster. (Optional) If you selected a datastore cluster and do not want to use Storage DRS with this virtual machine, select Disable Storage DRS for this virtual machine and select a datastore within the datastore cluster. Click OK. Click Next.
d e
VMware, Inc.
21
Select a customization specification from the Guest OS Customization drop-down menu and click Next.
Create a Virtual Machine without a Template or Clone in the vSphere Web Client
When you create a virtual machine without a template or clone, you configure the virtual hardware, including processors, memory, and virtual disks. Prerequisites You must have the following privileges to create a virtual machine:
n n
Virtual machine.Inventory.Create new on the destination folder or datacenter. Virtual machine.Configuration.Add new disk on the destination folder or datacenter, if you are adding a new disk. Virtual machine.Configuration.Add existing disk on the destination folder or datacenter, if you are adding an existing disk. Virtual machine.Configuration.Raw device on the destination folder or datacenter, if you are using a RDM or SCSI pass-through device.
22
VMware, Inc.
Virtual machine.Configuration.Host USB device on the destination folder or datacenter, if you are attaching a virtual USB device backed by a host USB device. Virtual machine.Configuration.Advanced on the destination folder or datacenter, if you are configuring advanced virtual machine settings. Virtual machine.Configuration.Swapfile placement on the destination folder or datacenter, if you are configuring swapfile placement. Virtual machine.Configuration.Disk change tracking on the destination folder or datacenter, if you are enabling change tracking on the virtual machine's disks. Resource.Assign virtual machine to resource pool on the destination host, cluster, or resource pool. Datastore.Allocate space on the destination datastore or datastore folder. Network.Assign network on the network that the virtual machine will be assigned to.
n n n
Procedure 1 Select to Create a Virtual Machine without a Template or Clone on page 23 When you create a virtual machine without a template or clone, you configure the processors, memory, disks, and other virtual hardware. 2 Select the Virtual Machine Name and Folder on page 24 When you deploy a virtual machine to the vCenter Server inventory, you name it and select the folder where it will be located. 3 Select a Resource Pool on page 24 When you deploy a virtual machine, select the host, cluster, vApp, or resource pool in which the virtual machine will run. 4 Select a Datastore on page 24 When you add a virtual machine to the vCenter Server inventory, you must select the datastore on which to create the virtual machine's disks. 5 Select a Virtual Machine Version on page 24 If the host or cluster where you place the virtual machine supports more than one VMware virtual machine version, you can select a version for the virtual machine. 6 Select a Guest Operating System on page 25 The guest operating system that you select affects the supported devices and number of virtual CPUs available for the virtual machine. 7 8 Customize Virtual Machine Hardware in the vSphere Web Client on page 25 Before you deploy a new virtual machine, you have the option to configure the virtual hardware. Finish Virtual Machine Creation on page 26 Before you deploy the virtual machine, you can review the virtual machine settings.
VMware, Inc.
23
Select a Datastore
When you add a virtual machine to the vCenter Server inventory, you must select the datastore on which to create the virtual machine's disks. Procedure
u
Select the datastore location where you want to store the virtual machine files.
Option Store all virtual machine files in the same location on a datastore. Store all virtual machine files in the same datastore cluster. Action Select a datastore and click Next. a b Select a datastore cluster. (Optional) If you do not want to use Storage DRS with this virtual machine, select Disable Storage DRS for this virtual machine and select a datastore within the datastore cluster. Click Next.
24
VMware, Inc.
Procedure
u
VMware, Inc.
25
Virtual machine.Provisioning.Clone virtual machine on the virtual machine you are cloning. Virtual machine .Inventory.Create from existing on the datacenter or virtual machine folder. Virtual machine.Configuration.Add new disk on the datacenter or virtual machine folder. Resource.Assign virtual machine to resource pool on the destination host, cluster, or resource pool. Datastore.Allocate space on the destination datastore or datastore folder. Network.Assign network on the network to which the virtual machine will be assigned. Virtual machine.Provisioning.Customize on the virtual machine or virtual machine folder if you are customizing the guest operating system. Virtual machine.Provisioning.Read customization specifications on the root vCenter Server if you are customizing the guest operating system.
Procedure 1 2 3 Select to Clone a Virtual Machine on page 27 When you clone a virtual machine, you create a copy of an existing virtual machine. Select a Virtual Machine to Clone on page 27 Select the virtual machine to clone. Select the Virtual Machine Name and Folder on page 27 When you deploy a virtual machine to the vCenter Server inventory, you name it and select the folder where it will be located. 4 Select a Resource Pool on page 28 When you deploy a virtual machine, select the host, cluster, vApp, or resource pool in which the virtual machine will run. 5 Select a Datastore on page 28 When you add a virtual machine to the vCenter Server inventory, you must select the datastore on which to create the virtual machine's disks.
26
VMware, Inc.
Customize the Guest Operating System on page 28 When you clone a virtual machine or deploy a virtual machine from a template, you can customize the guest operating system of the virtual machine to change properties such as the computer name, network settings, and license settings.
7 8
Customize Virtual Machine Hardware in the vSphere Web Client on page 29 Before you deploy a new virtual machine, you have the option to configure the virtual hardware. Finish Virtual Machine Creation on page 29 Before you deploy the virtual machine, you can review the virtual machine settings.
VMware, Inc.
27
Select a Datastore
When you add a virtual machine to the vCenter Server inventory, you must select the datastore on which to create the virtual machine's disks. Procedure
u
Select the datastore location where you want to store the virtual machine files.
Option Store all virtual machine files in the same location on a datastore. Store all virtual machine files in the same datastore cluster. Action Select a datastore and click Next. a b Select a datastore cluster. (Optional) If you do not want to use Storage DRS with this virtual machine, select Disable Storage DRS for this virtual machine and select a datastore within the datastore cluster. Click Next. Click Advanced. For the virtual machine configuration file and for each virtual disk, click Browse and select a datastore or datastore cluster. (Optional) If you selected a datastore cluster and do not want to use Storage DRS with this virtual machine, select Disable Storage DRS for this virtual machine and select a datastore within the datastore cluster. Click OK. Click Next.
d e
Select a customization specification from the Guest OS Customization drop-down menu and click Next.
28
VMware, Inc.
VMware, Inc.
29
30
VMware, Inc.
Virtual machines are the key component in a virtual infrastructure. You can create a single virtual machine to add to the vSphere inventory. When you create a virtual machine, you associate it to a particular datacenter, host, cluster, or resource pool, and a datastore. After you turn on the virtual machine, it consumes resources dynamically as the workload increases, or it returns resources dynamically as the workload decreases. Every virtual machine has virtual devices that provide the same function as physical hardware. A virtual machine gets CPU and memory, access to storage, and network connectivity from the host it runs on. This chapter includes the following topics:
n n n n n n n n n n n n n n n
Start the Virtual Machine Creation Process in the vSphere Client, on page 31 Select a Configuration Option for the New Virtual Machine in the vSphere Client, on page 32 Enter a Name and Location for the Virtual Machine in the vSphere Client, on page 33 Select a Host or Cluster in the vSphere Client, on page 33 Select a Resource Pool in the vSphere Client, on page 34 Select a Datastore in the vSphere Client, on page 34 Select a Virtual Machine Version in the vSphere Client, on page 35 Select an Operating System in the vSphere Client, on page 35 Select the Number of Virtual CPUs in the vSphere Client, on page 36 Configure Virtual Memory in the vSphere Client, on page 36 Configure Networks in the vSphere Client, on page 37 Select a SCSI Controller in the vSphere Client, on page 38 Selecting a Virtual Disk Type, on page 38 Complete Virtual Machine Creation in the vSphere Client, on page 42 Installing a Guest Operating System, on page 42
VMware, Inc.
31
You can create a new virtual machine in a datacenter, host, cluster, resource pool, or virtual machine folder. Prerequisites Verify that you have the following privileges:
n n n
Host.Local operations.Create virtual machine Virtual machine.Inventory.Create new on the destination folder or datacenter. Virtual machine.Configuration.Add new disk on the destination folder or datacenter, if you are adding a new disk. Virtual machine.Configuration.Add existing disk on the destination folder or datacenter, if you are adding an existing disk. Virtual machine.Configuration.Raw device on the destination folder or datacenter, if you are using a RDM or SCSI pass-through device. Virtual Machine.Configuration.Network Resource.Assign virtual machine to resource pool on the destination host, cluster, or resource pool. Datastore.Allocate space on the destination datastore or datastore folder. Network.Assign network on the network that the virtual machine will be assigned to.
n n n n
Procedure 1 2 Display the inventory objects in the vSphere Client by using the Host and Clusters view or the VM and Templates view. Right-click an object and select New > Virtual Machine. The New Virtual Machine wizard opens. What to do next Select a Typical or Custom configuration option in the New Virtual Machine wizard.
Select a Configuration Option for the New Virtual Machine in the vSphere Client
The Typical option shortens the virtual machine creation process by skipping choices that you rarely need to change from their defaults. The Custom option provides more flexibility and choices. Several relationships affect the information that you must provide during virtual machine creation. These relationships include the inventory object on which you place the virtual machine, the customization path option you select, the datastore on which the virtual machine and its files reside, and the host or cluster on which it runs. If you select a Typical configuration, the virtual machine hardware version defaults to that of the host on which you place the virtual machine. If you select a Custom configuration, you can accept the default or select an earlier hardware version. This configuration is useful if maintaining compatibility with an earlier version of an ESX/ESXi host is necessary. Prerequisites For a Typical configuration, verify that you have the following information:
n n n
Virtual machine name and inventory location. Location in which to place the virtual machine (cluster, host, resource pool). Datastore on which to store the virtual machine's files.
32
VMware, Inc.
n n
Guest operating system and version. Parameters for the virtual disk size and provisioning settings.
In addition to the information for a Typical configuration, for a Custom configuration, verify that you have the following information:
n n n n n
Virtual machine version. Number of CPUs and memory size. Number of NICs, network to connect to, and network adapter types. SCSI controller type. Disk type (new disk, existing disk, RDM, or no disk).
Procedure 1 2 On the Configuration page of the New Virtual Machine wizard, select an option for creating the virtual machine. Click Next. The Name and Location page appears. What to do next Select a name and location for the virtual machine.
Enter a Name and Location for the Virtual Machine in the vSphere Client
The name you enter is used as the virtual machines base name in the inventory. It is also used as the name of the virtual machines files. The name can be up to 80 characters long. If you are connected to vCenter Server and have folders in your inventory, names must be unique within the folder. Names are not case-sensitive, so the name my_vm is identical to My_Vm. Prerequisites Verify that you have an appropriate naming strategy in place. Procedure 1 2 3 On the Name and Location page of the New Virtual Machine wizard, type a name. Select a folder or the root of the datacenter. Click Next. The Host / Cluster or the Resource Pool page opens.
VMware, Inc.
33
Click Next. If resource pools are configured on the host, the Resource Pool page opens. Otherwise, the Datastore page opens.
What to do next Select a resource pool or a datastore on which to run the virtual machine.
Procedure 1 2 3 On the Storage page of the New Virtual Machine wizard, select a datastore in which to store the virtual machine files. (Optional) To turn off Storage DRS for the virtual machine, select Disable Storage DRS for this virtual machine. (Optional) Apply a virtual machine storage profile from the VM Storage Profile drop-down menu. Select a datastore that is compatible with the virtual machine storage profile and large enough to hold the virtual machine and all of its virtual disk files. The list of datastores shows which datastores are compatible with the selected virtual machine storage profile.
34
VMware, Inc.
Click Next. If you selected a Typical configuration path, the Guest Operating System page appears. If you selected a Custom configuration path, the Virtual Machine Version page appears.
What to do next Select a guest operating system for the virtual machine.
VMware, Inc.
35
Select an operating system and version from the drop-down menu and click Next. If you selected a Novell NetWare guest operating system, the Memory page opens. If any of the total cores available on the host, the maximum virtual CPUs supported by the virtual machine hardware version, or the maximum supported CPUs on the guest operating system equal 1, the virtual machine CPU count is set to 1 and the Memory page opens.
3 4
If you selected Other (32-bit) or Other (64-bit), enter a name for the operating system in the text box. Click Next.
What to do next You can add memory or CPUs for the virtual machine.
36
VMware, Inc.
The ESXi host version indicates when support began for the increased memory size. For example, the memory size of a version 4 virtual machine running on ESXi 5.0 is restricted to 65,532MB. Procedure 1 On the Memory page of the New Virtual Machine wizard, select a size for the virtual memory. You can use the slider or use the up and down arrows to select the number. To access the predefined default or recommended setting, click the colored triangles on the right-hand side of the memory bar. 2 Click Next. The Network page opens. What to do next Select network adapters for the virtual machine.
VMware, Inc.
37
BusLogic Parallel LSI Logic Parallel LSI Logic SAS VMware Paravirtual
What to do next Select a disk on which to store the guest operating system files and data.
Create a Virtual Disk in the vSphere Client on page 39 When you create a virtual disk, you can specify disk properties such as size, format, clustering features, and more.
Use an Existing Virtual Disk in the vSphere Client on page 40 You can use an existing disk that is configured with an operating system or other virtual machine data. This choice allows you to freely move the virtual hard drive from virtual machine to virtual machine.
38
VMware, Inc.
Add an RDM Disk to a Virtual Machine in the vSphere Client on page 41 You can store virtual machine data directly on a SAN LUN instead of storing it in a virtual disk file. This ability is useful if you are running applications in your virtual machines that must detect the physical characteristics of the storage device. Mapping a SAN LUN allows you to use existing SAN commands to manage storage for the disk.
Thin Provision
Select a location to store the virtual disk files and click Next.
Option Store with the virtual machine Specify a datastore or datastore cluster Description Stores the files with the configuration and other virtual machine files. This option makes file management easier. Stores the file separately from other virtual machine files.
The Advanced Options page opens. 4 Accept the default or select a different virtual device node. In most cases, you can accept the default device node. For a hard disk, a nondefault device node is useful to control the boot order or to have different SCSI controller types. For example, you might want to boot from an LSI Logic controller and share a data disk with another virtual machine using a BusLogic controller with bus sharing turned on.
VMware, Inc.
39
(Optional) To change the way disks are affected by snapshots, click Independent and select an option.
Option Independent - Persistent Description Disks in persistent mode behave like conventional disks on your physical computer. All data written to a disk in persistent mode are written permanently to the disk. Changes to disks in nonpersistent mode are discarded when you power off or reset the virtual machine. With nonpersistent mode, you can restart the virtual machine with a virtual disk in the same state every time. Changes to the disk are written to and read from a redo log file that is deleted when you power off or reset.
Independent - Nonpersistent
Click Next. Your changes are recorded and the Ready to Complete page opens.
What to do next View the selections for your virtual machine on the Ready to Complete page.
Independent - Nonpersistent
Click Next. Your changes are recorded and the Ready to Complete page opens.
40
VMware, Inc.
Virtual
Accept the default or select a different virtual device node. In most cases, you can accept the default device node. For a hard disk, a nondefault device node is useful to control the boot order or to have different SCSI controller types. For example, you might want to boot from an LSI Logic controller and share a data disk with another virtual machine using a BusLogic controller with bus sharing turned on.
VMware, Inc.
41
(Optional) To change the way disks are affected by snapshots, click Independent and select an option.
Option Independent - Persistent Description Disks in persistent mode behave like conventional disks on your physical computer. All data written to a disk in persistent mode are written permanently to the disk. Changes to disks in nonpersistent mode are discarded when you power off or reset the virtual machine. With nonpersistent mode, you can restart the virtual machine with a virtual disk in the same state every time. Changes to the disk are written to and read from a redo log file that is deleted when you power off or reset.
Independent - Nonpersistent
Click Next. Your changes are recorded and the Ready to Complete page opens.
The virtual machine appears in the vSphere Client Inventory view. What to do next Before you can use the new virtual machine, you must partition and format the virtual drive, install a guest operating system, and install VMware Tools. Typically, the operating systems installation program handles partitioning and formatting the virtual drive.
42
VMware, Inc.
Have a virtual disk without operating system software and with enough free disk space to store the intended system software. Have a network adapter connected to the network where the PXE server resides.
For details about guest operating system installation, see the Guest Operating System Installation Guide at http://partnerweb.vmware.com/GOSIG/home.html.
Verify that the installation ISO image is present on a VMFS datastore or network file system (NFS) volume accessible to the ESXi host. Verify that you have the installation instructions that the operating system vendor provides.
Procedure 1 2 Open the vSphere Client and log in to the vCenter Server system or host on which the virtual machine resides. Select an installation method.
Option CD-ROM ISO image Action Insert the installation CD-ROM for your guest operating system into the CDROM drive of your ESXi host. a b c Right-click the virtual machine in the inventory list and select Edit Settings. Click the Hardware tab and select CD/DVD Drive. In the Device Type panel, select Datastore ISO File and browse for the ISO image for your guest operating system.
Right-click the virtual machine and select Power > Power On. A green right arrow appears next to the virtual machine icon in the inventory list.
Follow the installation instructions that the operating system vendor provides.
VMware, Inc.
43
What to do next Install VMware Tools. Installing VMware Tools in the guest operating system is important. Although the guest operating system can run without VMware Tools, you lose important functionality and convenience without them. See the Installing and Configuring VMware Tools documentation.
44
VMware, Inc.
A clone is a copy of a virtual machine. A template is a master copy of a virtual machine that can be used to create many clones. When you clone a virtual machine, you create a copy of the entire virtual machine, including its settings, any configured virtual devices, installed software, and other contents of the virtual machine's disks. You also have the option to use guest operating system customization to change some of the properties of the clone, such as the computer name and networking settings. Cloning a virtual machine can save time if you are deploying many similar virtual machines. You can create, configure, and install software on a single virtual machine, and then clone it multiple times, rather than creating and configuring each virtual machine individually. If you create a virtual machine that you want to clone frequently, make that virtual machine a template. A template is a master copy of a virtual machine that can be used to create and provision virtual machines. Templates cannot be powered on or edited, and are more difficult to alter than ordinary virtual machine. A template offers a more secure way of preserving a virtual machine configuration that you want to deploy many times. When you clone a virtual machine or deploy a virtual machine from a template, the resulting cloned virtual machine is independent of the original virtual machine or template. Changes to the original virtual machine or template are not reflected in the cloned virtual machine, and changes to the cloned virtual machine are not reflected in the original virtual machine or template. This chapter includes the following topics:
n n n n n n n n n
Clone a Virtual Machine in the vSphere Client, on page 46 Create a Scheduled Task to Clone a Virtual Machine in the vSphere Client, on page 48 Create a Template in the vSphere Client, on page 49 Deploy a Virtual Machine from a Template in the vSphere Client, on page 52 Change Template Software or Virtual Machine Configuration, on page 55 Change Template Name in the vSphere Client, on page 55 Deleting Templates, on page 55 Convert a Template to a Virtual Machine in the vSphere Client, on page 57 Customizing Guest Operating Systems, on page 57
VMware, Inc.
45
You must be connected to vCenter Server in order to clone a virtual machine. You cannot clone virtual machines if you connect directly to an ESXi host. To customize the guest operating system of the virtual machine, check that your guest operating system meets the requirements for customization. See Guest Operating System Customization Requirements, on page 57. To use a customization specification, you must first create or import the customization specification. To use a custom script to generate the host name or IP address for the new virtual machine, configure the script. See Configure a Script to Generate Computer Names and IP Addresses During Guest Operating System Customization in the vSphere Client, on page 58.
n n
Procedure 1 2 3 Right-click the virtual machine and select Clone. Enter a virtual machine name, select a location, and click Next. Select a host or cluster on which to run the new virtual machine.
Option Run the virtual machine on a standalone host. Run the virtual machine in a cluster with DRS automatic placement. Run the virtual machine in a cluster without DRS automatic placement. Action Select the host and click Next. Select the cluster and click Next. a b Select the cluster and click Next. Select a host within the cluster and click Next.
Select a resource pool in which to run the virtual machine and click Next.
46
VMware, Inc.
Select the datastore location where you want to store the virtual machine files.
Option Store all virtual machine files in the same location on a datastore. Action a (Optional) Apply a virtual machine storage profile for the virtual machine home files and the virtual disks from the VM Storage Profile drop-down menu. The list of datastores shows which datastores are compatible and which are incompatible with the selected virtual machine storage profile. Select a datastore and click Next. (Optional) Apply a virtual machine storage profile for the virtual machine home files and the virtual disks from the VM Storage Profile drop-down menu. The list of datastores shows which datastores are compatible and which are incompatible with the selected virtual machine storage profile. Select a datastore cluster. (Optional) If you do not want to use Storage DRS with this virtual machine, select Disable Storage DRS for this virtual machine and select a datastore within the datastore cluster. Click Next. Click Advanced. For the virtual machine configuration file and for each virtual disk, click Browse and select a datastore or datastore cluster. (Optional) Apply a virtual machine storage profile from the VM Storage Profile drop-down menu. The list of datastores shows which datastores are compatible and which are incompatible with the selected virtual machine storage profile. (Optional) If you selected a datastore cluster and do not want to use Storage DRS with this virtual machine, select Disable Storage DRS for this virtual machine and select a datastore within the datastore cluster. Click Next.
b c
Select the format for the virtual machine's disks and click Next.
Option Same format as source Thick Provision Lazy Zeroed Action Use the same format as the source virtual machine. Create a virtual disk in a default thick format. Space required for the virtual disk is allocated during creation. Any data remaining on the physical device is not erased during creation, but is zeroed out on demand at a later time on first write from the virtual machine. Create a thick disk that supports clustering features such as Fault Tolerance. Space required for the virtual disk is allocated at creation time. In contrast to the flat format, the data remaining on the physical device is zeroed out during creation. It might take much longer to create disks in this format than to create other types of disks. Use the thin provisioned format. At first, a thin provisioned disk uses only as much datastore space as the disk initially needs. If the thin disk needs more space later, it can grow to the maximum capacity allocated to it.
Thin Provision
VMware, Inc.
47
Review your selections and select whether to power on the virtual machine or edit virtual machine settings.
Option Power on this virtual machine after creation Edit virtual hardware Action Select this option and click Finish. The virtual machine powers on after the deployment task completes. a b Select this option and click Continue. In the Virtual Machine Properties dialog box, make any changes and click OK.
This option appears only when the virtual machine disks are stored on a datastore cluster and Storage DRS is enabled. When you select this option, the Virtual Machine Storage Placement Recommendations dialog box appears when you click Continue. The dialog box lists the datastores in the datastore cluster that are recommended for virtual machine placement. This option appears only when the virtual machine disks are stored on a datastore cluster. This option is selected when you select Edit virtual hardware. You can edit Storage DRS rules on the Options tab of the Virtual Machine Properties dialog box. When you select the Edit Storage DRS rules check box, the Storage DRS rules dialog box appears when you click Continue.
The cloned virtual machine is deployed. You cannot use or edit the virtual machine until the cloning is complete. This might take several minutes if the cloning involves creating a virtual disk. You can cancel the cloning at any point before the customization stage.
48
VMware, Inc.
2 3
From the Home page, click Scheduled Tasks. Select File > New > Scheduled Task, or click New. The Select a Task to Schedule dialog box appears.
Select Clone a virtual machine from the drop-down menu, and click OK. The Clone Virtual Machine wizard appears.
5 6 7 8 9
Select the virtual machine to clone and click Next. Follow the wizard through the same steps as those in the previous task in which you cloned a virtual machine. Enter a name and a task description in the text box. Select the frequency of the task. Select Now or Later. If later, enter the time and date when you want the virtual machine to be deployed, and click Next. To see the calendar, click Later, and click the drop-down arrow to select a date from the calendar. A red circle indicates todays date, and a dark circle indicates the scheduled date.
10
Review the information on the Ready to Complete New Virtual Machine page, and click Finish. Optionally, you can select the check box to power on the new virtual machine after it is created. vCenter Server adds the new task to the scheduled task list and completes it at the designated time. When it is time to perform the task, vCenter Server first verifies that the user who created the task still has permission to complete the task. If the permission levels are not acceptable, vCenter Server sends a message to the log and the task is not performed.
You must be connected to vCenter Server to convert a virtual machine to a template. You cannot create templates if you connect the vSphere Client directly to an ESXi host. Before you convert a virtual machine to a template, select it in the inventory and power it off.
Procedure
u
Right-click the virtual machine and select Template > Convert to Template. vCenter Server marks that virtual machine as a template and displays the task in the Recent Tasks pane.
VMware, Inc.
49
Thin Provision
50
VMware, Inc.
Select the datastore location where you want to store the virtual machine files.
Option Store all virtual machine files in the same location on a datastore. Action a (Optional) Apply a virtual machine storage profile for the virtual machine home files and the virtual disks from the VM Storage Profile drop-down menu. The list of datastores shows which datastores are compatible and which are incompatible with the selected virtual machine storage profile. Select a datastore and click Next. (Optional) Apply a virtual machine storage profile for the virtual machine home files and the virtual disks from the VM Storage Profile drop-down menu. The list of datastores shows which datastores are compatible and which are incompatible with the selected virtual machine storage profile. Select a datastore cluster. (Optional) If you do not want to use Storage DRS with this virtual machine, select Disable Storage DRS for this virtual machine and select a datastore within the datastore cluster. Click Next. Click Advanced. For the virtual machine configuration file and for each virtual disk, click Browse and select a datastore or datastore cluster. (Optional) Apply a virtual machine storage profile from the VM Storage Profile drop-down menu. The list of datastores shows which datastores are compatible and which are incompatible with the selected virtual machine storage profile. (Optional) If you selected a datastore cluster and do not want to use Storage DRS with this virtual machine, select Disable Storage DRS for this virtual machine and select a datastore within the datastore cluster. Click Next.
b c
Click Finish. vCenter Server displays the Tasks inventory panel for reference and adds the cloned template to the list in the information panel.
VMware, Inc.
51
Thin Provision
6 7
Click Next. Review the information for the template and click Finish. You cannot use the new template until the cloning task completes. vCenter Server adds the cloned template to the list in the Virtual Machines tab.
Verify that you are connected to vCenter Server. You cannot work with templates if you connect the vSphere Client directly to an ESXi host. You must be connected to vCenter Server to deploy a virtual machine from a template. You cannot deploy from a template if you connect the vSphere Client directly to an ESXi host. To customize the guest operating system of the virtual machine, check that your guest operating system meets the requirements for customization. See Guest Operating System Customization Requirements, on page 57. To use a customization specification, you must first create or import the customization specification. To use a custom script to generate the host name or IP address for the new virtual machine, configure the script. See Configure a Script to Generate Computer Names and IP Addresses During Guest Operating System Customization in the vSphere Client, on page 58.
n n
Procedure 1 2 Right-click the template, and select Deploy Virtual Machine from this Template. Enter a virtual machine name, select a location, and click Next.
52
VMware, Inc.
4 5
Select a resource pool in which to run the virtual machine and click Next. Select the datastore location where you want to store the virtual machine files.
Option Store all virtual machine files in the same location on a datastore. Action a (Optional) Apply a virtual machine storage profile for the virtual machine home files and the virtual disks from the VM Storage Profile drop-down menu. The list of datastores shows which datastores are compatible and which are incompatible with the selected virtual machine storage profile. Select a datastore and click Next. (Optional) Apply a virtual machine storage profile for the virtual machine home files and the virtual disks from the VM Storage Profile drop-down menu. The list of datastores shows which datastores are compatible and which are incompatible with the selected virtual machine storage profile. Select a datastore cluster. (Optional) If you do not want to use Storage DRS with this virtual machine, select Disable Storage DRS for this virtual machine and select a datastore within the datastore cluster. Click Next. Click Advanced. For the virtual machine configuration file and for each virtual disk, click Browse and select a datastore or datastore cluster. (Optional) Apply a virtual machine storage profile from the VM Storage Profile drop-down menu. The list of datastores shows which datastores are compatible and which are incompatible with the selected virtual machine storage profile. (Optional) If you selected a datastore cluster and do not want to use Storage DRS with this virtual machine, select Disable Storage DRS for this virtual machine and select a datastore within the datastore cluster. Click Next.
b c
Select the format for the virtual machine's disks and click Next.
Option Same format as source Thick Provision Lazy Zeroed Action Use the same format as the source virtual machine. Create a virtual disk in a default thick format. Space required for the virtual disk is allocated during creation. Any data remaining on the physical device is not erased during creation, but is zeroed out on demand at a later time on first write from the virtual machine.
VMware, Inc.
53
Action Create a thick disk that supports clustering features such as Fault Tolerance. Space required for the virtual disk is allocated at creation time. In contrast to the flat format, the data remaining on the physical device is zeroed out during creation. It might take much longer to create disks in this format than to create other types of disks. Use the thin provisioned format. At first, a thin provisioned disk uses only as much datastore space as the disk initially needs. If the thin disk needs more space later, it can grow to the maximum capacity allocated to it.
Thin Provision
Review your selections and select whether to power on the virtual machine or edit virtual machine settings.
Option Power on this virtual machine after creation Edit virtual hardware Action Select this option and click Finish. The virtual machine powers on after the deployment task completes. a b Select this option and click Continue. In the Virtual Machine Properties dialog box, make any changes and click OK.
This option appears only when the virtual machine disks are stored on a datastore cluster and Storage DRS is enabled. When you select this option, the Virtual Machine Storage Placement Recommendations dialog box appears when you click Continue. The dialog box lists the datastores in the datastore cluster that are recommended for virtual machine placement. This option appears only when the virtual machine disks are stored on a datastore cluster. This option is selected when you select Edit virtual hardware. You can edit Storage DRS rules on the Options tab of the Virtual Machine Properties dialog box. When you select the Edit Storage DRS rules check box, the Storage DRS rules dialog box appears when you click Continue.
The virtual machine is deployed. You cannot use or edit the virtual machine until the deployment is complete. This might take several minutes if the deployment involves creating a virtual disk.
54
VMware, Inc.
Deleting Templates
You can delete a template by removing it from the inventory or deleting the template from the disk. If you remove the template from the inventory, it remains on the disk and can be reregistered with vCenter Server to restore it to the inventory.
n
Remove Templates from the Inventory in the vSphere Client on page 56 If you remove a template from the inventory, it is unregistered from the vCenter Server inventory, but it is not removed from the datastore.
Delete a Template from the Disk in the vSphere Client on page 56 Deleted templates are permanently removed from the system. Reregister Templates in the vSphere Client on page 56 Templates can become unregistered from the vCenter Server if they are removed from the inventory or if the hosts with which they are associated are removed from the vCenter Server and then readded.
VMware, Inc.
55
The template is registered to the host. You can view the template from the hosts Virtual Machine tab.
56
VMware, Inc.
If the template resides on a legacy VMFS2 datastore, you must select the host on which the template was created as the destination for the virtual machine. 3 4 Select a resource pool in which to run the virtual machine and click Next. Review your selections and click Finish.
VMware, Inc.
57
Windows Requirements
Customization of Windows guest operating systems requires the following conditions:
n
Microsoft Sysprep tools must be installed on the vCenter Server system. See Chapter 7, Installing the Microsoft Sysprep Tool, on page 77. The ESXi host that the virtual machine is running on must be 3.5 or later.
Linux Requirements
Customization of Linux guest operating systems requires that Perl is installed in the Linux guest operating system. Guest operating system customization is supported on multiple Linux distributions.
Configure a Script to Generate Computer Names and IP Addresses During Guest Operating System Customization in the vSphere Client
As an alternative to entering the computer name or IP addresses for virtual NICs during guest operating system customization, you can create a custom application and configure it so that vCenter Server can use it to generate the computer name and IP addresses. The application can be an arbitrary executable binary or script file appropriate for the corresponding operating system in which vCenter Server is running. After you configure a name-ip-generation application in vCenter Server, each time you initiate a guest os customization for a virtual machine, the name-ip-app is executed and an XML string is generated in place and passed to its standard input. The name-ip-generation application on its behalf should generate and return the resulting XML string through its standard output. The application must comply with the reference XML file in the VMware knowledge base article at http://kb.vmware.com/kb/2007557. Prerequisites Verify that Perl is installed on vCenter Server. Procedure 1 2 3 4 Create the script and save it on the vCenter Server system's local disk. In the vSphere Client connected to vCenter Server, select Administration > vCenter Server Settings. Select Advanced Settings. Enter the configuration parameters for the script. a b In the Key text box, type config.guestcust.name-ip-generator.arg1. In the Value text box, type c:\sample-generate-name-ip.pl and clickAdd.
58
VMware, Inc.
c d e f 5
In the Key text box, type config.guestcust.name-ip-generator.arg2. In the Value text box, type the path to the script file on the vCenter Server system and click Add. For example, type c:\sample-generate-name-ip.pl. In the Key text box, type config.guestcust.name-ip-generator.program. In the Value text box, type c:\perl\bin\perl.exe and click Add.
Click OK.
You can select the option to use an application to generate computer names or IP addresses during customization.
The computer name that vCenter Server creates is identical to the name of the virtual machine on which the guest operating system is running. If the name exceeds 15 characters, it is truncated.
VMware, Inc.
59
Option Enter a name in the Deploy wizard Generate a name using the custom application configured with vCenter Server
Action The vSphere Client prompts you to enter a name after the cloning or deployment is complete. Enter a parameter that can be passed to the custom application.
Provide licensing information for the Windows operating system and click Next.
Option For non-server operating systems For server operating systems Action Type the Windows product key for the new guest operating system. a b c d Type the Windows product key for the new guest operating system. Select Include Server License Information. Select either Per seat or Per server. (Optional) If you selected Per server, enter the maximum number of simultaneous connections for the server to accept.
Configure the administrator password for the virtual machine and click Next. a Type a password for the administrator account and confirm the password by typing it again. NOTE You can change the administrator password only if the administrator password on the source Windows virtual machine is blank. If the source Windows virtual machine or template already has a password, the administrator password does not change. b (Optional) To log users into the guest operating system as Administrator, select the check box, and select the number of times to log in automatically.
6 7
Select the time zone for the virtual machine and click Next. (Optional) On the Run Once page, specify commands to run the first time a user logs into the guest operating system and click Next. See the Microsoft Sysprep documentation for more information on Run Once commands.
Select the type of network settings to apply to the guest operating system.
Option Typical settings Action Select Typical settings and click Next. vCenter Server configures all network interfaces from a DHCP server using default settings. a b c d Select Custom settings and click Next. For each network interface in the virtual machine, click the ellipsis button (...) to open the Network Properties dialog box. Enter IP address and other network settings and click OK. When all network interfaces are configured, click Next.
Custom settings
Select how the virtual machine will participate in the network and click Next.
Option Workgroup Windows Server Domain Action Type a workgroup name. For example, MSHOME. a b Type the domain name. Type the user name and password for a user account that has permission to add a computer to the specified domain.
60
VMware, Inc.
10
(Optional) Select Generate New Security ID (SID) and click Next. A Windows Security ID (SID) is used in some Windows operating systems to uniquely identify systems and users. If you do not select this option, the new virtual machine has the same SID as the virtual machine or template from which it was cloned or deployed. Duplicate SIDs do not cause problems when the computers are part of a domain and only domain user accounts are used. However, if the computers are part of a Workgroup or local user accounts are used, duplicate SIDs can compromise file access controls. For more information, see the documentation for your Microsoft Windows operating system.
11
Save the customized options as an .xml file. a b Select Save this customization specification for later use. Specify the filename for the specification and click Next.
12
You return to the Deploy Template or Clone Virtual Machine wizard. The customization is carried out after you complete the Deploy Template or Clone Virtual Machine wizard. When the new virtual machine boots for the first time, the guest operating system runs finalization scripts to complete the customization process. The virtual machine might reboot a number of times during this process. If the guest operating system pauses when the new virtual machine boots, it might be waiting for you to correct errors, such as an incorrect product key or invalid user name. Open the virtual machines console to determine whether the system is waiting for information. What to do next After you deploy and customize versions of Windows XP or Windows 2003 that are not volume licensed, you might need to reactivate your operating system on the new virtual machine. If the new virtual machine encounters customization errors while it is booting, the errors are logged to %WINDIR %\temp\vmware-imc. To view the error log file, click the Windows Start button and select Programs > Administrative Tools > Event Viewer.
VMware, Inc.
61
Specify how to determine the host name to identify the guest operating system on the network.
Option Enter a name Action a Type a name. The name can contain alphanumeric characters and the hyphen (-) character. It cannot contain periods (.) or blank spaces and cannot be made up of digits only. Names are case-insensitive. (Optional) To ensure that the name is unique, select Append a numeric value to ensure uniqueness. This appends a hyphen followed by a numeric value to the virtual machine name. The name is truncated if it exceeds 15 characters when combined with the numeric value.
The computer name that vCenter Server creates is identical to the name of the virtual machine on which the guest operating system is running. If the name exceeds 15 characters, it is truncated. The vSphere Client prompts you to enter a name after the cloning or deployment is complete. Enter a parameter that can be passed to the custom application.
Enter a name in the Deploy wizard Generate a name using the custom application configured with vCenter Server
3 4 5
Enter the Domain Name for the computer and click Next. Select the time zone for the virtual machine and click Next. Select the type of network settings to apply to the guest operating system.
Option Typical settings Action Select Typical settings and click Next. vCenter Server configures all network interfaces from a DHCP server using default settings. a b c d Select Custom settings and click Next. For each network interface in the virtual machine, click the ellipsis button (...) to open the Network Properties dialog box. Enter IP address and other network settings and click OK. When all network interfaces are configured, click Next.
Custom settings
6 7
Enter DNS and domain settings. Save the customized options as an .xml file. a b Select Save this customization specification for later use. Specify the filename for the specification and click Next.
You return to the Deploy Template or Clone Virtual Machine wizard. The customization is carried out after you complete the Deploy Template or Clone Virtual Machine wizard. When the new virtual machine boots for the first time, the guest operating system runs finalization scripts to complete the customization process. The virtual machine might reboot a number of times during this process. If the guest operating system pauses when the new virtual machine boots, it might be waiting for you to correct errors, such as an incorrect product key or invalid user name. Open the virtual machines console to determine whether the system is waiting for information. What to do next If the new virtual machine encounters customization errors while it is booting, the errors are reported using the guests system logging mechanism. View the errors by opening /var/log/vmwareimc/toolsDeployPkg.log.
62
VMware, Inc.
The computer name that vCenter Server creates is identical to the name of the virtual machine on which the guest operating system is running. If the name exceeds 15 characters, it is truncated. The vSphere Client prompts you to enter a name after the cloning or deployment is complete. Enter a parameter that can be passed to the custom application.
Enter a name in the Deploy wizard Generate a name using the custom application configured with vCenter Server
6 7
Enter the Domain Name for the computer and click Next. Select the time zone for the virtual machine and click Next.
VMware, Inc.
63
Select the type of network settings to apply to the guest operating system.
Option Typical settings Action Select Typical settings and click Next. vCenter Server configures all network interfaces from a DHCP server using default settings. a b c d Select Custom settings and click Next. For each network interface in the virtual machine, click the ellipsis button (...) to open the Network Properties dialog box. Enter IP address and other network settings and click OK. When all network interfaces are configured, click Next.
Custom settings
9 10
Enter DNS and domain settings. Click Finish to save your changes.
The customization specification you created is listed in the Customization Specification Manager, and can be used to customize virtual machine guest operating systems.
64
VMware, Inc.
Enter the guest operating system's computer name and click Next. The operating system uses this name to identify itself on the network. On Linux systems, it is called the host name.
Option Enter a name Action a Type a name. The name can contain alphanumeric characters and the hyphen (-) character. It cannot contain periods (.) or blank spaces and cannot be made up of digits only. Names are case-insensitive. (Optional) To ensure that the name is unique, select Append a numeric value to ensure uniqueness. This appends a hyphen followed by a numeric value to the virtual machine name. The name is truncated if it exceeds 15 characters when combined with the numeric value.
The computer name that vCenter Server creates is identical to the name of the virtual machine on which the guest operating system is running. If the name exceeds 15 characters, it is truncated. The vSphere Client prompts you to enter a name after the cloning or deployment is complete. Enter a parameter that can be passed to the custom application.
Enter a name in the Deploy wizard Generate a name using the custom application configured with vCenter Server
Provide licensing information for the Windows operating system and click Next.
Option For non-server operating systems For server operating systems Action Type the Windows product key for the new guest operating system. a b c d Type the Windows product key for the new guest operating system. Select Include Server License Information. Select either Per seat or Per server. (Optional) If you selected Per server, enter the maximum number of simultaneous connections for the server to accept.
Configure the administrator password for the virtual machine and click Next. a Type a password for the administrator account and confirm the password by typing it again. NOTE You can change the administrator password only if the administrator password on the source Windows virtual machine is blank. If the source Windows virtual machine or template already has a password, the administrator password does not change. b (Optional) To log users into the guest operating system as Administrator, select the check box, and select the number of times to log in automatically.
9 10
Select the time zone for the virtual machine and click Next. (Optional) On the Run Once page, specify commands to run the first time a user logs into the guest operating system and click Next. See the Microsoft Sysprep documentation for more information on Run Once commands.
VMware, Inc.
65
11
Select the type of network settings to apply to the guest operating system.
Option Typical settings Action Select Typical settings and click Next. vCenter Server configures all network interfaces from a DHCP server using default settings. a b c d Select Custom settings and click Next. For each network interface in the virtual machine, click the ellipsis button (...) to open the Network Properties dialog box. Enter IP address and other network settings and click OK. When all network interfaces are configured, click Next.
Custom settings
12
Select how the virtual machine will participate in the network and click Next.
Option Workgroup Windows Server Domain Action Type a workgroup name. For example, MSHOME. a b Type the domain name. Type the user name and password for a user account that has permission to add a computer to the specified domain.
13
(Optional) Select Generate New Security ID (SID) and click Next. A Windows Security ID (SID) is used in some Windows operating systems to uniquely identify systems and users. If you do not select this option, the new virtual machine has the same SID as the virtual machine or template from which it was cloned or deployed. Duplicate SIDs do not cause problems when the computers are part of a domain and only domain user accounts are used. However, if the computers are part of a Workgroup or local user accounts are used, duplicate SIDs can compromise file access controls. For more information, see the documentation for your Microsoft Windows operating system.
14
The customization specification you created is listed in the Customization Specification Manager, and can be used to customize virtual machine guest operating systems.
Create a Customization Specification for Windows Using a Custom Sysprep Answer File in the vSphere Client
A custom sysprep answer file is a file that stores a number of customization settings such as computer name, licensing information, and workgroup or domain settings. You can supply a custom sysprep answer file as an alternative to specifying many of the settings in the Guest Customization wizard. Windows 2000, Windows Server 2003, and Windows XP use a text file called sysprep.inf. Windows Server 2008, Windows Vista, and Windows 7 use an XML file called sysprep.xml. You can create these files using a text editor, or use the Microsoft Setup Manager utility to generate them. For more information about how to create a custom sysprep answer file, see the documentation for the relevant operating system. Prerequisites Ensure that all requirements for customization are met. See Guest Operating System Customization Requirements, on page 57. Procedure 1 2 3 From the vSphere Client Home page, select Customization Specifications Manager. Click New. In the Guest Customization wizard, select Windows from the Target Virtual Machine OS menu.
66
VMware, Inc.
4 5 6
(Optional) Select Use Custom Sysprep Answer File. Under Customization Specification Information, enter a name for the specification and an optional description and click Next. Select the option to import or create a sysprep answer file and click Next.
Option Import a Sysprep answer file Create a Sysprep answer file Description Click Browse and browse to the file. Type the contents of the file in the text box.
Select the type of network settings to apply to the guest operating system.
Option Typical settings Action Select Typical settings and click Next. vCenter Server configures all network interfaces from a DHCP server using default settings. a b c d Select Custom settings and click Next. For each network interface in the virtual machine, click the ellipsis button (...) to open the Network Properties dialog box. Enter IP address and other network settings and click OK. When all network interfaces are configured, click Next.
Custom settings
(Optional) Select Generate New Security ID (SID) and click Next. A Windows Security ID (SID) is used in some Windows operating systems to uniquely identify systems and users. If you do not select this option, the new virtual machine has the same SID as the virtual machine or template from which it was cloned or deployed. Duplicate SIDs do not cause problems when the computers are part of a domain and only domain user accounts are used. However, if the computers are part of a Workgroup or local user accounts are used, duplicate SIDs can compromise file access controls. For more information, see the documentation for your Microsoft Windows operating system.
The customization specification you created is listed in the Customization Specification Manager, and can be used to customize virtual machine guest operating systems.
VMware, Inc.
67
68
VMware, Inc.
Procedure 1 2 3 From the vSphere Client Home page, select Customization Specifications Manager. Click Import. From the Open dialog, browse to the .xml to import and click Open.
VMware, Inc.
69
70
VMware, Inc.
The VMware vSphere Client (vSphere Client) allows you to deploy and export virtual machines, virtual appliances, and vApps stored in Open Virtual Machine Format (OVF). An appliance is a pre-configured virtual machine that typically includes a preinstalled guest operating system and other software. Deploying an OVF template allows you to add pre-configured virtual machines to your vCenter Server or ESXi inventory. Deploying an OVF template is similar to deploying a virtual machine from a template. However, you can deploy an OVF template from any local file system accessible from the vSphere Client machine, or from a remote web server. The local file systems can include local disks (such as C:), removable media (such as CDs or USB keychain drives), and shared network drives. Exporting OVF templates allows you to create virtual appliances that can be imported by other users. You can use the export function to distribute pre-installed software as a virtual appliance, or as a means of distributing template virtual machines to users, including users who cannot directly access and use the templates in your vCenter Server inventory. This chapter includes the following topics:
n n n n
About OVF, on page 71 Deploy an OVF Template, on page 72 Browse VMware Virtual Appliance Marketplace, on page 73 Export an OVF Template, on page 74
About OVF
OVF is a file format that allows for exchange of virtual appliances across products and platforms. The OVF format offers the following advantages:
n n
OVF files are compressed, allowing for faster downloads. The vSphere Client validates an OVF file before importing it, and ensures that it is compatible with the intended destination server. If the appliance is incompatible with the selected host, it cannot be imported and an error message appears. OVF can encapsulate multi-tiered applications and more than one virtual machine.
VMware, Inc.
71
3 4 5
View the OVF Template Details page and click Next. If license agreements are packaged with the OVF template, the End User License Agreement page appears. Agree to accept the terms of the licenses and click Next. (Optional) Edit the name and select the folder location within the inventory where the vApp will reside, and click Next. NOTE When the vSphere Client is connected directly to an ESXi host, the option to select the folder location does not appear.
Select the deployment configuration from the drop-down menu and click Next. The option selected typically controls the memory settings, number of CPUs and reservations, and application-level configuration parameters. NOTE This page appears only if the OVF template contains deployment options.
7 8
Select the host or cluster on which you want to deploy the OVF template and click Next. Select the host on which you want to run the deployed OVF template, and click Next. NOTE This page appears only if the destination is a resource pool associated with a cluster with DRS disabled or in manual mode.
Navigate to, and select the resource pool where you want to run the OVF template and click Next. NOTE This page appears only if the cluster contains a resource pool.
10
(Optional) Apply a virtual machine storage profile from the VM Storage Profile drop-down menu. IMPORTANT You cannot select a virtual machine storage profile if the host or cluster in which the virtual machine runs has a license that does not include virtual machine storage profiles. The list of datastores shows which datastores are compatible and which are incompatible with the selected virtual machine storage profile.
72
VMware, Inc.
11
Select a datastore to store the deployed OVF template, and click Next. Datastores are a unifying abstraction for storage locations such as Fibre Channel, iSCSI LUNs, or NAS volumes. On this page, you select from datastores already configured on the destination cluster or host. The virtual machine configuration file and virtual disk files are stored on the datastore. Select a datastore large enough to accommodate the virtual machine and all of its virtual disk files.
12
Select the disk format to store the virtual machine virtual disks, and click Next.
Format Thick Provisioned Lazy Zeroed Description Creates a virtual disk in a default thick format. Space required for the virtual disk is allocated when the virtual disk is created data remaining on the physical device is not erased during creation, but is zeroed out on demand at a later time on first write from the virtual machine. A type of thick virtual disk that supports clustering features such as Fault tolerance. Space required for the virtual disk is allocated at creation time. In contrast to the flat format the data remaining on the physical device is zeroed out when the virtual disk is created. it might take much longer to create disks in this format than to create other types o disks. Use this format to save storage space. For the thin disk, you provision as much datastore space as the disk would require based on the value that you enter for the disk size. However, the thin disk starts small and at first, uses only as much datastore space as the disk needs for its initial operations.
Thin Provision
13 14 15
If the appliance that you are deploying has one ore more vService dependencies, select a binding service provider. For each network specified in the OVF template, select a network by right-clicking the Destination Network column in your infrastructure to set up the network mapping and click Next. On the IP Allocation page, configure how IP addresses are allocated for the virtual appliance and click Next.
Option Fixed Transient Description You will be prompted to enter the IP addresses in the Appliance Properties page. IP addresses are allocated from a specified range when the appliance is powered on. The IP addresses are released when the appliance is powered off. A DHCP server is used to allocate the IP addresses.
DHCP
This page does not appear if the deployed OVF template does not contain information about the IP scheme it supports. 16 Set the user-configurable properties and click Next. The set of properties that you are prompted to enter depend on the selected IP allocation scheme. For example, you are prompted for IP related information for the deployed virtual machines only in the case of a fixed IP allocation scheme. 17 Review your settings and click Finish.
The progress of the import task appears in the vSphere Client Status panel.
VMware, Inc.
73
Procedure
u
Select Folder of files (OVF) to store the OVF template as a set of files (.ovf, .vmdk, and .mf) This format is optimal if you plan to publish the OVF files on a web server or image library. The package can be imported, for example, into the vSphere client by publishing the URL to the .ovf file. Select Single file (OVA) to package the OVF template into a single .ova file. This might be convenient to distribute the OVF package as a single file if it needs to be explicitly downloaded from a web site or moved around using a USB key.
In Description, type a description for the virtual machine. By default, the text from the Notes pane on the virtual machines Summary tab appears in this text box.
Select the checkbox if you want to include image files attached to floppy and CD/DVD devices in the OVF package. NOTE This checkbox only shows if the virtual machine is connected to an ISO file or if the floppy drive is connected to a floppy image.
Click OK.
74
VMware, Inc.
If you type C:\NewFolder\OvfLib for a new OVF folder, the following files might be created:
n n n C:\NewFolder\OvfLib\MyVm\MyVm.ovfI C:\NewFolder\OvfLib\MyVm.mf C:\NewFolder\OvfLib\MyVm-disk1.vmdk
If you choose to export into the OVA format, and type MyVm, the file C:\MyVm.ova is created.
VMware, Inc.
75
76
VMware, Inc.
You install the Microsoft Sysprep tool so that you can customize Windows guest operating systems. Using the Sysprep tool is useful when you clone virtual machines. The guest operating system customization feature in vCenter Server uses the functions of the Sysprep tool. Verify that your vCenter Server system meets the following requirements before you customize your virtual machines Windows guest operating systems:
n
Install the Microsoft Sysprep tool. Microsoft includes the system tool set on the installation CD-ROM discs for Windows 2000, Windows XP, and Windows 2003. The Sysprep tool is built in to the Windows Vista and Windows 2008 operating systems. The correct versions of the Sysprep is installed for each guest operating system you want to customize. The password for the local administrator account on the virtual machines is set to blank ("").
n n
NOTE Customization operations will fail if the correct version of the Sysprep tool is not found. This chapter includes the following topics:
n n
Install the Microsoft Sysprep Tool from a Microsoft Web Site, on page 77 Install the Microsoft Sysprep Tool from the Windows Operating System CD, on page 78
VMware, Inc.
77
4 5
Open and expand the .cab file. Extract the files to the provided directory. The following Sysprep support directories were created during the vCenter Server installation:
C:\ALLUSERSPROFILE\Application Data\Vmware\VMware VirtualCenter\sysprep ...\1.1\ ...\2k\ ...\xp\ ...\svr2003\ ...\xp-64\ ...\svr2003-64\
6 7
Select the subdirectory that corresponds to your operating system. Click OK to expand the files. The contents of the .cab file vary, depending on the operating system.
What to do next You are now ready to customize a new virtual machine with a supported Windows guest operating system when you clone an existing virtual machine.
Install the Microsoft Sysprep Tool from the Windows Operating System CD
You can install the Microsoft Sysprep tool from a CD. The ALLUSERSPROFILE location is usually \Documents and Settings\All Users\. This is also the location of the vpxd.cfg file. On Windows 2008, the file location is C:\ProgramData\VMware\VMware VirtualCenter\sysprep\. For the VMware vCenter Server Appliance, extract the contents of the DEPLOY.CAB file for the Sysprep Tool version you downloaded to /etc/vmware-vpx/sysprep. For example, /etc/vmwarevpx/sysprep/2k, /etc/vmware-vpx/sysprep/xp. The vpx daemon process must have read permission on the files. Procedure 1 2 3 4 Insert the Windows operating system CD into the CD-ROM drive, often the D: drive. Locate the DEPLOY.CAB file in the \Support\Tools directory on the CD . Open and expand the DEPLOY.CAB file. Extract the files to the directory appropriate to your Sysprep guest operating system. The following Sysprep support directories were created during the vCenter Server installation:
C:\ALLUSERSPROFILE\Application Data\Vmware\VMware VirtualCenter\sysprep ...\1.1\ ...\2k\ ...\xp\ ...\svr2003\ ...\xp-64\ ...\svr2003-64\
5 6
Select the subdirectory that corresponds to your operating system. Click OK to expand the files. The contents of the .cab file vary, depending on the operating system.
78
VMware, Inc.
Repeat this procedure to extract Sysprep files for each of the Windows guest operating systems that you plan to customize using vCenter Server.
What to do next You are now ready to customize a new virtual machine with a supported Windows guest operating system when you clone an existing virtual machine.
VMware, Inc.
79
80
VMware, Inc.
You can add or configure most virtual machine properties during the virtual machine creation process or after you create the virtual machine and install the guest operating system. You configure virtual machines and change nearly every characteristic that you selected when you created the virtual machine. You can configure three types of virtual machine properties. Hardware Options View existing hardware configuration and add or remove hardware. View and configure a number of virtual machine properties, such as power management interaction between the guest operating system and virtual machine, and VMware Tools settings. Configure CPUs, CPU hyperthreading resources, memory and disks.
Resources
Virtual Machine Hardware, Options, and Resources Available to vSphere Virtual Machines, on page 82 Virtual Machine Hardware Versions, on page 85 Determine the Hardware Version of a Virtual Machine in the vSphere Web Client, on page 86 Locate the Hardware Version of a Virtual Machine in the vSphere Client, on page 87 Change the Virtual Machine Name in the vSphere Web Client, on page 87 Change the Virtual Machine Name in the vSphere Client, on page 87 View the Virtual Machine Configuration File Location in the vSphere Web Client, on page 88 View the Virtual Machine Configuration File Location in the vSphere Client, on page 88 Edit Configuration File Parameters in the vSphere Web Client, on page 88 Edit Configuration File Parameters in the vSphere Client, on page 89 Change the Virtual Machine Console Options for Remote Users in the vSphere Web Client, on page 90 Change the Configured Guest Operating System in the vSphere Client, on page 90 Configure Virtual Machines to Automatically Upgrade VMware Tools, on page 91 Virtual CPU Configuration, on page 92 Virtual Memory Configuration, on page 104 Network Virtual Machine Configuration, on page 111
n n n n n n n n n n
n n n n n
VMware, Inc.
81
n n n n n n n n
Parallel and Serial Port Configuration, on page 115 Virtual Disk Configuration, on page 125 Understanding Virtual Machine Storage Profiles, on page 135 SCSI Controller Configuration, on page 136 Other Virtual Machine Device Configuration, on page 140 Configuring vServices, on page 152 USB Configuration from an ESXi Host to a Virtual Machine, on page 153 USB Configuration from a Client Computer to a Virtual Machine in the vSphere Web Client, on page 163 USB Configuration from a Client Computer to a Virtual Machine in the vSphere Client, on page 168 Cannot Copy Data From an ESXi Host to a USB Device That Is Connected to the Host, on page 174 Add a Shared Smart Card Reader to Virtual Machines in the vSphere Client, on page 174 Add a Shared Smart Card Reader to Virtual Machines in the vSphere Web Client, on page 175 Manage Power Management Settings for a Virtual Machine, on page 175 Configure the Virtual Machine Power States, on page 176 Delay the Boot Sequence in the vSphere Web Client, on page 178 Delay the Boot Sequence in the vSphere Client, on page 178 Enable Virtual Machine Logging in the vSphere Web Client, on page 179 Enable Logging in the vSphere Client, on page 179 Disable Virtual Machine Acceleration in the vSphere Web Client, on page 179 Disable Acceleration in the vSphere Client, on page 180 Configure Virtual Machine Debugging and Statistics in the vSphere Web Client, on page 180 Configure Debugging and Statistics in the vSphere Client, on page 181
n n n n n n n n n n n n n n
Virtual Machine Hardware, Options, and Resources Available to vSphere Virtual Machines
VMware provides devices, options, resources, profiles, and vServices that you can configure or add to your virtual machine.
82
VMware, Inc.
Chipset
DVD/CD-ROM Drive
Floppy Drive
Hard Disk
IDE 0, IDE 1
Keyboard Memory
Network Adapter
PCI Device
VMware, Inc.
83
SCSI device
SIO controller
USB controller
USB device
VMCI
You can change advanced virtual machine settings on the Options tab. Table 8-3. Advanced Virtual Machine Options
Advanced Options General CPUID Mask Memory/CPU Hotplug Boot Options Fibre Channel NPIV Description Acceleration, logging, debugging and statistics. NX flag and advanced identification mask options. Hot add enablement for individual virtual machines. Virtual machine boot options. Add a delay before booting or force entry into the BIOS or EFI setup screen. Virtual node and port World Wide Names (WWNs).
84
VMware, Inc.
Profiles
You can associate a virtual machine storage profile with a virtual machine to define the storage capabilities that are required by the applications running on the virtual machine. See Understanding Virtual Machine Storage Profiles, on page 135.
vServices
You can add a vService dependency to a virtual machine or vApp. This dependency allows a virtual machine or vApp to request that a specific vService be available. See Configuring vServices, on page 152.
To standardize testing and deployment in your virtual environment. If you do not need the capabilities of the newer version. To maintain compatibility with older hosts.
Virtual machines with hardware versions earlier than version 8 can run on ESXi 5.0 hosts, but do not have all the capabilities available in hardware version 8. For example, you cannot use 32 virtual processors or 1011GB of memory in virtual machines with hardware versions earlier than version 8.
VMware, Inc.
85
The vSphere Web Client or the vSphere Client allows you to upgrade virtual machines only to the latest hardware version. If virtual machines do not have to stay compatible with older ESX/ESXi hosts, you can upgrade them on ESXi 5.0 hosts. In this case, they are upgraded to version 8.
n
To maintain virtual machine compatibility with ESX/ESXi 3.5 hosts, upgrade the virtual machine on an ESX/ESXi 3.5 host, which results in a virtual machine upgrade to version 4. To maintain virtual machine compatibility with ESX/ESXi 4.x hosts, upgrade the virtual machine on an ESX/ESXi 4.x host, which results in a virtual machine upgrade to version 7.
A virtual machine can have an earlier hardware version than that of the host on which it runs in the following cases:
n n
You migrate a virtual machine created on an ESX/ESXi 4.x or earlier host to an ESXi 5.0 host. You create a virtual machine on an ESXi 5.0 host by using an existing virtual disk that was created on an ESX/ESXi 4.x or earlier host. You add a virtual disk created on an ESX/ESXi 4.x or earlier host to a virtual machine created on an ESXi 5.0 host.
You can create, edit, and run different virtual machine versions on a host if the host supports that version. Sometimes, virtual machine actions on a host are limited or the virtual machine has no access to the host. Table 8-5. ESXi Hosts and Compatible Virtual Machine Hardware Versions
Version 8 ESXi 5.0 ESX/ESXi 4.x ESX Server 3.x Create, edit, run Not supported Not supported Version 7 Create, edit, run Create, edit, run Not supported Version 4 Edit, run Create, edit, run Create, edit, run Compatible with vCenter Server Version vCenter Server 5.0 vCenter Server 4.x VirtualCenter Server 2.x and later
Version 3 virtual machines are not supported on ESXi 5.0 hosts. To make full use of these virtual machines, upgrade the virtual hardware. NOTE Virtual machine hardware version 4 might be listed as VM3 in documentation for earlier versions of ESX/ESXi.
Determine the Hardware Version of a Virtual Machine in the vSphere Web Client
Determine the hardware version of a virtual machine to determine which hosts and features the virtual machine is compatible with. Procedure
u
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
The VM Hardware panel displays the hardware version in the HW Version field.
86
VMware, Inc.
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5
In the VM Hardware panel, click Edit Settings. Click VM Options. In the VM Name text box, type a new name for the virtual machine. Click OK.
Verify that you are connected to the vCenter Server or ESXi host on which the virtual machine runs. Verify that you have access to the virtual machine in the vSphere Client inventory list.
Procedure 1 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings.
VMware, Inc.
87
2 3 4
Click the Options tab and select General Options. Type a new name for the virtual machine. Click OK to save your changes and close the dialog box.
View the Virtual Machine Configuration File Location in the vSphere Web Client
You can view the location of the virtual machine configuration and working files. This information is useful when you are configuring backup systems. Procedure 1 Select a virtual machine.
n
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4
In the VM Hardware panel, click Edit Settings. Click VM Options. Click the General Options triangle. The location of the virtual machine configuration file appears in the VM Config File text box.
View the Virtual Machine Configuration File Location in the vSphere Client
You can view the location of the virtual machine configuration and working files. This information is useful when you are configuring backup systems. Prerequisites
n n
Verify that you are connected to the vCenter Server or ESXi host on which the virtual machine runs. Verify that you have access to the virtual machine in the vSphere Client inventory list.
Procedure 1 2 3 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Options tab and select General Options. Record the location of the configuration and working files and click OK to close the dialog box.
To change a parameter, you change the existing value for the keyword/value pair. For example, if you start with the keyword/value pair, keyword/value, and change it to keyword/value2, the result is keyword=value2.
88
VMware, Inc.
CAUTION You must assign a value to configuration parameter keywords. If you don't assign a value, the keyword can return a value of 0, false, or disable, which can result in a virtual machine that cannot power on. Procedure 1 Select a virtual machine.
n
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5 6 7 8
In the VM Hardware panel, click Edit Settings. Click VM Options. Click the Advanced triangle to expand the advanced options. Click Edit Configuration. (Optional) To add a parameter, click Add Row and enter a name and value for the parameter. (Optional) To change a parameter, type a new value in the Value text box for that parameter. Click OK.
To change a parameter, you change the existing value for the keyword/value pair. For example, if you start with the keyword/value pair, keyword/value, and change it to keyword/value2, the result is keyword=value2. You cannot delete a configuration parameter entry.
CAUTION You must assign a value to configuration parameter keywords. If you don't assign a value, the keyword can return a value of 0, false, or disable, which can result in a virtual machine that cannot power on. Procedure 1 2 3 4 5 6 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Options tab and under Advanced, click General. Click Configuration Parameters. (Optional) Change or add a parameter. Click OK to exit the Configuration Parameters dialog box. Click OK to save your changes and close the dialog box.
VMware, Inc.
89
Change the Virtual Machine Console Options for Remote Users in the vSphere Web Client
In the vSphere Web Client, you can limit the number of simultaneous connections to a virtual machine and lock the guest operating system when the last remote user disconnects from the virtual machine console. Prerequisites
n n
Verify that VMware Tools is installed and running. To use the Guest OS lock option, you must have a Windows XP or later guest operating system.
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5
In the VM Hardware panel, click Edit Settings. Click VM Options. Click the Remote Console Options triange to expand the remote console options. Click the check box to select an option.
Option Guest OS lock (*) Maximum number of sessions Description Locks the guest operating system when the last remote user disconnects. Limits the number of simultaneous connections to this virtual machine.
The virtual machine configuration parameters for the guest operating system are changed. You can now install the guest operating system.
90
VMware, Inc.
Change the Configured Guest Operating System in the vSphere Web Client
When you change the guest operating system type in the virtual machine settings, you change the setting for the guest operating system in the virtual machine's configuration file. To change the guest operating system itself, you must install the new operating system in the virtual machine. You might change the guest operating system, for example, if you are upgrading the guest operating system installed in the virtual machine. When you set the guest operating system type for a new virtual machine, vCenter Server chooses configuration defaults based on the guest type. Changing the guest operating system type after the virtual machine is created does not retroactively change those settings. It affects the recommendations and setting ranges offered after the change. Prerequisites Power off the virtual machine. Procedure 1 Select a virtual machine.
n
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5 6 7 8
In the VM Hardware panel, click Edit Settings. Click VM Options. Click the General Options triangle to show the guest operating system options. From the Guest OS drop-down menu, select the guest operating system family. Select a guest operating system version. If you selected Other (32-bit) or Other (64-bit), enter a name for the operating system in the text box. Click OK.
Verify that the virtual machines have a version of VMware Tools shipped with ESX/ESXi 3.5 or later installed. Verify that the virtual machines are hosted on ESX/ESXi 3.5 or later and vCenter Server 3.5 or later. Verify that the virtual machines are running a Linux or Windows guest OS that ESX/ESXi 3.5 or later and vCenter Server 3.5 or later support.
n n
Procedure 1 2 3 Right-click the virtual machine and click Edit Settings. Click the Options tab and select VMware Tools. Select Check and upgrade Tools during power cycling in the Advanced pane.
VMware, Inc.
91
The next time the virtual machine is powered on, it checks the ESX/ESXi host for a newer version of VMware Tools. If one is available, it is installed and the guest operating system is restarted (if required).
CPU Socket
Core
Corelet
Thread
Resource sharing
Resource allocation
92
VMware, Inc.
A virtual machine cannot have more virtual CPUs than the number of logical cores on the host. The number of logical cores is equal to the number of physical cores if hyperthreading is disabled or two times that number if hyperthreading is enabled. Not every guest operating system supports Virtual SMP, and some that do require reinstallation if the number of CPUs changes. For more information about using Virtual SMP, search the VMware Knowledge Base. Guest operating systems that support Virtual SMP might support fewer processors than are available on the host. For information about Virtual SMP support, see the VMware Compatibility Guide. Running Virtual SMP virtual machines on hyperthreaded hosts with Virtual SMP can affect virtual machine performance. Running uniprocessor virtual machines on hyperthreaded hosts can also affect virtual machine performance.
12 virtual sockets with 1 core per socket 6 virtual sockets with 2 cores per socket 4 virtual sockets with 3 cores per socket 3 virtual sockets with 4 cores per socket 2 virtual sockets with 6 cores per socket 1 virtual socket with 12 cores per socket
For multicore CPUs, the host must have a license for Virtual SMP. For more information about multicore CPUs, see the vSphere Resource Management documentation. You can also search the VMware Knowledge Base for articles about multicore CPUs.
VMware, Inc.
93
For best results, use hardware version 8 virtual machines. Hot-adding multicore virtual CPUs is supported only with hardware version 8 virtual machines. Not all guest operating systems support CPU hot add. You can disable these settings if the guest is not supported. To use the CPU hot-add feature with hardware version 7 virtual machines, set the Number of cores per socket to 1. Adding CPU resources to a running virtual machine with CPU hot plug enabled disconnects and reconnects all USB passthrough devices connected to that virtual machine.
Prerequisites Verify that the virtual machine is running under the following conditions:
n
VMware Tools is installed. This condition is required for hot plug functionality with Linux guest operating systems. The virtual machine has a guest operating system that supports CPU hot plug. The virtual machine is using hardware version 7 or later. The virtual machine is powered off. Required privileges: Virtual Machine.Configuration.Settings
n n n n
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5 6
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. Click the CPU triangle to expand the CPU options. Select Enable CPU Hot Add to enable adding CPUs while this virtual machine is powered on. Click OK.
For best results, use hardware version 8 virtual machines. Hot-adding multicore virtual CPUs is supported only with hardware version 8 virtual machines. Not all guest operating systems support CPU hot add. You can disable these settings if the guest is not supported.
94
VMware, Inc.
To use the CPU hot-add feature with hardware version 7 virtual machines, set Number of cores per socket to 1. Adding CPU resources to a running virtual machine with CPU hot plug enabled disconnects and reconnects all USB passthrough devices connected to that virtual machine.
Prerequisites Verify that the virtual machine is running under the following conditions:
n
VMware Tools is installed. This condition is required for hot plug functionality with Linux guest operating systems. The virtual machine has a guest operating system that supports CPU hot plug. The virtual machine is using hardware version 7 or later. The virtual machine is powered off. Required privileges: Virtual Machine.Configuration.Settings on the virtual machine
n n n n
Procedure 1 2 3 4 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Options tab and under Advanced, select Memory/CPU Hotplug. Change the CPU Hot Plug setting. Click OK to save your changes and close the dialog box.
What to do next You can now add CPUs to the powered on virtual machine.
If CPU hot add is not enabled, power off the virtual machine before adding CPUs. If CPU hot remove is not enabled, power off the virtual machine before removing CPUs. To hot add multicore CPUs, verify that the virtual machine has hardware version 8. Required privilege: Virtual Machine.Configuration.Change CPU Count on the virtual machine
VMware, Inc.
95
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5 6
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. Expand the CPU options, and select the number of cores for the virtual machine from the Cores dropdown menu. Select the number of cores per socket from the Cores Per Socket drop-down menu. Click OK.
If CPU hot add is not enabled, power off the virtual machine before adding CPUs. If CPU hot remove is not enabled, power off the virtual machine before removing CPUs. To hot add multicore CPUs, verify that the virtual machine has hardware version 8. Required privilege: Virtual Machine.Configuration.Change CPU Count on the virtual machine
Procedure 1 2 3 4 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Hardware tab and select CPUs. Select a value from the Number of virtual sockets drop-down menu. Select a value from the Number of cores per socket drop-down menu. The resulting total number of cores is a number equal to or less than the number of logical CPUs on the host. 5 Click OK to save your changes and close the dialog box.
96
VMware, Inc.
CPU Resource Settings Number of virtual sockets Number of cores per socket Total number of cores
Existing Value 2 2 4
With CPU hot plug enabled and the virtual machine running, you can select the number of sockets to add from the Number of virtual sockets drop-down menu. The Number of cores per socket drop-down menu is unavailable and retains a value of 2. If you select 3 virtual sockets, you are adding 1 socket with 2 cores so that the virtual machine has 6 virtual CPUs.
CPU Resource Settings Number of virtual sockets Number of cores per socket Total Number of cores Existing Value 2 2 4 Hot-plug value 3 2 6
Reservation
Shares
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. Click the CPU triangle to expand the CPU options.
VMware, Inc.
97
Click OK.
Reservation
Shares
Prerequisites Required Privilege: Virtual machine.Configuration.Change resource Procedure 1 2 3 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Resources tab and select CPU. Allocate the CPU capacity for this virtual machine.
Option Shares Description CPU shares for this virtual machine with respect to the parents total. Sibling virtual machines share resources according to their relative share values bounded by the reservation and limit. Select Low, Normal, or High, which specify share values respectively in a 1:2:4 ratio. Select Custom to give each virtual machine a specific number of shares, which express a proportional weight. Guaranteed CPU allocation for this virtual machine. Upper limit for this virtual machines CPU allocation. Select Unlimited to specify no upper limit.
Reservation Limit
98
VMware, Inc.
The hyperthreaded core sharing option must be enabled in your system's BIOS settings. For more information, see the vSphere Resource Management documentation. Power off the virtual machine.
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. Click the CPU triangle to expand the CPU options. In the HT Sharing drop-down menu, select a sharing mode.
Option Any (default) None Description The virtual CPUs of this virtual machine can share cores with other virtual CPUs of this or other virtual machines. The virtual CPUs of this virtual machine have exclusive use of a processor core whenever they are scheduled to it. The other hyperthread of the core is halted while this virtual machine is using the core. On a virtual machine with exactly two virtual processors, the two virtual processors are allowed to share one physical core (at the discretion of the host scheduler), but this virtual machine never shares a core with any other virtual machine. If this virtual machine has any other number of processors other than two, this setting is the same as the None setting.
Internal
Click OK.
VMware, Inc.
99
The hyperthreaded core sharing option must be enabled in your system's BIOS settings. For more information, see the Resource Management documentation. Power off the virtual machine.
Procedure 1 2 3 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Resources tab and select Advanced CPU. Select a mode from the Hyperthreading Sharing Mode drop-down menu.
Option Any (default) None Description The virtual CPUs of this virtual machine can share cores with other virtual CPUs of this or other virtual machines. The virtual CPUs of this virtual machine have exclusive use of a processor core whenever they are scheduled to it. The other hyperthread of the core is halted while this virtual machine is using the core. On a virtual machine with exactly two virtual processors, the two virtual processors are allowed to share one physical core (at the discretion of the host scheduler), but this virtual machine never shares a core with any other virtual machine. If this virtual machine has any other number of processors other than two, this setting is the same as the None setting.
Internal
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
100
VMware, Inc.
2 3 4 5
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. Click the CPU triangle to expand the CPU options. In the Scheduling Affinity panel, enter a comma-separated list of hyphenated processor ranges. For example, "0,4-7" would indicate affinity with CPUs 0,4,5,6, and 7. Selecting all processors is identical to selecting no affinity. You must provide at least as many processor affinities as you have virtual CPUs.
Click OK.
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
VMware, Inc.
101
2 3 4 5
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. Click the CPU triangle to expand the CPU options. In the CPUID Mask drop-down menu, select an NX/XD option.
Option Hide the NX/XD flag from guest Description Increases vMotion compatibility. Hiding the NX/XD flag increases vMotion compatibility between hosts, but might disable certain CPU security features. Keeps all CPU security features enabled. Uses the NX/XD flag settings specified in the CPU Identification Mask dialog box. Enabled only when current settings specify something other than what is specified in the other NX/XD flag options, for example, if the NX/XD flag bit setting varies with processor brand.
Expose the NX/XD flag to guest Keep current Advanced setting values for the NX/XD flag
Click OK.
Verify that you have access to the virtual machine in the vSphere Client inventory list. Power off the virtual machine.
Procedure 1 2 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Options tab and under Advanced, select CPUID Mask.
102
VMware, Inc.
(Optional) To edit mask values other than the NX bit or to set NX mask values to states other than 0 or H, click Advanced. a b Select the relevant tab. Click a row and edit the mask value. To view an explanation of a values symbol, click Legend. c Click OK to apply the changes and return to the Virtual Machine Properties dialog box.
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. Click the CPU triangle to expand the CPU settings. From the CPU/MMU Virtualization drop-down menu, select an instruction set.
n n n n
Automatic Software CPU and MMU Hardware CPU, Software MMU Hardware CPU and MMU
Click OK.
VMware, Inc.
103
Automatic Use only software virtualization Use hardware support for CPU virtualization (VT/AMD-V) only Use hardware support for both CPU and MMU virtualization (VT/AMD-V and EPT/RVI)
104
VMware, Inc.
The ESXi host version indicates when support began for the increased memory size. For example, the memory size of a version 4 virtual machine running on ESXi 5.0 is restricted to 65,532MB. Procedure 1 Select a virtual machine.
n
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5
In the VM Hardware panel, click Edit Settings. In the RAM text box, type the amount of RAM to assign to the virtual machine or select one of the suggested values from the drop-down menu. Select whether the memory is specified in MB or GB. Click OK.
The ESXi host version indicates when support began for the increased memory size. For example, the memory size of a version 4 virtual machine running on ESXi 5.0 is restricted to 65,532MB. Procedure 1 2 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Hardware tab and select Memory.
VMware, Inc.
105
3 4
Adjust the amount of memory allocated to the virtual machine. Click OK to save your changes and close the dialog box.
Reservation
Shares
Assigning a reservation to a virtual machine that is larger than its configured memory is wasteful. The vSphere Web Client prevents you from making such an assignment on the Resources tab. If you give a virtual machine a large reservation and reduce its configured memory size on the Hardware tab, the reservation is reduced to match the new configured memory size. You must power off the virtual machine before configuring memory resources. Procedure 1 Select a virtual machine.
n
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. Click the Memory triangle to expand the memory options. Allocate the memory capacity for the virtual machine.
Option Reservation Limit Shares Description Guaranteed memory allocation for this virtual machine. Upper limit for this virtual machines memory allocation. Select Unlimited to specify no upper limit. The values Low, Normal, High, and Custom are compared to the sum of all shares of all virtual machines on the server.
Click OK.
106
VMware, Inc.
Reservation
Shares
Assigning a virtual machine a reservation larger than its configured memory is wasteful. The vSphere Client does not allow you to make such an assignment on the Resources tab. If you give a virtual machine a large reservation and then reduce its configured memory size on the Hardware tab, the reservation is reduced to match the new configured memory size. You must power off the virtual machine before configuring memory resources. Procedure 1 2 3 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Resources tab and select Memory. Allocated the memory capacity for this virtual machine.
Option Shares Description The values Low, Normal, High, and Custom are compared to the sum of all shares of all virtual machines on the server. You can use share allocation symbolic values to configure their conversion into numeric values. Guaranteed memory allocation for this virtual machine. Upper limit for this virtual machines memory allocation. No upper limit is specified.
Power off the virtual machine. Ensure that the virtual machine has a guest operating system that supports memory hot add functionality. Ensure that the virtual machine is using hardware version 7 or later. Ensure that VMware Tools is installed.
VMware, Inc.
107
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5 6
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. Click the Memory triangle to expand the memory options. Select Enable to enable adding memory to the virtual machine while it is powered on. Click OK.
The virtual machine has a guest operating system that supports Memory hot add functionality. The virtual machine is using hardware version 7 or later. VMware Tools is installed.
Procedure 1 2 3 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Options tab and under Advanced, select Memory/CPU Hotplug. Enable or disable memory hot add.
n n
Enable memory hot add for this virtual machine. Disable memory hot add for this virtual machine.
Associate Memory Allocation with a NUMA Node in the vSphere Web Client
You can specify that all future memory allocations on a virtual machine use pages associated with a single NUMA node. The NUMA code is also known as manual memory affinity. When the virtual machine uses local memory, the performance improves on that virtual machine. The following conditions apply to memory optimization with NUMA:
n n
The NUMA option is available only if the host uses NUMA memory architecture. Affinity settings are meaningful only when used to modify the performance of a specific set of virtual machines on one host. This option is not available when the virtual machine resides on a DRS cluster. All affinity values are cleared when you move the virtual machine to a new host. You can specify nodes to use for future memory allocations only if you also specified CPU affinity. If you make manual changes only to the memory affinity settings, automatic NUMA rebalancing does not work properly. Checking all the boxes is the same as applying no affinity.
For information about NUMA and advanced memory resources, including usage examples, see the Resource Management documentation.
108
VMware, Inc.
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5 6
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. Click the Memory triangle to expand the Memory options. In the NUMA Memory Affinity panel, set the NUMA node affinity for the virtual machine. Click OK.
The NUMA option is available on the Advanced Memory Resources page only if the host uses NUMA memory architecture. Affinity settings are meaningful only when used to modify the performance of a specific set of virtual machines on one host. This option is not available when the virtual machine resides on a DRS cluster. All affinity values are cleared when you move the virtual machine to a new host. You can specify nodes to use for future memory allocations only if you have also specified CPU affinity. If you make manual changes only to the memory affinity settings, automatic NUMA rebalancing does not work properly. Checking all the boxes is the same as applying no affinity.
For information about NUMA and advanced memory resources, including usage examples, see the Resource Management documentation. Procedure 1 2 3 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Select the Resources tab, and select Memory. In the NUMA Memory Affinity panel, set the NUMA node affinity for the virtual machine.
n n
VMware, Inc.
109
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5
In the VM Hardware panel, click Edit Settings. Click VM Options. Click the Advanced triangle to expand the advanced options. Select an option.
Option Default Always store with the virtual machine Store in the host's swapfile datastore Description Stores the virtual machine swap file at the default location defined by the host or cluster swap file settings. Stores the virtual machine swap file in the same folder as the virtual machine configuration file. If the host or cluster settings define a location for the swap file, this location is used. Otherwise, the swap file is stored with the virtual machine.
Click OK.
110
VMware, Inc.
The virtual machine version, which depends on what host created it or most recently updated it. Whether the virtual machine has been updated to the latest version for the current host. The guest operating system.
The following NIC types are supported: E1000 Emulated version of the Intel 82545EM Gigabit Ethernet NIC, with drivers available in most newer guest operating systems, including Windows XP and later and Linux versions 2.4.19 and later. Identifies itself as a Vlance adapter when a virtual machine boots, but initializes itself and functions as either a Vlance or a VMXNET adapter, depending on which driver initializes it. With VMware Tools installed, the VMXNET driver changes the Vlance adapter to the higher performance VMXNET adapter. Emulated version of the AMD 79C970 PCnet32 LANCE NIC, an older 10 Mbps NIC with drivers available in most 32bit guest operating systems except Windows Vista and later. A virtual machine configured with this network adapter can use its network immediately. Optimized for performance in a virtual machine and has no physical counterpart. Because operating system vendors do not provide built-in drivers for this card, you must install VMware Tools to have a driver for the VMXNET network adapter available. Based on the VMXNET adapter but provides high-performance features commonly used on modern networks, such as jumbo frames and hardware offloads. VMXNET 2 (Enhanced) is available only for some guest operating systems on ESX/ESXi 3.5 and later. Next generation of a paravirtualized NIC designed for performance. VMXNET 3 offers all the features available in VMXNET 2 and adds several new features, such as multiqueue support (also known as Receive Side Scaling in Windows), IPv6 offloads, and MSI/MSI-X interrupt delivery. VMXNET 3 is not related to VMXNET or VMXNET 2.
Flexible
Vlance
VMXNET
VMXNET 2 (Enhanced)
VMXNET 3
For network adapter compatibility considerations, see the VMware Compatibility Guide.
VMware, Inc.
111
Change the Virtual Network Adapter (NIC) Configuration in the vSphere Web Client
You can change the power-on connection setting, the MAC address, and the network connection for the virtual network adapter configuration for a virtual machine. Prerequisites Required privilege: Network.Assign network on a network if you are changing the network the virtual machine connects to. Procedure 1 Select a virtual machine.
n
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. Click the triangle next to the network adapter to expand the network adapter options. (Optional) Specify how the MAC address is assigned.
n n
Select Automatic to automatically assign a MAC address. Select Manual to manually enter the MAC address you want.
From the Network Connection drop-down menu, select the network to connect to. The menu lists all networks configured for virtual machine use on the host.
Connect at power on
Click OK.
112
VMware, Inc.
Change the Virtual Network Adapter (NIC) Configuration in the vSphere Client
You can change the power-on connection setting, the MAC address, and the network connection for the virtual network adapter configuration for a virtual machine. Prerequisites Required Privileges:
n n n
Virtual machine.Configuration.Modify device settings for editing the MAC address and network. Virtual machine.Interaction.Device connection for changing Connect and Connect at power on. Network.Assign network
Procedure 1 2 3 4 5 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Hardware tab and select the appropriate NIC in the Hardware list. (Optional) To connect the virtual NIC when the virtual machine is powered on, select Connect at power on. (Optional) Click the blue information icon under DirectPath I/O to view details regarding the virtual NIC's DirectPath I/O status and capability. Select an option for MAC address configuration.
Option Automatic Manual Description vSphere assigns a MAC address automatically. Type the MAC address to use.
Advanced settings
VMware, Inc.
113
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. From the Add a device drop-down menu, select Network and click Add device. The new network adapter appears in the virtual devices list above.
5 6 7
Click the triangle next to the new network adapter to expand the network adapter options. From the Adapter Type drop-down menu, select the adapter type to use. (Optional) Specify how the MAC address is assigned.
n n
Select Automatic to automatically assign a MAC address. Select Manual to manually enter the MAC address you want.
From the Network Connection drop-down menu, select the network to connect to. The menu lists all networks configured for virtual machine use on the host.
Connect at power on
10
Click OK.
114
VMware, Inc.
Server and Client Connections for Named Pipe and Network Serial Ports
You can select a client or server connection for serial ports. Your selection determines whether the system waits for a connection or initiates it. Typically, to control a virtual machine over a serial port, you select a server connection. This selection allows you to control the connections, which is useful if you connect to the virtual machine only occasionally. To use a serial port for logging, select a client connection. This selection allows the virtual machine to connect to the logging server when the virtual machine starts and to disconnect when it stops.
VM serial port connected to vSPC. Use to connect the serial port output through a network with the Use virtual serial port concentrator option enabled to allow only outgoing communication from the host.
VMware, Inc.
115
VM serial port connected over network. Use to connect the serial port output through a network without the virtual serial port concentrator.
IMPORTANT Do not change the allowed IP list for either rule set. Updates to the IP list can affect other network services that might be blocked by the firewall. For details about adding rule sets to a firewall, see the vSphere Security documentation.
Serial ports present on add-on expansion cards might be supported by PCI DirectPath I/O. See Add a PCI Device in the vSphere Web Client, on page 148 or Add a PCI Device in the vSphere Client, on page 149. Serial ports connected through USB are not supported for serial port passthrough. They might be supported by USB passthrough from an ESXi host to a virtual machine. See USB Configuration from an ESXi Host to a Virtual Machine, on page 153.
VM serial port connected to vSPC. Use to connect the serial port output through a network with the Use virtual serial port concentrator option enabled to allow only outgoing communication from the host. VM serial port connected over network. Use to connect the serial port output through a network without the virtual serial port concentrator.
IMPORTANT Do not change the allowed IP list for either rule set. Updates to the IP list can affect other network services that might be blocked by the firewall. For details about allowing access to an ESXi service through the firewall, see the vSphere Security documentation.
Check that you known the correct media types for the port to access, vSPC connections, and any conditions that might apply. See Using Serial Ports with vSphere Virtual Machines, on page 115.
116
VMware, Inc.
To connect a serial port over a network, add a Firewall rule set. See Adding a Firewall Rule Set for Serial Port Network Connections, on page 116. Required privileges:
n n
Virtual machine.Configuration.Modify device settings on the virtual machine. Virtual machine.Interaction.Device connection on the virtual machine to change the device connection status.
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. Click the triangle next to the serial port to expand the serial port options. (Optional) Change the Device status settings.
Option Connected Connect at power on Description Connects or disconnects the device while the virtual machine is running. Connects the device whenever you power on the virtual machine. You can change this setting when the virtual machine is either powered on or powered off.
VMware, Inc.
117
(Optional) Select Yield on poll. Select this option only for guest operating systems that use serial ports in polled mode. This option prevents the guest from consuming excessive CPUs.
Click OK.
Similarly, if you run the Telnet Server on your Linux system on port 23 (telnet://yourLinuxBox:23), you configure the virtual machine as a client URI.
telnet://yourLinuxBox:23
The virtual machine initiates the connection to your Linux system on port 23.
Check that you known the correct media types for the port to access, vSPC connections, and any conditions that might apply. See Using Serial Ports with vSphere Virtual Machines, on page 115. To connect a serial port over a network, add a Firewall rule set. See Adding a Firewall Rule Set for Serial Port Network Connections, on page 116. Required privilege: Virtual machine.Configuration.Device connection
Procedure 1 2 3 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Hardware tab and select a serial port in the Hardware list. (Optional) Change the Device status settings.
Option Connected Connect at power on Description Connects or disconnects the device while the virtual machine is running. Connects the device whenever you power on the virtual machine. You can change this setting when the virtual machine is either powered on or powered off.
118
VMware, Inc.
Action Select this option to set a direct connection between two virtual machines or a connection between a virtual machine and an application on the host computer. a Type a name for the pipe in the Pipe Name field. b Select the Near end and Far end of the pipe from the drop-down menus. Select Use network to connect through a remote network. a Select the network backing. n Select Server to have the virtual machine monitor incoming connections from other hosts. n Select Client to have the virtual machine initiate a connection to another host. b Enter a Port URI. The URI is the remote end of the serial port to which the virtual machine's serial port should connect. If vSPC is used as an intermediate step to access all virtual machines through a single IP address, select Use Virtual Serial Port Concentrator and enter the vSPC URI location.
(Optional) Select Yield on poll. Select this option only for guest operating systems that use serial ports in polled mode. This option prevents the guest from consuming excessive CPUs.
Similarly, if you run the Telnet Server on your Linux system on port 23 (telnet://yourLinuxBox:23), you configure the virtual machine as a client URI.
telnet://yourLinuxBox:23
The virtual machine initiates the connection to your Linux system on port 23.
Verify that the virtual machine is powered off. Check that you known the correct media types for the port to access, vSPC connections, and any conditions that might apply. See Using Serial Ports with vSphere Virtual Machines, on page 115. To connect a serial port over a network, add a Firewall rule set. See Adding a Firewall Rule Set for Serial Port Network Connections, on page 116. Required privilege: Virtual Machine .Configuration.Add or Remove Device
VMware, Inc.
119
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. From the Add a device drop-down menu, select Serial Port and click Add device. The serial port appears in the virtual device list.
5 6
Click the triangle next to the serial port to expand the serial port options. Select a connection type.
Option Use physical serial port Use output file Use named pipe Action Select this option to have the virtual machine use a physical serial port on the host computer. Select the serial port from the drop-down menu. Select this option to send output from the virtual serial port to a file on the host computer. Browse to select an output file to connect the serial port to. Select this option to set a direct connection between two virtual machines or a connection between a virtual machine and an application on the host computer. a Type a name for the pipe in the Pipe Name field. b Select the Near end and Far end of the pipe from the drop-down menus. Select Use network to connect through a remote network. a Select the network backing. n Select Server to have the virtual machine monitor incoming connections from other hosts. n Select Client to have the virtual machine initiate a connection to another host. b Enter a Port URI. The URI is the remote end of the serial port to which the virtual machine's serial port should connect. If vSPC is used as an intermediate step to access all virtual machines through a single IP address, select Use Virtual Serial Port Concentrator and enter the vSPC URI location.
(Optional) Select Yield on poll. Select this option only for guest operating systems that use serial ports in polled mode. This option prevents the guest from consuming excessive CPUs.
8 9
(Optional) Deselect Connect at power on if you do not want the parallel port device to be connected when the virtual machine powers on. Click OK.
120
VMware, Inc.
Similarly, if you run the Telnet Server on your Linux system on port 23 (telnet://yourLinuxBox:23), you configure the virtual machine as a client URI.
telnet://yourLinuxBox:23
The virtual machine initiates the connection to your Linux system on port 23.
Verify that the virtual machine is powered off. Familiarize yourself with the media types for the port to access, vSPC connections, and any conditions that might apply. See Using Serial Ports with vSphere Virtual Machines, on page 115. To connect a serial port over a network, add a Firewall rule set. See Adding a Firewall Rule Set for Serial Port Network Connections, on page 116. Required privilege: Virtual Machine .Configuration.Add or Remove Device
Procedure 1 2 3 4 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Hardware tab and select Add. Select Serial Port and click Next. On the Serial Port Type page, select the type of media for the port to access.
Option Use physical serial port on the host Output to file Connect to named pipe Connect via network Description Click Next and select the port from the drop-down menu. Click Next and browse to the location of the file on the host to store the output of the virtual serial port. a b a Click Next and type a name for the pipe in the Pipe Name field. Select the Near end and Far end of the pipe from the drop-down menus. Click Next and clickServer or Client and type the Port URI. The URI is the remote end of the serial port to which the virtual machine's serial port should connect. If vSPC is used as an intermediate step to access all virtual machines through a single IP address, select Use Virtual Serial Port Concentrator (vSPC) and type the vSPC URI location.
5 6
(Optional) Deselect Connect at power on if you do not want the parallel port device to be connected when the virtual machine powers on. (Optional) Select Yield on poll. Select this option only for guest operating systems that use serial ports in polled mode. This option prevents the guest from consuming excessive CPUs.
Review the information on the Ready to Complete page and click Finish.
VMware, Inc.
121
Similarly, if you run the Telnet Server on your Linux system on port 23 (telnet://yourLinuxBox:23), you configure the virtual machine as a client URI.
telnet://yourLinuxBox:23
The virtual machine initiates the connection to your Linux system on port 23.
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5 6 7
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. Locate the parallel port in the device list and expand the menu. Select Output to file and click Browse to navigate to the file location. (Optional) Deselect Connect at power on if you do not want the parallel port device to be connected when the virtual machine powers on. Click OK.
122
VMware, Inc.
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. From the Add a device drop-down menu, select Parallel Port and click Add device. The parallel port appears in the virtual device list above.
5 6 7 8
Select Output to file and browse to the location of the file. (Optional) Select or deselect the Connected check box to connect or disconnect the device. (Optional) Select Connect At Power On to connect the device when the virtual machine powers on. Click OK.
Verify that the virtual machine is powered off. Required privilege: Virtual machine.Configuration.Add or remove device
Procedure 1 2 3 4 5 6 7 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Hardware tab and click Add. Select Parallel Port and click Next. Select Output to file and browse to the location of the file. (Optional) Select or deselect the Connected check box to connect or disconnect the device. Click Next. Review the information on the Ready to Complete page, and click Finish.
VMware, Inc.
123
For detailed information on how to configure NPIV for a virtual machine, see vSphere Storage. NPIV support is subject to the following limitations:
n
NPIV must be enabled on the SAN switch. Contact the switch vendor for information about enabling NPIV on their devices. NPIV is supported only for virtual machines with RDM disks. Virtual machines with regular virtual disks continue to use the WWNs of the hosts physical HBAs. The physical HBAs on the ESXi host must have access to a LUN using its WWNs in order for any virtual machines on that host to have access to that LUN using their NPIV WWNs. Ensure that access is provided to both the host and the virtual machines. The physical HBAs on the ESXi host must support NPIV. If the physical HBAs do not support NPIV, the virtual machines running on that host will fall back to using the WWNs of the hosts physical HBAs for LUN access. Each virtual machine can have up to 4 virtual ports. NPIV-enabled virtual machines are assigned exactly 4 NPIV-related WWNs, which are used to communicate with physical HBAs through virtual ports. Therefore, virtual machines can utilize up to 4 physical HBAs for NPIV purposes.
Prerequisites
n n
To edit the virtual machines WWNs, power off the virtual machine. Verify that the virtual machine has a datastore containing a LUN that is available to the host.
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5 6
In the VM Hardware panel, click Edit Settings. Click VM Options. Click the Fibre Channel NPIV triangle to expand the NPIV options. (Optional) Select the Temporarily Disable NPIV for this virtual machine check box. Select an option for assigning WWNs.
n n n
To leave WWNs unchanged, select Leave unchanged. To have vCenter Server or the ESXi host generate new WWNs, select Generate New WWNs. To remove the current WWN assignments, select Remove WWN assignment.
Click OK.
124
VMware, Inc.
NPIV must be enabled on the SAN switch. Contact the switch vendor for information about enabling NPIV on their devices. NPIV is supported only for virtual machines with RDM disks. Virtual machines with regular virtual disks continue to use the WWNs of the hosts physical HBAs. The physical HBAs on the ESXi host must have access to a LUN using its WWNs in order for any virtual machines on that host to have access to that LUN using their NPIV WWNs. Ensure that access is provided to both the host and the virtual machines. The physical HBAs on the ESXi host must support NPIV. If the physical HBAs do not support NPIV, the virtual machines running on that host will fall back to using the WWNs of the hosts physical HBAs for LUN access. Each virtual machine can have up to 4 virtual ports. NPIV-enabled virtual machines are assigned exactly 4 NPIV-related WWNs, which are used to communicate with physical HBAs through virtual ports. Therefore, virtual machines can utilize up to 4 physical HBAs for NPIV purposes.
You can view or edit the virtual machines WWNs on the Options tab. Prerequisites
n n
To edit the virtual machines WWNs, power off the virtual machine. Verify that the virtual machine has a datastore containing a LUN that is available to the host.
Procedure 1 2 3 4 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Options tab and under Advanced select Fibre Channel NPIV. (Optional) Select the Temporarily Disable NPIV for this virtual machine check box. Assigned WWNs appear in the WWN Assignments panel.
n n n
To leave WWNs unchanged, select Leave unchanged. To have vCenter Server or the ESXi host generate new WWNs, select Generate New WWNs. To remove the current WWN assignments, select Remove WWN assignment.
5 6
Click OK to save your changes and close the dialog box. Provide the WWN assignments to your SAN administrator. The administrator needs the assignments to configure virtual machine access to the LUN.
VMware, Inc.
125
When you map a LUN to a VMFS volume, vCenter Server creates a raw device mapping (RDM) file that points to the raw LUN. Encapsulating disk information in a file allows vCenter Server to lock the LUN so that only one virtual machine can write to it. This file has a .vmdk extension, but the file contains only disk information that describes the mapping to the LUN on the ESXi system. The actual data is stored on the LUN. You cannot deploy a virtual machine from a template and store its data on a LUN. You can store only its data in a virtual disk file.
Thin Provision
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
126
VMware, Inc.
3 4 5 6
Click Virtual Hardware. Click the triangle next to a virtual disk to expand the disk options. (Optional) To change the size of the disk, type a new value in the Provisioned Size text box and select the units from the drop-down menu. (Optional) Select a disk mode.
Option Dependent Independent - Persistent Description Dependent disks are included in snapshots. Disks in persistent mode behave like conventional disks on your physical computer. All data written to a disk in persistent mode are written permanently to the disk. Changes to disks in nonpersistent mode are discarded when you power off or reset the virtual machine. With nonpersistent mode, you can restart the virtual machine with a virtual disk in the same state every time. Changes to the disk are written to and read from a redo log file that is deleted when you power off or reset.
Independent - Nonpersistent
Click OK.
Independent - Nonpersistent
VMware, Inc.
127
Add a New Hard Disk to a Virtual Machine in the vSphere Web Client on page 128 You can create a virtual hard disk and add it to a virtual machine. Add an Existing Hard Disk to a Virtual Machine in the vSphere Web Client on page 130 You can add an existing hard disk to a virtual machine. Add an RDM Disk to a Virtual Machine in the vSphere Web Client on page 130 You can use a raw device mapping (RDM) to store virtual machine data directly on a SAN LUN, instead of storing it in a virtual disk file.
Add a New Hard Disk to a Virtual Machine in the vSphere Web Client
You can create a virtual hard disk and add it to a virtual machine. Procedure 1 Select a virtual machine.
n
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. From the Add a device drop-down menu, select New Hard Disk and click Add device. The hard disk appears in the virtual devices list.
5 6 7
Click the triangle next to the new hard disk to expand the hard disk options. (Optional) Type a value in the Provisioned Size text box and select the units from the drop-down menu. Select the location for the virtual disk.
Option Store the disk with the virtual machine Store the disk on another datastore or datastore cluster Action Select Store with the virtual machine. The disk will be stored in the same location as the virtual machine configuration file. a b c Select Browse. Select a datastore or datastore cluster. If you selected a datastore cluster and do not want to use Storage DRS with this disk, select Disable Storage DRS for this virtual machine and select a datastore within the datastore cluster. Click OK.
128
VMware, Inc.
Flat pre-initialized
In the Shares drop-down menu, select a value for the shares to allocate to the virtual disk. Shares is a value that represents the relative metric for controlling disk bandwidth. The values Low, Normal, High, and Custom are compared to the sum of all shares of all virtual machines on the host. Share allocation symbolic values can be used to configure their conversion into numeric values.
10 11
If you selected Custom, type a number of shares in the text box. In the Limit - IOPs box, enter the upper limit of storage resources to allocate to the virtual machine, or select Unlimited. This value is the upper limit of I/O operations per second allocated to the virtual disk.
12
Accept the default or select a different virtual device node. In most cases, you can accept the default device node. For a hard disk, a nondefault device node is useful to control the boot order or to have different SCSI controller types. For example, you might want to boot from an LSI Logic controller and share a data disk with another virtual machine that is using a Buslogic controller with bus sharing turned on.
13
Independent - Nonpersistent
14
Click OK.
VMware, Inc.
129
Add an Existing Hard Disk to a Virtual Machine in the vSphere Web Client
You can add an existing hard disk to a virtual machine. Procedure 1 Select a virtual machine.
n
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. From the Add a device drop-down menu, select Existing Hard Disk and click Add device. Browse for and select the disk file and click OK. The disk appears in the virtual devices list.
What to do next
n
(Optional) Change the virtual disk configuration. See Change the Virtual Disk Configuration in the vSphere Web Client, on page 126. (Optional) Use disk shares to prioritize virtual machine access to this disk. See Use Disk Shares to Prioritize Virtual Machines in the vSphere Web Client, on page 132.
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. From the Add a device drop-down menu, select RDM Disk and click Add device. Select the target LUN for the raw device mapping and click OK. The disk appears in the virtual device list.
To store the mapping file with the virtual machine configuration file, select Store with the virtual machine. To select a location for the mapping file, select Browse and select the datastore location for the disk.
130
VMware, Inc.
Virtual
Accept the default or select a different virtual device node. In most cases, you can accept the default device node. For a hard disk, a nondefault device node is useful to control the boot order or to have different SCSI controller types. For example, you might want to boot from an LSI Logic controller and share a data disk with another virtual machine using a Buslogic controller with bus sharing turned on.
(Optional) If you selected virtual compatibility mode, select a disk mode. Disk modes are not available for RDM disks using physical compatibility mode.
Option Dependent Independent - Persistent Description Dependent disks are included in snapshots. Disks in persistent mode behave like conventional disks on your physical computer. All data written to a disk in persistent mode are written permanently to the disk. Changes to disks in nonpersistent mode are discarded when you power off or reset the virtual machine. With nonpersistent mode, you can restart the virtual machine with a virtual disk in the same state every time. Changes to the disk are written to and read from a redo log file that is deleted when you power off or reset.
Independent - Nonpersistent
10
Click OK.
VMware, Inc.
131
Browse for the disk file path and click Next. Gives your virtual machine direct access to SAN. a Select the LUN to use for the raw disk, and click Next. b Select the datastore and click Next. c Select the compatibility mode. n Physical allows the guest operating system to access the hardware directly. n Virtual allows the virtual machine to use VMware snapshots and other advanced functions. d Click Next.
Accept the default or select a different virtual device node. In most cases, you can accept the default device node. For a hard disk, a nondefault device node is useful to control the boot order or to have different SCSI controller types. For example, you might want to boot from an LSI Logic controller and share a data disk with another virtual machine using a BusLogic controller with bus sharing turned on.
(Optional) To change the way disks are affected by snapshots, click Independent and select an option.
Option Independent - Persistent Description Disks in persistent mode behave like conventional disks on your physical computer. All data written to a disk in persistent mode are written permanently to the disk. Changes to disks in nonpersistent mode are discarded when you power off or reset the virtual machine. With nonpersistent mode, you can restart the virtual machine with a virtual disk in the same state every time. Changes to the disk are written to and read from a redo log file that is deleted when you power off or reset.
Independent - Nonpersistent
7 8 9
Click Next. Review the information and click Finish. Click OK to save your changes and close the dialog box.
Use Disk Shares to Prioritize Virtual Machines in the vSphere Web Client
You can change the disk resources for a virtual machine. If multiple virtual machines access the same VMFS datastore and the same logical unit number (LUN), use disk shares to prioritize the disk accesses from the virtual machines. Disk shares distinguish high-priority from low-priority virtual machines. You can allocate the host disk's I/O bandwidth to the virtual hard disks of a virtual machine. Disk I/O is a hostcentric resource so you cannot pool it across a cluster.
132
VMware, Inc.
Shares is a value that represents the relative metric for controlling disk bandwidth to all virtual machines. The values are compared to the sum of all shares of all virtual machines on the server. Disk shares are relevant only within a given host. The shares assigned to virtual machines on one host have no effect on virtual machines on other hosts. You can select an IOP limit, which sets an upper bound for storage resources that are allocated to a virtual machine. IOPs are the number of I/O operations per second. Procedure 1 Select a virtual machine.
n
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5 6 7 8
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. Click the triangle next to a virtual disk to expand the disk options. In the Shares drop-down menu, select a value for the shares to allocate to the virtual machine. If you selected Custom, enter a number of shares in the text box. In the Limit - IOPs box, enter the upper limit of storage resources to allocate to the virtual machine, or select Unlimited. Click OK.
VMware, Inc.
133
n n
When you select a shares symbolic value, the numeric value appears in the Shares Value column. You can select Custom to enter a user-defined shares value. 5 6 Click the Limit - IOPS column and enter the upper limit of storage resources to allocate to the virtual machine. Click OK to save your changes and close the dialog box.
Determine the Disk Format of a Virtual Machine in the vSphere Web Client
You can determine whether your virtual disk is in thick or thin format. If you have thin provisioned disks, you can change them to thick by selecting Flat pre-initialized disk provisioning. You change thick provisioned disks to thin by selecting Allocate and commit space on demand. Procedure 1 Select a virtual machine.
n
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. Click the triangle next to the virtual disk to expand the disk options. The disk type is displayed in the Disk Provisioning field.
Click OK.
What to do next If your virtual disk is in the thin format, you can inflate it to its full size using the vSphere Client. See the vSphere Client online Help.
134
VMware, Inc.
What to do next If your virtual disk is in the thin format, you can inflate it to its full size.
The virtual disk in the thick provision format occupies the entire datastore space originally provisioned to it.
When you create, clone, or migrate a virtual machine, you can select to associate it with a virtual machine storage profile. When you select a virtual machine storage profile, vSphere Client shows you the datastores that are compatible with the capabilities of the profile. You can then select a datastore or a datastore cluster. If you select a datastore that does not match the virtual machine storage profile, the vSphere Client shows that the virtual machine is using non-compliant storage.
VMware, Inc.
135
Associate a Virtual Machine Storage Profile with a Virtual Machine and Its Virtual Disks
You can associate a virtual machine storage profile with a virtual machine to define the storage capabilities that are required by the applications running on the virtual machine. You can associate a virtual machine storage profile with a powered-off and powered-on virtual machine. Procedure 1 Open the Profiles tab of a virtual machine.
Option Edit the settings of a virtual machine Description a b Use the virtual machine context menu Right-click a virtual machine from the inventory and select Edit Settings. In the Virtual Machine Properties window, select the Profiles tab.
Right-click a virtual machine from the inventory and select VM Storage Profile > Manage Profiles.
Associate the virtual machine home files with a virtual machine storage profile from the Home VM Storage Profile drop-down menu. NOTE The virtual machine home files include the file types .vmx, .vmsd, .nvram, and so on.
3 4 5
(Optional) Click Propagate to disks to associate all virtual disks with the same virtual machine storage profile. Under VM storage profiles for virtual disks, associate each virtual disk with a different virtual machine storage profile from the VM Storage Profile drop-down menu. Click OK.
The virtual machine storage profile name appears in the VM Storage Profiles pane of the Summary tab for the virtual machine. NOTE If you add a new virtual disk and associate it with a virtual machine storage profile at the same time, the VMware vSphere Profile-Driven Storage Service might take some to associate the virtual machine storage profile with the new virtual disk.
136
VMware, Inc.
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. Click the triangle next to the SCSI controller to expand the SCSI controller options. Select a SCSI controller type from the Change Type drop-down menu. The vSphere Web Client displays information about what will happen if you change the controller type. If you have selected a controller type that is not recommended for the virtual machine's guest operating system, a warning is displayed.
Click Change Type to change the controller type. Click Don't change to cancel the change and keep the original controller type.
Click OK.
VMware, Inc.
137
If you create an LSI Logic virtual machine and add a virtual disk that uses BusLogic adapters, the virtual machine boots from the BusLogic adapters disk. LSI Logic SAS is available only for virtual machines with hardware version 7. Disks with snapshots might not experience performance gains when used on LSI Logic SAS, VMware Paravirtual, and LSI Logic Parallel adapters. CAUTION Changing the SCSI controller type might result in a virtual machine boot failure.
Procedure 1 2 3 4 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Hardware tab, select a SCSI controller, and click Change Type. Select a SCSI controller type and click OK. Click OK to save your changes and close the dialog box.
Hot add or remove requires a bus rescan from within the guest operating system. Disks on PVSCSI controllers might not experience performance gains if they have snapshots or if memory on the ESXi host is over committed. If you upgrade your Linux virtual machine to an unsupported kernel, you might not be able to access data on the disks attached to a PVSCSI controller. To regain access to such disks, you can run vmware-configtools.pl with the kernel-version parameter to regain access. a b Upgrade the guest kernel but do not restart the guest. Run the VMware Tools configuration with the kernel-version parameter and pass the kernel version within the guest:
vmware-config-tools.pl --kernel-version kernel_version
To determine the kernel version, search for the directory name that was created in /lib/modules during the kernel upgrade. Use that directory name, including all dashes, periods, and other characters as an argument to --kernel-version. c
n n
MSCS clusters are not supported. PVSCSI controllers do not support boot disks, the disk that contains the system software, on Red Hat Linux 5 virtual machines. Attach the boot disk to the virtual machine by using any of the other supported controller types.
138
VMware, Inc.
Prerequisites
n n n
Verify that the virtual machine has a guest operating system with VMware Tools installed. Verify that the virtual machine has hardware version 7 or later. Ensure that you are familiar with PVSCSI limitations. See About VMware Paravirtual SCSI Controllers, on page 138. To access boot disk devices attached to a PVSCSI controller, verify that the virtual machine has a Windows 2003 or Windows 2008 guest operating system. In some operating systems, before you change the controller type you need to create a virtual machine with an LSI Logic controller, install VMware Tools, then change to paravirtual mode.
Procedure 1 2 3 4 5 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Hardware tab and click Add. Select SCSI Device and click Next. Select a SCSI device in the Connection panel. Select an unused Virtual Device Node and click Next. For device node SCSI (0:2), 0 is the controller number and 2 is the number of the device that is attached to the controller. If you select a node on which devices already exist (for example, SCSI 0:3) you will add a SCSI device to the existing controller. To add a new controller, you must select an unused device node on an unused SCSI controller (for example 1:0). 6 Review your selections and click Finish. New SCSI Controller (adding) and New SCSI Device (adding) appear in the Hardware list. 7 8 9 10 11 Click OK to save your changes and exit the dialog box. Reopen the Virtual Machine Properties Editor. Select the new SCSI controller and click Change Type. Select VMware Paravirtual and click OK. Click OK to save your changes and close the dialog box.
VMware, Inc.
139
Configure a Client Device Type for the CD/DVD Drive in the vSphere Web Client
You can connect the CD/DVD device to a physical DVD or CD device on the system from which you access the vSphere Web Client. Procedure 1 Select a virtual machine.
n
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5 6
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. Click the triangle next to the CD/DVD drive to expand the CD/DVD drive options. Select the Client Device under Device Type. Select the mode used for the connection.
n n
Passthrough IDE (raw). Use mode only for remote client device access. Emulate IDE. Use to access a host CD-ROM device.
The host CD device is accessed through emulation mode. Passthrough mode is not functional for local host CD access. You can write or burn a remote CD only through pass-through mode access, but in emulation mode you can only read a CD-ROM from a host CD-ROM device. 7 8 In the drop-down menu under Virtual Device Node, select the node the drive uses in the virtual machine. Click OK.
Configure a Client Device Type for the DVD/CD-ROM Drive in the vSphere Client
You can connect the DVD/CD-ROM device to a physical DVD or CD-ROM device on the system running the vSphere Client. Procedure 1 2 3 Select the virtual machine in the vSphere Client inventory. Click the CD/DVD Connections icon on the virtual machine toolbar. Select a drive or ISO image from the CD/DVD drive drop-down menu. Passthrough IDE (raw) mode access is set by default, which lets you write or burn a remote CD.
140
VMware, Inc.
Configure a Host Device Type for the CD/DVD Drive in the vSphere Web Client
You can connect the CD/DVD device to a physical DVD or CD device that resides on the host. You cannot use vMotion to migrate virtual machines that have CD drives that are backed by the physical CD drive on the host. You must disconnect these devices before you migrate the virtual machine. When you add a CD/DVD drive that is backed by a USB CD/DVD drive on the host, you must add the drive as a SCSI device. Hot adding and removing SCSI devices is not supported. Prerequisites Ensure that the host is powered off before you add USB CD/DVD devices. Procedure 1 Select a virtual machine.
n
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5 6 7 8 9 10
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. Click the triangle next to the CD/DVD drive to expand the drive options. In the Device Type drop-down menu, select Host Device. If there is more than one device available on the host, select the device. In the Virtual Device Node drop-down menu, select the node the drive uses in the virtual machine. (Optional) Select or deselect the Connected check box to connect or disconnect the device. (Optional) Select Connect At Power On to connect the device when the virtual machine powers on. Click OK.
Configure a Host Device Type for the DVD/CD-ROM Drive in the vSphere Client
You can connect the DVD/CD-ROM device to a physical DVD or CD-ROM device that resides on the host. You cannot use vMotion to migrate virtual machines that have CD drives that are backed by the physical CD drive on the host. You must disconnect these devices before you migrate the virtual machine. When you add a CD/DVD-ROM drive that is backed by a USB CD/DVD drive on the host, you must add the drive as a SCSI device. Hot adding or removing SCSI devices from an ESXi host is not supported. Prerequisites Ensure that the host is powered off before you add USB CD/DVD-ROM devices. Procedure 1 2 3 4 5 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Hardware tab and select the DVD/CD-ROM drive. Select or deselect the Connected check box to connect or disconnect the device. If you do not want the CD-ROM drive connected when the virtual machine starts, deselect Connect at power on. Select Host Device under Device Type and select a device from the drop-down menu.
VMware, Inc.
141
6 7
(Optional) In the drop-down menu under Virtual Device Node, select the node the drive uses in the virtual machine. Click OK to save your changes and close the dialog box.
Configure a Datastore ISO File for the CD/DVD Drive in the vSphere Web Client
You can connect the CD/DVD device to an ISO file that is stored on a datastore accessible to the host. Procedure 1 Select a virtual machine.
n
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5 6 7 8 9
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. Click the triangle next to the CD/DVD drive to expand the CD/DVD drive options. From the Device Type drop-down menu, Datastore ISO File and click Browse to navigate to the file. In the drop-down menu under Virtual Device Node, select the node the drive uses in the virtual machine. (Optional) Select or deselect the Connected check box to connect or disconnect the device. (Optional) Select Connect At Power On to connect the device when the virtual machine powers on. Click OK.
Configure a Datastore ISO File for the DVD/CD-ROM Drive in the vSphere Client
You can connect the DVD/CD-ROM device to an ISO file that is stored on a datastore accessible to the host. Procedure 1 2 3 4 5 6 7 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Hardware tab and select the DVD/CD-ROM drive. Select or deselect the Connected check box to connect or disconnect the device. If you do not want the CD-ROM drive connected when the virtual machine starts, deselect Connect at power on. Select Datastore ISO File under Device Type and click Browse to navigate to the file. In the drop-down menu under Virtual Device Node, select the node the drive uses in the virtual machine. Click OK to save your changes and close the dialog box.
142
VMware, Inc.
Prerequisites Ensure that the host is powered off before you add USB CD/DVD devices. Procedure 1 Select a virtual machine.
n
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. From the Add a device drop-down menu, select CD/DVD Drive and click Add device. The new drive appears in the virtual devices list above.
5 6
Click the triangle next to the new drive to expand the drive options. Select the type of device.
n
Select Client Device to connect the CD/DVD device to a physical DVD or CD device on the system from which you access the vSphere Web Client. Select Host Device to connect the CD/DVD device to a physical DVD or CD device on the host. Select Datastore ISO File to connect the CD/DVD device to an ISO file that is stored on a datastore accessible to the host.
n n
For client or host devices, select the mode used for the connection.
n n
Passthrough IDE (raw). Use mode only for remote client device access. Emulate IDE. Use to access a host CD-ROM device.
The host CD-ROM device is accessed through emulation mode. Passthrough mode is not functional for local host CD-ROM access. You can write or burn a remote CD only through pass-through mode access, but in emulation mode you can only read a CD-ROM from a host CD-ROM device. 8 9 10 11 (Optional) In the drop-down menu under Virtual Device Node, select the node the drive uses in the virtual machine. (Optional) Select or deselect the Connected check box to connect or disconnect the device. (Optional) Select Connect At Power On to connect the device when the virtual machine powers on. Click OK.
VMware, Inc.
143
Procedure 1 2 3 4 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Select the Hardware tab and click Add. Select DVD/CD-ROM Drive, and click Next. Select one option.
Option Use physical drive Description a b c Select Client or Host as the location. Select the drive you want to use from the drop-down menu. Select a Pass through (recommended) or ATAPI emulation connection type.
Enter the path and filename for the image file, or click Browse to navigate to the file.
5 6 7 8 9
If you do not want the CD-ROM drive connected when the virtual machine starts, deselect Connect at power on. Click Next. Select the virtual device node the drive uses in the virtual machine and click Next. Review the information on the Ready to Complete window, and click Finish or clickBack to change the settings. Click OK to save your changes and close the dialog box.
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. Click the triangle next to the floppy device to expand the drive options.
144
VMware, Inc.
Existing File
6 7 8
(Optional) Select or deselect the Connected check box to connect or disconnect the device. Select Connect At Power On to connect the device when the virtual machine powers on. Click OK.
VMware, Inc.
145
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. From the Add a device drop-down menu, select Floppy Drive and click Add device. The new floppy drive appears in the virtual devices list above.
5 6
Click the triangle next to the floppy device to expand the drive options. Select the device type to use for this virtual device.
Option Client Device Description Select this option to connect the floppy device to a physical floppy device or a .flp floppy image on the system from which you access the vSphere Web Client. a b Create new floppy image a b c Select this option to connect the virtual device to an existing floppy image on a datastore accessible to the host. Click Browse and select the floppy image. Select this option to create a floppy image on a datastore accessible to the host. Click Browse and browse to the location for the floppy image. Enter a name for the floppy image and click OK.
Existing File
7 8 9
(Optional) Select or deselect the Connected check box to connect or disconnect the device. Select Connect At Power On to connect the device when the virtual machine powers on. Click OK.
146
VMware, Inc.
2 3 4
Select the Hardware tab and click Add. Select Floppy Drive, and click Next. Select the device type to use for this virtual device.
Option Use a physical floppy drive Description Select this option to connect the floppy device to a physical floppy device or a .flp floppy image on the system running the vSphere Client. To connect the device, click the Floppy Connections button in the toolbar when you power on the virtual machine. a b Create a blank floppy image a b c Select this option to connect the virtual device to an existing floppy image on a datastore accessible to the host. Click Browse and select the floppy image. Select this option to create a floppy image on a datastore accessible to the host. Click Browse and browse to the location for the floppy image. Enter a name for the floppy image and click OK.
5 6 7 8
To have the floppy drive connected to the virtual machine when you power it on, select Connect at power on. Click Next. Review the information on the Ready to Complete page, and click Finish. Click OK to save your changes and close the dialog box.
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5 6 7
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. Click the triangle next to the SCSI device to expand the device options. From the Connection drop-down menu, select the physical SCSI device to connect to. (Optional) From the Virtual Device Node drop-down menu, select the virtual device node. Click OK.
VMware, Inc.
147
3 4 5 6 7
Select SCSI Device and click Next. Under Connection, use the drop-down menu to select a physical device. UnderVirtual Device Node, select the virtual device node where you want this device to appear in the virtual machine. Review the information in the Ready to Complete page, and click Finish. Click OK to save your changes and close the dialog box.
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5 6 7
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. Click the triangle next to the SCSI device to expand the device options. From the Connection drop-down menu, select the physical SCSI device to connect to. (Optional) From the Virtual Device Node drop-down menu, select the virtual device node. Click OK.
To use DirectPath, verify that the host has Intel Virtualization Technology for Directed I/O (VT-d) or AMD I/O Virtualization Technology (IOMMU) enabled in the BIOS.
148
VMware, Inc.
n n
Verify that the PCI devices are connected to the host and marked as available for passthrough. Verify that the virtual machine is using hardware version 7 or later.
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5 6
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. From the Add a device drop-down menu, select PCI Device and click Add device. Select the passthrough device to connect to the virtual machine from the drop-down list and click Next. Click OK.
To use DirectPath I/O, verify that the host has Intel Virtualization Technology for Directed I/O (VT-d) or AMD I/O Virtualization Technology (IOMMU) enabled in the BIOS. Verify that the PCI devices are connected to the host and marked as available for passthrough. Verify that the virtual machine is using hardware version 7 or later.
n n
Procedure 1 2 3 4 5 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. On the Hardware tab, click Add. In the Add Hardware wizard, select PCI Device and click Next. Select the passthrough device to connect to the virtual machine from the drop-down list and click Next. Click Finish.
Configure the Virtual Machine Communication Interface in the vSphere Web Client
The Virtual Machine Communication Interface (VMCI) provides a high-speed communication channel between a virtual machine and the ESXi host that it runs on. You can also enable VMCI for communication between virtual machines that run on the same host. Prerequisites Verify that the virtual machine is using hardware version 7 or later.
VMware, Inc.
149
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. Select Enable VMCI between VMs. Click OK.
Virtual machine communication is no longer restricted to the host it runs on. Other virtual machines that run on the same host can now communicate with the unrestricted virtual machine.
Virtual machine communication is no longer restricted to the host it runs on. Other virtual machines that run on the same host can now communicate with the unrestricted virtual machine.
150
VMware, Inc.
Select the display settings type from the Settings drop-down menu and configure the available settings.
Option Auto-detect video settings Specify custom settings Description Applies common video settings to the guest operating system. Lets you select the number of displays and the total video memory.
Select the number of displays from the drop-down menu. The vSphere Web Client supports setting a number of displays and extending the screen across them. True multimonitor support is not available with the vSphere Client.
5 6
Enter the video memory required for the displays. (Optional) Click Video Memory Calculator to calculate the required video memory based on the maximum number of displays, resolution, and color depth that the guest operating system must support, and clickOK. (Optional) Click Enable 3D support. This check box is active only for guest operating systems on which VMware supports 3D.
Click OK.
Sufficient memory allocation is set for this virtual machine's video display.
Select the number of displays from the drop-down menu. The vSphere Client supports setting a number of displays and extending the screen across them. True multimonitor support is not available with the vSphere Client.
5 6
Enter the video memory required for the displays. (Optional) Click Video Memory Calculator to calculate the required video memory based on the maximum number of displays, resolution, and color depth that the guest operating system must support and click OK.
VMware, Inc.
151
(Optional) Click Enable 3D support. This check box is active only for guest operating systems on which VMware supports 3D.
Sufficient memory allocation is set for the virtual machines video display.
Configuring vServices
A vService dependency allows a vApp or a virtual machine to request that a vService be available on a specified platform. A vService specifies a particular service on which vApps and virtual machines can depend. The vService configuration tab monitors and manages vService dependencies. This tab displays all the dependencies that a virtual machine or vApp has and each of their states. Each dependency shows the dependency name, description, requirement, bound status, and provider name.
152
VMware, Inc.
Select a provider for the dependency. When you select a provider, the description is entered containing the provider description. The validation box displays the results of the validation. If validation fails, the OK button is disabled until another provider or no provider is selected.
Click OK.
USB Controller
VMware, Inc.
153
USB controller hardware and modules that support USB 2.0 and USB 1.1 devices must exist on the host. Two virtual USB controllers are available to each virtual machine. A controller must be present before you can add USB devices to the virtual computer. The USB arbitrator can monitor a maximum of 15 USB controllers. Devices connected to controllers numbered 16 or greater are not available to the virtual machine. USB Devices You can add up to 20 USB devices to a virtual machine. This is the maximum number of devices supported for simultaneous connection to one virtual machine. The maximum number of USB devices supported on a single ESXi host for simultaneous connection to one or more virtual machines is also 20. For a list of supported USB devices, see the VMware knowledge base article at http://kb.vmware.com/kb/1021345.
The virtual machine is cycling through power operations, such as Power Off/Power On, Reset, Pause/Resume. The device is unplugged from the host then plugged back in to the same USB port. The device is power cycled but has not changed its physical connection path. The device is mutating identity during usage.
n n n
The USB passthrough autoconnect feature identifies the device by using the USB path of the device on the host. It uses the physical topology and port location, rather than the device identity. This feature can seem confusing if you expect the autoconnect feature to match the connection target by device ID. If the same device is plugged back in to the host through a different USB port, it cannot re-establish connection with the virtual machine. If you unplug the device from the host and plug in a different device to the same USB path, the new device appears and is connected to the virtual machine by the autoconnect feature that the previous device connection enabled. Autoconnect is useful in cases where devices mutate during usage. For example, for iPhones and other such devices, the device VID:PID changes during software or firmware upgrades. The upgrade process disconnects and reconnects the devices to the USB port. The USB port is speed-specific. The autoconnect feature assumes that devices do not transition from USB 1.1 (low-full speed) to USB 2.0 (high speed) or the reverse. You cannot interchange USB 2.0 high-speed devices with USB 1.1 devices. For example, you might connect a USB 2.0 high-speed device to a port and connect that device to the virtual machine. If you unplug the device from the host and plug a USB 1.1 device into the same port, the device does not connect to the virtual machine. For a list of supported USB devices for passthrough from an ESXi host to a virtual machine, see the VMware knowledge base article at http://kb.vmware.com/kb/1021345.
154
VMware, Inc.
For details about migration with vMotion, see Configuring USB Devices for vMotion, on page 155. If a host with connected USB devices resides in a DRS cluster with DPM enabled, you must disable DPM for that host. Otherwise DPM might turn off the host with the device, which disconnects the device from the virtual machine.
You must configure all USB passthrough devices connected to a virtual machine for vMotion. If one or more devices is not configured for vMotion, the migration cannot proceed. For troubleshooting details, see the vSphere Troubleshooting documentation. When you migrate a virtual machine with attached USB devices away from the host to which the devices are connected, the devices remain connected to the virtual machine. However, if you suspend or power off the virtual machine, the USB devices are disconnected and cannot reconnect when the virtual machine is resumed. The device connections can be restored only if you move the virtual machine back to the host to which the devices are attached. If you resume a suspended virtual machine that has a Linux guest operating system, the resume process might mount the USB devices at a different location on the file system. If a host with attached USB devices resides in a DRS cluster with distributed power management (DPM) enabled, disable DPM for that host. Otherwise DPM might turn off the host with the attached device. This action disconnects the device from the virtual machine because the virtual machine migrated to another host.
Before you hot add memory, CPU, or PCI devices, you must remove any USB devices. Hot adding these resources disconnects USB devices, which might result in data loss. Before you suspend a virtual machine, make sure that a data transfer is not in progress. During the suspend or resume process, USB devices behave as if they have been disconnected, then reconnected. For information about suspend and resume behavior after migration with vMotion, see Configuring USB Devices for vMotion, on page 155.
VMware, Inc.
155
Before you change the state of the arbitrator, make sure that USB devices residing on the host are not attached to a virtual machine. If USB devices become unavailable to a virtual machine, a host administrator might have disabled the arbitrator. When an administrator stops or disconnects the arbitrator for troubleshooting or other purposes, USB devices attached to that host become unavailable to the virtual machine. If a data transfer is taking place at this time, you might lose the data. To reestablish the arbitrator, you must reboot the host.
Communication delay between the host and virtual machine increases as the number of cascading hubs increases. Connecting or chaining multiple external USB hubs increases device enumeration and response time, which can make the power support to the connected USB devices uncertain. Chaining hubs together also increases the chance of port and hub error, which can cause the device to lose connection to a virtual machine. Certain hubs can cause USB device connections to be unreliable, so use care when you add a new hub to an existing setup. Connecting certain USB devices directly to the host rather than to a hub or extension cable might resolve their connection or performance issues.
NOTE To prevent additional problems, be aware of the physical constraints of long-term deployment in a machine room environment. Small devices are easily damaged by being stepped on or knocked loose. In some cases, you must hard reset the device and hub to restore the device to a working state. For a list of supported USB devices for passthrough from an ESXi host to a virtual machine, see the VMware knowledge base article at http://kb.vmware.com/kb/1021345.
156
VMware, Inc.
If a host has attached USB devices and resides in a DRS cluster with DPM enabled, disable DPM for that host. See the vSphere Resource Management documentation for instructions about overriding the default DPM setting for an individual host. Verify that you know the virtual machine requirements for USB devices. See Connecting USB Devices to an ESXi Host, on page 156. Verify that the ESXi host is powered off before you add USB CD/DVD-ROM devices.
Procedure
u
To add a USB device to an ESXi host, connect the device to an available port or hub.
The USB device appears in the virtual machine Add Hardware wizard device list. What to do next You can now add the device to the virtual machine.
NOTE Drivers are not available for the xHCI controller on Windows guest operating systems.
VMware, Inc.
157
For Mac OS X systems, the EHCI+UHCI controller is enabled by default and is required for USB mouse and keyboard access. For virtual machines with Linux guests, you can add one or both controllers, but 3.0 superspeed devices are not supported for passthrough from an ESXi host to a virtual machine. You cannot add two controllers of the same type. For USB passthrough from an ESXi host to a virtual machine, the USB arbitrator can monitor a maximum of 15 USB controllers. If your system includes controllers that exceed the 15 controller limit and you connect USB devices to them, the devices are not available to the virtual machine. Prerequisites
n n
ESXi hosts must have USB controller hardware and modules that support USB 2.0 and 1.1 devices present. Client computers must have USB controller hardware and modules that support USB 3.0, 2.0, and 1.1 devices present. To use the xHCI controller on a Linux guest, ensure that the Linux kernel version is 2.6.35 or later. Verify that the virtual machine is powered on. Required Privilege (ESXi host passthrough): Virtual Machine.Configuration.Add or Remove Device
n n n
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. From the Add a device drop-down menu, select USB Controller and click Add device. The USB controller appears in the virtual device list above.
5 6 7
Click the USB controller triangle to expand the USB controller options. Select the type of USB controller. Click OK.
What to do next Add one or more USB devices to the virtual machine.
158
VMware, Inc.
NOTE Drivers are not available for the xHCI controller on Windows guest operating systems. For Mac OS X systems, the EHCI+UHCI controller is enabled by default and is required for USB mouse and keyboard access. For virtual machines with Linux guests, you can add one or both controllers, but 3.0 superspeed devices are not supported for passthrough from an ESXi host to a virtual machine. You cannot add two controllers of the same type. For USB passthrough from an ESXi host to a virtual machine, the USB arbitrator can monitor a maximum of 15 USB controllers. If your system includes controllers that exceed the 15 controller limit and you connect USB devices to them, the devices are not available to the virtual machine. Prerequisites
n n
ESXi hosts must have USB controller hardware and modules that support USB 2.0 and 1.1 devices present. Client computers must have USB controller hardware and modules that support USB 3.0, 2.0, and 1.1 devices present. To use the xHCI controller on a Linux guest, ensure that the Linux kernel version is 2.6.35 or later. Verify that the virtual machine is powered on. Required Privilege (ESXi host passthrough): Virtual Machine.Configuration.Add or Remove Device
n n n
Procedure 1 2 3 4 5 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Hardware tab and click Add. Select the type of USB Controller to add and click Next. Review the device information and click Next. Click Finish. New USB Controller (adding) appears in the hardware list as Present. 6 Click OK to save your changes and close the dialog box.
When you reopen the Properties Editor, the xHCI controller appears on the Hardware tab as USB xHCI controller. The EHCI+UHCI controller appears asUSB controller. What to do next Add one or more USB devices to the virtual machine.
VMware, Inc.
159
Add USB Devices from an ESXi Host to a Virtual Machine in the vSphere Web Client
You can add one or more USB passthrough devices from an ESXi host to a virtual machine if the physical devices are connected to the host on which the virtual machine runs. If a USB device is connected to another virtual machine, you cannot add it until that machine releases it. NOTE If you have the Apple Frontpanel Controller device in your environment, you can safely add it to a virtual machine. However, this device has no documented function and no known use. ESXi hosts do not use it and do not provide Xserver functionality for USB passthrough Prerequisites
n n
Verify that the virtual machine is using hardware version 7 or later. Verify that a USB controller is present. See Add a USB Controller to a Virtual Machine in the vSphere Web Client, on page 157. To use vMotion to migrate a virtual machine with multiple USB devices, you must enable all attached USB devices for vMotion. You cannot migrate individual USB devices. For vMotion limitations, see Configuring USB Devices for vMotion, on page 155. When you add a CD/DVD-ROM drive that is backed by a USB CD/DVD drive on the host, you must add the drive as a SCSI device. Hot adding and removing SCSI devices is not supported. Verify that you know the virtual machine requirements for USB devices. See USB Configuration from an ESXi Host to a Virtual Machine, on page 153. Required privileges: Virtual Machine.Configuration.HostUSBDevice
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. From the Add a device drop-down menu, select USB Device and click Add device. The USB device appears in the virtual device list above.
5 6
Click the USB device triangle to expand the USB device options. Select the device to add. You can add multiple USB devices, but only one device at a time.
If you do not plan to migrate a virtual machine with USB devices attached, deselect the Support vMotion option. This reduces migration complexity, which results in better performance and stability.
Click OK.
160
VMware, Inc.
Add USB Devices from an ESXi Host to a Virtual Machine in the vSphere Client
You can add one or more USB passthrough devices from an ESXi host to a virtual machine if the physical device is connected to the host on which the virtual machine runs. If a USB device is connected to another virtual machine, you cannot add it until that machine releases it. NOTE If you have the Apple Frontpanel Controller device in your environment, you can safely add it to a virtual machine. However, this device has no documented function and no known use. ESXi hosts do not use it and do not provide Xserver functionality for USB passthrough Prerequisites
n n
Verify that the virtual machine is using hardware version 7 or later. Verify that a USB controller is present. See Add a USB Controller to a Virtual Machine in the vSphere Client, on page 158. To use vMotion to migrate a virtual machine with multiple USB devices, you must enable all attached USB devices for vMotion. You cannot migrate individual USB devices. For vMotion limitations, see Configuring USB Devices for vMotion, on page 155. When you add a CD/DVD-ROM drive that is backed by a USB CD/DVD drive on the host, you must add the drive as a SCSI device. Hot adding and removing SCSI devices is not supported. Verify that you know the virtual machine requirements for USB devices. See USB Configuration from an ESXi Host to a Virtual Machine, on page 153. Required privileges: Virtual Machine.Configuration.HostUSBDevice
Procedure 1 2 3 4 5 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Hardware tab and click Add. Select USB Device and click Next. (Optional) Select Support vMotion while device is connected. If you do not plan to migrate a virtual machine with USB devices attached, deselect the Support vMotion option. This reduces migration complexity, which results in better performance and stability. 6 Select a device to add. You can add multiple USB devices, but only one device at a time. 7 Click Finish. New USB Device (adding) appears in the hardware list as Present. 8 Click OK to save your changes and close the dialog box.
When you reopen the Properties editor, the USB device appears on the Hardware tab of the Properties Editor. The device type and ID appear in the right pane.
VMware, Inc.
161
Verify that the devices are not in use. To minimize the risk of data loss, follow the instructions to safely unmount or eject hardware for your operating system. Safely removing hardware allows accumulated data to be transmitted to a file. Windows operating systems typically include a Remove Hardware icon located in the System Tray. Linux operating systems use the umount command. NOTE You might need to use the sync command instead of or in addition to the umount command, for example after you issue a dd command on Linux or other UNIX operating systems.
Procedure 1 2 3 4 Unmount or eject the USB device from the guest operating system. Right-click the virtual machine and select Edit Settings. Click the Hardware tab and select the USB device. Click Remove and click OK to save your changes and close the dialog box.
Verify that all USB devices are disconnected from the virtual machine. Required Privilege: Virtual Machine.Configuration.Add or Remove Device
Procedure 1 2 3 4 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Hardware tab and select USB controller. Click Remove. Click OK to save your changes and close the dialog box.
The controller is no longer connected to the virtual machine, but remains available to add at a later time.
162
VMware, Inc.
Procedure
u
Follow the device manufacturers instructions to safely remove the device. When you remove the device from the host, it is no longer available to the virtual machines that run on the host.
USB Configuration from a Client Computer to a Virtual Machine in the vSphere Web Client
You can add multiple USB devices to a virtual machine when the physical devices connect to a client computer on which the vSphere Web Client is running. The vSphere Web Client must be logged in to an instance of vCenter Server that manages the ESXi host where the virtual machines reside. USB passthrough technology supports adding multiple USB devices, such as security dongles, mass storage devices, and smartcard readers to virtual machines.
The virtual machine that you connect the USB 3.0 device to must be configured with an xHCI controller and have a Linux guest operating system with a 2.6.35 or later kernel. You can connect only one USB 3.0 device operating at superspeed to a virtual machine at a time. USB 3.0 devices are available only for passthrough from a client computer to a virtual machine. They are not available for passthrough from an ESXi host to a virtual machine.
n n
VMware, Inc.
163
Connecting or chaining multiple external USB hubs increases device enumeration and response time, which can make the power support to the connected USB devices uncertain. Chaining hubs together increases the chance of port and hub error, which can cause the device to lose connection to a virtual machine. Certain hubs can cause USB device connections to be unreliable, so use care when you add a new hub to an existing setup. Connecting certain USB devices directly to the client computer rather than to a hub or extension cable might resolve their connection or performance issues. In some cases, you must remove and reattach the device and hub to restore the device to a working state.
164
VMware, Inc.
Procedure
u
To add a USB device to a client computer, connect the device to an available port or hub.
The USB device appears in the virtual machine toolbar menu. What to do next You can now add the USB device to the virtual machine.
NOTE Drivers are not available for the xHCI controller on Windows guest operating systems. For Mac OS X systems, the EHCI+UHCI controller is enabled by default and is required for USB mouse and keyboard access. For virtual machines with Linux guests, you can add one or both controllers, but 3.0 superspeed devices are not supported for passthrough from an ESXi host to a virtual machine. You cannot add two controllers of the same type. For USB passthrough from an ESXi host to a virtual machine, the USB arbitrator can monitor a maximum of 15 USB controllers. If your system includes controllers that exceed the 15 controller limit and you connect USB devices to them, the devices are not available to the virtual machine. Prerequisites
n n
ESXi hosts must have USB controller hardware and modules that support USB 2.0 and 1.1 devices present. Client computers must have USB controller hardware and modules that support USB 3.0, 2.0, and 1.1 devices present. To use the xHCI controller on a Linux guest, ensure that the Linux kernel version is 2.6.35 or later. Verify that the virtual machine is powered on. Required Privilege (ESXi host passthrough): Virtual Machine.Configuration.Add or Remove Device
n n n
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
VMware, Inc.
165
2 3 4
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. From the Add a device drop-down menu, select USB Controller and click Add device. The USB controller appears in the virtual device list above.
5 6 7
Click the USB controller triangle to expand the USB controller options. Select the type of USB controller. Click OK.
What to do next Add one or more USB devices to the virtual machine.
Add USB Devices From a Client Computer to a Virtual Machine in the vSphere Web Client
You can add one or more USB passthrough devices from a client computer to a virtual machine on the virtual machine Summary page in the vSphere Web Client. The devices must be connected to a client computer that connects to the ESXi host on which the virtual machine resides. The devices maintain their virtual machine connections in S1 standby, if the vSphere Web Client is running and connected. After you add the USB device to the virtual machine, an information message appears on the client computer stating that the device is disconnected. The device remains disconnected from the client computer until the virtual machine releases it. FT is not supported with USB passthrough from a client computer to a virtual machine. Prerequisites
n n n n
Verify that the Client Integration Plug-in is installed. Verify that a USB Controller is present. Verify that the vSphere Web Client has access to the ESXi host on which the virtual machines are running. Required Privilege: Virtual Machine.Interaction.Add or Remove Device
Procedure 1 2 Select a virtual machine in the inventory and click the Summary tab. Click the USB icon to the right of USB Devices under VM Hardware and select an available device from the drop-down menu. A Connecting label and a spinner appear, which indicates that a connection is in progress. When the device has successfully connected and the Summary tab refreshes, the device is connected and the device name appears next to USB Devices.
166
VMware, Inc.
Remove USB Devices That Are Connected Through a Client Computer in the vSphere Web Client
You can remove USB devices from a virtual machine if the devices are no longer needed. When you disconnect a USB device from a virtual machine, the device is released from the virtual machine and is given back to the client computer, which starts using it. Prerequisites
n
To minimize the risk of data loss, follow the instructions to safely unmount or eject hardware for your operating system. Safely removing hardware allows accumulated data to be transmitted to a file. Windows operating systems typically include a Remove Hardware icon located in the System Tray. Linux operating systems use the umount command. NOTE You might need to use the sync command instead of or in addition to the umount command, for example after you run a dd command on Linux or other UNIX operating systems.
Procedure 1 2 3 Unmount or eject the USB device from the guest operating system. On the virtual machine Summary tab, click the disconnect icon on the right side of the USB device entry. Select a device to disconnect from the drop-down menu. A Disconnecting label and a spinner appear, indicating that a disconnection is in progress. When the device is disconnected, after a slight delay, the Summary tab refreshes and the device is removed from the virtual machine configuration. The device reconnects to the client computer and is available to add to another virtual machine. In some cases, Windows Explorer detects the device and opens a dialog box on the client computer. You can close this dialog box.
Remove a USB Controller from a Virtual Machine in the vSphere Web Client
You can remove a USB controller from the virtual machine if you do not want to connect to USB devices. Prerequisites
n n
Verify that all USB devices are disconnected from the virtual machine. Required Privilege: Virtual Machine.Configuration.Add or Remove Device
Procedure 1 2 3 4 Right-click a virtual machine in the inventory and select Configuration > Edit Settings. Select Virtual Hardware and expand the USB controller menu. Click Remove. Click OK to save your changes and close the dialog box.
The controller is no longer connected to the virtual machine, but remains available to add at a later time.
VMware, Inc.
167
To minimize the risk of data loss, follow the instructions to safely unmount or eject hardware for your operating system. Safely removing hardware allows accumulated data to be transmitted to a file. Windows operating systems typically include a Remove Hardware icon located in the System Tray. Linux operating systems use the umount command. You might need to use the sync command instead of or in addition to the umount command, for example after you issue a dd command on Linux or other UNIX operating systems. When you remove the device from the client computer, it is no longer available to virtual machines.
USB Configuration from a Client Computer to a Virtual Machine in the vSphere Client
You can add multiple USB devices to a virtual machine when the physical devices connect to a client computer on which the vSphere Client is running. The vSphere Client must be logged in to an instance of vCenter Server that manages the ESXi host where the virtual machines reside. USB passthrough technology supports adding multiple USB devices, such as security dongles, mass storage devices, and smartcard readers to virtual machines.
168
VMware, Inc.
The virtual machine that you connect the USB 3.0 device to must be configured with an xHCI controller and have a Linux guest operating system with a 2.6.35 or later kernel. You can connect only one USB 3.0 device operating at superspeed to a virtual machine at a time. USB 3.0 devices are available only for passthrough from a client computer to a virtual machine. They are not available for passthrough from an ESXi host to a virtual machine.
n n
Connecting or chaining multiple external USB hubs increases device enumeration and response time, which can make the power support to the connected USB devices uncertain.
VMware, Inc.
169
Chaining hubs together increases the chance of port and hub error, which can cause the device to lose connection to a virtual machine. Certain hubs can cause USB device connections to be unreliable, so use care when you add a new hub to an existing setup. Connecting certain USB devices directly to the client computer rather than to a hub or extension cable might resolve their connection or performance issues. In some cases, you must remove and reattach the device and hub to restore the device to a working state.
To add a USB device to a client computer, connect the device to an available port or hub.
The USB device appears in the virtual machine toolbar menu. What to do next You can now add the USB device to the virtual machine.
170
VMware, Inc.
NOTE Drivers are not available for the xHCI controller on Windows guest operating systems. For Mac OS X systems, the EHCI+UHCI controller is enabled by default and is required for USB mouse and keyboard access. For virtual machines with Linux guests, you can add one or both controllers, but 3.0 superspeed devices are not supported for passthrough from an ESXi host to a virtual machine. You cannot add two controllers of the same type. For USB passthrough from an ESXi host to a virtual machine, the USB arbitrator can monitor a maximum of 15 USB controllers. If your system includes controllers that exceed the 15 controller limit and you connect USB devices to them, the devices are not available to the virtual machine. Prerequisites
n n
ESXi hosts must have USB controller hardware and modules that support USB 2.0 and 1.1 devices present. Client computers must have USB controller hardware and modules that support USB 3.0, 2.0, and 1.1 devices present. To use the xHCI controller on a Linux guest, ensure that the Linux kernel version is 2.6.35 or later. Verify that the virtual machine is powered on. Required Privilege (ESXi host passthrough): Virtual Machine.Configuration.Add or Remove Device
n n n
Procedure 1 2 3 4 5 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Hardware tab and click Add. Select the type of USB Controller to add and click Next. Review the device information and click Next. Click Finish. New USB Controller (adding) appears in the hardware list as Present. 6 Click OK to save your changes and close the dialog box.
When you reopen the Properties Editor, the xHCI controller appears on the Hardware tab as USB xHCI controller. The EHCI+UHCI controller appears asUSB controller. What to do next Add one or more USB devices to the virtual machine.
VMware, Inc.
171
Add USB Devices From a Client Computer to a Virtual Machine in the vSphere Client
You can add one or more USB passthrough devices from a client computer to a virtual machine in the vSphere Client. The devices must be connected to a client computer that connects to the ESXi host on which the virtual machines reside. The devices maintain their virtual machine connections in S1 standby, if the vSphere Client is running and connected. After you add the USB device to the virtual machine, an information message appears on the client computer stating that the device is disconnected. The device remains disconnected from the client computer until the virtual machine releases it. FT is not supported with USB passthrough from a client computer to a virtual machine. Prerequisites
n n n
Verify that a USB controller is installed. Verify that the vSphere Client is connected to the ESXi host on which the virtual machines are running. Required Privilege: Virtual Machine.Interaction.Add or Remove Device
Procedure 1 2 3 Select the virtual machine in the vSphere Client inventory. Click the USB icon on the virtual machine toolbar. Select an available device from the Connect to USB Devices drop-down menu. The status of the device appears as Connecting. The device appears in the USB Connections drop-down menu and is ready to use. The device remains connected until you power off the virtual machine or disconnect the vSphere Client from the ESXi host.
Remove USB Devices That Are Connected Through a Client Computer in the vSphere Client
You can remove USB devices from a virtual machine if the devices are no longer needed. When you disconnect a USB device from a virtual machine, the device is released from the virtual machine and is given back to the client computer, which starts using it. Prerequisites To minimize the risk of data loss, follow the instructions to safely unmount or eject hardware for your operating system. Safely removing hardware allows accumulated data to be transmitted to a file. Windows operating systems typically include a "Remove Hardware" icon located in the System Tray. Linux operating systems use the umount command. NOTE You might need to use the sync command instead of or in addition to the umount command, for example after you run a dd command on Linux or other UNIX operating systems. Procedure 1 2 3 Unmount or eject the USB device from the guest operating system. Select the virtual machine in the vSphere Client inventory. Click USB Connections on the virtual machine toolbar.
172
VMware, Inc.
Select the device to remove from the drop-down menu. For example, select USB Device 1 > Disconnect fromdevice name. The menu shows the device status as Disconnecting.
The device reconnects to the client computer and is available to add to another virtual machine. In some cases, Windows Explorer detects the device and opens a dialog box on the client computer. You can close this dialog box.
Verify that all USB devices are disconnected from the virtual machine. Required Privilege: Virtual Machine.Configuration.Add or Remove Device
Procedure 1 2 3 4 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Hardware tab and select USB controller. Click Remove. Click OK to save your changes and close the dialog box.
The controller is no longer connected to the virtual machine, but remains available to add at a later time.
To minimize the risk of data loss, follow the instructions to safely unmount or eject hardware for your operating system. Safely removing hardware allows accumulated data to be transmitted to a file. Windows operating systems typically include a Remove Hardware icon located in the System Tray. Linux operating systems use the umount command. You might need to use the sync command instead of or in addition to the umount command, for example after you issue a dd command on Linux or other UNIX operating systems. When you remove the device from the client computer, it is no longer available to virtual machines.
VMware, Inc.
173
Cannot Copy Data From an ESXi Host to a USB Device That Is Connected to the Host
You can connect a USB device to an ESXi host and copy data to the device from the host. For example, you might want to gather the vm-support bundle from the host after the host loses network connectivity. To perform this task, you must stop the USB arbitrator. Problem If the USB arbitrator is being used for USB passthrough from an ESXi host to a virtual machine, or if the USB device is formatted with a FAT16 partition and is the maximum size of 2GB, the USB device appears under lsusb but does not mount correctly. Cause This problem occurs because the usbarbitrator service has claimed the device to make it available for passthrough from the host to virtual machines. Solution 1 2 Stop the usbarbitrator service:/etc/init.d/usbarbitrator stop Disconnect and reconnect the USB device. By default, the device location is /vmfs/devices/disks/mpx.vmhbaXX:C0:T0:L0. After using the device, restart the usbarbitrator service:/etc/init.d/usbarbitrator start
Add a Shared Smart Card Reader to Virtual Machines in the vSphere Client
You can configure multiple virtual machines to use a virtual shared smart card reader for smart card authentication. The smart card reader must be connected to a client computer on which the vSphere Client runs. All smart card readers are treated as USB devices. A license is required for the shared smart card feature. See the vCenter Server and Host Management documentation. When you log out of Windows XP guest operating systems, to log back in, you must remove the smart card from the smart card reader and re-add it. You can also disconnect the shared smart card reader and reconnect it. If the vSphere Client disconnects from the vCenter Server or host, or if the client computer is restarted or shut down, the smart card connection breaks. For this reason, it is best to have a dedicated client computer for smart card use. To connect a USB smart card reader that is not shared, see USB Configuration from a Client Computer to a Virtual Machine in the vSphere Client, on page 168. Prerequisites
n n n
Verify that the smart card reader is connected to the client computer. Verify that the virtual machine is powered on. Verify that a USB controller is present.
Procedure 1 2 Select the virtual machine in the vSphere Client inventory. Click the USB icon on the virtual machine toolbar.
174
VMware, Inc.
Select the shared smart card reader from the Connect to USB Devices drop-down menu. The smart card device appears in the menu as a USB device and as a virtual shared device.
Select Sharedthe model name of your smart card reader followed by a number. The device status appears as Connecting, then the device connects.
You can now use smart card authentication to log in to virtual machines in the vSphere Client inventory.
Add a Shared Smart Card Reader to Virtual Machines in the vSphere Web Client
You can configure multiple virtual machines to use a virtual shared smart card reader for smart card authentication. The smart card reader must be connected to a client computer on which the vSphere Web Client runs. All smart card readers are treated as USB devices. A license is required for the shared smart card feature. See vCenter Server and Host Management. When you log out of Windows XP guest operating systems, to log back in, you must remove the smart card from the smart card reader and re-add it. You can also disconnect the shared smart card reader and reconnect it. If the vSphere Web Client disconnects from the vCenter Server or host, or if the client computer is restarted or shut down, the smart card connection breaks. For this reason, it is best to have a dedicated client computer for smart card use. To connect a USB smart card reader that is not shared, see USB Configuration from a Client Computer to a Virtual Machine in the vSphere Web Client, on page 163. Prerequisites
n n n n
Verify that the smart card reader is connected to the client computer. Verify that the virtual machine is powered on. Verify that a USB controller is present. Required Privilege: Virtual Machine.Interaction.Add or Remove Device
Procedure 1 2 Select a virtual machine in the inventory and click the Summary tab. Click the USB icon on the right side of USB Devices under VM Hardware, and select an available shared smart card reader from the drop down menu. Select a device that appears as Sharedthe model name of your smart card reader followed by a number. A Connecting label and a spinner appear showing that a connection is in progress. When the device has successfully connected and the Summary tab refreshes, the device is connected and the device name appears next to USB Devices. You can now use smart card authentication to log in to virtual machines in the vSphere Client inventory.
VMware, Inc.
175
Wake on LAN can resume virtual machines that are in an S1 sleep state only. It cannot resume suspended, hibernated, or powered off virtual machines. The following NICs support Wake on LAN:
n n n n
Prerequisites You must power off the virtual machine. Procedure 1 2 3 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Options tab and select Power Management. In the Guest Power Management panel, select a power option.
n n
Suspend the virtual machine Put the guest operating system in standby mode and leave the virtual machine powered on
(Optional) Select Wake on LAN for virtual machine traffic on and select the virtual NICs to trigger this action. Unsupported NICs might be listed, but are unavailable to connect.
176
VMware, Inc.
Prerequisites
n n n n n
Verify that the vSphere Client is logged in to a vCenter Server. Verify that you have access to at least one virtual machine in the inventory. Verify that you have privileges to perform the intended power operation on the virtual machine. To set optional power functions, you must install VMWare Tools in the virtual machine. Power off the virtual machine before editing the VMware Tools options.
Procedure 1 2 3 4 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Options tab and select VMware Tools. In the right panel, select the Power Controls for the virtual machine. Select an option for the Power Off button.
Option Shut Down Guest Description Uses VMware Tools to initiate an orderly system shut down of the virtual machine. This type of powering off is known as a "soft" power operation. Soft power operations are possible only if the tools are installed in the guest operating system. Immediately stops the virtual machine. This type of powering off is known as a "hard" power operation. Follows system settings. The current value of the system settings is shown in parentheses.
VMware, Inc.
177
Reset
System Default
What to do next Configure VMware Tools scripts to run before or after power operations.
vSphere Web Client logged in to a vCenter Server Access to at least one virtual machine in the inventory Privileges to edit boot options for the virtual machine
Procedure 1 2 3 4 5 6 7 In the VM Hardware panel, click Edit Settings. Click VM Options. Click the Boot Options triangle to expand the options. Select the time in milliseconds to delay the boot operation. (Optional) Select whether to force entry into the BIOS or EFI setup screen the next time the virtual machine boots. (Optional) Select whether to try to reboot after a boot failure. Click OK.
178
VMware, Inc.
Procedure 1 2 3 4 5 6 In the vSphere Client inventory, right-click the virtual machine and select Edit Settings. Click the Options tab and under Advanced select Boot Options. In the Power on Boot Delay panel, select the time in milliseconds to delay the boot operation. (Optional) Select whether to force entry into the BIOS or EFI setup screen the next time the virtual machine boots. (Optional) Select whether to try to reboot after a boot failure. Click OK to save your changes and close the dialog box.
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5 6
In the VM Hardware panel, click Edit Settings. Click VM Options. Click the Advanced triangle to expand the advanced virtual machine options. Select Enable logging. Click OK.
VMware, Inc.
179
This setting slows down virtual machine performance, so only use it for getting past the problem with running the program. After the program stops encountering problems, deselect Disable acceleration. Then you might be able to run the program with acceleration. You can enable and disable acceleration when the virtual machine is running. Procedure 1 Select a virtual machine.
n
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5 6
In the VM Hardware panel, click Edit Settings. Click VM Options. Click the Advanced triangle to expand the advanced virtual machine options. Select Disable acceleration. Click OK.
Configure Virtual Machine Debugging and Statistics in the vSphere Web Client
You can run a virtual machine so that it collects additional debugging information that is helpful to VMware technical support in resolving issues. Prerequisites Power off the virtual machine. Procedure 1 Select a virtual machine.
n
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
180
VMware, Inc.
2 3 4 5
In the VM Hardware panel, click Edit Settings. Click VM Options. Click the Advanced triangle to expand the advanced virtual machine options. Select a debugging and statistics option.
n n n n
Run normally Record Debugging Information Record Statistics Record Statistics and Debugging Information
The number of debugging and statistics options available depends on the host software type and version. On some hosts, some options are not available. 6 Click OK.
VMware, Inc.
181
182
VMware, Inc.
You can use VMware vSphere as a platform for running applications, in addition to using it as a platform for running virtual machines. The applications can be packaged to run directly on top of VMware vSphere. The format of how the applications are packaged and managed is called vSphere vApp. A vApp is a container, like a resource pool and can contain one or more virtual machines. A vApp also shares some functionality with virtual machines. A vApp can power on and power off, and can also be cloned. In the vSphere Client, a vApp is represented in both the Host and Clusters view and the VM and Template view. Each view has a specific summary page with the current status of the service and relevant summary information, as well as operations on the service. The distribution format for vApp is OVF. NOTE The vApp metadata resides in the vCenter Server's database, so a vApp can be distributed across multiple ESXi hosts. This information can be lost if the vCenter Server database is cleared or if a standalone ESXi host that contains a vApp is removed from vCenter Server. You should back up vApps to an OVF package to avoid losing any metadata. vApp metadata for virtual machines within vApps do not follow the snapshots semantics for virtual machine configuration. So, vApp properties that are deleted, modified, or defined after a snapshot is taken remain intact (deleted, modified, or defined) after the virtual machine reverts to that snapshot or any prior snapshots. You can use VMware Studio to automate the creation of ready-to-deploy vApps with pre-populated application software and operating systems. VMware Studio adds a network agent to the guest so that vApps bootstrap with minimal effort. Configuration parameters specified for vApps appear as OVF properties in the vCenter Server deployment wizard. For information about VMware Studio and for download, see the VMware Studio developer page on the VMware web site. This chapter includes the following topics:
n n n n n n n n n
Create a vApp in the vSphere Web Client, on page 184 Create a vApp in the vSphere Client, on page 186 Populate the vApp, on page 187 Edit vApp Settings in the vSphere Web Client, on page 189 Edit vApp Settings in the vSphere Client, on page 192 Configuring IP Pools, on page 197 Clone a vApp, on page 199 Power on a vApp in the vSphere Web Client, on page 199 Power On a vApp in the vSphere Client, on page 200
VMware, Inc.
183
n n n n n n n n
Power Off a vApp in the vSphere Web Client, on page 200 Power Off a vApp in the vSphere Client, on page 200 Suspend a vApp in the vSphere Web Client, on page 200 Suspend a vApp in the vSphere Client, on page 201 Resume a vApp in the vSphere Web Client, on page 201 Resume a vApp in the vSphere Client, on page 201 Edit vApp Annotation in the vSphere Web Client, on page 201 Edit vApp Annotation in the vSphere Client, on page 201
A standalone host is selected in the inventory that is running ESX 3.0 or greater. A cluster enabled with DRS is selected in the inventory.
You can create vApps on folders, standalone hosts, resource pools, clusters enabled with DRS, and within other vApps. Procedure 1 2 3 Select vApp Name and Location on page 184 The name that you enter is the vApp display name that appears in the inventory. Allocate vApp Resources on page 185 You can allocate CPU and memory resources for the new vApp using shares, reservations, and limits. Complete the vApp Creation on page 185 Before you deploy the vApp, you can review the vApp settings.
184
VMware, Inc.
Limit
Limit
Click Next.
VMware, Inc.
185
A standalone host is selected in the inventory that is running ESX 3.0 or greater. A cluster enabled with DRS is selected in the inventory.
You can create vApps on folders, standalone hosts, resource pools, clusters enabled with DRS, and within other vApps. Procedure 1 2 3 Start the New vApp Wizard on page 186 The New vApp wizard allows you to create a vApp. Name the vApp on page 186 The name that you enter is the vApp display name that appears in the inventory. Select the vApp Destination on page 187 The destination is the standalone host, cluster, resource pool, or another vApp on which the vApp will run. 4 5 Allocate vApp Resources on page 187 Determine how CPU and memory should be allocated for the vApp. Complete the vApp Creation on page 187 The Ready to Complete page lets you review the vApp configuration.
Select File > New > vApp to open the New vApp wizard.
186
VMware, Inc.
VMware, Inc.
187
Click the All Actions icon ( ) and select Inventory > New vApp.
Inventory > vApp > New Resource Pool Inventory > vApp > New vApp
188
VMware, Inc.
If the move is permitted, a box appears around the target-object, indicating it is selected. If the move is not permitted, a naught sign (zero with a slash) appears, and the object is not moved.
Release the mouse button. Either the object moves to the new location or an error message indicates what needs to be done to permit the move.
Limit
VMware, Inc.
189
Limit
Click OK.
DHCP
190
VMware, Inc.
Click OK.
Configure vApp Startup and Shutdown Options in the vSphere Web Client
You can change the order in which virtual machines and nested vApps within a vApp start up and shut down. You can also specify delays and actions performed at startup and shutdown. Prerequisites Required privilege: vApp.vApp application configuration on the vApp. Procedure 1 2 3 Right-click the vApp in the inventory and select Configuration > Edit Settings. Click the Start Order triangle to expand the start order options. Select a virtual machine and click the up or down arrow to move the virtual machine in the startup order. Virtual machines and vApps in the same group will start concurrently with each other. The reverse order will be used for shutdown. 4 5 For each virtual machine, select the startup action for the virtual machine. (Optional) Set the delay for the startup action.
n n
Enter a time delay in seconds for the startup action. Select VMware Tools are ready to perform the startup action when VMware Tools has started.
6 7 8
For each virtual machine, select the shutdown action for the virtual machine. (Optional) Enter a time delay in seconds for the shutdown action. Click OK.
VMware, Inc.
191
Description If you enter a vendor URL, a user can click the vendor name on the virtual machine summary page and go to the vendor's web page. If you use properties to specify the virtual machine IP address, you can enter a dynamic application URL that points to a web page exposed by running the virtual machine. If you enter a valid application URL, the state of the virtual machine changes to the Available link when the virtual machine begins running.
If you configure the virtual machine to use the property called webserver_ip and the virtual machine has a web server, you can enter http://${webserver_ip}/ as the Application URL. 4 5 (Optional) Click View to test the Product URL and Vendor URL. Click OK.
192
VMware, Inc.
Reservations on vApps and all their child resource pools, child vApps, and child virtual machines count against the parent resources only when they are powered on. Procedure 1 2 3 4 On the Summary page of the vApp, click Edit Settings. Click Resources in the Options list. Edit the CPU and memory resource allocation. Click OK.
For automatic (transient) IP allocation to work, you must use the vSphere Client and configure an IP pool. See Configuring IP Pools, on page 197.
Required privilege: vApp.vApp instance configuration. Procedure 1 2 On the Summary page of the vApp, click Edit Settings. Click IP Allocation Policy in the Options list.
VMware, Inc.
193
DHCP
Click OK.
194
VMware, Inc.
VMware, Inc.
195
Description If you enter a vendor URL, a user can click the vendor name on the virtual machine summary page and go to the vendor's web page. If you use properties to specify the virtual machine IP address, you can enter a dynamic application URL that points to a web page exposed by running the virtual machine. If you enter a valid application URL, the state of the virtual machine changes to the Available link when the virtual machine begins running.
If you configure the virtual machine to use the property called webserver_ip and the virtual machine has a web server, you can enter http://${webserver_ip}/ as the Application URL. 4 5 6 7 (Optional) Click View to test the Product URL and Vendor URL. Click Properties to edit the custom vApp properties. Click IP Allocation to edit the supported IP allocation schemes of this vApp. Click OK.
ClickNew to add a new custom property. Select the property and click Edit to edit a property. Click Delete to delete a property.
Click OK.
Select an IP allocation scheme. Select the IP protocols supported by the vApp: IPv4, IPv6, or both.
Click OK.
196
VMware, Inc.
Configuring IP Pools
IP pools provide a network identity to vApps. An IP pool is a network configuration that is assigned to a network used by a vApp. The vApp can then leverage vCenter Server to automatically provide an IP configuration to its virtual machines.
Select DHCP
You can specify that an IPv4 or IPv6 DHCP server is available on the network. Procedure 1 2 In the inventory, select the datacenter that contains the vApp you are configuring. In the IP Pools tab, right-click the IP pool that you want to edit and select Properties. If no IP pools appear, click Add to add a new IP pool. 3 4 5 In the Properties dialog box, select theDHCP tab. Select either the IPv4 DHCP Present or IPv6 DHCP Present check box to indicate that one of the DHCP servers is available on this network. Click OK.
VMware, Inc.
197
DNS Domain Host Prefix DNS Search Path IPv4 DNS Servers IPv6 DNS Servers
Click OK.
198
VMware, Inc.
Select the networks that use this IP pool. A network can be associated with one IP pool at a time.
Click OK.
Clone a vApp
Cloning a vApp is similar to cloning a virtual machine. Prerequisites To clone a vApp, the vSphere Client must be connected to the vCenter Server system. A host must be selected in the inventory that is running ESX 3.0 or greater, or a cluster enabled with DRS. Procedure 1 2 Select the vApp in the inventory. Select Inventory > vApp > Clone. Complete each page in Clone vApp the wizard. 3 4 Select the vApp destination and click Next. Specify a Host and click Next. NOTE This step is available only if you select a cluster that is in DRS manual mode. 5 6 7 8 Name the vApp and click Next. Select a datastore and click Next. (Optional) Select a network and click Next. Complete the vApp clone.
Right-click the vApp and select Power > Power On. If a delay is set in the startup settings, the vApp waits for the set length of time before powering up that virtual machine.
In the Summary tab, the Status portlet indicates when the vApp has started and is available.
VMware, Inc.
199
In the Summary page for the service, click Power On. If a delay is set in the startup settings, the vApp waits for the set length of time before powering up that virtual machine.
In the Summary tab, the status indicates when the vApp has started and is available. Links to the product and vendor Web sites are also found under the General section.
Right-click the vApp and select Power > Power Off. If a delay is set in the shutdown settings, the vApp waits for the set length of time before powering down that virtual machine.
In the Summary page for the service, click Power Off. If a delay is set in the shutdown settings, the vApp waits for the set length of time before powering down that virtual machine.
200
VMware, Inc.
VMware, Inc.
201
2 3 4 5
Click the Summary tab for the vApp. In the Annotation section, click Edit. Type your comments in the Edit Service Annotation window. Click OK.
202
VMware, Inc.
10
A vSphere administrator uses the vCenter Solutions Manager to view the installalled solutions, view detailed information about the solutions, and monitor the solution health status. You can monitor and manage vSphere solutions from the vSphere Client that displays an inventory of vSphere solutions and details about each solution. A solution is an extension of the vCenter Server that adds new functions to a vCenter Server instance. For example, vSphere ESX Agent Manager is a standard vCenter solution provided by VMware that allows you to manage ESX host agents that add new capabilities to ESX hosts. Another standard solution that vSphere provides is vService Manager. VMware products that integrate with vCenter Sever are also considered solutions. You can install a solution to add functionality from third-party technologies to the standard functions of vCenter Server. Solutions typically are delivered as OVF packages. You can install and deploy solutions from vSphere Client. Solutions can be integrated into the vCenter Solutions Manager. If a virtual machine or vApp is running a solution, a custom icon appears next to it in the inventory view of the vSphere Client. When you power on or power off a virtual machine or vApp, you are notified that you are performing this operation on an entity that is managed by the solution manager. Each solution registers a unique icon to identify that the virtual machine or vApp is being managed by that solution. The icons show the power states (powered on, paused, powered off). The solutions display more than one type of icon if they manage more than one type of virtual machine or vApp. When you attempt an operation on a virtual machine or a vApp that is managed by a solution, an informational warning message appears. For more information, see the Developing and Deploying vSphere Solutions, vServices, and ESX Agents documentation. This chapter includes the following topics:
n n n
Viewing Solutions, on page 203 Monitoring Agents, on page 204 Monitoring vServices, on page 205
Viewing Solutions
You can deploy, monitor, and interact with solutions that are installed in a vCenter Server instance with the vCenter Solutions Manager. The Solutions Manager displays information about the health of a solution. You can navigate to the Solutions Manager from the home page of the vSphere Client. The Solutions Manager view displays information about the solution:
n
Solution name
VMware, Inc.
203
n n
Procedure 1 2 Click the Solutions Manager icon from vSphere Client home. Navigate through the tabs in the Solutions Manager.
n
Summary tab. Lists the number of installed solutions and a brief health overview for each of the solutions. Solutions tab. Lists each managed solution. Health tab. Provides the health status of the vCenter services. It also shows alerts or warnings for each of the services.
n n
Summary tab. Lists information about the solution, including a link to the product and vendor Web sites, a link to launch the management UI in a separate window, and a link to the virtual machine or vApp running this solution. Selecting the vendor Web site link takes you to the Summary page of the virtual machine or vApp. A link under "Managed by" returns you to the solution.
n n n
Virtual Machines tab. Lists all the virtual machines belonging to the solution vServices Providers tab. Management tab or any other tabs the solution specified.
Monitoring Agents
The vCenter Solutions Manager displays the vSphere ESX Agent Manager agents that you use to deploy and manage related agents on ESX hosts. An administrator uses the solutions manager to keep track of whether a solution's agents are working as expected. Outstanding issues are reflected by the solution's ESX Agent Manager status and a list of issues. When a solution's state changes, the solutions manager updates the ESX Agent Manager's summary status and state. Administrators use this status to track whether the goal state is reached. The agency's health status is indicated by a specific color:
n
Red. The solution must intervene for the ESX Agent Manager to proceed. For example, if a virtual machine agent is powered off manually on a compute resource and the ESX Agent Manager does not attempt to power on the agent. The ESX Agent Manager reports this action to the solution. The solution alerts the administrator to power on the agent. Yellow. The ESX Agent Manager is actively working to reach a goal state. The goal state can be enabled, disabled, or uninstalled. For example, when a solution is registered, its status is yellow until the ESX Agent Manager deploys the solutions agents to all the specified compute resources. A solution does not need to intervene when the ESX Agent Manager reports its ESX Agent Manager health status as yellow. Green. A solution and all its agents reached the goal state.
204
VMware, Inc.
Monitoring vServices
A vService is a service or function that a solution provides to virtual machines and vApps. A solution can provide one or more vServices. These vServices integrate with the platform and are able to change the environment in which the vApp or virtual machine runs. A vService is a type of service for a virtual machine and a vApp provided by a vCenter extension. Virtual machines and vApps can have dependencies on vServices. Each dependency is associated with a vService type. The vService type must be bound to a particular vCenter extension that implements that vService type. This vService type is similar to a virtual hardware device. For example, a virtual machine can have a networking device that at deployment must be connected to a particular network. The vService Manager allows a solution to connect to operations related to OVF templates:
n
Importing OVF templates. Receive a callback when OVF templates with a vService dependancy of a certain type is imported. Exporting OVF templates. Inserts OVF sections when a virtual machine is exported. OVF environment generation. Inserts OVF sections into the OVF environment at the power-on instance.
n n
The vService Provider tab in the solution manager provides details for each vCenter extension. This information allows you to monitor vService providers and list the virtual machines or vApps to which they are bound.
VMware, Inc.
205
206
VMware, Inc.
11
You use the vSphere Client to manage virtual machines. With the vSphere Client, you can open a console to the desktop of managed virtual machines. From the console, you can change operating system settings, use applications, browse the file system, monitor system performance, and so on, as if you were operating a physical system. You can also use snapshots to capture the entire state of the virtual machine at the time you take the snapshot. You can connect the vSphere Client directly to an ESXi host and work with only the virtual machines and the physical resources available on that host. Connect your vSphere Client to a vCenter Server to manage virtual machines and pooled physical resources across multiple hosts. Multiple vCenter Server systems can be joined together in a vCenter Server Connected Group to allow them to be managed with a single vSphere Client connection. This chapter includes the following topics:
n n n n n n n
Edit Virtual Machine Startup and Shutdown Settings, on page 207 Install the Client Integration Plug-In in the vSphere Web Client, on page 208 Open a Virtual Machine Console in the vSphere Web Client, on page 209 Open a Console to a Virtual Machine, on page 209 Adding and Removing Virtual Machines, on page 210 Using Snapshots To Manage Virtual Machines, on page 211 Migrating Virtual Machines, on page 225
VMware, Inc.
207
Shutdown Action
Edit
(Optional) If the browser blocks the installation, either by issuing certificate errors or with pop-up blocking, follow the Help instructions for your browser to resolve the problem.
208
VMware, Inc.
What to do next You can now open the virtual machine console to configure operating system settings, run applications, monitor performance, and so on.
Ensure that the Client Integration Plug-in is installed in your Web browser. Verify that the virtual machine has a guest operating system and that VMware Tools are installed. Verify that the virtual machine is powered on.
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
In the Guest OS Details pane on the Summary tab, click Launch console. The virtual machine console opens in a new tab of the Web browser.
3 4 5 6 7
Click anywhere inside the console window to enable your mouse, keyboard, and other input devices to work in the console. (Optional) Press Ctrl+Alt to release the cursor from the console window and work outside the console window. (Optional) Click Full Screen to display the console in full screen mode. (Optional) Press Ctrl+Alt+Enter to exit full screen mode. (Optional) Click Send Ctrl-Alt-Delete to send a Ctrl+Alt+Delete to the guest operating system.
VMware, Inc.
209
vCenter Server removes references to the virtual machine and no longer tracks its condition.
vCenter Server deletes the virtual machine from its datastore. Disks that are shared with other virtual machines are not deleted.
210
VMware, Inc.
Virtual machine settings. The virtual machine directory, which includes disks that were added or changed after you took the snapshot. Power state. The virtual machine can be powered on, powered off, or suspended. Disk state. State of all the virtual machine's virtual disks. (Optional) Memory state. The contents of the virtual machine's memory.
n n n
VMware, Inc.
211
The relationship of parent and child snapshots can change if you have multiple branches in the snapshot tree. A parent snapshot can have more than one child. Many snapshots have no children. IMPORTANT Do not manually manipulate individual child disks or any of the snapshot configuration files because doing so can compromise the snapshot tree and result in data loss. This restriction includes disk resizing and making modifications to the base parent disk using vmkfstools.
Snapshot Behavior
Taking a snapshot preserves the disk state at a specific time by creating a series of delta disks for each attached virtual disk or virtual RDM and optionally preserves the memory and power state by creating a memory file. Taking a snapshot creates a snapshot object in the Snapshot Manager that represents the virtual machine state and settings. Each snapshot creates an additional delta .vmdk disk file. When you take a snapshot, the snapshot mechanism prevents the guest operating system from writing to the base .vmdk file and instead directs all writes to the delta disk file. The delta disk represents the difference between the current state of the virtual disk and the state that existed at the time that you took the previous snapshot. If more than one snapshot exists, delta disks can represent the difference between each snapshot. Delta disk files can expand quickly and become as large as the entire virtual disk if the guest operating system writes to every block of the virtual disk.
212
VMware, Inc.
Snapshot Files
When you take a snapshot, you capture the state of the virtual machine settings and the virtual disk. If you are taking a memory snapshot, you also capture the memory state of the virtual machine. These states are saved to files that reside with the virtual machine's base files.
Snapshot Files
A snapshot consists of files that are stored on a supported storage device. A Take Snapshot operation creates .vmdk, -flat.vmdk, .vmsd, and .vmsn files. By default, the first and all subsequent snapshots are stored with the virtual machine base files. Delta disk files A .vmdk file to which the guest operating system can write. The delta disk represents the difference between the current state of the virtual disk and the state that existed at the time that the previous snapshot was taken. When you take a snapshot, the state of the virtual disk is preserved, which prevents the guest operating system from writing to it, and a delta or child disk is created. A delta disk has two files, including a descriptor file that is small and contains information about the virtual disk, such as geometry and child-parent relationship information, and a corresponding file that contains the raw data. NOTE If you are looking at a datastore with the Datastore Browser in the vSphere Client, you see only one entry to represent both files. The files that make up the delta disk are referred to as child disks or redo logs. A child disk is a sparse disk. Sparse disks use the copy-on-write mechanism, in which the virtual disk contains no data in places, until copied there by a write operation. This optimization saves storage space. A grain is the unit of measure in which the sparse disk uses the copy-on-write mechanism. Each grain is a block of sectors that contain virtual disk data. The default size is 128 sectors or 64KB. Flat file A -flat.vmdk file that is one of two files that comprises the delta disk. The flat disk contains the raw data for the delta disk. This file does not appear as a separate file in the Datastore Browser. A .vmsd file that contains the virtual machine's snapshot information and is the primary source of information for the Snapshot Manager. This file contains line entries, which define the relationships between snapshots and between child disks for each snapshot. A .vmsn file that includes the active state of the virtual machine. Capturing the memory state of the virtual machine lets you revert to a turned on virtual machine state. With nonmemory snapshots, you can only revert to a turned off virtual machine state. Memory snapshots take longer to create than nonmemory snapshots. The time the ESX host takes to write the memory onto the disk is relative to the amount of memory the virtual machine is configured to use.
Database file
Memory file
A Take Snapshot operation creates .vmdk, -flat.vmdk, vmsd, and vmsn files.
VMware, Inc.
213
File
Description Snapshot file that represents the difference between the current state of the virtual disk and the state that existed at the time the previous snapshot was taken. The filename uses the following syntax, S1vm-000001.vmdkwhere S1vm is the name of the virtual machine and the six-digit number, 000001, is based on the files that already exist in the directory. The number does not consider the number of disks that are attached to the virtual machine. The same number is used for the descriptor and the flat file. Database of the virtual machine's snapshot information and the primary source of information for the Snapshot Manager. Memory state of the virtual machine at the time you take the snapshot. The file name uses the following syntax, S1vm.snapshot1.vmsn, where S1vm is the virtual machine name, and snapshot1 is the first snapshot. NOTE A .vmsn file is created each time you take a snapshot, regardless of the memory selection. A .vmsn file without memory is much smaller than one with memory.
vmname.vmsd vmname.Snapshotnumber.vmsn
Snapshot Limitations
Snapshots can affect virtual machine performance and do not support some disk types or virtual machines configured with bus sharing. Snapshots are useful as short-term solutions for capturing point-in-time virtual machine states and are not appropriate for long-term virtual machine backups.
n
VMware does not support snapshots of raw disks, RDM physical mode disks, or guest operating systems that use an iSCSI initiator in the guest. Virtual machines with independent disks must be powered off before you take a snapshot. Snapshots of powered-on or suspended virtual machines with independent disks are not supported. Snapshots are not supported with PCI vSphere Direct Path I/O devices. VMware does not support snapshots of virtual machines configured for bus sharing. If you require bus sharing, consider running backup software in your guest operating system as an alternative solution. If your virtual machine currently has snapshots that prevent you from configuring bus sharing, delete (consolidate) the snapshots. Snapshots provide a point-in-time image of the disk that backup solutions can use, but Snapshots are not meant to be a robust method of backup and recovery. If the files containing a virtual machine are lost, its snapshot files are also lost. Also, large numbers of snapshots are difficult to manage, consume large amounts of disk space, and are not protected in the case of hardware failure. Backup solutions, such as VMware Data Recovery, use the snapshot mechanism to freeze the state of the virtual machine. The Data Recovery backup method has additional capabilities that mitigate the limitations of snapshots.
n n
Snapshots can negatively affect the performance of a virtual machine. Performance degradation is based on how long the snapshot or snapshot tree is in place, the depth of the tree, and how much the virtual machine and its guest operating system have changed from the time you took the snapshot. Also, you might see a delay in the amount of time it takes the virtual machine to power-on. Do not run production virtual machines from snapshots on a permanent basis.
Managing Snapshots
You can review all snapshots for the active virtual machine and act on them by using the Snapshot Manager. After you take a snapshot, you can use the Revert to current snapshot command from the virtual machines right-click menu to restore that snapshot at any time. If you have a series of snapshots, you can use the Go to command in the Snapshot Manager to restore any parent or child snapshot. Subsequent child snapshots that you take from the restored snapshot create a branch in the snapshot tree. You can delete a snapshot from the tree in the Snapshot Manager.
214
VMware, Inc.
The Snapshot Manager window contains the following areas: Snapshot tree, Details region, command buttons, Navigation region, and a You are here icon. Snapshot tree You are here icon Displays all snapshots for the virtual machine. Represents the current and active state of the virtual machine. The You are here icon is always selected and visible when you open the Snapshot Manager. You can select the You are here state to see how much space the node is using. Go to, Delete, and Delete all are disabled for the You are here state. Go to, Delete, and Delete All Details Navigation Snapshot options. Displays the name and description of the selected snapshot. These text boxes are blank if you do not select a snapshot. Contains buttons for navigating out of the dialog box.
n n
Taking Snapshots
You can take one or more snapshots of a virtual machine to capture the settings state, disk state, and memory state at different specific times. When you take a snapshot, you can also quiesce the virtual machine files and exclude the virtual machine disks from snapshots. When you quiesce a virtual machine, VMware Tools quiesces the file system of the virtual machine. A quiesce operation ensures that a snapshot disk represents a consistent state of the guest file systems. If the virtual machine is powered off or VMware Tools are not available, the Quiesce parameter is ignored. When you capture the virtual machine's memory state, the snapshot retains the live state of the virtual machine. The virtual machine's files might not require quiescing. If you do not capture the memory state, the snapshot does not save the live state of the virtual machine and the disks are crash-consistent unless you quiesce them. When you take a snapshot, other activity that is occurring in the virtual machine might affect the snapshot process when you revert to that snapshot. The best time to take a snapshot from a storage perspective, is when you are not incurring a large I/O load. The best time to take a snapshot from a service perspective is when no applications in the virtual machine are communicating with other computers. The potential for problems is greatest if the virtual machine is communicating with another computer, especially in a production environment. For example, if you take a snapshot while the virtual machine is downloading a file from a server on the network, the virtual machine continues downloading the file and communicating its progress to the server. If you revert to the snapshot, communications between the virtual machine and the server are confused and the file transfer fails.
Change Disk Mode to Exclude Virtual Disks from Snapshots in the vSphere Web Client
You can set a virtual disk to independent mode to exclude the disk from any snapshots taken of its virtual machine. Prerequisites Power off the virtual machine and delete any existing snapshots before you change the disk mode. Deleting a snapshot involves committing the existing data on the snapshot disk to the parent disk. Required privileges:
n
VMware, Inc.
215
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5
In the VM Hardware panel, click Edit Settings. Click Virtual Hardware. Click the triangle to display the settings for the disk to exclude from snapshots. Select one of the independent disk mode options.
Option Independent - Persistent Description Disks in persistent mode behave like conventional disks on your physical computer. All data written to a disk in persistent mode are written permanently to the disk. Changes to disks in nonpersistent mode are discarded when you power off or reset the virtual machine. With nonpersistent mode, you can restart the virtual machine with a virtual disk in the same state every time. Changes to the disk are written to and read from a redo log file that is deleted when you power off or reset.
Independent - Nonpersistent
Click OK.
Change Disk Mode to Exclude Virtual Disks from Snapshots in the vSphere Client
You can set a virtual disk to independent mode to exclude the disk from any snapshots taken of its virtual machine. Prerequisites Power off the virtual machine and delete any existing snapshots before you change the disk mode. Deleting a snapshot involves committing the existing data on the snapshot disk to the parent disk. Required privileges:
n n
Procedure 1 2 3 Select Inventory > Virtual Machine > Edit Settings. Click the Hardware tab and select the hard disk to exclude. Under Mode, select Independent. Snapshots do not affect the state of an independent disk. NOTE Any disk, regardless of its type, that is created after you take a snapshot does not appear if you revert to that snapshot.
216
VMware, Inc.
Independent - Nonpersistent
Click OK.
If you are taking a memory snapshot of a virtual machine that has multiple disks in different disk modes, verify that the virtual machine is powered off. For example, if you have a special purpose configuration that requires you to use an independent disk, you must power off the virtual machine before taking a snapshot. To capture the memory state of the virtual machine, verify that the virtual machine is powered on. To quiesce the virtual machine files, verify that the virtual machine is powered on and that VMware Tools is installed. Required privilege: Virtual machine.State. Create snapshot on the virtual machine.
n n
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4 5
Right-click the virtual machine and select Snapshot > Take Snapshot. Type a name for the snapshot. (Optional) Type a description for the snapshot. (Optional) Select the Snapshot the virtual machines memory check box to capture the memory of the virtual machine.
VMware, Inc.
217
(Optional) Select the Quiesce guest file system (Needs VMware Tools installed) check box to pause running processes on the guest operating system so that file system contents are in a known consistent state when you take the snapshot. Click OK.
If you are taking a memory snapshot of a virtual machine that has multiple disks in different disk modes, verify that the virtual machine is powered off. For example, if you have a special purpose configuration that requires you to use an independent disk, you must power off the virtual machine before taking a snapshot. To capture the memory state of the virtual machine, verify that the virtual machine is powered on. To quiesce the virtual machine files, verify that the virtual machine is powered on and that VMware Tools is installed. Required privilege: Virtual machine.State. Create snapshot on the virtual machine.
n n
Procedure 1 2 3 Select Inventory > Virtual Machine > Snapshot > Take Snapshot. Type a name for the snapshot. Type a description for the snapshot. Adding a date and time or a description, for example, "Snapshot before applying XYZ patch," can help you determine which snapshot to restore or delete. 4 5 (Optional) Select the Snapshot the virtual machines memory check box to capture the memory of the virtual machine. (Optional) Select the Quiesce guest file system (Needs VMware Tools installed) check box to pause running processes on the guest operating system so that file system contents are in a known consistent state when you take the snapshot. Click OK.
After you take the snapshot, you can view its status in the Recent Tasks field at the bottom of the vSphere Client.
218
VMware, Inc.
Restoring Snapshots
To return a virtual machine to its original state, or to return to another snapshot in the snapshot hierarchy, you can restore a snapshot. When you restore a snapshot, you return the virtual machine's memory, settings, and the state of the virtual machine disks to the state they were in at the time you took the snapshot. If you want the virtual machine to be suspended, powered on, or powered off when you start it, make sure that it is in the correct state when you take the snapshot. You can restore snapshots in the following ways: Revert to Current Snapshot Go To Restores the parent snapshot, one level up in the hierarchy from the You are Here position. Revert to Current Snapshot activates the parent snapshot of the current state of the virtual machine. Lets you restore any snapshot in the snapshot tree and makes that snapshot the parent snapshot of the current state of the virtual machine. Subsequent snapshots from this point create a new branch of the snapshot tree.
The current disk and memory states are discarded, and the virtual machine reverts to the disk and memory states of the parent snapshot. Existing snapshots are not removed. You can restore those snapshots at any time. If the snapshot includes the memory state, the virtual machine will be in the same power state as when you created the snapshot. Table 11-1. Virtual Machine Power State After Restoring a Snapshot
Virtual Machine State When Parent Snapshot Is Taken Powered on (includes memory) Powered on (does not include memory) Powered off (does not include memory) Virtual Machine State After Restoration Reverts to the parent snapshot, and the virtual machine is powered on and running. Reverts to the parent snapshot and the virtual machine is powered off. Reverts to the parent snapshot and the virtual machine is powered off.
n n
Virtual machines running certain kinds of workloads can take several minutes to resume responsiveness after reverting from a snapshot.
VMware, Inc.
219
VM take a snapshot VM snapshot_a take a snapshot VM snapshot_a snapshot_b go to snapshot_a VM snapshot_a snapshot_b You are here You are here You are here You are here
The new snapshot (snapshot_a) is now the parent snapshot of the You are here state. The parent snapshot of the You are here state is the parent snapshot of the virtual machine. When you take a snapshot from the snapshot_a state, snapshot_a becomes the parent of the new snapshot (snapshot_b) and snapshot_b is the parent snapshot of the You are here state. If you take a snapshot now, the new snapshot will be based on the snapshot_b state, whose parent snapshot is the snapshot_b state. When you go to snapshot_a, snapshot_a becomes the parent of the You are here state. If you take a snapshot now, the new snapshot will be based on the snapshot_a state.
When you revert a virtual machine, the virtual machine returns to the parent snapshot of the virtual machine (that is, the parent of the current You are here state).
NOTE vApp metadata for virtual machines in vApps does not follow the snapshot semantics for virtual machine configuration. vApp properties that are deleted, modified, or defined after a snapshot is taken remain intact (deleted, modified, or defined) after the virtual machine reverts to that snapshot or any previous snapshots.
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
220
VMware, Inc.
Right-click a virtual machine in the vSphere Client inventory and select Revert to Current Snapshot.
The virtual machine power and data states are returned to the states they were in at the time you took the parent snapshot. If the parent snapshot is a memory snapshot, the virtual machine is restored to an on power state.
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4
Right-click the virtual machine and select Snapshot > Snapshot Manager. In the Snapshot Manager, click a snapshot to select it. Click Go to to restore the virtual machine to the snapshot. The Go to command lets you restore the state of any snapshot.
5 6
Click Yes in the confirmation dialog box. Click Close to exit the Snapshot Manager.
VMware, Inc.
221
3 4
Click Go to to restore the virtual machine to the snapshot. Click Yes in the confirmation dialog box.
Subsequent child snapshots from this point create a new branch of the snapshot tree. The delta disks for snapshots that you took after you restored the current snapshot are not removed and you can restore those snapshots at any time.
Deleting Snapshots
Deleting a snapshot removes the snapshot from the Snapshot Manager. The snapshot files are consolidated and written to the parent snapshot disk and merge with the virtual machine base disk. Deleting a snapshot leaves the current state of the virtual machine or any other snapshot untouched. Deleting a snapshot consolidates the changes between snapshots and previous disk states and writes to the parent disk all data from the delta disk that contains the information about the deleted snapshot. When you delete the base parent snapshot, all changes merge with the base virtual machine disk. Deleting snapshots involves large amounts of disk reads and writes, which can reduce virtual machine performance until consolidation is complete. Consolidating snapshots removes redundant disks, which improves virtual machine performance and saves storage space. The time it takes to delete snapshots and consolidate the snapshot files depends on the volume of data that the guest operating system wrote to the virtual disks after you took the last snapshot. The required time is proportional to the amount of data the virtual machine is writing during consolidation if the virtual machine is powered on. If disk consolidation fails when you delete a snapshot or delete all snapshots and you notice a degradation in virtual machine performance, you can view a list of virtual machines to determine if any files require consolidation, and if so, run a separate consolidation operation. For information about locating and viewing the consolidation state of multiple virtual machines and running a separate consolidation operation, see Consolidate Snapshots in the vSphere Client, on page 224 Delete Use the Delete option to remove a single parent or child snapshot from the snapshot tree. Delete writes disk changes between the snapshot and the previous delta disk state to the parent snapshot. You can also use the Delete option to remove a corrupt snapshot and its files from an abandoned branch of the snapshot tree without merging them with the parent snapshot. Delete All Use the Delete All option to delete all snapshots from the Snapshot Manager. Delete all consolidates and writes changes between snapshots and previous delta disk states to the base parent disk and merges them with the base virtual machine disk.
To prevent snapshot files from merging with the parent snapshot, for example in cases of failed updates or installations, first use the Go to command to restore to a previous snapshot. This action invalidates the snapshot delta disks and deletes the memory file. You can then use the Delete option to remove the snapshot and any associated files.
222
VMware, Inc.
Prerequisites
n
Ensure that you are familiar with the Delete and Delete all actions and how they might affect virtual machine performance. See Deleting Snapshots, on page 222. Required Privilege: Virtual machine.State.Remove Snapshot on the virtual machine.
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3 4
Right-click the virtual machine and select Snapshot > Snapshot Manager. In the Snapshot Manager, click a snapshot to select it. Select whether to delete a single snapshot or all snapshots.
Option Delete Delete All Description Consolidates the snapshot data to the parent snapshot and removes the selected snapshot from the Snapshot Manager and virtual machine. Consolidates all of the immediate snapshots before the You are here current state to the base parent disk and removes all existing snapshots from the Snapshot Manager and virtual machine.
5 6
Click Yes in the confirmation dialog box. Click Close to exit the Snapshot Manager.
Ensure that you are familiar with the Delete and Delete all actions and how they might affect virtual machine performance. See Deleting Snapshots, on page 222. Required Privilege: Virtual machine.State.Remove Snapshot on the virtual machine.
Procedure 1 2 Select Inventory > Virtual Machine > Snapshot > Snapshot Manager. In the Snapshot Manager, click a snapshot to select it.
VMware, Inc.
223
Click Yes.
The Needs Consolidation column appears. A Yes status indicates that the snapshot files for the virtual machine should be consolidated and that the virtual machine's Tasks and Events tab shows a configuration problem. A No status indicates that the files are OK. 2 3 To consolidate the files, right-click the virtual machine and select Snapshot > Consolidate. Check the Need Consolidation column to verify that the task succeeded. If the task succeeded, the Configuration Issues message should be cleared and the Needs Consolidation value should be No.
224
VMware, Inc.
Both migration of a suspended virtual machine and migration with vMotion are sometimes referred to as hot migration, because they allow migration of a virtual machine without powering it off. Migration with vMotion is sometimes referred to as "live migration". You can move virtual machines manually or set up a scheduled task to perform the cold migration. Cloning a virtual machine or copying its disks and configuration file creates a new virtual machine. Cloning is not a form of migration.
You cannot use migration with vMotion to migrate virtual machines using raw disks for clustering purposes. You cannot use migration with vMotion to migrate a virtual machine that uses a virtual device backed by a device that is not accessible on the destination host. (For example, you cannot migrate a virtual machine with a CD drive backed by the physical CD drive on the source host.) Disconnect these devices before migrating the virtual machine. Virtual machines with USB passthrough devices can be migrated with vMotion as long as the devices are enabled for vMotion.
You cannot use migration with vMotion to migrate a virtual machine that uses a virtual device backed by a device on the client computer. Disconnect these devices before migrating the virtual machine.
VMware, Inc.
225
Each host must be correctly licensed for vMotion. Each host must meet shared storage requirements for vMotion. Each host must meet the networking requirements for vMotion. IMPORTANT The ESXi firewall in ESXi 5.0 does not allow per-network filtering of vMotion traffic. Therefore, you must install rules on your external firewall to ensure that no incoming connections can be made to the vMotion socket.
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3
Right-click the virtual machine and select Inventory > Migrate. Select the migration type.
Option Change host Change datastore Change both host and datastore Description Move the virtual machine to another host. Move the virtual machines configuration file and virtual disks. Move the virtual machine to another host and move its configuration file and virtual disks. (This option is not available for a powered-on virtual machine.)
4 5
Select the destination resource pool for the virtual machine migration and click Next. In the Host Name column, select the destination host or cluster for this virtual machine migration and click Next. Any compatibility problem appears in the Compatibility panel. Fix the problem, or select another host or cluster. Possible targets include hosts and DRS clusters with any level of automation. If a cluster has no DRS enabled, select a specific host in the cluster rather than selecting the cluster itself.
226
VMware, Inc.
Select the datastore location where you want to store the virtual machine files.
Option Store all virtual machine files in the same location on a datastore. Store all virtual machine files in the same Storage DRS cluster. Action Select a datastore and click Next. a b Select a Storage DRS cluster. (Optional) If you do not want to use Storage DRS with this virtual machine, select Disable Storage DRS for this virtual machine and select a datastore within the Storage DRS cluster. Click Next. Click Advanced. For the virtual machine configuration file and for each virtual disk, click the datastore name, select Browse, and select a datastore or Storage DRS cluster. (Optional) If you selected a Storage DRS cluster and do not want to use Storage DRS with this virtual machine, select Disable Storage DRS for this virtual machine and select a datastore within the Storage DRS cluster. Click Next.
If you chose to move the virtual machines configuration file and virtual disks, select a disk format.
Option Same as Source Description Use the format of the original virtual disk. If you select this option for an RDM disk in physical compatibility mode, only the mapping file is migrated. If you select this option for an RDM disk in virtual compatibility mode, the RDM is converted to a virtual disk. Use the thin format to save storage space. The thin virtual disk uses just as much storage space as it needs for its initial operations. When the virtual disk requires more space, it can grow in size up to its maximum allocated capacity. This option is not available for RDMs in physical compatibility mode. If you select this option for a virtual compatibility mode RDM, the RDM is converted to a thin virtual disk. RDMs converted to virtual disks cannot be converted back to RDMs. Allocate a fixed amount of hard disk space to the virtual disk. The virtual disk in the thick format does not change its size and from the beginning occupies the entire datastore space provisioned to it. This option is not available for RDMs in physical compatibility mode. If you select this option for a virtual compatibility mode RDM, the RDM is converted to a virtual disk. RDMs converted to virtual disks cannot be converted back to RDMs.
Thin provisioned
Thick
Disks are converted from thin to thick format or thick to thin format only when they are copied from one datastore to another. If you leave a disk in its original location, the disk format is not converted, regardless of the selection made here. 8 Review the information on the Review Selections page and click Finish.
vCenter Server moves the virtual machine to the new host. Event messages appear in the Events tab. The data displayed on the Summary tab shows the status and state throughout the migration. If errors occur during migration, the virtual machines revert to their original states and locations.
VMware, Inc.
227
2 3
Right-click on the virtual machine and select Migrate from the pop-up menu. Select the migration type.
Option Change host Change datastore Change both host and datastore Description Move the virtual machine to another host. Move the virtual machines configuration file and virtual disks. Move the virtual machine to another host and move its configuration file and virtual disks. (This option is not available for a powered-on virtual machine.)
To move the virtual machine to another host, select the destination host or cluster for this virtual machine migration and click Next. Any compatibility problem appears in the Compatibility panel. Fix the problem, or select another host or cluster. Possible targets include hosts and DRS clusters with any level of automation. If a cluster has no DRS enabled, select a specific host in the cluster rather than selecting the cluster itself.
5 6
Select the destination resource pool for the virtual machine migration and click Next. If you chose to move the virtual machines configuration file and virtual disks, select a disk format.
Option Same as Source Description Use the format of the original virtual disk. If you select this option for an RDM disk in physical compatibility mode, only the mapping file is migrated. If you select this option for an RDM disk in virtual compatibility mode, the RDM is converted to a virtual disk. Use the thin format to save storage space. The thin virtual disk uses just as much storage space as it needs for its initial operations. When the virtual disk requires more space, it can grow in size up to its maximum allocated capacity. This option is not available for RDMs in physical compatibility mode. If you select this option for a virtual compatibility mode RDM, the RDM is converted to a thin virtual disk. RDMs converted to virtual disks cannot be converted back to RDMs. Allocate a fixed amount of hard disk space to the virtual disk. The virtual disk in the thick format does not change its size and from the beginning occupies the entire datastore space provisioned to it. This option is not available for RDMs in physical compatibility mode. If you select this option for a virtual compatibility mode RDM, the RDM is converted to a virtual disk. RDMs converted to virtual disks cannot be converted back to RDMs.
Thin provisioned
Thick
Disks are converted from thin to thick format or thick to thin format only when they are copied from one datastore to another. If you leave a disk in its original location, the disk format is not converted, regardless of the selection made here.
228
VMware, Inc.
Select the datastore location where you want to store the virtual machine files.
Option Store all virtual machine files in the same location on a datastore. Action a (Optional) Apply a virtual machine storage profile for the virtual machine home files and the virtual disks from the VM Storage Profile drop-down menu. The list of datastores shows which datastores are compatible and which are incompatible with the selected virtual machine storage profile. Select a datastore and click Next. (Optional) Apply a virtual machine storage profile for the virtual machine home files and the virtual disks from the VM Storage Profile drop-down menu. The list of datastores shows which datastores are compatible and which are incompatible with the selected virtual machine storage profile. Select a datastore cluster. (Optional) If you do not want to use Storage DRS with this virtual machine, select Disable Storage DRS for this virtual machine and select a datastore within the datastore cluster. Click Next. Click Advanced. For the virtual machine configuration file and for each virtual disk, click Browse and select a datastore or datastore cluster. (Optional) Apply a virtual machine storage profile from the VM Storage Profile drop-down menu. The list of datastores shows which datastores are compatible and which are incompatible with the selected virtual machine storage profile. (Optional) If you selected a datastore cluster and do not want to use Storage DRS with this virtual machine, select Disable Storage DRS for this virtual machine and select a datastore within the datastore cluster. Click Next.
b c
vCenter Server moves the virtual machine to the new host. Event messages appear in the Events tab. The data displayed on the Summary tab shows the status and state throughout the migration. If errors occur during migration, the virtual machines revert to their original states and locations.
Migrate a Powered-On Virtual Machine with vMotion in the vSphere Web Client
You can use the Migration wizard to migrate a powered-on virtual machine from one host to another using vMotion technology. To relocate the disks of a powered-on virtual machine, migrate the virtual machine using Storage vMotion. Prerequisites Before migrating a virtual machine with vMotion, ensure that your hosts and virtual machines meet the requirements for migration with vMotion.
n n
Host Configuration for vMotion, on page 226 Virtual Machine Configuration Requirements for vMotion, on page 225
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
VMware, Inc.
229
2 3 4 5
Right-click the virtual machine and select Inventory > Migrate. Select Change host and click Next. Select the destination resource pool for the virtual machine migration and click Next. Select a destination host or cluster for the virtual machine. Any compatibility problem appears in the Compatibility panel. Fix the problem, or select another host or cluster. Possible targets include hosts and fully automated DRS clusters. You can select a non-automated cluster as a target. You are prompted to select a host within the non-automated cluster.
Host Configuration for vMotion, on page 226 Virtual Machine Configuration Requirements for vMotion, on page 225
Procedure 1 2 3 4 Select the virtual machine that you want to migrate in the inventory. Right-click on the virtual machine and select Migrate from the pop-up menu. Select Change host and click Next. Select a destination host or cluster for the virtual machine. Any compatibility problem appears in the Compatibility panel. Fix the problem, or select another host or cluster. Possible targets include hosts and fully automated DRS clusters. You can select a non-automated cluster as a target. You are prompted to select a host within the non-automated cluster. 5 Select a resource pool and click Next.
230
VMware, Inc.
Standard Priority
Migrate a Virtual Machine with Storage vMotion in the vSphere Web Client
Use migration with Storage vMotion to relocate a virtual machines configuration file and virtual disks while the virtual machine is powered on. You cannot change the virtual machines execution host during a migration with Storage vMotion. Procedure 1 Select a virtual machine.
n
In the virtual machines and templates inventory tree, select a group of virtual machines and select a virtual machine from the list on the right. Search for a virtual machine and select it from the search results list.
2 3
Right-click the virtual machine and select Inventory > Migrate. Select Change datastore and click Next.
VMware, Inc.
231
Select the datastore location where you want to store the virtual machine files.
Option Store all virtual machine files in the same location on a datastore. Store all virtual machine files in the same Storage DRS cluster. Action Select a datastore and click Next. a b Select a Storage DRS cluster. (Optional) If you do not want to use Storage DRS with this virtual machine, select Disable Storage DRS for this virtual machine and select a datastore within the Storage DRS cluster. Click Next. Click Advanced. For the virtual machine configuration file and for each virtual disk, click the datastore name, select Browse, and select a datastore or Storage DRS cluster. (Optional) If you selected a Storage DRS cluster and do not want to use Storage DRS with this virtual machine, select Disable Storage DRS for this virtual machine and select a datastore within the Storage DRS cluster. Click Next.
Thin provisioned
Thick
232
VMware, Inc.
Select the datastore location where you want to store the virtual machine files.
Option Store all virtual machine files in the same location on a datastore. Action a (Optional) Apply a virtual machine storage profile for the virtual machine home files and the virtual disks from the VM Storage Profile drop-down menu. The list of datastores shows which datastores are compatible and which are incompatible with the selected virtual machine storage profile. Select a datastore and click Next. (Optional) Apply a virtual machine storage profile for the virtual machine home files and the virtual disks from the VM Storage Profile drop-down menu. The list of datastores shows which datastores are compatible and which are incompatible with the selected virtual machine storage profile. Select a datastore cluster. (Optional) If you do not want to use Storage DRS with this virtual machine, select Disable Storage DRS for this virtual machine and select a datastore within the datastore cluster. Click Next. Click Advanced. For the virtual machine configuration file and for each virtual disk, click Browse and select a datastore or datastore cluster. (Optional) Apply a virtual machine storage profile from the VM Storage Profile drop-down menu. The list of datastores shows which datastores are compatible and which are incompatible with the selected virtual machine storage profile. (Optional) If you selected a datastore cluster and do not want to use Storage DRS with this virtual machine, select Disable Storage DRS for this virtual machine and select a datastore within the datastore cluster. Click Next.
b c
VMware, Inc.
233
234
VMware, Inc.
12
Applicable Role Virtual Machine Administrator
Many tasks require permissions on more than one object in the inventory. You can review the privileges required to perform the tasks and, where applicable, the appropriate sample roles. The following table lists common tasks that require more than one privilege. You can use the Applicable Roles on the inventory objects to grant permission to perform these tasks, or you can create your own roles with the equivalent required privileges. Table 12-1. Required Privileges for Common Tasks
Task Create a virtual machine Required Privileges On the destination folder or datacenter: n Virtual Machine.Inventory.Raw Create n Virtual Machine.Configuration.Add New Disk (if creating a new virtual disk) n Virtual Machine .Configuration.Add Existing Disk (if using an existing virtual disk) n Virtual Machine.Configuration.Raw Device (if using a RDM or SCSI pass-through device) n Virtual Machine.Inventory.Raw Create On the destination host, cluster, or resource pool: Resource.Assign Virtual Machine to Resource Pool On the destination datastore or folder containing a datastore: Datastore.Allocate Space On the network that the virtual machine will be assigned to: Network.Assign Network Deploy a virtual machine from a template On the destination folder or datacenter: n Virtual Machine.Inventory.Raw Create n Virtual Machine .Configuration.Add Add New Disk On a template or folder of templates: Virtual Machine.Provisioning.Deploy Template On the destination host, cluster or resource pool: Resource.Assign Virtual.Machine to Resource Pool On the destination datastore or folder of datastores: Datastore.Allocate Spaces On the network that the virtual machine will be assigned to: Network.Assign Network
Virtual Machine Administrator Datastore Consumer or Virtual Machine Administrator Network Consumer or Virtual Machine Administrator Virtual Machine Administrator Virtual Machine Administrator Virtual Machine Administrator Datastore Consumer or Virtual Machine Administrator Network Consumer or Virtual Machine Administrator
VMware, Inc.
235
Virtual Machine Power User or Virtual Machine Administrator Datacenter Administrator or Resource Pool Administrator or Virtual Machine Administrator Datacenter Administrator or Resource Pool Administrator or Virtual Machine Administrator Datacenter Administrator or Resource Pool Administrator or Virtual Machine Administrator Datacenter Administrator or Resource Pool Administrator or Virtual Machine Administrator Datastore Consumer or Virtual Machine Administrator Datacenter Administrator or Resource Pool Administrator or Virtual Machine Administrator
236
VMware, Inc.
VMware, Inc.
237
238
VMware, Inc.
Index
A
acceleration disabling 179, 180 enabling 180 adapters, Ethernet, See network adapters adding CD drives 142 DVD drives 142 floppy drives 146 network adapters 113 paravirtual SCSI controller 138 PCI devices 148 SCSI devices 147 USB controllers 158, 170 USB devices to client computers 164, 170 AMD override mask 101, 102 autoconnect feature, for USB passthrough 154
B
BIOS, settings 178 boot options changing BIOS settings 178 changing delay 178 boot sequence, delaying 178
C
CD drives adding 142 client devices 140 host devices 141 Client Integration Plug-in, installing 208 clones 45 cloning templates 49, 51 vApps 199 virtual machines 17, 26, 27, 46, 50 clusters, selecting 33 cold migration 225 computer names, generating with a script 58 configuration file parameters, editing 89 configuration files, virtual machines 88 configuration parameters, virtual machines 88 configuring floppy drives 144 network adapters 112 NICs 112 parallel ports 122
SCSI devices 147, 148 serial ports 116 video cards 150 consoles, viewing virtual machine 209 consolidation 12 controllers paravirtual SCSI 138 SCSI 38 SCSI types 137 converting in smaller IT environments 17 physical systems 17 virtual machines to templates 49 CPU configuration, virtual machines 95 CPUs adding 36 advanced settings 99, 100 configuration 96 configuring 95 defined 92 disabling security 101, 102 enabling CPU/MMU Virtualization 103, 104 hot adding 96 hot plug 94 hyperthreaded core sharing 99, 100 identification mask 101, 102 limits 97, 98 parameters 92 reservation 97, 98 resources 97 scheduling affinity 100, 101 shares 97, 98 creating vApps 184, 186 virtual machines 22, 31 custom sysprep answer file 66 customization changing specifications 67 copying specifications 68 creating Linux specifications 63 creating Windows specification 66 creating Windows specifications 64 exporting specifications 68 guest operating system requirements 57 importing specifications 68
VMware, Inc.
239
F
Fibre Channel NPIV settings 123, 124 floppy drives adding 146 configuring 144, 145
D
datacenters 12 datastores ISO file 142 roll in datacenter 12 selecting 21, 24, 28, 34 VMFS 38 debugging and statistics 181 debugging mode, for virtual machine 180 delaying, boot sequence 178 deleting snapshots 222 templates 56 deploying, OVF templates 71, 72 DHCP settings 197 disabling, acceleration 179 disk formats thick provisioned 126 thin provisioned 126 virtual machines 134 disks format 134, 135 independent 216 limits 132, 133 modes 131 shares 132, 133 thick 50 thin 50 think vs. thick 51 See also virtual disks DNS configuration, vApps 198 DVD drives adding 142 client devices 140 host devices 141 DVD/CD-ROM, adding 143
G
guest customization changing specifications 67 copying specifications 68 creating Linux specifications 63 creating Windows specifications 64, 66 exporting specifications 68 importing specifications 68 Linux customization during cloning or deployment 61 removing specifications 68 requirements 57 scripts 58 specifications 63 Windows customization during cloning or deployment 59 guest operating systems changing 90 configuring 91 customization requirements 57 customizing 22, 28 installing 43 selecting 25, 35
H
hard disks adding 128 adding to a virtual machine 130 hardware, virtual machine 81, 82 hardware version, virtual machines 86 hardware versions, virtual machines 24 host devices CD drives 141 DVD drives 141 hosts clustering 33 connecting virtual machines to 33 viable for migration 101, 102 hot add enablement 94, 107, 108 hyperthreaded core sharing 99, 100
E
editing, vApp properties 189, 190, 192, 193 EFI changing boot delay 178 settings 178 exporting OVF templates 71, 74 virtual machines 74 Extensible Firmware Interface, See EFI
I
image files, ISO 140, 142 independent disks 216 installing Client Integration Plug-in 208 guest operating systems from media 43
240
VMware, Inc.
Index
guest operating systems over PXE 43 Microsoft Sysprep tool 77 inventory folders 12 IP address configuration 197 IP addresses, generating with a script 58 IP pools 197 ISO image files 140, 142
L
legacy virtual machines, NICs 112 licensing, for resources, options, and hardware 12 Linux customizing during cloning or deployment 61 guest operating system customization 57 requirements for customization 57 logging, enabling 179 LUNs 41, 125, 131
M
MAC addresses, assigning 113 mask values 101, 102 memory affinity 109 allocation 107 calculating for video displays 151 hot adding 107, 108 virtual 36 memory resources, allocating 106 Microsoft Sysprep tool installing 77 installing from CD 78 installing from Web 77 migrating powered-off virtual machines 226, 227 powered-on virtual machines 229, 230 suspended virtual machines 226, 227 virtual machine disks 231, 232 virtual machines 225 virtual machines with Storage vMotion 231, 232 with vMotion 229, 230 migration, about 225 migration with vMotion, conditions for USB passthrough 155 multicore CPUs 93 multiple monitors, selecting 151
supported types 111 See also NICs network association settings 198 networks connecting 37 DHCP settings 197 IP address configuration 197 proxy server settings 198 New Virtual Machine wizard, opening 31 NIC, See network adapters NICs adding 113 assigning MAC addresses 113 configuring 112, 113 legacy virtual machines 112 Spanning Tree protocol 37 NUMA 109 NUMA nodes, memory allocation 108 NX flag 101, 102
O
Open Virtual Machine Format, See also OVF operating systems, guest 42 optical drives connecting to client device 140 connecting to host device 141 options, virtual machine 82 OVA, selecting, See also OVF OVF browsing virtual appliance marketplace 73 defining environment properties 196 deploying templates 71, 72 exporting templates 71, 74 folder location for files 74
P
parallel ports adding 123 changing 122 configuring 122 paravirtual SCSI controller 138 paravirtual SCSI controllers 138 PCI devices adding 148 snapshot support for 149 physical compatibility mode 41 ports adding parallel 123 changing parallel 122 changing serial 118 parallel 115 serial 115
N
name-ip-generator 58 names, virtual machines 87 network adapters adding 113 configuring 112
VMware, Inc.
241
power off vApps 200 virtual machines 176 power on vApps 199, 200 virtual machines 176 power states, virtual machine 176 preboot execution environment 43 preface 7 privileges, required for common tasks 235 processors, See CPUs provisioning, virtual machines 14 proxy server settings, networks 198 PVSCSI, See also paravirtual SCSI controller PXE 43
R
raw device mappings 38, 41, 125, 130, 131 RDMs, adding to a virtual machine 130 renaming, templates 55 required privileges, for common tasks 235 resetting virtual machines 176 resource pools, selecting 21, 24, 28, 34 resources, virtual machine 82 resources, virtual machine 13 restart settings, for virtual machines 176 resume vApps 201 virtual machines 176
S
SAN LUN 41 SAN LUNs 125, 131 scheduled tasks, clone virtual machine 48 scheduling affinity 100, 101 SCSI bus sharing 136 changing controller type 137 controller 136 devices, adding 147 devices, changing 148 paravirtual controllers 138 selecting controllers 38 supported controller types 137 VMware Paravirtual 38 SCSI controllers, changing type 137 SCSI devices, configuring 147, 148 selecting datastores 21, 24, 28 templates 20 selecting datastores 34 serial ports adding 119, 121 adding Firewall rule set 116
changing 118 conditions for network connections 116 conditions for physical connections 115 configuring 116 connection types 115 sharing, disks 40 shutdown, settings for virtual machines 176 shutdown, settings, for virtual machines 207 smart card reader adding to virtual machines 174, 175 shared 174, 175 snapshot, delta disks 213 snapshots about 211 avoiding use as virtual machine backups 214 behavior 211 bus-sharing limitation 214 child 211 consolidating 224 copy-on-write 213 Delete all option 222 Delete option 222 deleting 222, 223 delta disks 211 exclude virtual disks from 216 files 213 GO to command 221 hierarchy 211 limitations 214 manage 214 memory 215 memory files 213 parent 211 performance impact of 214 quiescing 217, 218 quiescing virtual machine files 215 restoring 219, 221 revert to parent 221 reverting to 219, 220 Snapshot Manager 214 sparse disks 213 taking 215, 217, 218 unsupported disk types 214 virtual machine activity 215 virtual machines with dynamic disks 218 solutions,viewing 203 standby settings, for virtual machines 176 startup settings, for virtual machines 207 statistics, virtual machines 180 storage 125, 131 Storage vMotion 225
242
VMware, Inc.
Index
storing, device nodes, using nondefault device notes 39 suspending vApps 200, 201 virtual machines 176 swap file location 110 swap files, virtual machines 110 Sysprep Answer Files custom 66 sysprep.inf 66 sysprep.xml 66 Sysprep tool installing 77 installing from CD 78 installing from Web 77
T
taking, snapshots 217 tasks, clone virtual machine 48 templates changing names 55 cloning 50, 51 converting to virtual machines 57 converting virtual machines to 49 creating 17, 49, 50 customizing guest operating systems 22, 28 deleting 55, 56 deploy virtual machines 52 deploying from 19 deploying virtual machines 20 editing 55 OVF 74 removing from inventory 56 renaming 55 returning to vCenter Server 211 returning to inventory 56 selecting 20 unregistering 55 thick provisioned disks 50, 51 thin provisioned disks 50, 51, 134 Thin Provisioning 39 troubleshooting debugging and statistics 181 virtual machine software installation 180
USB devices adding from client computer to VM in the vSphere Client 172 adding from client computer to VM in the vSphere Web Client 166 adding host device to virtual machine 161 adding to client computers 164, 170 adding to hosts 157 behavior with hot add operations 168 cascading hubs 156 compound 156 configuring for vMotion 155 connecting to a client computer 164, 169 ejecting from guest OS 162 removing client computer device from VM 167 removing from host 162 removing from remote client 168, 173 removing host device from virtual machine 162 removing remote client device from VM 172 setting up on host 156 supported devices for Mac OS X guest 168 USB passthrough arbitrator for 153 autoconnect feature 154 avoiding data loss 155, 163, 168 configuring from a client computer to a VM 163, 168 configuring from a host to a virtual machine 153 controllers for 153, 163, 168 devices, See also USB devices DRS requirements 155, 169 features supported with 155, 169 restarting the USB arbitrator 174 troubleshooting device connections 174 USB passthrough devices 160
V
vApps adding objects to 188, 189 advanced properties 195 allocating resources 185, 187 cloning 199 completing creation 185, 187 configuring DNS 198 configuring IP address 197 configuring networks 190, 193 creating 184, 186 creating objects inside 187, 188 defining OVF environment properties 196 editing advanced IP allocation properties 196 editing annotations 201
U
updated information for Virtual Machine Administration 9 upgrading virtual machine hardware 85 VMware Tools 91 USB controllers adding to virtual machine 157, 158, 165, 170 removing from virtual machine 162, 167, 173
VMware, Inc.
243
editing custom properties 196 editing properties 189, 190, 192, 193 editing resources 189, 192 IP pools 197 managing 183 naming 186 populating 187 power off settings 200 power on settings 199, 200 product properties 191 resuming 201 selecting destination for 187 selecting DHCP 197 selecting location 184 selecting name 184 selecting network associations 198 selecting proxy server for 198 shutdown options 191, 192 starting wizard 186 startup options 191, 192 suspending 200, 201 viewing license agreement 193 viewing OVF Sections 194 vCenter Converter client plug-in 72 vCenter Server 12 version, virtual machine 35 video cards configuring 150, 151 selecting number of displays 151 virtual compatibility mode 41 virtual device node 148 virtual devices adding USB controller 157, 158, 165, 170 CPU limitations 93 See also virtual hardware virtual disks clustering features 39 configuration 126, 127 configuring 125 creating 39 disk mode 215 flat format 39 formats 126 modes 39 requirements for guest operating system customization 57 sharing 40 thick format 134 thin format 39, 134 types 38 using nondefault device node 39, 40 virtual hard disks, adding 128
virtual hardware adding host USB devices to virtual machine 161 adding USB devices 166, 172 CPU advanced settings 99101 CPU hyperthreading 99, 100 CPU/MMU enablement 103, 104 CPUs 36 disks 38 hot add enablement 94 hot adding virtual CPUs 96 licenses for 12 memory 36 multicore CPUs 93 NICs 37 parallel ports 122, 123 SCSI controllers 38 SCSI devices 147, 148 serial ports 119, 121 video cards 150, 151 virtual infrastructure 12 virtual machine, memory 107 Virtual Machine Administration updated information 9 virtual machine communication interface 149 Virtual Machine Communication Interface, See VMCI, enabling virtual machine console, installing 208 virtual machine files 11 virtual machine hardware determining version 87 upgrading 85 virtual disks 126, 127 virtual machine hardware version 85 virtual machine options 82 virtual machine resources 82 virtual machine storage profile associate with virtual disks 136 associate with virtual machine 136 definition 135 virtual machines acceleration 180 add existing 210 adding 210 adding hard disks 128, 130 adding raw device mappings 130 boot sequence 178 CD drives 140 changing name 87 cloning 17, 26, 27, 46 completing 42 components 13
244
VMware, Inc.
Index
configuration file location 88 configuration files 88 configuration parameters 88 configuring 81 configuring devices 140 configuring guest operating systems 91 console options 90 converting templates to 57 converting to templates 49 CPU configuration 95, 96 CPU resources 92 creating 19, 22, 23, 31, 32 creating and deploying 13 creating templates 17 customizing hardware 22, 25, 29 debugging 181 debugging information 180 defined 11 deploy and export 17 deploy from templates 52 deploying 19 deploying from templates 19, 20 disk formats 134 DVD drives 140 enabling logging 179 exporting 74 files 11 finishing creation 22, 26, 29 floppy drives 144146 guest operating system 42, 90 hard disks 131 hardware 81, 82 hardware version 86, 87 hardware versions 13, 24, 85 hot add enablement 107, 108 introduction to 11 lifecycle 13 managing 207 memory 104, 105 memory allocation to NUMA nodes 108 memory resources 106 migrating 225227, 231, 232 migration 225 names 87 naming 21, 24, 27, 33 network adapter 114 network adapters 113 network configuration 111 NIC 114 opening console 209 optical drives 143
options and resources 13 parallel ports 122 power management settings 175 power states 176 provisioning 14, 17 remove from the datastore 210 remove from vCenter Server 210 removing 210 requirements for vMotion 225 resources 81 returning to vCenter Server 211 scheduled task to clone 48 selecting 27 selecting configuration option for creation 32 selecting folders 21, 24, 27 selecting guest operating systems 25, 35 serial ports 116 shutdown settings 207 snapshots 211 startup settings 207 statistics 180 swap file 110 swap files 110 templates, converting to 49 upgrading hardware version 85 versions 35 viewing consoles 209 virtual machine communication interface 149 Virtual SMP 36 See also templates, clones See also virtual hardware virtual memory allocation 104, 105 configuring 104 virtual processors, See CPUs Virtual Serial Port Concentrator 115, 119, 121 Virtual SMP 36 VMCI, enabling 150 VMFS volume 125 vMotion CD-ROM migration limitation 141 compatibility 101, 102 limitations for USB passthrough 155 migrating virtual machines with 229, 230 requirements 226 virtual machine requirements 225 VMware Compatibility Guide, accessing 57 VMware Tools defined 13 installing and configuring 43 requirement for customization 57 upgrading 91
VMware, Inc.
245
vService, add a dependency 152, 194 vService, edit a dependency 152, 195 vservices, configuring 152 vServices, remove dependency 153, 195 vServices,monitoring 205 vSPC 115, 119, 121 vSphere Client 12
W
web access, vSphere Client 15 Windows customizing during cloning or deployment 59 guest operating system customization 57 requirements for customization 57
246
VMware, Inc.