+ All Categories
Home > Documents > VS5OVR_Student Lab Guide

VS5OVR_Student Lab Guide

Date post: 28-Nov-2014
Category:
Upload: le-duong-long
View: 1,270 times
Download: 0 times
Share this document with a friend
40
VMware® Education Services VMware, Inc. www.vmware.com/education VMware vSphere: Overview Student Laboratory Exercises ESXi 5.0 and vCenter Server 5.0 VS5OVR_LabGuide.book Page 1 Thursday, August 25, 2011 8:56 PM
Transcript
Page 1: VS5OVR_Student Lab Guide

VMware® Education ServicesVMware, Inc.

www.vmware.com/education

VMware vSphere:OverviewStudent Laboratory ExercisesESXi 5.0 and vCenter Server 5.0

VS5OVR_LabGuide.book Page 1 Thursday, August 25, 2011 8:56 PM

Page 2: VS5OVR_Student Lab Guide

www.vmware.com/education

Copyright/Trademark

Copyright © 2011 VMware, Inc. All rights reserved. This manual and its accompanying materials are 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.

The training material is provided “as is,” and all express or implied conditions, representations, and warranties, including any implied warranty of merchantability, fitness for a particular purpose or noninfringement, are disclaimed, even if VMware, Inc., has been advised of the possibility of such claims. This training material is designed to support an instructor-led training course and is intended to be used for reference purposes in conjunction with the instructor-led training course. The training material is not a standalone training tool. Use of the training material for self-study without class attendance is not recommended.

These materials and the computer programs to which it relates are the property of, and embody trade secrets and confidential information proprietary to, VMware, Inc., and may not be reproduced, copied, disclosed, transferred, adapted or modified without the express written approval of VMware, Inc.

VMware vSphere:OverviewESXi 5.0 and vCenter Server 5.0Part Number EDU-ENG-OVR5-LAB-STUStudent Laboratory ExercisesRevision A

VS5OVR_LabGuide.book Page 2 Thursday, August 25, 2011 8:56 PM

Page 3: VS5OVR_Student Lab Guide

VMware vSphere: Overview i

T A B L E O F C O N T E N T S

Lab 1: Using VMware vCenter Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1

Lab 2: Deploying a Virtual Machine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7

Lab 3: Allocating Compute Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13

Lab 4: Migrating Virtual Machines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17

Lab 5: VMware Distributed Resource Scheduler Clusters (DRS) . . . . . . . . . . . . . . . . . . . . . . . . . .23

Lab 6: Using Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27

Lab 7: Using vSphere High Availability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33

VS5OVR_LabGuide.book Page i Thursday, August 25, 2011 8:56 PM

Page 4: VS5OVR_Student Lab Guide

ii VMware vSphere: Overview

VS5OVR_LabGuide.book Page ii Thursday, August 25, 2011 8:56 PM

Page 5: VS5OVR_Student Lab Guide

1

Lab 1 Using VMware vCenter Server 1

Lab 1

Using VMware vCenter Server :

Objective: Become familiar with the vSphere Client user interface

In this lab, you will perform the following tasks:

1. Use the vSphere Client to log in to vCenter Server.

2. Navigate through the vCenter Server inventory.

3. View licensing information.

Preparing for the lab

This lab should be performed separately by each student in a VMware® ESXi™ team. An ESXi team consists of one or two students assigned to an ESXi host.

Record the following information:

VMware vCenter Server™ system name

vCenter Server user name

vCenter Server password

Your assigned ESXi host

Your assigned virtual machine

Your assigned folder in the VMs and Templates inventory

VS5OVR_LabGuide.book Page 1 Thursday, August 25, 2011 8:56 PM

Page 6: VS5OVR_Student Lab Guide

2 Lab 1 Using VMware vCenter Server

Task 1: Use the vSphere Client to log in to vCenter Server

In this task, you start VMware vSphere® Client™ and log in to vCenter Server.

1. Log in to your lab system. Your instructor will explain how to access the lab environment, because this might differ among training sites.

2. After you are logged in, verify that the vSphere Client icon is on your desktop.

3. Double-click the vSphere Client icon.

4. At the vSphere Client login window, enter the vCenter Server system name, user name, and password, which you recorded in “Preparing for the lab.” Click Login.

5. Select the check box Install this certificate and do not display any security warnings for <host_name> to prevent this warning from being displayed in the future. Click Ignore to proceed with the connection.

VS5OVR_LabGuide.book Page 2 Thursday, August 25, 2011 8:56 PM

Page 7: VS5OVR_Student Lab Guide

1

Lab 1 Using VMware vCenter Server 3

Task 2: Navigate through the vCenter Server inventory

In this task, you navigate through the inventory views available in vCenter Server and you find out information about various inventory objects.

1. Verify that the Home page is displayed. If the Home page is not displayed, click Home in the navigation bar.

2. Click the Hosts and Clusters icon. The Hosts and Clusters inventory view appears. Click the plus sign (+) to expand inventory objects as necessary.

What is the name of your datacenter? ___________________________________

3. Verify that the ESXi host you recorded in “Preparing for the lab” is present in the datacenter.

4. Verify that your assigned virtual machine, which you recorded in “Preparing for the lab,” is present on your assigned ESXi host.

5. Navigate to the VMs and Templates inventory view. To do this, in the navigation bar, click the blue triangle to the right of Inventory and select VMs and Templates.

6. In the inventory view, expand the folder named Templates.

What is the name of the virtual machine template? __________________________________

VS5OVR_LabGuide.book Page 3 Thursday, August 25, 2011 8:56 PM

Page 8: VS5OVR_Student Lab Guide

4 Lab 1 Using VMware vCenter Server

7. Select your virtual machine in the inventory, then click the Summary tab.

What is the name of the datastore containing the virtual machine’s files? ______________________________

What is the name of the virtual machine’s network? ______________________________

Note the other types of information available about the virtual machine.

8. Navigate to the Datastores and Datastore Clusters inventory view. To do this, in the navigation bar, click the blue triangle to the right of Inventory and select Datastores and Datastore Clusters.

9. Expand the vCenter Server object and the Training datacenter object. Select the datastore containing your virtual machine’s files (which you recorded in an earlier step).

10. Click the Virtual Machines tab. Verify that your virtual machine is displayed in the list.

11. Navigate to the Networking inventory view. To do this, in the navigation bar, click the blue triangle to the right of Inventory and select Networking.

12. Expand the vCenter Server object and the Training datacenter object. Verify that two distributed virtual switches (dvProduction and dvVMotion) appear in the inventory.

NOTE

Different icons are used to represent standard switches and distributed virtual switches. In the following sample inventory, three standard switches (Privnet, Production, and VM Network) and two distributed virtual switches (dvProduction and dvVMotion) are listed.

VS5OVR_LabGuide.book Page 4 Thursday, August 25, 2011 8:56 PM

Page 9: VS5OVR_Student Lab Guide

1

Lab 1 Using VMware vCenter Server 5

Task 3: View licensing information

In this task, you view licensing information about your ESXi host and vCenter Server.

1. In the navigation bar, click the blue triangle to the left of Inventory and select Administration > Licensing. The Licensing pane appears.

2. Click the Asset radio button.

3. Verify that your ESXi host and the vCenter Server have evaluation license keys.

4. Exit vSphere Client. To do this, from the menu bar, select File > Exit.

VS5OVR_LabGuide.book Page 5 Thursday, August 25, 2011 8:56 PM

Page 10: VS5OVR_Student Lab Guide

6 Lab 1 Using VMware vCenter Server

VS5OVR_LabGuide.book Page 6 Thursday, August 25, 2011 8:56 PM

Page 11: VS5OVR_Student Lab Guide

2

Lab 2 Deploying a Virtual Machine 7

Lab 2

Deploying a Virtual Machine :

Objective: Perform virtual machine template operations

In this lab, you will perform the following tasks:

1. Modify a virtual machine.

2. Convert a virtual machine to a template.

3. Deploy a virtual machine from a template.

4. Convert a template back to a virtual machine.

Preparing for the lab

This lab should be performed separately by each student in a VMware® ESXi™ team. An ESXi team consists of one or two students assigned to an ESXi host.

Record the following information:

VMware vCenter Server™ user name

vCenter Server password

Virtual machine network

Name of virtual machine template

Shared datastore for virtual machines

VS5OVR_LabGuide.book Page 7 Thursday, August 25, 2011 8:56 PM

Page 12: VS5OVR_Student Lab Guide

8 Lab 2 Deploying a Virtual Machine

Task 1: Modify a virtual machine

In this task, you modify a virtual machine by connecting the virtual machine network adapter to a network.

1. Using VMware vSphere® Client™, log in to vCenter Server with the user name and password that you recorded in “Preparing for the lab.”

2. Go to the VMs and Templates inventory view (Home > Inventory > VMs and Templates).

3. If necessary, expand your lab team folder (Lab Team XX).

4. Connect the virtual machine network adapter to the virtual machine network:

a. Right-click your virtual machine in the inventory and select Edit Settings. The Virtual Machine Properties dialog box appears.

b. In the Hardware list, select Network adapter 1.

c. In the Network Label field, select the virtual machine network, whose name you recorded in “Preparing for the lab.”

d. In the Device Status field, verify that the Connect at power on check box is selected.

e. Click OK.

5. Verify the virtual machine is connected to the correct network by clicking the Summary tab of the virtual machine and viewing the Network panel.

Task 2: Convert a virtual machine to a template

In this task, you convert your virtual machine to a virtual machine template.

1. Verify that your virtual machine is powered off.

2. Right-click your virtual machine and select Template > Convert to Template.

Guest operating system custom specification file

Administrator password for virtual machine deployed from template

VS5OVR_LabGuide.book Page 8 Thursday, August 25, 2011 8:56 PM

Page 13: VS5OVR_Student Lab Guide

2

Lab 2 Deploying a Virtual Machine 9

3. Verify that your virtual machine is now a template by noting its icon. A template icon looks like the following icon:

Task 3: Deploy a virtual machine from a template

In this task, you deploy a virtual machine from your template and allow vCenter Server to customize the guest operating system.

1. In your lab team folder, right-click your template and select Deploy Virtual Machine from this Template. The Deploy Template wizard appears.

2. When prompted by the wizard, enter the following values.

Fields/settings Value

Name Name the new virtual machine with your first name, followed by the last numeral of your ESXi host and the number 1. For example, if your name is Greg, and your ESXi host is 172.20.10.52, then the virtual machine name is Greg2-1.

Inventory Location Select your lab team folder.

Host or Cluster to run this virtual machine

Select your ESXi host. Do not select any cluster.

Datastore for the virtual machine Select datastore01

VS5OVR_LabGuide.book Page 9 Thursday, August 25, 2011 8:56 PM

Page 14: VS5OVR_Student Lab Guide

10 Lab 2 Deploying a Virtual Machine

3. Click Finish to start the deployment task.

4. Monitor the task in the Recent Tasks pane. When the task completes, verify that the virtual machine was created properly:

a. Open a console to your virtual machine. To do this, right-click your virtual machine in the inventory and select Open Console.

b. Verify that you can log in to the Windows operating system as user Administrator, using the password recorded in “Preparing for the lab.”

To send the Ctrl+Alt+Delete sequence to your virtual machine, in the menu bar of the virtual machine console select VM > Guest > Send Ctrl+Alt+del.

5. Remain logged in to your virtual machine. Close the virtual machine console window.

Task 4: Convert a template back to a virtual machine

In this task, you convert your template back to a virtual machine. By doing this, you will have two virtual machines to work with for the remaining labs.

1. In your lab team folder, right-click your template and select Convert to Virtual Machine. The Convert Template to Virtual Machine wizard appears.

2. When prompted by the wizard, enter the following values.

3. On the Ready to Complete page, click Finish to start the deployment task.

4. Verify that your template is now a virtual machine by noting its icon.

Disk Format Same format as source

Guest Customization Option Select the Power on this virtual machine after creation check box. Click Next

Fields/settings Value

Host/Cluster Select your ESXi host.

Resource Pool Keep your ESXi host selected. Do not select any clusters.

Fields/settings Value

VS5OVR_LabGuide.book Page 10 Thursday, August 25, 2011 8:56 PM

Page 15: VS5OVR_Student Lab Guide

2

Lab 2 Deploying a Virtual Machine 11

5. Rename the virtual machine that you converted (LabVM<kitname>-XX):

a. Right-click the newly converted virtual machine and select Rename.

b. Name the new virtual machine with your first name, followed by the last numeral of your ESXi host and the number 2. For example, if your name is Tulika, and your ESXi host is 172.20.10.51, then the virtual machine name is Tulika1-2.

c. Verify that your virtual machine has been renamed.

6. Power on the virtual machine. To do this, right-click your virtual machine and select Power > Power On. Leave the vSphere Client window open for the next lab.

VS5OVR_LabGuide.book Page 11 Thursday, August 25, 2011 8:56 PM

Page 16: VS5OVR_Student Lab Guide

12 Lab 2 Deploying a Virtual Machine

VS5OVR_LabGuide.book Page 12 Thursday, August 25, 2011 8:56 PM

Page 17: VS5OVR_Student Lab Guide

3

Lab 3 Allocating Compute Resources 13

Lab 3

Allocating Compute Resources :

Objective: Configure resource pools to allocate CPU

In this lab, you will perform the following tasks:

1. View resource pool information.

2. Verify resource pool functionality.

Preparing for the lab

This lab should be performed separately by each student in a VMware® ESXi™ team.

Record the following information:

VMware vCenter Server™ user name

vCenter Server password

Administrator password for your virtual machines

VS5OVR_LabGuide.book Page 13 Thursday, August 25, 2011 8:56 PM

Page 18: VS5OVR_Student Lab Guide

14 Lab 3 Allocating Compute Resources

Task 1: View resource pool information

In this task, you view information about two resource pools that have been created for your ESXi host: Fin-Test and Fin-Prod.

1. If you exited VMware vSphere® Client™, use the vSphere Client to log back in to vCenter Server with the user name and password that you recorded in “Preparing for the lab.”

2. Go to the Hosts and Clusters inventory view.

3. If necessary, expand your ESXi host in the inventory.

4. Under your ESXi host, select the resource pool named Fin-Test, then click the Summary tab. View the CPU > Resource Settings area. Fin-Test has 2,000 shares.

5. Select the resource pool named Fin-Prod, then click the Summary tab. View the CPU > Resource Settings area. Fin-Prod has 8,000 shares.

Task 2: Verify resource pool functionality

In this task, you verify that each resource pool provides the correct amount of CPU to each virtual machine when there is contention.

1. Drag the virtual machine named YourName##-1 into the Fin-Prod resource pool.

2. Drag the virtual machine named YourName##-2 into the Fin-Test resource pool.

3. Open a console to each virtual machine (right-click your virtual machine and select Open Console). If necessary, log in to each virtual machine as user Administrator, using the password you recorded in “Preparing for the lab.”

4. From each virtual machine’s console, run the cpubusy.vbs script (located on the virtual machine’s desktop) by right-clicking the script and selecting Open with Command Prompt.

5. After the scripts run for a few seconds, compare the performance of the script in each virtual machine.

Is there a difference in performance between virtual machines? Why or why not?

The answer is no. No difference exists in performance between the virtual machines, because the VMkernel shifts the job load around to make the most efficient use of the available CPUs.

6. Generate CPU contention. To do this, schedule both virtual machines to run on the same CPU:

a. Right-click one of the virtual machines and select Edit Settings. The Virtual Machine Properties dialog box appears.

b. Click the Resources tab, then select Advanced CPU in the Settings panel.

VS5OVR_LabGuide.book Page 14 Thursday, August 25, 2011 8:56 PM

Page 19: VS5OVR_Student Lab Guide

3

Lab 3 Allocating Compute Resources 15

c. In the Scheduling Affinity field, type 1. This schedules the virtual machine to run only on CPU 1.

d. Click OK.

e. Repeating the preceding steps, set the scheduling affinity of the other virtual machine to also run on CPU 1.

NOTE

Setting a virtual machine’s scheduling affinity is not a recommended practice in a production environment. Use this setting in test environments only.

7. After the scripts run for a few seconds, compare the performance of the script in each virtual machine.

Is there a difference in performance between virtual machines? Why or why not?

The answer is “It depends.” If there is enough CPU contention on the processor, then the answer is “yes, there is a difference in performance between the virtual machines.” For example, the virtual machine in the pool with more shares might compute sines in 2 seconds, and the virtual machine in the pool with fewer shares might compute sines in 9 seconds. However, if the amount of CPU activity generated does not cause CPU contention, then the answer is “no, there is no difference because each virtual machine is getting the CPU resources that it needs.”

8. Stop the cpubusy.vbs script in each virtual machine (type Ctrl+C in the cpubusy window).

9. Remove the scheduling affinity value from both the virtual machines.

10. Close the console of each virtual machine. Leave the vSphere Client window open for the next lab.

VS5OVR_LabGuide.book Page 15 Thursday, August 25, 2011 8:56 PM

Page 20: VS5OVR_Student Lab Guide

16 Lab 3 Allocating Compute Resources

VS5OVR_LabGuide.book Page 16 Thursday, August 25, 2011 8:56 PM

Page 21: VS5OVR_Student Lab Guide

4

Lab 4 Migrating Virtual Machines 17

Lab 4

Migrating Virtual Machines :

Objective: Migrate virtual machines with Storage vMotion and vMotion

In this lab, you will perform the following tasks:

1. Use Storage vMotion to migrate a virtual machine.

2. Verify that your virtual machines’ settings meet vMotion requirements.

3. Verify that your ESXi host meets vMotion requirements.

4. Perform a vMotion migration of your virtual machine.

Preparing for the lab

This lab involves two VMware® ESXi™ teams. An ESXi team consists of two students assigned to the same ESXi host. You instructor will pair your ESXi team with another team, called your partner team. This lab can be performed by each student in an ESXi team.

Record the following information:

VMware vCenter Server™ user name

vCenter Server password

ESXi team to pair up with

Shared datastore

VS5OVR_LabGuide.book Page 17 Thursday, August 25, 2011 8:56 PM

Page 22: VS5OVR_Student Lab Guide

18 Lab 4 Migrating Virtual Machines

Task 1: Use Storage vMotion to migrate a virtual machine

In this task, you select a virtual machine whose files are located on your local datastore and migrate it to a different datastore with vSphere Storage vMotion.

1. If you exited VMware vSphere® Client™, use the vSphere Client to log back in to vCenter Server with the user name and password that you recorded in “Preparing for the lab.”

2. Navigate to the VMs and Templates inventory view.

3. In your lab team folder, right-click the first virtual machine that you created (YourName##-1). It should already be powered on. If it is not, power on now.

4. Click the Summary tab. View the Datastore area. The datastore on which your virtual machine is located is the local datastore (datastore##).

5. Right-click the virtual machine and select Migrate. The Migrate Virtual Machine wizard appears.

6. When prompted by the wizard, enter the following values. When you reach the last page of the wizard, click Finish.

7. Monitor the progress of the task in the Recent Tasks pane. After the task is finished, view the ESXi host’s Summary tab to verify that your virtual machine is now located on the shared datastore.

8. Repeat the step 1-7 for your second virtual machine (YourName##-2).

Fields/settings Values

Select Migration Type Change datastore.

Select Resource Pool Keep your ESXi host selected (do not select a resource pool).

Select Datastore Select the shared datastore that you recorded in “Preparing for the lab.”

Disk Format Same format as source

VS5OVR_LabGuide.book Page 18 Thursday, August 25, 2011 8:56 PM

Page 23: VS5OVR_Student Lab Guide

4

Lab 4 Migrating Virtual Machines 19

Task 2: Verify that your virtual machines’ settings meet vMotion requirements

In this task, you verify that the virtual machine’s settings meets VMware vSphere® vMotion® requirements.

1. In your lab team folder, right-click the first virtual machine that you created (YourName##-1) and then select Edit Settings.

2. Verify that the virtual machine’s CD/DVD drive is not connected to a local device and does not have an image in a local datastore defined:

a. In the Hardware list, find CD/DVD Drive 1 and verify that the Summary column shows Client Device.

b. If the Summary column does not show Client Device, then select CD/DVD Drive 1 in the list and click the device type, Client Device, to remove existing connections.

3. Verify that the virtual machine does not have scheduling affinity set:

a. Click the Resources tab, then select Advanced CPU.

b. Delete any numbers in the Scheduling Affinity field.

4. Click OK to apply all virtual machine changes.

5. Verify that the virtual machine’s files are located on a datastore accessible by the destination ESXi host:

a. Select your virtual machine, then click the Summary tab.

b. Review the Datastores area. If the name of the datastore listed is not the shared datastore that you recorded in “Preparing for the lab,” use Storage vMotion to migrate the virtual machine’s files from its current location to the shared datastore.

6. Using the same list of vMotion requirements, verify that the other virtual machine you created in your lab team folder also meets these requirements.

Task 3: Verify that your ESXi host meets vMotion requirements

In this task, you verify that your ESXi host meets vMotion requirements.

1. Verify that your ESXi host and your partner team’s ESXi host belong to the vMotion network:

a. Go to the Networking inventory view.

b. Expand the dvVMotion switch in the inventory, select VMotionPortGroup, then click the Hosts tab.

c. Verify that your ESXi host and your partner team’s ESXi host appear in the list.

VS5OVR_LabGuide.book Page 19 Thursday, August 25, 2011 8:56 PM

Page 24: VS5OVR_Student Lab Guide

20 Lab 4 Migrating Virtual Machines

2. Verify that your ESXi host and your partner team’s ESXi host are connected to the same datastores and networks:

a. Select Home > Inventory > Hosts and Clusters.

b. Select each ESXi host and click its Summary tab.

c. View the Processor Type information to verify that the CPUs are compatible.

d. Click your ESXi host’s Configuration tab.

e. Click the Networking link.

f. Select the Datacenter and click the Maps tab.

g. In the Map Relationships panel, select Custom Map from the drop-down menu.

h. Under Host Options, select the Host to Datastore check box. Deselect the Host to VM check box.

i. Under VM Options, deselect every check box.

j. Click Apply Relationships. Both ESXi hosts should have access to the same shared datastores for virtual machines

k. Verify that both ESXi hosts have access to the same networks:

l. Under Host Options, deselect the Host to Datastore check box and select the Host to Network check box.

m. Under VM Options, deselect every check box.

n. Click Apply Relationships. Both ESXi hosts should have access to the same networks

Task 4: Perform a vMotion migration of your virtual machine

In this task, you migrate a virtual machine while it is powered on.

1. Migrate your virtual machine with vMotion to your partner team’s ESXi host:

a. In the inventory, right-click your virtual machine and select Migrate. The Migrate Virtual Machine wizard appears.

b. When prompted by the wizard, enter the following values. When you reach the last page of the wizard, click Finish.

VS5OVR_LabGuide.book Page 20 Thursday, August 25, 2011 8:56 PM

Page 25: VS5OVR_Student Lab Guide

4

Lab 4 Migrating Virtual Machines 21

2. Monitor the progress of the vMotion migration in the Recent Tasks pane.

3. View the virtual machine’s Summary tab. In the General panel, verify that your virtual machine is on your partner team’s ESXi host.

4. Verify that you can successfully migrate your other virtual machine to your partner team’s ESXi host.

5. To prepare for the next lab, cooperate with the members of your partner team to migrate at least four virtual machines (two per ESXi team) onto the lower-numbered ESXi host. The virtual machines do not have to be placed into a resource pool.

For example, if your team’s ESXi host is Server03 and your partner team’s ESXi host is Server04, have your partner team migrate at least two of their virtual machines from their host (Server04) to your host (Server03).

Leave the vSphere Client window open for the next lab.

Fields/settings Values

Migration Type Change host

Destination Select your partner team’s ESXi host.

A validation of vMotion requirements takes place. If the validation does not succeed, you receive warning or error messages and will be unable to continue with the migration until the errors are resolved.

Resource Pool Keep the ESXi host selected (do not select a resource pool).

Migration Priority Reserve CPU for optimal vMotion performance (Recommended)

VS5OVR_LabGuide.book Page 21 Thursday, August 25, 2011 8:56 PM

Page 26: VS5OVR_Student Lab Guide

22 Lab 4 Migrating Virtual Machines

VS5OVR_LabGuide.book Page 22 Thursday, August 25, 2011 8:56 PM

Page 27: VS5OVR_Student Lab Guide

5

Lab 5 VMware Distributed Resource Scheduler Clusters (DRS) 23

Lab 5

VMware Distributed Resource Scheduler Clusters (DRS) :

Objective: Use a DRS cluster

In this lab, you will perform the following tasks:

1. Work with your partner team to prepare hosts for lab.

2. Populate the DRS cluster.

3. Verify DRS cluster functionality.

Preparing for the lab

This lab involves two VMware® ESXi™ teams. An ESXi team consists of two students assigned to the same ESXi host. You instructor will pair your ESXi team with another team, called your partner team. This lab must be performed as an ESXi team.

Record the following information:

VMware vCenter Server™ user name

vCenter Server password

ESXi team to pair up with

Lab cluster name

VS5OVR_LabGuide.book Page 23 Thursday, August 25, 2011 8:56 PM

Page 28: VS5OVR_Student Lab Guide

24 Lab 5 VMware Distributed Resource Scheduler Clusters (DRS)

Task 1: Work with your partner team to prepare hosts for lab

In this task, you work with your partner team to verify that at least four virtual machines are on the lower-numbered ESXi host.

1. If you exited VMware vSphere® Client™, use the vSphere Client to log back in to vCenter Server with the user name and password that you recorded in “Preparing for the lab.”

2. Verify that you have at least four virtual machines on the lower-numbered ESXi host: two virtual machines belonging to your team and the two other virtual machines belonging to your partner team.

3. Power off one virtual machine belonging to your team and one virtual machine belonging to your partner team. To power off a virtual machine, right-click the virtual machine in the inventory and select Power > Power Off.

Task 2: Populate the DRS cluster

In this task, you add your ESXi host to the DRS cluster and you view information about the ESXi hosts in the cluster.

1. In the Hosts and Clusters inventory view, find your assigned lab cluster, which you recorded in “Preparing for the lab.”

2. Add your ESXi host to the DRS cluster:

a. Drag your ESXi host into the DRS cluster. The Add Host wizard appears.

b. In the Choose the Destination Resource Pool pane, select Put all of this host’s virtual machines in the cluster’s root resource pool, then click Next.

c. At the Ready to Complete window, click Finish.

3. In the inventory, select your lab cluster, then click the Summary tab. View the general information and DRS-specific information.

4. Before proceeding to the next task, verify that your host and your partner team’s host are members of the cluster.

Task 3: Verify DRS cluster functionality

In this task, you verify that the cluster is functioning properly for DRS.

1. Navigate to the VMs and Templates inventory view.

2. Power on the virtual machine that you powered off in task 1. The DRS cluster has been configured for manual mode and so gives you a recommendation on what host to place the virtual machine. Make sure to power on the virtual machine on the lower-numbered host.

VS5OVR_LabGuide.book Page 24 Thursday, August 25, 2011 8:56 PM

Page 29: VS5OVR_Student Lab Guide

5

Lab 5 VMware Distributed Resource Scheduler Clusters (DRS) 25

3. Generate CPU activity on the virtual machines that you chose to use for this lab:

a. Open a console to each of your virtual machines that you are using for this lab. Log in to the guest operating system as Administrator.

b. Before proceeding to the next step, verify again that four virtual machines are powered on and located on the lower-numbered host. (The four virtual machines are two virtual machines belonging to your team and two virtual machines belonging to your partner team).

c. From each of your virtual machine’s consoles, run the cpubusy.vbs script, located on the virtual machine’s desktop, by right-clicking the script and selecting Open with Command Prompt.

This script generates CPU activity. Let the scripts run continuously while you wait for migration recommendations to appear.

Do not apply any recommendations yet.

4. Navigate to the Hosts and Clusters inventory view. Select your lab cluster in the inventory, then click the DRS tab.

If you do not see any migration recommendations in a couple of minutes, click the Run DRS link in the upper-right corner to manually refresh the view. If you do see a recommendation, proceed to the next step. Again, do not apply any recommendations yet.

5. Click your cluster’s Summary tab. View the VMware DRS panel. Is your load balanced or imbalanced?

6. Click the View Resource Distribution Chart link. This chart displays the CPU or memory use per host. Hover the pointer over each colored square to see information on how much of a virtual machine’s entitled resources the virtual machine is using. How is this information useful?

7. Close the chart window.

8. Return to your lab cluster’s DRS tab. If your partner team has not reached this step, wait for them. When everyone is ready, have one person apply all the recommendations by clicking Apply Recommendations, located in the lower-right corner of the view.

9. Monitor the migrations in the Recent Tasks pane.

VS5OVR_LabGuide.book Page 25 Thursday, August 25, 2011 8:56 PM

Page 30: VS5OVR_Student Lab Guide

26 Lab 5 VMware Distributed Resource Scheduler Clusters (DRS)

10. Return to your lab cluster’s Summary tab and view the VMware DRS panel. Are the virtual machines balanced across the hosts in the cluster? If necessary, click the Run DRS link to update the display.

11. Type Ctrl+C in each cpubusy window to stop each instance of the cpubusy.vbs script in each virtual machine.

12. Close all virtual machine consoles. Leave the vSphere Client window open for the next lab.

VS5OVR_LabGuide.book Page 26 Thursday, August 25, 2011 8:56 PM

Page 31: VS5OVR_Student Lab Guide

6

Lab 6 Using Alarms 27

Lab 6

Using Alarms :

Objective: Demonstrate the vCenter Server alarm feature

In this lab, you will perform the following tasks:

1. Create a virtual machine alarm.

2. Trigger the virtual machine alarm, then acknowledge it.

3. Disable the alarms.

Preparing for the lab

This lab should be performed separately by each student in a VMware® ESXi™ team.

Record the following information:

Task 1: Create a virtual machine alarm

In this task, you create a virtual machine alarm.

1. If you exited VMware vSphere® Client™, use the vSphere Client to log back in to vCenter Server with the user name and password that you recorded in “Preparing for the lab.”

2. Navigate to the VMs and Templates inventory view. Choose one of your virtual machines to work with during this lab. Select that virtual machine in the inventory, then choose the Alarms tab.

VMware vCenter Server™ user name

vCenter Server password

VS5OVR_LabGuide.book Page 27 Thursday, August 25, 2011 8:56 PM

Page 32: VS5OVR_Student Lab Guide

28 Lab 6 Using Alarms

3. Click the Definitions button. Notice that the datacenter inherited all the alarms defined at the vCenter Server level.

4. Create an alarm to check a virtual machine’s CPU usage:

a. Right-click anywhere to the right of the list of alarms and select New Alarm. The Alarm Settings dialog box appears.

b. In the General tab, enter the following information.

c. Click the Triggers tab, then click Add (near the bottom of the dialog box).

d. Add the following trigger.

Fields/settings Values

Alarm name <First_Name> VM CPU Usage(Your first name is used to differentiate your alarm from the alarms of the other students.)

Description Leave blank.

Alarm Type – Monitor Select Virtual Machines, and select Monitor for specific conditions or state, for example, CPU usage, power state.

Enable this alarm Leave selected.

Trigger settings Values

Trigger Type VM CPU Usage (%)

Condition Is above

Warning 25

Condition Length for 30 sec

Alert 50

Condition Length for 5 min

Trigger if any of the conditions are satisfied

Leave selected.

VS5OVR_LabGuide.book Page 28 Thursday, August 25, 2011 8:56 PM

Page 33: VS5OVR_Student Lab Guide

6

Lab 6 Using Alarms 29

e. Do not change anything in the Reporting tab.

f. Click the Actions tab, then click Add.

g. Configure the following action settings.

h. Click OK.

i. Verify that your alarm appears in the list of alarms (near the end of the list).

5. Create another alarm to check whether a virtual machine has been suspended. Apply this alarm to your lab team folder:

a. Right-click your lab team folder in the inventory and select Alarm > Add Alarm. The Alarm Settings dialog box appears.

b. In the General tab, enter the following information.

Action settings Values

Action Click the field below the Action header, then select Suspend VM from the list.

Configuration Leave as is. (This column does not apply to this action.)

Green to Yellow Choose Once from the list.

Yellow to Red Change the setting from Once to blank.

Red to Yellow Leave blank.

Yellow to Green Leave blank.

Fields/settings Values

Alarm name <First_Name> VM Suspended

(Your first name is used to differentiate your alarm from other students’ alarms.)

Description Leave blank.

VS5OVR_LabGuide.book Page 29 Thursday, August 25, 2011 8:56 PM

Page 34: VS5OVR_Student Lab Guide

30 Lab 6 Using Alarms

c. Click the Triggers tab, then click Add (near the bottom of the dialog box).

d. Add the following trigger.

e. Under the Conditions column, click the Advanced link. The Trigger Conditions dialog box appears.

f. Click Add.

g. Click Change tag under the Argument column, then select VM name from the list.

h. Under the Operator column, leave the value at equal to.

i. Click the area under the Value column. Enter the name of the virtual machine that you are using for this lab. The VM name is case-sensitive for this alarm.

j. Click OK.

k. In the Alarm Settings dialog box, do not change anything in either the Reporting tab or the Actions tab.

l. Click OK.

m. Verify that your alarm appears in the list of alarms (it should appear at the end of the list).

Alarm Type – Monitor Select Virtual Machines, and select Monitor for specific events occurring on this object, for example, VM powered On.

Enable this alarm Leave selected.

Trigger settings Values

Event Click the field below the Event header, then select VM suspended from the list (near the end of the list).

Status Alert

Fields/settings Values

VS5OVR_LabGuide.book Page 30 Thursday, August 25, 2011 8:56 PM

Page 35: VS5OVR_Student Lab Guide

6

Lab 6 Using Alarms 31

Task 2: Trigger the virtual machine alarm, then acknowledge it

In this task, you perform an action to trigger both alarms, you view the triggered alarms, and you acknowledge them.

1. In the Alarms tab, click the Triggered Alarms button. Keep this window visible because alarms that are triggered are displayed in this pane.

2. Trigger your VM CPU Usage alarm by generating CPU activity in the virtual machine that you are using for this lab:

a. In the inventory, right-click the virtual machine and select Open Console.

b. On the virtual machine’s desktop, right-click cpubusy.vbs and select Open with Command Prompt. Wait at least 30 seconds for the alarm to be triggered. Your VM CPU Usage alarm has been triggered when the virtual machine is suspended.

You might notice that when your VM CPU Usage alarm is triggered, it briefly appears in the Triggered Alarms pane, then goes away.

3. Once the virtual machine is suspended, verify that your VM Suspended alarm is triggered. You should see an entry for this alarm in the Triggered Alarms pane.

4. Acknowledge your VM Suspended alarm:

a. Notice that the Acknowledged and Acknowledged By fields are blank.

b. Right-click your VM Suspended alarm and select Acknowledge Alarm. Notice that the Acknowledged and Acknowledged By fields are now filled in.

5. Power on the suspended virtual machine (right-click the virtual machine in the inventory and select Power > Power On). Because your vSphere Distributed Resource Scheduler (DRS) cluster is in manual mode, you will get a recommendation on what host to power on the virtual machine. Accept the recommendation.

6. In the virtual machine console, stop the cpubusy.vbs script.

7. Close the virtual machine console.

Task 3: Disable the alarms

In this task, you disable your VM CPU Usage alarm and your VM Suspended alarm.

1. Disable your VM CPU Usage alarm:

a. In the virtual machine’s Alarms tab, click the Definitions button.

b. Right-click your VM CPU Usage alarm and select Edit Settings.

c. In the General tab, deselect the Enable this alarm check box, then click OK.

VS5OVR_LabGuide.book Page 31 Thursday, August 25, 2011 8:56 PM

Page 36: VS5OVR_Student Lab Guide

32 Lab 6 Using Alarms

2. Disable your VM Suspended alarm:

a. Select your lab team folder in the inventory, then click the Alarms tab.

b. Click the Definitions button.

c. Right-click your VM Suspended alarm and select Edit Settings.

d. In the General tab, deselect the Enable this alarm check box, then click OK.

Leave the vSphere Client window open for the next lab.

VS5OVR_LabGuide.book Page 32 Thursday, August 25, 2011 8:56 PM

Page 37: VS5OVR_Student Lab Guide

7

Lab 7 Using vSphere High Availability 33

Lab 7

Using vSphere High Availability :

Objective: Demonstrate vSphere HA functionality

In this lab, you will perform the following tasks:

1. Work with your partner team to prepare hosts for the lab.

2. Verify the vSphere HA Cluster Configurations.

3. Verify vSphere HA functionality.

Preparing for the lab

This lab involves two VMware® ESX™ teams. Perform this lab with your partner team.

Record the following information:

VMware vCenter Server™ user name

vCenter Server password

ESX team to pair with

Lab cluster name

VS5OVR_LabGuide.book Page 33 Thursday, August 25, 2011 8:56 PM

Page 38: VS5OVR_Student Lab Guide

34 Lab 7 Using vSphere High Availability

Task 1: Work with your partner team to prepare hosts for the lab

Perform this task with your partner team. Designate one person to perform the steps. The rest of the team should watch and understand the task being performed.

1. If you exited VMware vSphere® Client™, use the vSphere Client to log back in to vCenter Server with the user name and password that you recorded in “Preparing for the lab.”

2. Go to the Hosts and Clusters view. Find your lab cluster, whose name you recorded in “Preparing for the lab.” Your lab cluster currently has two ESX hosts.

3. Power on at least one virtual machine on each host. You can view the Virtual Machines tab of each ESXi host in your cluster to determine which virtual machines reside on each host. If necessary, migrate virtual machines to the appropriate host.

Task 2: Verify the vSphere HA Cluster Configurations

1. click the Lab Cluster inventory object and click the Summary tab. Notice that a vSphere HA pane is now displayed.

2. Click the Cluster Status link.

3. Review the content on each tab and answer the questions below:

a. Which host is the master?_______________________________.

ANSWER: The answer depends on which host wins the election.

b. Does the number of protected virtual machines match the number of virtual machines in the cluster?___________.

ANSWER: Depends on number of powered on virtual machines

c. How many datastores will be used for heartbeating? ________________.

ANSWER: 2

d. Click OK to dismiss the vSphere HA Cluster Status window.

VS5OVR_LabGuide.book Page 34 Thursday, August 25, 2011 8:56 PM

Page 39: VS5OVR_Student Lab Guide

7

Lab 7 Using vSphere High Availability 35

Task 3: Verify vSphere HA functionality

Perform this task with your partner team. Designate one person to perform all the steps. The rest of the team should watch and understand the task being performed.

In this task, you verify that vSphere HA works properly in your lab cluster.

1. Simulate a host failure by rebooting one of the hosts in the cluster:

a. Right-click the master ESXi host that you recorded in task 2, step 3a, and click Reboot.

b. When a message warns you that your host is not in maintenance mode, click Yes to reboot.

c. Type Testing vSphere HA as the reason for rebooting and click OK.

2. Select Lab Cluster in the inventory and click the Tasks & Events tab.

3. Click Events to display the Events view.

4. From the drop-down menu, select Show Cluster Entries to monitor the events for your vSphere HA cluster. The cluster entries are sorted by time. Notice the entries made by vSphere HA when the host failure was detected.

5. Select the running ESXi host in the cluster and click the Virtual Machines tab. The virtual machines that were running on the original master ESXi host should now be running on the remaining host in the cluster.

6. Monitor the vCenter Server inventory until you see that the original master ESXi host is running.

7. Because your cluster has both vSphere HA and vSphere Distributed Resource Scheduler (DRS) enabled, check for any DRS migration recommendations (view your lab cluster’s DRS tab). Apply all recommendations, if they exist.

8. Exit the vSphere Client. To do this, in the menu bar, select File > Exit.

VS5OVR_LabGuide.book Page 35 Thursday, August 25, 2011 8:56 PM

Page 40: VS5OVR_Student Lab Guide

36 Lab 7 Using vSphere High Availability

VS5OVR_LabGuide.book Page 36 Thursday, August 25, 2011 8:56 PM


Recommended