You are on page 1of 135
VMware vSphere: Install, Configure, Manage ‘Student Laboratory Exercises ESXi 5.0 and vCenter Server 5.0 VMware® Education Services vmware’ VMware, Inc. www.vmware.com/education ‘VMware vSphere: Install, Configure, Manage ESXi 5.0 and vCenter Server 5.0 Part Number EDU-ENG-ICM5-LAB-STU Student Laboratory Exercises Revision A Copyright/Trademark Copyright © 2011 VMware, Inc. All rights reserved. This manual and its accompanying materials are protected by U.S. and intemational copyright and intellectual property laws, ‘VMware products are covered by one or more patents listed at http:!vww.vmware.comigo! patenis, 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 impliod conditions, representations, and warranties, including any implied warranty of merchantability, fitness for particular purpose or noninfringement, are disclaimed, even if VMware, Inc., has been advised of the possibilty 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. www.vmware.com/education TABLE OF CONTENTS Lab 1; Install VMware vSphere Graphical User Interfaces..............-.55 Saree Lab 2: Configuring VMware ESXi Lab 3: Working with Virtual Machines Lab 4: Configure VMware vCenter Server Appliance . Lab 5: Using VMware vCenter Server .. .. Lab 6: Standard Virtual Switches . Lab 7: Accessing IP Storage ... Lab 8: (Optional) Designing a Network Configuration, Lab 9: Managing VMware vSphere VMES. Lab 10: Using Templates and Clones. Lab 11: Modifying a Virtual Machine Lab 12: Migrating Virtual Machines Lab 13: Managing Virtual Machines . Lab 14: Access Control Lab 15: Resource Pools Lab 16: Monitoring Virtual Machine Performance Lab 17: Using Alarms Lab 18: Using vSphere High Availability Lab 19: vSphere Distributed Resource Scheduler (DRS) . Lab 20: VMware vCenter Update Manager............... Lab 21: Installing VMware vCenter Server.......... 6... VMware vSphere: Install, Configure, Manage VMware vSphere: Install, Configure, Manage Lab 1 Install VMware vSphere Graphical User Interfaces Objective: Install student desktop components 1. Install the vSphere Client. 2. Install vSphere Web Access. 3. Install the Web Client (Server). Preparing for the lab Record the following information: Location of installation software Setup Language Your VMware® ESXi™ host name ESXi host user name ESXi host root password Lab 1 Install VMware vSphere Graphical User Interfaces Task 1: Access your student desktop system In this task, you log in to your student desktop system as user Administrator. 1. Ask your instructor how to access your student desktop system. For example, your instructor might have you use Remote Student Desktop Connection. Log in to your student desktop system as user Administrator, with the password that you recorded in “Preparing for the lab.” Task 2: Install the vSphere Client In this task, you install the VMware vSphere® Client™ on your desktop system and verify that the installation succeeded. Students should do the steps in this task individually. 1. Go to the location of the student desktop installation software, which you recorded in “Preparing for the lab.” Double-click autorun.exe and click Run. a. If Security Waring dialog boxes appear, click Run to continue. In the VMware Infrastructure™ Management Installer window, click ySphere Client. Click Install to start the installation wizard. a. If Security Waring dialog boxes appear, click Run to continue. When the install wizard appears, enter the following information: Field/setting Action Setup Language Select the setup language that you recorded in “Preparing for the lab” and click OK. Welcome page Click Next. End-User Patent Agreement Click Next. License Agreement Select I agree to the terms in the license agreement and click Next. User Name Type vmware student. Organization ‘Type VMware and click Next. Lab 1 install VMware vSphere Graphical User Interfaces 9. Field/setting Action Destination Folder Accept the default and click Next. Ready to Install the Program Click Install When the installation is complete, click Finish, Login to your VMware ESXi host with the vSphere Client. a. Double-click the vSphere Client icon on your student desktop system. b. Enter the IP address or host name of your first ESXi host in the IP Address / Name field. ¢. Type root forthe ESXi user name and type the password that you recorded in “Preparing for the lab.” d. Click Login. e. Select Install this certificate and do not display security warnings for “” to prevent this warning from being displayed in the future. f. Click Ignore to proceed with the connection. g. Click OK when the VMware Evaluation Notice dialog box appears. In the Inventory pane, click Inventory to verify that your ESXi host appears at the top of the inventory view on the left side of the window. In the vSphere Client menu bar, select File > Exit to close the vSphere Client. Task 3: Install the Web Client (Server) In this task, you install the VMware vSphere® Web Client on your student desktop system and verify that the installation succeeded. Students should do the steps in this task individually. 4, If you closed the installer from task 2, restart the installer: a. Goto the location of the student desktop installation software, which you recorded in “Preparing for the lab.” Lab 1 Install VMware vSphere Graphical User Interfaces b. Double-click autorun.exe and click Run. ©. When the Security Warning dialog box appears, click Run. 2. In the VMware vCenter™ Installer window, click Sphere Web Client (Server) to start the installation wizard. 3. Click Install. Field/setting Value Setup Language Select the setup language that you recorded in “Preparing for the lab” and click OK. Welcome page Click Next. End-User Patent Agreement Click Next. License Agreement Select I agree to the terms in the license agreement and click Next. User Name Type VMware student. Organization Type VMware. Click Next. Port Settings Accept the default and click Next. Destination Folder Accept the default and click Next. Ready to Install the Program Click Install. 4. When the installation is complete, click Finish. When you click Finish, the vSphere Web Client Administration Tool starts in a Web browser and prompts you to connect to a VMware vCenter Server™ instance. Do not register your vCeater Server instance at this time, You will register with a vCenter Server system in a later lab. 5. Close the browser. 6. Click Exit to close the VMware vCenter Installer window. 4 Lab 1 install VMware vSphere Graphical User Interfaces Lab 2 Configuring VMware ESXi Objective: Configure an ESXi host In this lab, you will perform the following tasks: 1. Connect to an ESXi host with the vSphere Client. View host hardware configuration. Configure DNS and routing information for an ESXi host. Configure the ESXi host as an NTP client. Preparing for the lab Record the following information: Your VMware® ESXi™ host name ESXi host user name ESXi host root password Domain name NTP Server Preferred DNS server ‘VMkemel default gateway Lab 2 Configuring VMware ESXi Task 1: Connect to an ESXi host with the VMware vSphere Client In this task, you use the VMware vSphere® Client™ to log in to an ESXi host. Students should do the steps in this task individually. 1. Login to a system from which you can start the vSphere Client. The instructor provides you with login procedures for your specific lab environment. 2. Double-click the vSphere Client icon on the system’s desktop. 3. Enter the host name of your ESXi host, which you recorded in “Preparing for the lab.” 4. Type the user name root and type the ESXi host root password that you recorded in “Preparing for the lab.” Click Login. 5. Ifyou see a certificate warming, click Ignore. 6. When the VMware Evaluation Notice window appears stating when your evaluation license expires, click OK. The vSphere Client Home page appears. You should see your host in the inventory panel. If it is not there, click Home and click Inventory in the menu bat. 7. Your host is listed in the inventory panel Task 2: View host hardware configuration In this task, you view the health of the host hardware, as well as processor and memory information. Students should do the steps in this task individually. 1. Click the Configuration tab of your ESXi host. The hardware health status view is displayed. View the status by expanding objects in the Sensor list. When you are connected to a host through VMware vCenter Server™, you use the Hardware Status tab to monitor the health of the host. 2. Inthe Hardware panel, click Processors. View the processor model, processor speed, and other information about your ESXi host processors. 3. In the Hardware panel, select Memory. View the total physical memory and how much memory is used by the system and by the virtual machines. 6 Lab 2 Configuring VMware ESXi Task 3: Configure DNS and routing information for an ESXi host In this task, you verify the DNS and routing information for your ESXi host. Students should do the steps in this task individually. 1 a Lab 2 Configuring VMware ESXi Select your ESXi host in the inventory and click the Configuration tab. In the Software panel, click the DNS and Routing link. Click the Properties link. In the DNS and Routing Configuration pancl, enter the following values. Whea you are finished, click OK. Field/setting Action Domain Verify that the domain name matches the value that you recorded in “Preparing for the lab.” If the domain name does not match, enter the domain name that you recorded in “Preparing for the lab.” Usethe following DNS —_If this field is populated, verify the setting matches the server address preferred DNS server that you recorded in “Preparing for the lab.” If this field is empty or incorrect, enter the value for preferred DNS server that you recorded in “Preparing for the lab”. Look for hosts in the Leave the default. following Somising Click the Routing tab. Default Gateway Verify the IP address for the VMkernel default gateway that you recorded in “Preparing for the lab.” If the default gateway is not defined or is incorrect, enter the IP address that you recorded in “Preparing for the lab.” Click OK to dismiss the DNS and Routing Configuration dialog box. Task 4: Configure the ESXi host as an NTP client In this task, you configure the Network Time Protocol client on the ESXi host to synchronize its time with an NTP server. Students should do the steps in this task individually. 4. Select your ESXi host in the inventory and click the Configuration tab. 2. In the Software panel, click Time Configuration, View the current settings, which show that the NTP client is stopped and that no NTP server is defined. 3. Click Properties. The Time Configuration dislog box appears. Field/setting Action Date and Time Record the date nd time here: NTP Configuration Click the box for NTP Client Enabled. Click Options. General Select Start and stop with host and click NTP Settings. NTP Settings In the NTP Servers dialog box, click Add and type the NTP server name or IP address that you recorded in “Preparing for the lab.” Restart NTP service to apply changes Select the check box and click OK. 4, Click OK to exit the Time Configuration dialog box. 5. Verify that the Time Configuration pane lists the NTP server that you added and that the NTP Client is listed as Running. 6. Leave the vSphere Client open for the next lab. 8 Lab 2 Configuring VMware ESXi Lab 3 Working with Virtual Machines Objective: Create and prepare virtual machines for use In this lab, you will perform the following tasks: 1. Create a virtual machine. Install a guest operating system in a virtual machine. Identify a virtual machine’s disk format and usage statistics. Enable time synchronization between a virtual machine and an ESXi host Copy programs from CDROM to your virtual machine. Preparing for the lab Record the following information: ‘Your VMware® ESXi™ host name ESXi host user name ESXi host root password Location of ISO images Virtual machine datastore Lab 3 Working with Virtual Machines Install VMware Tools on a virtual machine installed with a Windows operating system. Guest operating system version Virtual machine Administrator password Task 1: Create a tual machine In this task, you use the Create New Virtual Machine wizard to create a virtual machine on the your ESXi host. Students should do the steps in this task individually. 1. Ifthe VMware vSphere® Client™ is not already active, use it to log in to your first ESXi host. Use the root user name and password that you recorded in “Preparing for the lab.” 2, Im the address bar of vSphere Client, click Home and click the Inventory icon. 3. Right-click your ESXi host in the inventory and select New Virtual Machine. 4. When prompted by the Create New Virtual Machine wizard, enter the following values. Field/setting Action Configuration Name (of virtual machine) astore Virtual Machine Version Guest Operating System Number of virtual processors Memory 10 Click Custom and click Next. Name the new virwal machine with your first name, followed by the aumber of your ESXi host and a sequence number, starting with 1 For example, Greg has an ESXi host named go0se06. The name of his virtual machine is Greg06-1. Click Next. Select the that you recorded in “Preparing for the lab” and click Next. Keep the default and click Next. Recorded in “Preparing for the lab” Keep the default and click Next. To ensure that you are configuring 384MB of memory (not GB), select MB from the drop- down menu and type 384 in the space provided. 1b 3 Working with Virtual Machines 10. n 12. 13. Field/setting Action How many NICs do you want to connect Keep the default value of 1. NIC 1 Network Keep the default. NIC 1 Adapter Keep the default. Connect at Power On Leave selected and click Next. SCSI Controller Keep the default and click Next. Disk Keep the default and click Next. Disk Size Type 268. Disk Provisioning Click Thin Provision. Location Keep the default and click Next. Virtual Device Node Keep the default. Mode — Independent Leave unselected and click Next. Ready to Complete Click the Edit the virtual machine settings before completion check box and click Continue. The Virtual Machine Properties dialog box appears. In the Hardware list, click New CD/DVD (adding). Click Datastore ISO file. Click Browse and go to the ISO image that you recorded in “Preparing for the lab.” Click Open. Select the ISO image that corresponds to the guest operating system that you selected during virtual machine creation and click OK. In the Virtual Machine Properties dialog box, select the Connect at power on check box. Click Finish to save the changes. Verify that the new virtual machine appears in the inventory panel. In the inventory panel, select the virtual machine that you created and click the Summary tab. Record the following information. Lab 3 Working with Virtual Machines " Summary tab field Virtual machine 1 Provisioned Storage Not Shared Storage Used Storage Task 2: Install a guest operating system in a virtual machine In this task, you monitor an unattended installation of a Windows guest operating system in the virtual machine from the Console tab. Students should do the steps in this task individually. 1. From the Summary tab, click Power On in the Commands panel. 2. Click the Open Console link and monitor installation progress. The Windows guest operating system should perform an unattended installation. After your virtual machine powers on, it begins to install the guest operating system. The installation might take up to 25 minutes. 3. After the installation has completed, click Conneet/disconnect the CD/DVD devices of the virtual machine (the right-most “active” icon) in the icon bar of the virtual machine console window. 4, Select CD/DVD Drive 1 > Disconnect from datastore image. Click Yes to confirm that you want to disconnect the device. Task 3: Identify a virtual machine’s disk format and usage statistics In this task, you identify the virtual machine disk (VMDK) type. Students should do the steps in this, task individually. 4. Right-click the ##-1 virtual machine in the inventory and select Edit Settings. 2. Inthe Hardware panel, select Hard disk 1. 3. Under Disk Provisioning, identify the VMDK type. What type of VMDK has been provisioned? 4. Click Cancel to close the Virtual Machines Properties dialog box. 5. Click the ##i-1 virtual machine and click the Summary tab. 2 1b 3 Working with Virtual Machines 6. In the Resources panel, click the Refresh Storage Usage link to update the Provisioned Storage and Used Storage metrics. Record the new values in the following table. Summary tab field Virtual machine 1 Provisioned Storage Not Shared Storage Used Storage Pe Compare these values to the values listed in task 1, step 13. The values should be different. Although a 2GB virtual VMDK has been configured for this virtual machine, the storage space consumed by the VMDK is lower than the total allocated disk space. The used storage space increases dynamically as the virtual machine is used. Lab 3 Working with Virtual Machines 13 Task 4: Install VMware Tools on a virtual machine installed with a Windows operating system In this task, you install VMware Tools on the guest operating system, Students should do the steps in this task individually. 4. In the Summary tab, click Open Console from the Commands pane. 2. From the virtual machine console, log in to the guest operating system: a, In the menu bar of the virtual machine console, select VM > Guest > Send Ctrl+Alt+Del. b. In the Windows login screen, log in as user Administrator with the virtual machine Administrator password that you recorded in “Preparing for the lab.” 3. Install VMware Tools into the Windows guest operating system: a. In the menu bar of the virtual machine console, select VM > Guest > Install/Upgrade VMware Tools. If you are unable to move the pointer to the menu bar, press Ctrl+Alt to release the pointer from the virtual machine console. b. Read the warning message that appears and click OK. c. Click anywhere in the virtual machine console window to give mouse focus to your virtual machine. d. The VMware Tools installation wizard starts. On the welcome page, click Next. e. Onthe Setup Type page, leave Typical selected and lick Next. f, Click Install to start the installation. Over the span of several seconds, several windows are displayed. 4. Ifyou see a pop-up window informing you that hardware acceleration is not enabled, click Yes and do steps 4a-4c. If you do not see the pop-up window, hardware acceleration is already enabled. Go to step 5. a. In the Display Properties dialog box, click the Settings tab and click the Advanced button. You might have to move the VMware Tools Installation wizard to the side so that you can see the Display Properties dialog box. b. Click the Troubleshoot tab. Drag the Hardware Acceleration bar from None to Full. Click OK. ©, Click OK to exit the Display Properties dialog box. 5. Click Finish to exit the VMware Tools Installation wizard. 4 1b 3 Working with Virtual Machines 6. When prompted to restart the virtual machine, click Yes. 7. After the virtual machine finishes rebooting, log in as user Administrator, Leave the virtual machine console open. Task 5: Enable time synchronization between a virtual machine and an ESXi host In this task, you configure VMware Tools to synchronize the time between the virtual machine and the ESXi host, Students should do the steps in this task individually. 1. In the virtual machine console, notice the time, which is displayed in the notification area. 2. In the notification area, right-click the VMware Tools icon and select Open VMware Tools, 3, Select the Time synchronization between the virtual machine and the ESX Server check box and click OK. Select Home > Inventory > Inventory. Select your ESXi host from the inventory and click the Configuration tab. Click the Time Configuration link. Compare the time in the virtual machine and the ESXi host time. If they do not match, you might have to adjust your virtual machine’s time zone. Be aware that the virtual machine Timezone/Daylight Savings settings might be different than your current location. Task 6: Copy programs from CDROM to your virtual machine In this task, you connect to the ClacsFiles-vSphere iso image file and copy programs to your virtual machine’s desktop. This ISO image contains files needed for future labs. Students should do the steps in this task individually. 1. Connect ClassFiles-vSphere. ise to your virtual machine’s CD-ROM drive: a. In the icon bar of the virtual machine console window, click the Connect/disconnect the CD/DVD devices of the virtual machine icon (the right-most “active” icon). b. Select CD/DVD Drive 1 > Connect to ISO image on a datastore. c. Select Classfiles-vSphere. iso and click OK. 2. Open your virtual machine console. If autorun does not open the CD-ROM, use Windows Explorer and go to the CD-ROM drive (D:). Lab 3 Working with Virtual Machines 15 16 Copy the following files from the CD-ROM drive (D:) to the virtual machine’s desktop: * cpubusy.vbs + joneter.exe You use these files in a later lab. Extract the files from the executable ext part .exe (lo be used in a later lab): a. Onthe CD-ROM, double-click the file extpert .exe. b. In the WinZip Self-Extractor dialog box, click Unzip. Two files are unzipped to the path C:\dell\ sxtPart. Click OK. c. Click Close to close the WinZip Self-Extractor dialog box. Disconnect from the Classfiles-vSpheze.iso onthe CD-ROM drive: a. Right-click the virtual machine in the inventory and select Edit Settings. b. In the Hardware list, select CD/DVD Drive 1. c. Select Client Device and click OK. d. Close the virtual machine console. Log out of your vSphere Client session (File > Exit.) 1b 3 Working with Virtual Machines Lab 4 Configure VMware vCenter Server Appliance Objective: Prepare vCenter Server Appliance In this lab, you will perform the following tasks: 1. Configure the vCenter Server appliance with 2 Web browser. Configure vCenter Server appliance to use directory services. Register VMware vSphere Web Client with vCenter Server appliance, Connect to the vCenter Server appliance with the vSphere Client. Preparing for the lab Record the following information: ‘Team VMware vCenter Server™ appliance host name vCenter Server appliance user name Center Server appliance password Directory services domain name Domain administrator user name Domain administrator password Lab 4 Configure VMware vCenter Server Appliance 7 vCenter Server appliance Management URL Center Server appliance Registration URL Task 1: Configure the vCenter Server appliance with a Web browser In this task, you access the yCenter Server virtual appliance using a Web browser and prepare the appliance for use. Only one student on the team performs this task. 1. From your desktop system, open a Web browser. 2. Enter the vCenter Server appliance management URL that you recorded in “Preparing for the lab.” 3. Enter the user name and password to log in to the vCenter Server appliance. You recorded the user name and password in “Preparing for the lab.” 4, When you log in, you are placed on the vCenter Server appliance configuration tab. The EULA Status is Not Accepted. To accept the end-user license agreement (EULA), click Accept EULA under Actions on the right side of the browser. 5. Click Database. 6, The Database Type default selection is UNCONFIGURED. In the Database Type drop-down menu, select embedded. 7. Click Test Settings. A message indicating that the operation was successful appears after the test has completed. The Schema Version reads 0.0.0. Lies This operation might take 3 to 5 minutes to complete. 8. Click Save Settings. A message indicating that the operation was successful appears after the information has been saved. The Schema Version now reads VirtualCenter Database 5.0. This operation might take 3 to 5 minutes to complete. 9. Click the Status tab. The Service Status should read Stopped. 10. Click Start yCenter. When startup has completed, the Service Status should read Running, 18 Lab 4 Configure VMware vCenter Server Appliance Task 2: Configure vCenter Server appliance to use directory services In this task you configure the vCenter Server appliance to use Active Directory (AD). Orly one student on the team performs this task. 1. Click the Authentication tab in the browser. Click Active Directory. Click the box that reads Active Directory Enabled. Enter the domain name that you recorded in “Preparing for the lab.” Enter the Administrator user name and password that you recorded in “Preparing for the lab.” Click Save Settings. ‘A message indicating success should appear. If you see an error, verily that you typed the correet user name and password. 7. Click Status and verify that the AD Status is enabled and the AD domain matches what you recorded in “Preparing for the lab.” 8. Click the System tab. 9. Click Reboot and, when the System Reboot dialog box appears, click Reboot again. 40. Click Caneel to log out and close the Web browser. Task 3: Register VMware vSphere Web Client with vCenter Server appliance In this task, you register the Web client that you installed in Lab 1 with the vCenter Server appliance that you configured in task lof this lab. Students should do the steps in this task individually. 1. From your desktop, select Start > All Programs > VMware > VMware vSphere Web Client and select vSphere Administration Application. If you get security wamings, click the Continue to this website (not recommended) link. 2. An error appears at the top of the browser stating that Sphere Web Client is not registered with a vCenter Server appliance. To fix this, click Register vCenter Server appliance. 3. Enter the following information to register the vCenter Server appliance. Lab 4 Configure VMware vCenter Server Appliance 19 Field/setting Action vCenter Server URL Enter the vCenter Server registration URL that you recorded in “Preparing for the lab.” User name Type root. Password Enter the password that you recorded in “Preparing for the lab.” vSphere Web Client URL Enter the Registration URL that you recorded in “Preparing for the lab” and click Register. 4. When the Security Waming dialog box appears, click Install this certificate and do not, display any security warnings for this server. 5. Click Ignore. 6. After you have successfully registered vSphere Web Client with your vCenter Server appliance, dismiss the vSphere Web Client Administrator Tool window. 7. Verify that you can log in to the vCenter Server appliance using vSphere Web Client. On your desktop, sclect Start > All Programs > VMware > VMware ySphere Web Client and click vSphere Web Client. If you get security warnings, click the Continue to this website (not recommended) link. 8. On the login page, the Server field should populate with the URL and port of the vCenter Server appliance. Enter the vCenter Server appliance user name and password that you recorded in “Preparing for the lab.” When you can successfully log in, you are finished with this task. 9. Close the Web Client. 20 Lab 4 Configure VMware vCenter Server Appliance Task 4: Connect to the vCenter Server appliance with the vSphere Client In this task you use the VMware vSphere® Client™ to log in to the vCenter Server appliance. ‘Students should do the steps in this task individually. 1. Login to the vCenter Server appliance host with the vSphere Client. Double-click the vSphere Clicat icon on your student desktop system. 2. In the vSphere Client login dialog box, enter the IP address or host name of your vCenter Server appliance host. a. Enter the vCenter Server appliance user name and password that you recorded in “Preparing for the lab.” b. Click Login. c. Select Install this certificate and do not display any security warnings for “chost_name>” to prevent this warning from being displayed in the future. d. Click Ignore to proceed with the connection. e. Click OK when the VMware Evaluation Notice dialog box appears. Leave the vSphere Client open for the next exercise. Lab 4 Configure VMware vCenter Server Appliance 21 22 Lab 4 Configure VMware vCenter Server Appliance Lab 5 Using VMware vCenter Server Objective: Perform basic vCenter Server inventory operations In this lab, you will perform the following tasks: Ey 1 Install vSphere licease keys. Create a vCenter Server inventory datacenter object. Create vCenter Server inventory folder objects. Add your ESXi host to the vCenter Server inventory. Preparing for the lab Record the following information: ‘Team VMware vCenter Server™ appliance host name Center Server appliance user name yCenter Server appliance user password Your VMware® ESXi™ host name ESXi host root password Lab 5 Using VMware vCenter Server 23 Enterprise Plus license key Center Server license key Task 1: Install vSphere In this task, you install license keys to unlock advanced features of VMware vSphere® 5.0. Only ‘one student on the team performs this task. nse keys 1. Select Home > Administration > Licensing. The Licensing pane appears. mnt, © Padi © Yemen ly Ag Morag voher Fe area aaa TT Teer @ ve ovzzjz0. 2. In the Product list, expand Evaluation Mode and expand No License Key. Your ESXi hosts and vCenter Server system are in the list. 3. Click the Manage Sphere Licenses link in the upper-right comer. 4, When prompted by the Manage vSphere Licenses wizard, enter the following values. The Reporting tab allows you to monitor vRAM use. To use this feature, you must install and configure the VMware vSphere Web Client (Server). 24 Lab 5 Using VMware vCenter Server Field/setting Value Add License Keys In Enter new vSphere license keys (one per line), enter the vCenter Server license key and the vSphere Enterprise license key. You recorded these keys in “Preparing for the lab.” fa Include the hyphens: XXXXX-XXXXX-XXXXX-XXXXX- XXXXX. (The text box forces you to enter a hyphen every five characters.) In Enter optional label for new license keys, type VHware Training Licenses and click Add License Keys. Click Next. Assign Licenses Click the vCenter Server tab. In the vCenter Server tab, your vCenter Server system is an unlicensed asset. The Product column on the right shows that your vCenter Server system has no license key. Assign the license to your vCenter Server appliance by clicking the 25- character vCenter Server 5 Standard license key. Click Next. Remove License Keys Click Next. Confirm Changes Click Finish. 5. View the Product report in the Licensing pane. Lab 5 Using VMware vCenter Server Task 2: Create a vCenter Server inventory datacenter object In this task, you add a datacenter object to the vCenter Server inventory. Only one student on the team performs this task. 1. Click the New Datacenter icon above your vCenter Server system name. 2. When the datacenter object appears in the inventory, type Training for the datacenter name. Task 3: Create vCenter Server inventory folder objects In this task, you add folder objects to the vCenter Server inventory. Only one student on the team should do steps 1-3. Both students should do steps 4-10. 1. Select Home > Inventory > Hosts and Clusters. 2. Ensure that the Training datacenter is highlighted and click the New Folder icon above your vCeater Server system name. Only one student on the team should perform this step. Ce 3. Type Lab Servers for the folder name. 4. Select Home > Inventory > VMs and Templates. Expand the inventory. 6. Click the Training datacenter and click the New Folder icon. o 7. Type## as the name of the folder, where ## is the number of your ESXi host. 8. Create a subfolder in the ### folder. Right-click the folder ## and click New Folder. 26 Lab 5 Using VMware vCenter Server 9, Type LabVMs for the folder name. This folder is called “your Lab VMs folder.” 10. Repeat steps 8 and 9 to create a second subfolder. Type Templates for the name of this second subfolder. This folder is called “your Templates folder.” How does the list of inventory objects differ between the Hosts and Clusters view and the VMs and Templates view? Task 4: Add your ESXi host to the vCenter Server inventory In this task, you add your ESXi host to the Lab Servers folder in the vCenter Server inventory and view general information about your ESXi host. Students should do the steps in this task individually. Select Home > Inventory > Hosts and Clusters. Click your Lab Servers folder and click the Add Host icon above your vCenter Server system name. a 2. When prompted by the Add Host wizard, enter the following values. Field/setting Action Host Enter the fully qualified domain name (FQDN) or IP address of your ESXi host, which you recorded in “Preparing for the lab.” Username Type root. Password Enter the ESXi host root password that you recorded in “Preparing for the lab.” ‘When you click Next, a security alert appears stating that vCenter Server is unable to verify the authenticity of the specified host. Click Yes to proceed. Host Summary ‘Verify the information and click Next. Lab 5 Using VMware vCenter Server 27 28 Field/setting Action Assign License Select VMware vSphere 5 Enterprise Plus ard click ‘Next. Ignore any license warnings that might appear. Click Next. Lockdown Mode Do not enable lockdown mode. Click Next. Virtual Machine Location _Expand the Training datacenter and click your named folder. Click the LabVMs folder and click Next. Ready to Complete Review the configuration summary and click Finish. In the Recent Tasks pane at the bottom of the VMware vSphere® Client™, monitor the progress of the task. After the task is finished, expand the Lab Servers folder and verify that your ESXi host appears in the inventory. Expand the Lab Servers folder in the inventory and click your ESXi host. Click the Summary tab. View information about the ESXi host, such as its datastores, networks, number of network interface cards (NICs) and CPUs, and memory usage. Click the Hardware Status tab and view the status of your ESXi host’s hardware. Select Home > Inventory > VMs and Templates. Expand your named folder and click the LabVMs folder. You should see your virtual machine. Remain logged in and leave the vSphere Client open for the next lab. Lab 5 Using VMware vCenter Server Lab6 Standard Virtual Switches Objective: Create a standard virtual switch and port group In this lab, you will perform the following tasks: 1. View the current standard virtual switch configuration, 2. Create a standard virtual switch with a virtual machine port group. 3. Attach your virtual machine to a virtual switch post group. Preparing for the lab Record the following information: ‘VMware vCenter Server™ appliance user name ‘Center Server appliance password vymnies to use for the ProdVMs virtual switch Virtual machine Administrator password Lab 6 Standard Virtual Switches 29 Task 1: View the current standard virtual switch configuration In this task, you use the VMware vSphere® Client™ to view the current network configuration. ‘Students should do the steps in this task individually. 1. If the vSphere Client is not already active, use it to log in to your vCenter Server system with the domain administrator user name and password that you recorded in “Preparing for the lab.” 2. Select Home > Inventory > Hosts and Clusters. 3. In the vCenter Server inventory, select your VMware® ESXi"™ host and click the Configuration tab. 4. In the Hardware list, select Networking. You see that a standard virtual switch was created when this host was installed. The virtual switch is named vSwitch0. It contains a VMkerel port named Management Network and a virtual machine port group named VM Network. You see virtual machine connected to VM Network. Task 2: Create a standard virtual switch with a virtual machine port group Tn this task, you create a standard virtual switch for virtual machine networking and create a port group named ProdVMs. Students should do the steps in this task individually. Click the Add Networking link. 2. When prompted by the Add Networking wizard, enter the following values. Field/setting Value Connection Type Virtual Machine and click Next. Network Access Select Create a vSphere standard switch. Select the vmnie check boxes, which you recorded in “Preparing for the lab.” Click Next. Connection Settings In Network Label, type ProdvMs. Keep the default for the VLAN ID and click Next. Ready to Complete Click Finish. 3. Verify that the ProdVMs port group appears in the Networking pane. 30 Lab 6 Standard Virtual Switches Task 3: Attach your virtual machine to a virtual switch port group In this task, you verify that your virtual machine can access the Web using the ProdVMs port group. Students should do the steps in this task individually. 1. Right-click your named virtual machine in the inventory and select Edit Settings. Click Network Adapter 1. Click the Connected check box to detach the virtual machine from the network. Click the Network Connection drop-down menu and click ProdVMs. Click the Connected check box to reattach the virtual machine to the network. Click OK to dismiss the Edit Settings window. Verify that your virtual machine can access the Web: a. Renew the virtual machine IP address. To do this, perform one of the following actions: + Reboot the virtual machine. + Right-click the virtual machine in the yCenter Server inventory and select Open Console. Log in with Administrator and the password that you specified in “Preparing for lab” and open 2 Command Promp! window (Start > Run). Type emd. At the command prompt, type ipconfig /release and then type ipconfig /renew. b. In Intemet Explorer, go to http://www.vmware.com. c. Exit Internet Explorer. d. Close the virtual machine’s console. Leave the vSphere Client open for the next lab, Lab 6 Standard Virtual Switches 31 32 Lab 6 Standard Virtual Switches Lab7 Accessing IP Storage Objective: Configure access to an iSCSI and NFS datastore In this lab, you will perform the following tasks: 1. Adda VMkernel port group toa standard virtual switch. Configure the iSCSI software adapter. Configure access to NFS datastores. View iSCSI and NFS storage information. Preparing for the lab Record the following information: ‘VMware vCenter Server™ appliance user name Center Server appliance password ‘VMkernel port IP address/subnet mask VMkermel default gateway Name of iSCSI target ‘Your VMware® ESXi™ iSCSI qualified name Qn) Lab7 Accessing IP Storage 33 NFS server host name ‘Your NFS LUN Task 1: Add a VMkernel port group to a standard virtual switch In this task, you create a VMkernel port group named IP storage on vSwitch0. Students should do the steps in this task individually. 4. Select Home > Inventory > Hosts and Clusters. 2. Inthe VMware vCenter Server inventory, select your ESXi host and click the Configuration tab. 3. In the Hardware list, click Networking. You see that a standard virtual switch wes created when this host was installed. 4. Click the Properties link for vSwitch0. 5. The default view in the vSwitch0 Properties window, is the Ports tab. Click Add. 6. When the Add Network wizard appears, enter the following values. Field/setting Value Connection Type Select VMkernel and click Next. Port Group Properties Type IP Storage for the Network Label. Keep the default for the VLAN ID. Use this port group for Motion _Leave deselected. Use this port group for Fault Leave deselected. Tolerance logging Use this port group for Leave deselected. management traffic Click Next. 34 Lab7 Accessing IP Storage Field/setting Value Use the following IP settings Enter the VMkemel port IP address and subnet mask that you recorded in “Preparing for the lab.” Verify that the VMkernel default gateway IP address is correct. Click Next. Summary Click Finish. 7. Click Close in the vSwitch0 Properties window. Task 2: Configure the iSCSI software adapter In this task, you enable the iSCSI software initiator, configure dynamic discovery, and display the iSCSI software adapter properties. Students should do the steps in this task individually. 1. In the Hardware list, select Storage Adapters. Click the Add link. Click Add Software iSCSI Adapter. Click OK when the warning dialog box appears. Select iSCSI Software Adapter in the Device column. Click the Properties link in the Details pane. The iSCSI Initiator (iSCSI Software Adapter) Properties dialog box appears. 7. Verify that the General tab displays the iSCSI initiator name and a status of Enabled. Leave the Properties dialog box open. If the IQN does not match what you recorded in “Preparing for the lab,” click the Configure button. Then change the IQN to match the value in “Preparing for the lab.” 8. Click the Dynamic Discovery tab and click Add. 9. Enter the name of the iSCSI target that you recorded in “Preparing for the lab.” 10. Leave the port set to 3260 and click OK. ‘11. Monitor the Recent Tasks pane and wait for the task to complete. 12. Verify that the iSCSI target’s name and port number are listed in the Send ‘Targets panel and click Close. 43. When you are prompted to rescan the host bus adapter, click Yes. Wait for the rescan task to complete. Lab7 Accessing IP Storage 35 44. Select the iSCSI software adapter from the Storage Adapters list and view the Details pane. Record the values for the following fields to verify that a logical unit number was found. Field/setting Value Connected targets Devices Paths Task 3: Configure access to NFS datastores In this task, you mount an NFS datastore with read/write permissions. Students should do the steps in this task individually. 1. Click the Configuration tab of your ESXi host. 2. In the Hardware list, select Storage. 3. In the Datastores pane, select Add Storage. 4. When prompted by the Add Storage wizard, enter the following values. Field/setting Value Storage Type Select Network File System and click Next. Server Enter the NFS server host name or IP address that you recorded in “Preparing for the lab.” Folder Enter the path to the NFS datastore that you recorded in “Preparing for the lab.” Mount NFS read only Leave the default setting. Datastore name ‘Type NFS- and the name of your NFS LUN that you recorded in “Preparing for the lab.” For example, NFS- LUNI. Click Next. Ready to Complete Click Finish. 36 Lab7 Accessing IP Storage Task 4: View iSCSI and NFS storage information In this task, you view information about your iSCSI and NFS storage, and you view the contents of the NFS datastore. Students should do the steps in this task individually. 1. Click the Storage Views tab of your ESXi host. 2. In the list of reports, select Show all SCSI Paths. Verify that the iSCSI adapter that you added earlier appears in the list. You might have to click the Update link in the upper-right comer. Show all Virtual Machines Show all Datastores Show all SCSI Yolumes (LUNs) Show all SCSI Paths Show all SCSI Adapters 3. Select Show all SCSI Targets (Array Ports) from the list of reports. View information about your iSCSI storage. 4, Select Show all NAS Mounts from the list of reports. View information about your NFS storage. Leave the VMware vSphere® Client™open for the next lab. Lab7 Accessing IP Storage 37 38 Lab7 Accessing IP Storage Lab & (Optional) Designing a Network Configuration Objective: Design a network configuration for an ESXi host, based on a set of requirements In this lab, you will perform the following tasks: 1, Analyze the requirements. 2. Design virtual switches and physical connections. Preparing for the lab Based on a scenario, you design the network configuration fora VMware® ESXi™ host, specifying the following: + Virtual switches + Por ed pr sous | = + Port group policies + Physical connections A set of network requirements is provided. The requirements are not complete and they leave a good cal of detail to the imagination. Use your assumptions to complete those details (stating your assumptions when appropriate), This lab can be done separately by each member in the ESXi team. Lab 8 (Optional) Designing a Network Configuration 39 Task 1: Analyze the requirements In this task, you are the administrator in charge of configuring an ESXi host in your company's production environment. Details of the networking requirements include the following. Component Networking requirements ‘Web-based applications that are implemented by using four virtual machines arranged as follows: + VMI and VM2: Web servers, and network address translation ‘Virtual machines and (NAT) clients of VM3 Applicanbes + VM3: front end for the Web servers. Acts as a NAT router for the back-end virtual machines + VM4:a test box, used to test intrusion detection systems and virus-protection software, among other applications IP-based storage ANAS, used to hold running virtual machines for the test virtual machines only (storage for the production virtual machines is provided by a SAN) Physical NICs Four physical network adapters: one 100Mbps and three Gigabit Ethernet (GigE) cards External networks Two physical switches and four external LANs, each named to indicate its purpose. A single physical switch is configured to handle traffic for three networks, which are implemented as VLANs. One physical switch is dedicated to the management LAN, which, by company policy, must be physically separate from all other networks. The management LAN is used by VMware vCenter™ Server. 40 Lab8 (Optional) Designing a Network Configuration Task 2: Design virtual switches and physical connections In this task, you use the information in task 1 and the following diagram to draw a network configuration. Snow all virtual switches and their ports and port groups and to indicate the policies to be applied to each (NIC teaming, VLANs, security, traffic shaping). Also show the connections from the virtual machines to the virtual switches, as well as from the physical network interface cards (NICs) to the physical switches. There is no single correct answer. In fact, many reasonable solutions are possible. The point of this lab is not to come up with the one “right” answer. Rather, this lab encourages a discussion of the advantages and disadvantages of different solutions. vM1 vM2 VM3. VM4 x 8 | y a Physical Swnches oneness Tost VLAN 101 Production VLAN 102 LAN 109 ManagementLAN Lab 8 (Optional) Designing a Network Configuration a 42 Lab8 (Optional) Designing a Network Configuration Lab9 Managing VMware vSphere VMFS Objective: Create and manage VMFS datastores In this lab, you will perform the following tasks: 1. Review your shared storage configuration. Change the name of a VMFS datastore. Create a VMFS datastore. Expand a VMFS datastore to consume unused space on a LUN. Remove a VMFS datastore. Extend a VMFS datastore. Preparing for the lab Record the following information: ‘VMware vCenter Server™ appliance user name Center Server appliance password Shared storage type used in this lab environment ‘Your local datastore Assigned logical unit number (LUN) IDs Lab9 Managing VMware vSphere VMFS 43 Task 1: Review your shared storage configuration In this task, you leam how to display information about the shared storage in your lab environment. 1. Ifthe VMware vSphere® Client™ is not already active, use it to log in to your vCenter Server system. To log in, use the user name root and the password that you recorded in “Preparing for the lab.” 2. Select your VMware® ESXi™ host in the inventory and click the Storage Views tab. 3. In the View list, select Show all SCSI Paths from the Reports drop-down menu. In the column named SCSI adapter type, verify that 2 SCSI adapter exists for the shared storage type that you recorded in “Preparing for the lab.” 4, In the View list, select Show all SCSI Volumes (LUNs). This view displays all SCSI LUNs available to your host. Task 2: Change the name of a VMFS datastore In this task, you change the name of a VMware Sphere VMFS datastore. Students should do the steps in this task individually. 1. In the View list of the Storage Views tab, select Show all Datastores. View the information for each datastore, such as the capacity and free space. 2. Click , which you recorded in “Preparing for the lab” to go to the Datastores inventory view. The Show all Virtual Machines report is displayed. This report lists all virtual machines that reside on this datastore 3. In the inventory, right-click , which you recorded in “Preparing for the lab” and select Rename. 4. Type Local-ESxi##, where ## is the number of your ESXi host. For example, for an ESXi host that ends in 02, the new name of the datastore is Local-FSXi02. 5. Verify that the new datastore name appears in the inventory. Task 3: Create a VMFS datastore In this task, you create a VMPS datastore on each LUN that is assigned to you. Students should do the steps in this task individually. 1. Select Home > Inventory > Datastores and Datastore Clusters, right-click the Training datacenter, and select Add Datastore. 2. When prompted by the Add Storage wizard, enter the following values. 44 Lab9 Managing VMware vSphere VMFS. Field/setting Action Select host Expand the inventory hierarchy and click your ESXi host. Click Next. Storage Type Select Disk/LUN and click Next. Select Disk/LUN Expand the Path ID column so that it reveals the LUN numbers and click your first assigned target and LUN number. ‘You recorded this in the LUN ID in “Preparing for the lab.” Click Next. File System Version Keep the default of VMFS-5 and click Next. Current Disk Layout Review the current disk layout and click Next. Enter a datastore name ‘Type VMES-##, where #fis the target number of your first assigned LUN ID that you recorded in “Preparing for the lab.” For example, if the target number of your assigned LUN ID is 1, the datastore name would be VMFS-01. Click Next. Formatting Keep the default and click Next. Ready to Complete Click Finish. 3, Return to the Datastores inventory view to create a second datastore. Right-click the Training datacenter and select Add Datastore. 4. When prompted by the Add Storage wizard, enter the following values. Lab9 Managing VMware vSphere VMFS 45 Field/setting Action Select host Storage Type Select Disk/LUN File System Version Current Disk Layout Enter a datastore name Formatting Ready to Complete Expand the inventory hierarchy and click your ESXi host. Click Next. Select Disk/LUN and click Next. Expand the Path ID column, so that it shows the target and LUN number, and click your second assigned LUN ID. You recorded this LUN ID in “Preparing for the lab.” Click Next. Keep the default of VMFS-5 and click Next. Review the current disk layout and click Next. ‘Type VMES-##, where #ifis the target number of your second assigned LUN ID, which you recorded in “Preparing for the lab.” For example, if the target number of your assigned LUN ID is 2, the datastore name would be VMFS-02. Click Next. Click Custom Space Setting and reduce the LUN size by ahalf. For example, if the current disk size is 1OGB, change the size to SGB. (You increase this VMFS datastore to its maximum size in the next task.) Click Next. Click Finish. 5. Monitor the progress in the Recent Tasks pane and wait for the task to complete. 46 Lab 9 Managing VMware vSphere VMFS. 6. Verify that each new VMFS detastore appears in the datastore inventory. You might have to click Update to see the latest information. 7. In the datastore inventory, click the VMFS-## datastore that you created. 8. Click the Summary tab and record the value for Capacity: Task 4: Expand a VMFS datastore to consume unused space on a LUN In this task, you increase the size of a VMES datastore to consume the remaining space on the LUN. ‘Students should do the steps in this task individually. 1. Click the Configuration tab of the SGB VMFS-## datastore that you created in the previous task. 2. Click the Properties link in the Datastore Details pane. 3. In the Properties dialog box, click Increase. 4. When prompted by the Increase Datasiore Capacity wizard, enter the following values. Field/setting Action Extent Device Select your second assigned LUN ID that you recorded in “Preparing for the lab.” This LUN should read Yes in the Expandable column. Click Next. Current Disk Layout Review the current disk layout. Notice the free space available ‘on the LUN (under Primary Partitions) and click Next. Extent Size Leave the Maximize available space check box selected and click Next. Ready to Complete Review the information for accuracy and click Finish. 5. After the task is completed, review the datastore Properties dialog box and verify that the datastore size was increased to the maximum capacity (less space for system overhead). 6. Click Close to dismiss the datastore Properties dialog box. Lab9 Managing VMware vSphere VMFS 47 Task 5: Remove a VMFS datastore In this task, you remove a VMFS datastore. Students should do the steps in this task individually. 1 Right-click your VMFS-## datastore. Where ## is the second LUN ID that is assigned to you. Click Delete. Click Yes to confirm datastore deletion. Verify that the datastore was removed from the inventory. Task 6: Extend a VMFS datastore In this task, you increase the size of a VMFS datastore by adding an extent. Students should do the steps in this task individually. 1. In the Datastore inventory, click the VMFS-## datastore, where ## is the number of your first, assigned LUN ID. Click the Configuration tab. In the Datastore Details pane, click the Properties link. The Properties dialog box appears. Record the size of the total capacity of the VMES datastore here: Click Increase, When prompted by the Increase Datastore Capacity wizard, enter the following values. Field/setting Action Extent Device Expand the Path ID column so that it reveals the LUN number and click your second assigned LUN ID. You recorded this LUN ID in “Preparing for the lab.” Current Disk Layout Review the current disk layout. Capacity Leave the Maximize capacity check box selected. Ready to Complete Click Finish, When the task completes, verify that two extents are displayed in the Extents pane. The Extents pane should show both of your assigned LUN IDs. Lab 9 Managing VMware vSphere VMFS. It might be necessary to click Refresh in the Properties dialog box. 7. Close the Properties dialog box. In the Datastore Details pane, record the new value for Total Formatted Capacity: . The value should differ from the value recorded in step 3. Leave the vSphere Client open for the next lab Lab9 Managing VMware vSphere VMFS 50 Lab 9 Managing VMware vSphere VMFS. Lab 10 Using Templates and Clones Objective: Deploy a virtual machine from a template and clone a virtual machine In this lab, you will perform the following tasks: 1. Create a template. Copy Sysprep files to the vCenter Server appliance. Create Customization Specifications. Deploy a virtual machine from a template. 5. Clone a virtual machine that is powered on. Preparing for the lab Record the following information: ‘VMware vCenter Server™ appliance host name vCenter Server appliance user name yCenter Server appliance root password Guest operating system version. Location of Windows Sysprep files Sysprep files target folder Lab 10 Using Templates and Clones 51 Your VMFS volume Windows product ID Virtual machine Administrator password Time Zone Task 1: Create a template In this task, you create a templete by cloning a virtual machine to a template. Students should do the steps in this task individually. 1. Using the VMware vSphere® Client™, log in to your vCenter Server appliance with the user ‘name and password that you recorded in “Preparing for the lab.” 2. In the vSphere Client, select Home > Inventory > VMs and Templates, 3. Expand your LabVMs folder. In this folder, you have a virtual machine named ‘##-1. 4. Right-click the virtual machine and select Power > Shut Down Guest. 5. After the virtual machine has shut down, right-click the virtual machine and sclect Template > Convert to Template. 6. Drag ##-1 virtual machine template from your LabVMs folder and drop it in your Templates folder. 7. Right-click the virtual machine template and click Rename. Type Template to change the template name. 52 Lab 10 Using Templates and Clones Task 2: Copy Sysprep files to the vCenter Server appliance In this task, you configure guest operating system customization on your vCenter Server system. Only one student in the team performs this task. 1. From your desktop double-click the WinSCP icon. Ifa security warning dialog box appears, click Run to continue. Click New. 2. Type the host name of the vCenter Server appliance that you recorded in “Preparing for the lab” and click Login. Ifa warning dialog box appears, click Yes to continue. 3. Type root for the user name and enter the password that you recorded in “Preparing for the lab.” Press Enter. 4, When you have successfully logged in to the vCenter Server with the WinSCP program, in the left pane go to the location of the sysprep files that you recorded in “Preparing for the lab.” The folder should represent the version of the Windows guest operating system that you are running in your virtual machines. 5. Inthe right pane, go to the sysprep files target folder that you recorded in “Preparing for the lab.” 6. To copy the sysprep files into the target folder, select all files in the left pane and drag and drop them onto the right pane. Click Copy when the dialog box appears. 7. When the copy operation is completed, click F10 Quit at the bottom of the window. 8, Click OK to end the session. Lab 10 Using Templates and Clones 53 Task 3: Create Customization Specifications In this task, you create a customization specification for template deployment. Students should do the steps in this task individually. 1. In the vSphere Client, click Home 2. In the Management bar, click Customization Specifications Manager. 3. Click New. Field/setting Action Target Virtual Machine OS Name Registration Information Computer Name Product Key Administrator Password Time Zone Run Once Network Workgroup or Domain Operation System Options Ready to Complete Select Windows. Type -CustomSpec. Click Next. Type VMware Student for the Name and VMware for the Organization. Click Next. Click Use virtual machine name and click Next, Enter the product key that you recorded in “Preparing for the lab” and leave all other fields at their default value. Click Next. Re-enter the Administrator password that you recorded in “Preparing for the lab.” Re-enter the Administrator password in the Confirm password field and click Next. Select the time zone that you recorded in “Preparing for the lab” and click Next. Leave the default and click Next. Leave the default and click Next. Leave the default and click Next. Leave the default and click Next. Click Finish. 54 Lab 10 Using Templates and Clones 4. In the vSphere Clieat, click Home. 5. Point to Inventory and select VMs and Templates. Task 4: Deploy a virtual machine from a template In this task, you deploy a virtual machine from your template and allow Center Server to customize the guest operating system. Students should do the steps in this task individually. 1. Right-click your named template and select Deploy Virtual Machine from this Template. 2. When prompted by the Deploy Template wizard, enter the following values. Field/setting Value Name ‘Name the new virtual machine with your first. name, followed by the number of your VMware® ESXi™ host and 2 sequence number. For example, Greg has an ESXi host named ESXi01. The name of his second virtual machine is Greg01-2. Inventory Location Select your LabVMs folder and click Next. ‘Host/Cluster Expand the Lab Servers folder and click your ESXi host. Click Next. Select a virtual disk format Keep the default. Select a destination storage for the virtual machine files Select your VMFS volume, which you recorded in “Preparing for the lab” and click Next. Guest Customization Option Click Power on this virtual machine after creation. Click Customize using an existing customization specification. Click CustomSpec and click Next. Ready to Complete Click Finish. 3. Repeat steps 1 and 2 and create another virtual machine. Name this virtual machine ##-3, Lab 10 Using Templates and Clones 4. Inthe Recent Tasks pane at the bottom of the vSphere Client, monitor the progress of the template deployment task. 5. After you have created these virtual machines, open a virtual machine console to each of your new virtual machines. 6. Vorify that each virtual machine was created properly. Check the following: + The virtual machine booted up successfully. Wait at least two minutes for Sysprep to complete its tasks, which includes a reboot of the system. + You can log in to the guest operating system as Administrator with the virtual machine Administrator password that you recorded in “Preparing for the lab.” + VMware Tools is installed with time synchronization configured. ‘+ The cpubusy.vbs file is on the desktop. 7. Close the virtual machine console. Do not shut down the virtual machine. Task 5: Clone a virtual mac! e that is powered on In this task, you clone a running virtual machine. Students should do the steps in this task individually. In the LabVMs folder, right-click the ##-2 virtual machine and select Clone. 2. When prompted by the Clone Virtual Machine wizard, enter the following values. Field/setting Action Name Inventory Location Host/Cluster Select a virtual disk format Select a destination storage for the template files 56 ‘Name the new virtual machine with Hot-Clone followed by the number of your ESXi host. For example, Greg has an ESXi host named ESXi01 The name of his second virtual machine is Hot- Clone01. Select your LabVMs folder and click Next. Expand the Lab Servers folder and click your ESXi host. Click Next. Keep the default. Select your VMFS volume, which you recorded in “Preparing for the lab,” and click Next. Lab 10 Using Templates and Clones Field/setting Action Guest Customization Option Click Power on this virtual machine after creation. Click Customize using an existing customization specification. Click CustomSpee and click Next. Ready to Complete Click Finish. 3. Monitor the task in the Recent Tasks pane. Allow the task to run. Check the result during the next lab. Leave the vSphere Client open for the next exercise. Lab 10 Using Templates and Clones 87 58 Lab 10 Using Templates and Clones Lab 11 Modifying a Virtual Machine Objective: Modify a virtual machine’s hardware and add a raw LUN to a virtual machine In this lab, you will perform the following tasks: 1, Increase the size ofa VMDK file. Adjust memory allocation on a virtual machine. Rename a virtual machine in the vCenter Server inventory. Add a raw LUN to a virtual machine and verify that the guest operating system can see it. 5. Expand a thin-provisioned virtual disk. Preparing for the lab Record the following information: Virwal machine Administrator password Raw logical unit number (LUN) ID Lab 11 Modifying a Virtual Machine 59 Task 1: Increase the size of a VMDK file In this task, you increase the size of a virtual machine’s C: drive and configure the guest operating system to see the additional space. Students should do the steps in this task individually. 1. Select Home > Inventory > VMs and Templates. 2. Verify that your Hot-Clonel# virtual machine is powered on. If itis not, power it on now. 3. Right-click your Hot-Clonet# virtual machine in the inventory and select Edit Settings. The Virtual Machine Properties dialog box appears. 4. In the Hardware list, select Hard Disk 1 5. In Provisioned Size, type 3GB and click OK. 6. Increase the size of the disk from within the guest operating system: a. In the inventory, right-click the Hot-Clone virtual machine and select Open Console. b. Log into the guest operating system as user Administrator, with the virtual machine Administrator password that you recorded in “Preparing for the lab.” c. Onthe virtual machine desktop, double-click My Computer. Record the value for the total size of the C: drive. d. Use Windows Explorer to open the folder C:\de1i\2xtPart folder. e. Double-click the extpart .exe file. In Volume to extend, type C:. In Size to expand the volume, type 1024 (to extend the volume by 1,024MB). On the virtual machine desktop, double-click My Computer to verify that the C: drive was extended. Record the value for total size of the C: drive. Does the value differ from the size recorded in step 6c? i. Close the virtual machine’s console. 60 Lab 11 Modifying a Virtual Machine Task 2: Adjust memory allocation on a virtual machine In this task, you increase the virtual machine’s memory. Students should do the steps in this task individually. 1. Right-click your Hot-Clone## virtual machine in the inventory and select Power > Shut Down Guest. Click Yes to confirm the shutdown. After the virtual machine has shut down, right-click it and select Edit Settings. Verify that Memory is selected in the Hardware list. Select MB from the drop-down menu in the upper right of the Virtual Machines Properties dialog tox. 6. Immediately to the left of the drop-down menu, type 512. 7. Click OK. 8. Click the virtual machine’s Summary tab to verify that the memory has increased. Task 3: Rename a virtual machine in the vCenter Server inventory In this task, you change the name of a virtual machine in the inventory. Students should do the steps in this task individually. 1. In the inventory, right-click your Hot-Clone## virtual machine and select Rename. 2, Rename the virtual machine to ##-4, where ## is the number of your VMware® ESXi™ host. For example, if Greg has an host named ESXi01. The name of his virtual machine is Greg0l-4 Renaming a virtual machine in the inventory does not change the name of the virtual machine files on the datastore. For example, if the virtual machine Hot-Clone is renamed to Greg01-4 in the VMware vCenter Server™ inventory, the files on the datastore are still named Hot-Clonett#f. To rename a virtual machine and all files belonging to it, rename the virtual machine in the inventory and use vSphere Storage vMotion to move the virtual machine to a different datastore. For this task, you only rename the virtual machine. Lab 11 Modifying a Virtual Machine 61 Task 4: Add a raw LUN to a virtual machine and verify that the guest operating system can see it In this task, you add a raw LUN toa virtual machine that is powered on and verify that the guest operating system can see the new virtual disk, Students should do the steps in this task individually. 1. Adda raw LUN to the ##-2 virtual machine: a. In the inventory, right-click the ##-2 virtual machine and seleet Edit Settings. The Virtual Machine Properties dialog box appears. b. In the Virtual Machine Properties dialog box, click Add. c. When prompted by the Add Hardware wizard, enter the following values. Field/setting Action Device Type Select Hard Disk and click Next. Select a Disk Select Raw Device Mappings and click Next. Select Target LUN Select your assigned LUN, which you recorded in “Preparing for the lab.” Select Datastore Keep the default. Compatibility Mode Select Virtual. Advanced Options Leave the default. Ready to Complete Click Finish. d. When a new entry for the hard disk appears in the Hardware list with the word “(adding)” next to it, click OK to add the raw LUN. 2. In the inventory, right-click the ##-2 virtual machine that you created and select Rename. Change the name to ##-2-RDM. 3. View the ###-2-RDM virtual machine files: a. In the inventory, select the ##-2-RDM virtual machine and click the Storage Views tab. b. Click the Update link. c. In the drop-down menu, select Show all Virtual Machine Files. d. Verify that a new virtual machine file named ##-2_1-ram. vmdk exists. 2 Lab 11 Modifying a Virtual Machine Task 5: Expand a thin-provisioned Verify that the guest operating system can see the new disk: a. Open a console to the virtual machine and log in as user Administrator, with the password that you recorded in “Preparing for the lab.” b. Select Start > Programs > Administrative Tools > Computer Management. c. Click Disk Management. d. Verify that Disk 1 is listed, Disk 1 is the raw device mapping. You can now use the guest operating system utilities to format the drive. In this lab, you do not have to format the drive, If a disk wizard automatically appears, click Cancel. e. Close the Computer Management window and close the virtual machine console. ual disk In this task, you expand a thin-provisioned virtual disk to consume all the disk space that was allocated to it when it was created. Students should do the steps in this task individually. Lab 11 Modifying a Virtual Machine . View storage information for the virtual machine named ##-3: a. In the inventory, select the virtual machine named f-3. b. Click the Summary tab and record the storage information found in the Resources panel. Provisioned Storage Not-shared Storage Used Storage Datastore Right-click #-3 and select Power > Shut Down Guest. Inflate the thin-provisioned virtual disk: a. Select Home > Inventory > Datastores and Datastore Clusters. b. Right-click the datastore that you recorded in step 1 and select Browse Datastore. c. Open the folder for the virtual machine named ##.3. d. Right-click the##~3.vmak file and select Inflate. Wait for the operation to finish. 64 e. Observe the columns labelled Size and Provisioned Size. Each shows a different number. ‘When the inflate operation finishes, the Provisioned Size column disappears and the Size column shows a new value equal to the size of the virtual disk f. Close the Datastore Browser. Select Home > Inventory > VMs and Templates. In the vCenter Server inventory, select the virtual machine named i##-3. Click the Summary tab. Record the storage information found in the Resources panel and verify that the disk is now fully allocated. Provisioned Storage Not-shared Storage Used Storage Leave the VMware vSphere® Client™ open for the next lab. Lab 11 Modifying a Virtual Machine Lab 12 Migrating Virtual Machines Objective: Use vMotion to migrate virtual machines In this lab, you will perform the following tasks: 1 Create a virtual switch and VMkemel port group for vMotion migration. Verify that your ESXi host meets vMotion requirements. Verify that your virtual machines meet vMotion requirements. Perform a vMotion migration of a virtual machine. Migrate virtual machine files with Storage vMotion. Preparing for the lab Record the following information: VMware® ESXi™ host to migrate virtual machines to ‘Team VMware yCenter Server™ system name vinnie for the VMware vSphere vMotion® network Motion IP address Motion subnet mask Shared virtual machine datastores Lab 12 Migrating Virtual Machines 65 Task 1: Create a migration ual switch and VMkernel port group for vMotion In this task, you create a virtual switch with a VMkernel port and use it to migrate virtual machines using vMotion. 1. Select Home > Inventory > Hosts and Clusters. 2. Select your ESXi host in the inventory and click the Configuration tab. 3. Click the Networking link in the Hardware panel. 4. Click Add Networking. 5. When prompted by the Add Network wizard, enter the following values. Fiold/sotting Action Connection Type Click VMkernel. Network Access Select the vmnic for the vMotion network that you recorded in “Preparing for the lab.” Network Label Type vMotion. Select the Use this port group for vMotion check box. IP Address Enter the vMotion IP address that you recorded in “Preparing for the lab.” Subnet Mask Enter the vMotion subnet mask thet you recorded in, “Preparing for the lab.” Summary Confirm the settings and click Finish. 6. Verify the configuration information for the new virtual switch in the Networking panel. Task 2: Verify that your ESXi host meets vMotion requirements In this task, you verify that your ESXi host meets yMotion requirements. Students should do the steps in this task individually. 1, Select Home > Inventory > Hosts and Clusters. 2. Select each ESXi host and click its Summary tab. 66 Lab 42 Migrating Virtual Machines 3. View the Processor Type information to verify that the CPUs are compatible. 4. Click your ESXi host’s Configuration tab. 5. Verify that a VMotion port group exists and that itis configured with a speed and duplex of 1000Mb, Full Duplex: a. Click the Networking link. b. Click the vSphere Standard Switch button. A vMotion port group should exist and it should be ¢ VMkemel port. c. Verify that the speed and duplex is set to 1000 full. 6. Verify that both ESXi hosts have access to the same shared datastores: a. Select the Training datacenter folder and click the Maps tab. b. In the Map Relationships panel, select Custom Map from the drop-down mena. c. Under Host Options, select the Host to Datastore check box. Deselect the Host to VM check box. d. Under VM Options, deselect every check box. e. Click Apply Relationships. Both ESXi hosts should have access to the same shared datastores for virtual machines, which you recorded in “Preparing for the lab.” 7. Verify that both ESXi hosts have access to the same networks: a. Under Host Options, deselect the Host to Datastore check box and select the Host to. Network check box. b. Under VM Options, deselect every check box. c. Click Apply Relationships. Both ESXi hosts should have access to the same networks Task 3: Verify that your virtual machines meet vMotion requirements In this task, you verify that a virtual machine’s settings meet VMotion requirements. Perform this task for all of your named virtual machines. Students should do the steps in this task individually. 1. Select Home > Inventory > VMs and Templates. 2. In your LabVMs folder, right- Edit Settings. click the ##-2-RDM virtual machine and select Lab 12 Migrating Virtual Machines 67 3. Verify that the virtual machine's floppy drive is not connected to a local device and does not have an image in a local datastore defined a. In the Hardware list, verify that the Summary column for Floppy Drive | shows Client Device. b. Ifthe Summary column does not show Client Device, select Floppy Drive 1 in the list end click Client Device. 4, Verify that the virtual machine's CD/DVD Drive 1 is not connected to a local device and does not have an image in a local datastore defined: a. In the Hardware list, verify that the Summary column for CD/DVD Drive 1 shows Client Device. b. Ifthe Summary column does not show Client Device, select CD/DVD Drive 1 in the list and click Client Device to remove existing connections. 5. In the Hardware list, find Network Adapter 1. Verify that the virtual machine is either disconnected from the network or connected to a network accessible by the destination ESXi host (your partner's ESXi host). 6. Check the Hardware list for hard disks that are of type Mapped Raw LUN (and are not, accessible by the destination host): a. Ifyou have such a disk, select the mapped raw LUN and click Remove. b. In the Removal Options panel, leave the default Remove from virtual machine. Removing the mapped device is required for future lab tasks. 7. Rename i##-2-RDM to ##-2. 8. Verify that CPU affinity is not set: a. Click the Resourees tab and select Advanced CPU. b. Ifthe Scheduling Affinity field displays a number, delete the number. 9. Click OK to apply all virtual machine changes. 6B Lab 42 Migrating Virtual Machines Task 4: Perform a vMotion migration of a virtual mac! In this task, you migrate a virtual machine while it is powered on. Students should do the steps in this task individually. 1. Select Home > Inventory > Hosts and Clusters. 2. Expand the vCenter Server inventory view so that you can see all of your virtual machines. 3. Migrate each of your virtual machines to your partner's ESXi host: a. In the inventory, separately right-click each of the virtual machines named ##-3 and select Migrate. If t##-3 is powered off, power it on now. b. When prompted by the Migrate Virtual Machine wizard, enter the following values. Field/setting Select Migration Type Select Destination Action Select Change host. Expand the inventory view and select your partner’s ESXi host. The migration requirements are validated. If the validation does not succeed, you receive waming or error messages and will be unable to continue with the migration until the errors are resolved. i One reason that the validation might not succeed is if the virtual machine’s disk is not on a shared datastore. If this is the case, use vSphere Storage VMotion to migrate the disk to a shared datastore and thea retry the vMotion migration. Motion Priority Ready to Complete Select High priority (Recommended). Click Finish. 4, Inthe Recent Tasks pane, monitor the progress of the virtual machine migration. 5. Verify that your virtual machines appear under your partner's ESXi host in the inventory. Lab 12 Migrating Virtual Machines 69 Task 5: Migrate virtual machine files with Storage vMotion In this task, you relocate virtual machine files from one datastore to another datastore with VMware Storage VMotion. Students should do the steps in this task individually. 1. Select Home > Inventory > VMs and Templates and select your LabVMs folder, verify that the ##-3 virtual machine is powered on. If the virtual machine is not on, power it on. 2. Select ##-3 and click the Summary tab. 3. Under Datastore in the Resource panel, record the datastore that the virtual machine resides on here: 4. Right-click the virtual machine in the inventory and select Migrate. 5. When prompted by the Migrate Virtual Machine wizard, enter the following values. Field/setting Value Select Migration Type Select Change Datastore. Select a virtual disk format Keep the default. Select a destination storage for the Select another VMFS datastore accessible by virtual machine files your ESXi host. For example, if your virtual machine disk is on VMFS-01, migrate the virtual machine disk to VMFS-02. Ready to Complete Click Finish. 6. Monitor the progress of the task in the Recent Tasks pane. 7. After the task is finished, click the Summary tab of ##3 to verify that your virtual machine is on the new datastore. Leave the VMware vSphere® Client™ open for the next lab. 70 Lab 42 Migrating Virtual Machines Lab 13 Managing Virtual Machines Objective: Perform several virtual machine management tasks In this lab, you will perform the following tasks: 1. Unregister a virtual machine in the vCenter Server inventory. Register a virtual machine in the vCenter Server inventory. Unregister and delete virtual machines from disk, Take snapshots of a virtual machine. Revert to a snapshot. 6. Delete an individual snapshot. 7. Use the Delete All function in Snapshot Manager. Preparing for the lab Record the following information: Third-party software ISO location Virtual machine Administrator password Lab 13 Managing Virtual Machines n Task 1: Unregister a virtual mac! wentory In this task, you unregister a virtual machine from the VMware vCenter Server™ inventory. You also verify that the virtual machine files still exists on the VMware vSphere® VMFS datastore. Students should do the steps in this task individually. je in the vCenter Server 1. Select Home > Inventory > VMs and Templates. 2. Click i##-4 (where ## is the number of your VMware® ESXi™ host) and click the Summary tab. 3. From the Datastore column in the Resources panel, record the VMFS datastore name where the virtual machine resides: 4. Right-click i#f-4 and select Power > Shut Down Guest. 5. After the virtual machine has shut down, right-click ##-4 and select Remove from Inventory. CTiren Do not select Delete from Disk. That operation is not recoverable. 6. Click Yes to confirm the removal and verify that f##-4 no longer appears in the inventory. 7. Select Home > Inventory > Datastores and Datastore Clusters. 8. Right-click the VMFS datastore on which ##-4 is located (the name that you recorded in step 4) and select Browse Datastore. 9. In the Datastore Browser, on the Folders tab, does a folder named i##-4 exist?, 40. Click the Hot-Cloneii## folder to view the virtual machine files. The files in this folder were used by the virtual machine named ##~5, where ## is the number of your ESXi host. In the Inventory Location pane, select your LabVMs folder. Host/Cluster Select your VMware ESXi host. Ready to Complete Click Finish. 3. Verify that the virtual machine was placed back in the inventory: a. Close the Datastore Browser. b. Sclect Home > Inventory > VMs and Templates. c, Verify that ##-5 appears in your LabVMs folder. Task 3: Unregister and delete virtual machines from disk In this task, you delete the ##-5 virtual machine located in your LabVMs folder. You also verify that it was permanently deleted from the VMES datastore. Students should do the steps in this task individually. 4. Select the ##-5 virtual machine right-click and select Power > Power Off. 2. Click the Summary tab. Record the VMFS datastore name on which this virtual machine resides: 3. Right-click i#f-5 and select Delete from Disk. 4. Click Yes to confirm the deletion and verify that ##-5 no longer appears in the inventory. Lab 13 Managing Virtual Machines 3 5. Select Home > Inventory > Datastores and Datastore Clusters. 6. Right-click the VMFS datastore on which *##-5 was located and select Browse Datastore. 7. Verify that the virtual machine files no longer exist. The folder would have been named with the original virtual machine name: Hot-Clonei##. 8. Close the Datastore Browser. Task 4: Take snapshots of a virtual machine In this task, you create a snapshot tree of a virtual machine, Students should do the steps in this task individually. 1. Goto Home > Inventory > VMs and Templates, 2. Open your LabVMs folder, right-click the virtual machine #-3 and select Open Console. 3. Login as user Administrator with the virtual machine Administrator password that you recorded in “Preparing for the lab.” 4. Drag the icmeter.exe file to the Recycle Bin. To remove the iometer.exe file, empty the Recycle Bin (right-click the Recycle Bin icon and select Empty Recycle Bin). 5. Click Yes to confirm the file deletion and leave the virtual machine console open. 6. Inyour LabVMs folder, right-click the virtual machine ##-3 and select Snapshot > Take Snapshot. 7. When prompted by the Take Virtual Machine Snapshot wizard, enter the following values. Field/setting Value Name Type -without iometer. Description Type Deleted iometer.exe. Snapshot the virtual machine’s memory _llick to deselect. Quiesce guest file system (Needs VMware Leave unselected. Tools installed) 8. Click OK and monitor the task in the Recent Tasks pane. 4 Lab 13 Managing Virtual Machines 9, Drag the cpubusy.vbs file to the Recycle Bin. To remove the cpubasy.vbs file, empty the Recycle Bin (right-click the Recycle Bin icon and select Empty Recycle Bin). 10. Click Yes to confirm the file deletion end leave the virtual machine console open. 11. Return to the virtual machine console window and take another snapshot of this virtual machine by clicking the snapshot icon. @ 42. When prompted by the Take Virtual Machine Snapshot wizard, enter the following values. Field/sotting Value Name ‘Type-without iometer and cpubusy. Description ‘Type Deleted cpubusy.vbs. Snapshot the virtual machine’s Click to deselect. memory Quiesce guest file system (Needs Leave unselected. VMware Tools installed) 13. Click OK and monitor the task in the Recent Tasks pane. 44, [itis not already connected, connect ClassFiles-vSphere. iso to your virtual machine's CD-ROM drive: a. In the icon bar of the virtual machine console window, click the Connect/disconnest the CD/DVD devices of the virtual machine icon (the right-most active icon). b. Select CD/DVD Drive 1 > Connect to ISO image on a datastore. c. Select Classfiles-vSphere. iso and click OK. 15. View your virtual machine console. If autorun does not open the CD-ROM, use Windows Explorer and go to the CD-ROM drive (D:). 46. Copy the cpubusy.vbs file from the CD-ROM drive (D:) to the virtual machine’s desktop. Lab 13 Managing Virtual Machines 75 a7! 18. 19. 20. 24. 6 Disconnect from the Classfiles-vSphere. iso on the CD-ROM drive: a. Right-click the virtual machine in the inventory and select Edit Settings. b. In the Hardware list, select CD/DVD Drive 1. ¢, Select Client Device and click OK. Return to the virtual machine console window and take another snapshot of this virtual machine by clicking the snapshot icon. a When prompted by the Take Virtual Machine Snapshot wizard, enter the following values. Field/setting Value Name ‘Type -with cpubusy. Description ‘Type Added cpubusy.vbs. Snapshot the virtual machine’s Leave selected. memory Quiesce guest file system (Needs Leave unselected. VMware Tools installed) Click OK and monitor the task in the Recent Tasks pane. Click the Snapshot Manager icon in the virtual machine console. ifs You should see three snapshots Leave the Snapshot Manager open. Lab 13 Managing Virtual Machines Task 5: Revert toa snapshot In this task, you revert a virtual machine to an earlier snapshot. Students should do the steps in this task individually. 41. In the Snapshot Manager, click the snapshot named -without iometer and epubusy and click Go to. 2. Click Yes to confirm that you want to evert to -without iometer and cpubusy. 3. Click Close to dismiss the Snapshot Manager. 4. Did the virtual machine power off? Why? 5. Start your virtual machine by clicking the green arrow in the virtual machine console window. 6. Login to your virtual machine as user Administrator using the virtual machine Administrator password that you recorded in “Preparing for the lal 7. Click the Snapshot Manager icon in the virtual machine console. You should see that the You Are Here pointer has been placed below your named snapshot. 8. Click Close to close the Snapshot Manager. 9. Do yousee either ioneter.exe or cpubusy. vis on the desktop? 10. Click the Snapshot Manager icon in the virtual machine console. ‘11, In the Snapshot Manager, click the snapshot named with epubusy and click Go to. 12. Click Yes to confirm that you want to revert to -with cpubusy. 18. Click Close to dismiss the Snapshot Manager. 14. Did the virtual machine power off? 15. Do yousee cpubusy.. vbs on the desktop?, Lab 13 Managing Virtual Machines 7 Task 6: Delete an individual snapshot In this lesson, you delete an individual snapshot, Students should do the steps in this task individually. 4. Click the Snapshot Manager icon in the virtual machine console. You should see that the You Are Here pointer has been placed below your named snapshot with cpubusy. 2. Inthe Snapshot Manager, click the snapshot named -without iometer and cpubusy and click Delete. 3. Click Yes to confirm that you want to delete -without iometer and epubusy. 4. Click Close to dismiss the Snapshot Manager. 5. Did the virtual machine power off? __ 6. Do yousee cpubusy.vbs on the desktop? Task 7: Use the Delete All function in Snapshot Manager In this task, you delete all remaining snapshots and record the effect of this operation. Students should do the steps in this task individually. 1. Click the Snapshot Manager icon in the virtual machine console. You should see that the You Are Here pointer has been placed below your named snapshot with epubusy. 2. Inthe Snapshot Manager, select -with cpubusy and click the Delete All button. 3. Click Yes to confirm that you want to delete all remaining snapshots. 4. Did all the remaining snapshots disappear in the Snapshot Manager? : 5. Click Close to dismiss the Snapshot Manager. 6. Do yousee cpubusy.vbs on the desktop? Why? 7. Close the virtual machine console. Leave the VMware vSphere® Client™ open for the next lab. 8 Lab 13 Managing Virtual Machines Lab 14 Access Control Objective: Manage user access permissions In this lab, you will perform the following tasks: 1. Configure an ESXi host to use directory services. Use Active Directory accounts to verify proper access to your ESXi host. Create @ custom role in vCenter Server appliance. Assign permissions on vCenter Server inventory objects. Verify permission usability. Preparing for the lab Record the following information: ‘VMware vCenter Server™ appliance user name vCenter Server appliance password Active Directory domain ‘Your domain administrator name ‘Your domain administrator password ‘Your domain user name Lab 14 Access Control 79 Your domain user password Datastore for domain users Task 1: Configure an ESXi host to use directory services In this task, you configure your VMware® ESXi™ host to communicate with Active Directory services, Students should do the steps in this task individually. 1. Use the VMware vSphere® Client™ to log in to your vCenter Server appliance with the domain administrator user name and password that you recorded in “Preparing for the lab.” 2. Select Home > Inventory > Hosts and Clusters. 3. Select your ESXi host in the inventory and click the Configuration tab. 4, Under Software, click the Authentication Services link. 5. Click the Properties link. 6. In the Directory Services Configuration dialog box, enter the following values. Field/setting Value User Directory Service Select Active Directory. Domain Settings Enter the Active Directory domain name that you recorded in “Preparing for the lab” and click Join Domain. Join Domain Enter your domain administrator user name (without the domain name) and the domain administrator password that you recorded in “Preparing for the lab.” Click Join Domain. 7. Click OK to close the Directory Services Configuration dialog box. 8. Verify the entries in Authentication Services Settings. 9. Logout of your vSphere Client session (File > Exit). 80 Lab 14 Access Control Task 2: Use Active Directory accounts to verify proper access to your ESXi host In this task, you verify that you have correctly configured access to your ESXi host using your domain user account and your domain administrator account, Students should do the steps in this task individually. 1, Use vSphere Client to log directly in to your ESXi host with your domain user name and password that you recorded in “Preparing for the lab.” Was the login successful? Why or why not? 2. Use vSphere Client to log in to your ESXi host, with your domain administrator user name and password that you recorded in “Preparing for the lab.” Was the login successful? Why or why not? 3. Select Home > Administration > Roles. 4, In the Roles column, click Administrator. What users and groups are assigned the Administrator role? 5. Logout of the ESXi host (File> Exit) Lab 14 Access Control 81 Task 3: Create a custom role in vCenter Server appliance In this task, you create a custom user role. Students should do the steps in this task individually. , 82 Use vSphere Client to log in to your vCenter Server appliance as user root and the password that you recorded in “Preparing for the lab.” Select Home > Administration > Roles. Click Add Role. The Add New Role dialog box appears. In Name, type VM Creator - . In the Privileges pane, select the following privileges. Privilege category Privilege name Datastore Network Resource Virtual machine > Configuration Virtual machine > Interaction Virtual machine > Inventory Allocate space Assign network Assign virtual machine to resource pool Add new disk ‘Add or remove device Memory All privileges. Select Interaction to include all privileges in this subcategory. Create new Click OK to add the role. Lab 14 Access Control Task 4: Assign permissions on vCenter Server inventory objects In this task, you associate the nonprivileged user account with a custom Virtual Machine Creator role to create permissions on inventory objects. This role restricts a nonprivileged user to the privileges defined in the role: to create virtual machines on a defined folder, host, datastore, and network. Students should do the steps in this task individually. Students should do the steps in this task individually. 1. Select Home > Inventory > VMs and Templates. Select your LabVMs folder. Click the Permissions tab. Right-click in the white space and select Add Permission. The Assign Permissions dialog box appears Click Add. 6. From the drop-down menu in the Domain panel, select the Active Directory domain that you recorded in “Preparing for the lab.” 7. In the search field of the Users and Group panel, enter the user name of the nonprivileged domain account that you recorded in “Preparing for the lab.” Do not include the login domain in the entry. Click Search. 8. When the search completes, select the nonprivileged domain user name in the Users and Groups panel and click Add. 9. Click OK to continue. 40. In the Assigned Role panel, click the VM Creator - role. ‘11, Leave the Propagate to Child Objects check box selected and click OK. Verify that the permission appears in the Permissions tab. 12. Select Home > Inventory > Hosts and Clusters. 13. Select your ESXi host in the inventory and click the Permissions tab. 44. Add the permission (as in steps 4-11). 15. Select Home > Inventory > Datastores and Datastore Clusters. 16. Select the datastore for domain users that you recorded in “Preparing for the lab” and click the Permissions tab. Lab 14 Access Control 83 17. Add the permission (as in steps 4-11). 18. Select Home > Inventory > Networking. 19. Select the ProdVMs network and click the Permissions tab. 20. Add the permission (as in steps 4-11). 21. Exit vSphere Client. Task 5: Verify permission usability In this task, you verify that the domain user account can create a virtual machine on the objects on which you defined the permission. Students should do the steps in this task individually. Use vSphere Client to log in to your vCenter Server appliance with the domain user name and password that you recorded in “Preparing for the lab.” 2, Select Home > Inventory > VMs and Templates. Notice that LabVMs is the only folder that you see. 3. Right-click your Leb VMs folder and select New Virtual Machine. 4. When prompted by the Create New Virtual Machine wizard, enter the following values. Field/setting Value Virtual Machine Select Custom. Configuration Name ‘Type -Temp, where is your first name (for example, Brian-Temp), Inventory Location ‘Your LabVMs folder is selected for you. Host/Cluster Select your ESXi host. Datastore Select the datastore for domain users that you recorded in “Preparing for the lab.” Notice that the other datastores do not appear in the list. Virtual Machine Version Leave the default. Guest Operating System Leave the default. Version Leave the default. 84 Lab 14 Access Control Field/setting Value CPUs Leave the default. Memory Size Select MB from the drop-down menu and type 4. Network Verify that ProdVMs is the only option on the drop- down menu for NIC 1. Leave all other options at their default settings. SCSI Controller Leave the default. Select a Disk Notice the available options and leave the default. Disk Size In Capacity, type 2 and verify default setting for GB in the drop-down menu. Because you deployed the virtual machine to an NFS datastore, thin-provisioning is selected for you. Leave the default setting for Location and click Next. Advanced Options Leave the default. Ready to Complete Click Finish. 5. Monitor the progress of the task in the Recent Tasks pane. 6. While you completed the wizard, did you notice how only those inventory objects on which you assigned permissions were available for the user to select? Only those inventory objects that you defined with the role VM-Creator- can be selected in the Add Virtual Machine wizard. 7. After the task is completed, verify that the virtual machine was created successfully. 8. Right-click your virtual machine in the inventory. Familiarize yourself with the options that the role does not permit. For example, the Delete from Disk option is unavailable. 9. Exit Sphere Client. Lab 14 Access Control 85 40. Use vSphere Client to log in to the vCenter Server appliance with the user name root and the password that you recorded in “Preparing for the lab.” ‘11, In the inventory, right-click the virtual machine -Temp and select Delete from Disk. Logout of vSphere Client. 86 Lab 14 Access Control Lab 15 Resource Pools Objective: Create and use resource pools on an ESXi host In this lab, you will perform the following tasks: Ei 1. Create CPU contention. Create a resource pool named Fin-Test. Create a resource pool named Fin-Prod. Verify resource pool functionality. Preparing for the lab This lab requires no special preparation. Task 1: Create CPU contention In this task, you run the cpubusy..vbs script in each virtual machine to create a heavy CPU load, resulting in contention for CPU cycles. Students should do the steps in this task individually. 1, Ifthe VMware vSphere® Client™ is not already active, use it to log in to your VMware vCenter Server™ system. Log in using the domain administrator user name and password that, you recorded in “Preparing for the lab.” 2. Select Home > Inventory > VMs and Templates. 3. Open a console to virtual machines ##-2 and ##-3 and log in as Administrator. Lab 15 Resource Pools 87 In each virtual machine, start an instance of the cpubusy. vbs script (on the virtual machine’s desktop) by right-clicking the script and selecting Open with Command Prompt. This script runs continuously. Wait one to two minutes for it to stabilize. This script repeatedly does floating-point computations. The script also displays the duration of a computation (wall- clock time). Example: I did three million sines in 2 seconds! Use the number of seconds reported as a performance estimate. You should find that the program runs at approximately the same rate in each virtual machine. In the inventory view, right-click the ##-2 virtual machine and select Edit Settings. In the virtual machine Properties dialog box, click the Resourees tab, Click Advaneed CPU. In the Scheduling Affinity pane, type 1 in the space provided. The virtual machine will run only on processor 1. Click OK. CPU affinity is used mainly to create CPU contention for training purposes. Use of this feature in a production environment is strongly discouraged, Repeat steps 5-8 to set the scheduling affinity for the other virtual machine, ##-3 Force it use the same processor as the first virtual machine (processor 1). Allow epubusy.vbs to run for a minute or two. Lab 15 Resource Pools Task 2: Create a resource pool named Fin-Test In this task, you create a resource pool named Fin-Test. Students should do the steps in this task individually. 1. Select Home > Inventory > Hosts and Clusters. 2. Right-click your VMware® ESXi™ host and select New Resource Pool. 3. Assign the resource pool the following properties. Resource pool property Value Name Type Fin-Test. CPU Resource Shares Select Low from the drop-down menu. All other settings Leave the defaults. 4. Click OK. rs Task 3: Create a resource pool named Fin-Prod In this task, you create a resource pool named Fin-Prod. Students should do the steps in this task individually. 1. Select Home > Inventory > Hosts and Clusters. 2. Right-click your ESXi host in the inventory and select New Resource Pool. 3. Assign the resource pool the following properties. Resource pool property Value Name ‘Type Fin-Prod. CPU Resource Shares Select High from the drop-down menu. All other settings Leave the default. 4. Click OK. Lab 15 Resource Pools 89 Task 4: Verify resource pool functionality In this task, you verify that each resource pool provides the correct amount of CPU to each virtual machine when CPU contention occurs. Students should do the steps in this task individually. 4. Select Fin-Test in the inventory and click the Summary tab. View the CPU Resource Settings panel. Record the number of shares for this resource pool: 2. Select Fin-Prod and click the Summary tab. View the Resource Settings panel. Record the number of shares for this resource pool: 3. Drag ##-2 to the Fin-Prod resource pool. 4. Drag ##-3 to the Fin-Test resource pool. 5. View the results of cpzbusy .vbs in each virtual machine console. Is there a difference in performance between virtual machines? Why or why not? 6. Change CPU shares of the Fin-Test resource pool from Low to Normal. To do this, right-click the Fin-Test resource pool in the inventory and click Edit Settings. 7. Click Normal from the drop-down menu for CPU shares. Leave CPU shares at High for the Fin-Prod resource pool, 8, Rum the scripts for a few seconds and compare the performance of the script in each virtual machine. If CPU contention occurs, you should notice a difference in performance between the virtual machines. 9. Using the process from steps 6 and 7, change CPU shares of the Fin-Prod resource pool from High to Norm: 10. Leave the cpubusy.vbs script running in each virtual machine. 11. Minimize the virtual machine consoles. You will use them in the next lab, Leave the vSphere Client open for the next lab, 90 Lab 15 Resource Pools Lab 16 Monitoring Virtual Machine Performance Objective: See how CPU workload is reflected by system monitoring tools In this lab, you will perform the following tasks: 1. Use vCenter Server to monitor CPU utilization. 2. Undo changes made to your virtual machines. Preparing for the lab Record the following information: ‘Your VMware vCenter Server™ appliance user name Your vCenter Server appliance password Lab 16 Monitoring Virtual Machine Performance 91 Task 1: Use vCenter Server to monitor CPU utilization In this task, you modify and monitor the CPU performance graphs. Students should do the steps in this task individually. 1 92 Click ##-2 in the inventory and click the Performance tab. The Overview view is shown. Click the Advanced button. By default, the Advanced panel shows CPU usege in real time. Click the Chart Options link. The Customize Performance Chart dialog box appears. In the Chart Options pane, select CPU > Real-time. In the Objects pane, on the right, deselect the check box with the virtual machine’s name. In the Counters pane, click None to deselect all selected counters. Select the Used and Ready counters. Om esti Ee Posty es ae Fes pestnntn ost year Eo castor, Diego 2. Danstve 5 -@ Osh 5-6 Nok tine 3 Pore ——= 3-0 Sytem courts 20. ae Desciption Rahp [us [intemal Wane es Smntion Msecord used system ‘Summation Miksecond system in huge ante sverige Me sagen hcesop Siamoton risecond —costp RA Ready ‘Summation Miksecond ready tq | co Click OK. Click the Popup Chart icon to display the CPU/Real-time graph for this virtual machine in a seperate window. co Lab 16 Monitoring Virtual Machine Performance 40. Select ##-3 in the inventory and click the Performance tab. 11. Configure the CPU Performance graph for ##-3 and select the same chart options as you did in steps 3-8. 12. Click the Popup Chart icon to display the CPU/Real-time graph for this virtual machine in a separate window. 43. In the Performance Chart window for each virtual machine, point to the end of the line graph to view the current CPU ready value. 14, Record the current CPU ready value for each virtual machine. Virtual machine name —_Latest CPU ready value ##-2 ##-3 Leave the Performance Chart windows open. 48. Stop the cpubusy.vbs scripts in each virtual machine. Press Ctrl+C in each cpubusy window. Make sure that this script is stopped in each virtual machine. If this script is still running, it will affect the next lab. 46. In the Performance Chart window for each virtual machine, point to the end of the line graph to view the current CPU ready value. ‘Wait for the chart to update. Performance charts update every 20 seconds. Did the Ready value change? Why or why not? Lab 16 Monitoring Virtual Machine Performance 93 Task 2: Undo changes made to your virtual machines In this task, you undo the changes made to each virtual machine. Students should do the steps in this, task individually. 1. Close the Performance Chart windows. 2. Close the virtual machine consoles. 3. Remove the scheduling affinity value from ##-2: a. Right-click the ##-2 virtual machine in the inventory and select Edit Settings. b. Click the Resources tab. c. Click Advanced CPU and delete the value 1 from the field in the Scheduling Affinity pane. d. Click OK. 4. Repeat step 3 on Inventory > Hosts and Clusters. 3. Select the #-2 virtual machine in the inventory and click the Alarms tab. 4, Click Definitions. Notice that the virtual machine inherited alarms defined at the vCenter Server level. 5. Right-click anywhere to the right of the list of alarms and select New Alarm, The Alarm Settings dialog box appears. 6. Inthe General tab, enter the following values. Field/setting Value Alarm name ‘Type VM CPU Usage - . 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. 7. Click the Triggers tab and click Add. 8. Add the following trigger. Trigger setting Value Trigger Type Select VM CPU Usage (%). Condition Select Is above. Warning Double-click the current value and type 25. 96 Lab 17 Using Alarms 10. n. 12. 13. 14. 15. Trigger setting Condition Length Alert Condition Length Value Select for 30 sec fiom the drop- down menu. Type 50. Leave the default (5 minutes). Leave Trigger if any of the conditions are satisfied selected. Do not change anything in the Reporting tab. Click the Actions tab. Click Add. Configure the following action settings. Action setting Value Action Click the space below the Action header to activate the drop-down menu and select Suspend VM from the list. Configuration Leave as is. (This column does not apply to this action.) Green to Yellow Select Once from the list. Yellow to Red Change the setting from Once to no value. Red to Yellow Leave blank. Yellow to Green Leave blank. Click OK, Verify that your alarm appears in the list of alarms. Your alarm should appear near the end of the list. Lab 17 Using Alarms 97 Task 2: Create a virtual machine alarm that monitors for an event In this task, you create an alarm that responds to a specific event. Students should do the steps in this task individually. 1. Select the Training datacenter in the inventory and click the Alarms tab. 2, Click Definitions. Right-click anywhere to the right of the list of alarms and select New Alarm, The Alarm Settings dialog box appears. 3. In the General tab, enter the following information, Field/setting Value Alarm name ‘Type VM Suspended - . Description Leave blank. 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, 4. Click the Triggers tab, 5. Click Add. 6. Double-click the trigger in the Event column to display a drop-down menu with a list of triggers. Enter the following values. Trigger setting Value Event Select VM suspended. Status Keep the default. 7. Inthe Conditions column, click the Advanced link. The Trigger Conditions dialog box appears. 8. Click Add. 9. Inthe Argument column, select Change tag and select VM name from the list. 40. Inthe Operator column, leave equal to selected. 98 Lab 17 Using Alarms 1" 12. 13, Click the area under the Value column, Type ##-2 as the virtual machine name, where is your first name and ## is the number of your VMware® ESXi™ host. The virtual machine name is case-sensitive. Click OK. Without making changes in either the Reporting tab or the Actions tab, click OK. Verify that your alarm appears in the list of alarms. Your alarm should appear at the end of the list. Task 3: Trigger virtual machine alarms and acknowledge them In this task, you trigger both alarms, view the triggered alarms, and acknowledge each alarm. Students should do the steps in this task individually. 10. Click the ##-2 virtual machine and select Open Console. Position the virtual machine console so that you can see both the console and the Triggered Alarms pane at the same time. On the virtual machine's desktop, right-click cpubusy . vps and select Open with Command Prompt. This action starts one instance of cpubusy . vps. Wait at least 30 seconds before the alarm is triggered. When the virtual machine is suspended, the alarm has been triggered. Your VM CPU Usage alarm appears briefly in the Triggered Alarms pane, so you might not see this alarm if you are not viewing the pane at the time the alarm was triggered. But you should see your VM Suspended alarm after the virtual machine is suspended. Monitor the Recent Tasks pane for a task that reads - Suspend virtual machine. as Verify that your VM Suspended alarm is triggered. You should see an entry for this alarm in the my Triggered Alarms pane. The Acknowledged and Acknowledged By fields are blank Right-click your VM Suspended alarm and select Acknowledge Alarm. The Acknowledged and Acknowledged By fields are now populated. Power on the suspended virtual machine by right-clicking the virtual machine in the inventory and selecting Power > Power On. In the virtual machine console, press Ctrl+C in the command window to stop cpubusy .vbs. Close the virtual machine console. In the Alarms tab, right-click your VM Suspended alarm and select Clear. In the inventory, verify that the red alert icon is removed from the virtual machine. Lab 17 Using Alarms 99 Task 4: Disable virtual machine alarms In this task, you disable your VM Suspended alarm and your VM CPU Usage alarm. Students should do the steps in this task individually. 1. 100 Diseble your VM CPU Usage alarm: a. b. °. d. Select the ##-2 virtual machine in the inventory and click the Alarms tab. Click Definitions. Right-click your VM CPU Usage alarm and select Edit Settings. In the General tab, deselect the Enable this alarm check box and click OK. Diseble your VM Suspended alarm: a. b. ©. Select the Training datacenter in the inventory and click the Alarms tab. Click Definitions. Find your VM Suspended alarm in the list and right-click it. Select Edit Settings. In the General tab, deselect the Enable this alarm check box and click OK. Lab 17 Using Alarms Lab 18 Using vSphere High Availability Objective: Demonstrate vSphere HA functionality In this lab, you will perform the following tasks: 1. Create a cluster enabled for vSphere HA. Add your ESXi host to a cluster. Test vSphere HA functionality. Prepare for the next lab. Preparing for the lab Record the following information: VMware® ESXi™ host to partner with ‘Team VMware vCeater Server™ system name vCenter Server appliance user name vCenter Server appliance password Lab 18 Using vSphere High Availability 101 Task 1: Create a cluster enabled for vSphere HA In this task, you create a cluster enabled for vSphere High Availability. Do this task as a team. 1. Select Home > Inventory > Hosts and Clusters. 2. In the inventory, right-click the Training datacenter and click New Cluster. Field/setting Value Name ‘Type Lab Cluster. Cluster Features Click Turn on ySphere HA. Host Monitoring Status Leave default selection. Admission Control Leave default selection. Admission Control Policy Click Percentage of cluster resources reserved as failover spare capacity. Cluster Default Settings Leave default selections. VM Monitoring Status Leave default selection. Default Cluster Settings Leave default selection. VMware EVC Leave default selection. Swapfile Policy for Virtual Leave default selection. Machines Ready to Complete Click Finish. 3. Monitor the Recent Tasks pane. Notice that vSphere HA is being created. 102 Lab 18 Using vSphere High Availability Task 2: Add your ESXi host to a cluster In this task, you add your ESXi host to the Lab Cluster created in task 1. Students should do the steps in this task individually. 4. Expand your Lab Servers folder inventory object and click your ESXi host. 2. Drag and drop your ESXi host onto the Lab Cluster inventory object. 3. Click Yes when the waming appears. The warning alerts you to the fact that DRS is not yet enabled and that your existing resource pools will be collapsed into the cluster root resource pool. 4. Monitor the Revent Tasks pane and wait for the Configuring vSphere HA task to complete. 5. After vSphere HA is enabled, click the Lab Cluster inventory object and click the Summary tab. Notice that a vSphere HA pane is now displayed, 6. Click the Cluster Status link. 7. Review the content on each tab and answer the following questions: a. Which host is the master? b. Does the number of protected virtual machines match the number of virtual machines in the cluster? c. How many datastores will be used for heartbeating? 8. Click OK to dismiss the vSphere HA Cluster Status window. 9. Click the Configuration Issues link and review the errors that are listed. The errors indicate that the ESXi hosts in the cluster have no management network redundancy. That is, each ESXi host has a single management network port configured for the cluster. vSphere HA still works if'an ESXi host is configured with one management network port, but a second management network port is necessary for redundancy. For this lab, no action is, necessary. 10. Click Close. Lab 18 Using vSphere High Availability 103 Task 3: Test vSphere HA functionality In this task, you verify that vSphere HA works properly. Do this task as a team. 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 7a, 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 asthe 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 available. 7. Click the Lab Cluster inventory object. 8. Click the Summary tab. 9. Click the Cluster Status link. 10. Compare the answer in task 2, step 7a. Is there a different master host? Task 4: Prepare for the next lab In this task, you will remove the Leb Servers folder. Do this task as a team. 1, Right-click the Lab Servers folder inventory object and click Remove. 2. Click Yes to confirm the operation. Keep the VMware vSphere® Client™ open for the next lab. 104 Lab 18 Using vSphere High Availability Lab 19 vSphere Distributed Resource Scheduler (DRS) Objective: Implement a DRS cluster In this lab, you will perform the following tasks: 1. Create 2 DRS cluster. . Verify proper DRS cluster functionality. . Create, test, and disable affinity rules. . Create, test, and disable anti-affinity rules. . Create, test, and disable virtual machine to host affinity rules. Preparing for the lab Record the following information: VMware® ESXi™ host to partner with Perform this entire lab as a tear. Lab 19 vSphere Distributed Resource Scheduler (DRS) 105 Task 1: Create a DRS cluster In this task, you enable vSphere Distributed Resource Scheduler (DRS) on an existing cluster Perform this task as a team. 4. Select Home > Inventory > Hosts and Clusters. 2. Right-click the Lab Cluster inventory object and select Edit Settings, a. In the left-hand columa, ensure that Cluster Features is highlighted and click the check box for Turn on vSphere DRS. b. In the left-hand column, click vSphere DRS and then select Manual for the automation level. . Move the Migration Threshold slider to the right to Aggressive. d. Click OK to apply the changes. Task 2: Verify proper DRS cluster functionality In this task, you verify that the DRS cluster is functioning properly. Perform this task as a team. 1. Click the Lab Cluster inventory object. 2. Click the DRS tab. 3. Click the Rum DRS link. When you click this link, it forces DRS to immediately evaluate the cluster end provide recommendations instead of waiting the standard 5 minutes before generating recommendations. 4. Click the Summary tab. 5. Observe the vSphere DRS panel on the Summary tab. a. Does Current host load standard deviation show that the load is imbalanced? s 6. Click the View Resource Distribution Chart link. This chart displays the CPU or memory use per host. Point to each colored square. You see information on how much of the entitled resource (CPU or memory) each virtual machine is using. 7. Close the chart window. 8. Click the DRS tab. 9. Review the DRS recommendations. 106 Lab 19 vSphere Distributed Resource Scheduler (DRS) 40. Click Apply Recommendations and monitor the Recent Tasks pane for virtual machine ‘migrations. Wait for the virtual machine migrations to complete. ‘1. Click the Run DRS link in the upper left-hand comer of the DRS tab. This action forces DRS to evaluate the cluster status. 42. Click the Summary tab. a. Does the current host load standard deviation show that the load is balanced? Task 3: Create, test, and disable affinity rules In this task, you create rules that force virtual machines to be placed on the same ESXi host. Students should do the steps in this task individually. 4, Select Lab Cluster in the inventory and click the Virtual Machines tab. Verify that each virtual ‘machine that you own is running on a different ESXi host. Ifthe virtual machines that you own are running on the same ESXi host, choose one to migrate to the other ESXi host in the cluster before you go to step 2. If you have one virtual machine on each ESXi host in the cluster, no action is necessary. 2. Right-click Lab Cluster in the inventory and select Edit Settings. The Lab Cluster Settings dialog tox appears. 3. In the left pane, select Sphere DRS > Rules. 4. Click Add. 5. Enter the following values in the Rules dielog box. Close the Lab Cluster Settings dialog box when you are done. Field Value Name ‘Type Colocate VMs. Type Select Keep Virtual Machines Together. Virtual Machines Click Add. In the Virtual Machines dialog box, select the check box next to each of the virtual machines that you own named #i}-#. Click OK. Lab 19 vSphere Distributed Resource Scheduler (DRS) 107 6. In the Rules dialog box, click OK. 7. Click OK to close the Lab Cluster Settings dialog box. 8. Click the Lab Cluster DRS tab. 9. Evaluate the cluster configuration by clicking the Run DRS link. Do you see any recommendations? Why or why not? Ifyou did not get a recommendation, use VMware vSphere® vMotion® migration to move one of your named virtual machines to the other ESXi host in the cluster. Then go back to the DRS tab and click Run DRS to see what the results are. 40. Click Apply Recommendations and monitor the Recent Tasks pane as the recommendation is applied. The virtual machines associated with your affinity rule will be migrated to one of the two hosts in the DRS cluster. 11. Click the Virtual Machines tab. 12. Click the Host column heading to sort the virtual machines by ESXi host on which they reside, The virtual machines that you own should be running on the same ESXi host. 43. Right-click the Lab Cluster inventory object and select Edit Settings. 44. In the left pane, select vSphere DRS > Rules. 45. To disable the affinity rule, select the check box next fo your affinity rule to remove the check. To delete an affinity rule, you select the rule and click Remove. For this lab, keep the rule disabled. 108 Lab 19 vSphere Distributed Resource Scheduler (DRS) Task 4: Create, test, and disable anti-affinity rules In this task, you create rules that force the separation of virtual machines onto different ESXi hosts. Students should do the steps in this task individually. 1. On the vSphere DRS > Rules page, click Add. 2. Enter the following values in the Rules dialog box. Close the Lab Cluster Settings dialog box when you are done. Rule field for anti-affinity rule1 Value Name ‘Type Separate VMs. Type Sclect Separate Virtual Machines. Virtual Machines Click Add. In the Virtual Machines dialog box, select the check box next to each of the virtual machines that you own named #-#. Click OK. 3. Click OK to close the Lab Cluster Settings dialog box. 4, Click the Lab Cluster DRS tab. 5. Click the Run DRS link to make DRS evaluate the state of the cluster and make recommendations. A recommendation to separate your virtual machines should appear. If'a recommendation does not appear, check the rules that you created to verify the accuracy of imputs from step 2. 6. Click Apply Recommendations. 7. Monitor the Recent Tasks pane as the recommendations are applied. The virtual machines with anti-affinity rules applied to them will be migrated to another ESXi host in the cluster. 8. Click the Virtual Machines tab. 9. Click the Host column heading to sort the virtual machines by the ESXi host on which they reside. The virtual machines you own should be running on different ESXi hosts. 40. Right-click Lab Cluster inventory object and select Edit Settings. Lab 19 vSphere Distributed Resource Scheduler (DRS) 109 1" 12. Task 5: Create, test, and disable virtual mac! In the left pane, select Sphere DRS > Rules. To disable the anti-affinity rule, select the check box next to your affinity rule. fi To delete an anti-affinity rule, you select the rule and click Remove. For this lab, keep the rule disabled. je to host affinity rules In this task, you create virtual machine and host DRS groups. You then create rules that dictate which ESXi hosts that your virtual machines can run on. 1. 10 Right-click Lab Cluster in the vCenter Server inventory and select Edit Settings. In the left pane, click ySphere DRS > DRS Groups Manager. Click Add in the Virtual Machines DRS Groups field. When the DRS Group window appears enter the following information: a. Type -vMs in the Name field. b. Click one of your named virtual machines to highlight it. ©, Click >> to move your virtual machine to the box on the right. d. Perform steps 4b and 4c to move your other virtual machine to the box on the right. e. Click OK. Click Add in the Hosts DRS Groups field. a. Type -ESXi host in the Name field. b. Click the FSXi host assigned to you to highlight it. ©, Click >> to move your ESXi host to the box on the right. d. Click OK. In the left pane, click Rules. Click Add. When the Rules dialog box appears enter the following information. Lab 19 vSphere Distributed Resource Scheduler (DRS) Field Value Name ‘Type Run only on -ESXi host. Type Click Virtual Machines to Hosts from the drop- down menu. Cluster VM Group Click -VMs from the drop-down menu. Click Must run on hosts in group from the drop- down menu. Cluster Host Group Click -ESXi host from the drop-down menu. 9. Click OK to dismiss the Rules dialog box. 10. Click OK to dismiss the Lab Cluster Settings window. 11. Click the Lab Cluster DRS tab. 42. Click the Run DRS link to make DRS evaluate the state of the cluster and make recommendations. A recommendation to separate your virtual machines should appear. Why has vSphere DRS made this recommendation? 43. Click Apply Recommendations. 44. Monitor the Recent Tasks pane as the recommendations are applied. The virtual machines with anti-affinity rules applied to them will be migrated to another ESXi host in the cluster. 45. Click the Virtual Machines tab. 16. Click the Host column heading to sort the virtual machines by ESXi host on which they reside. The virtual machine you own that was running on your partner’s ESXi host should have been migrated to your ESXi host. 47. Right-click one of your named virtual machines in the inventory and click Migrate. Lab 19 vSphere Distributed Resource Scheduler (DRS) 111 18. 19. 20. 21. 22. 23. 12 When the Migrate Virtual Machine wizard appears, enter the following. Select Migration Type Sclect Change host. Select Destination Expand the inventory view and select your partner’s ESXi host. What do you see in the Compatibility field? Click Cancel to dismiss the Migrate Virtual Machine wizard. Right-click the Lab Cluster inventory object and select Edit Settings. In the left pane, select vSphere DRS > Rules. To disable your virtual machine to host affinity rule, select the check box next to your rule to remove the check and click OK. Leave your VMware vSphere® Client™ session open for the next lab. Lab 19 vSphere Distributed Resource Scheduler (DRS) Lab 20 VMware vCenter Update Manager Objective: Install, configure, and use Update Manager In this lab, you will perform the following tasks: 1. Install Update Manager. Modify cluster settings Configure Update Manager. Create a patch baseline. Attach a baseline and scan for updates. Stage patches onto ESXi hosts. Remediate ESXi hosts. Preparing for the lab Record the following information: ‘Team VMware vCenter Server™ appliance host name Center Server appliance user name vCenter Server appliance password Lab 20 VMware vCenter Update Manager Install the Update Manager plug-in into the vSphere Client. 113 ‘VMware vCenter™ Update Manager system name (vou install Update Manager on this host) Location of installation software Setup language Location of VMware® ESXi™ patch archive Task 1: Install Update Manager In this task, you install Update Manager on a separate Windows host. You also install the Update Manager plug-in into the VMware vSphere® Client™ on your desktop. Do this task as a team. 1. Open.a connection to the desktop of the Update Manager server that you recorded in “Preparing for the lab.” This action is typically done with Remote Desktop - your instructor will provide specific details if you are to use some other technology. 2. Go to the location of the student desktop installation software, which you recorded in “Preparing for the lab.” Double-click autorun.exe. If Security Warning dialog boxes appear, click Run. In the VMware vCenter Installer window, click VMware vSphere Update Manager link. Click Install to start the installation wizard. 14 Lab 20 VMware vCenter Update Manager 7. Click Run when the Security Warning dialog box appears. Field/sotting Value Setup Language Select the setup language that you recorded in “Preparing for the lab” and click OK. Welcome page Click Next. End-User Patent Agreement Click Next. License Agreement Select I agree to the terms in the license agreement and click Next. Support Information Deselect Download updates from default sources immediately after installation and click Next. IP Address/Name Enter the vCenter Server name or IP address that you recorded in “Preparing for the lab.” Port Accept the default. Username ‘Type root. Password Type the password that you recorded in “Preparing for the lab.” Database Options Accept the default and click Next. VMware vSphere Update Manager Port Settings Ifname resolution is working, select the host name from the drop-down menu. If name resolution is not working, select the IP address from the drop-down menu. Accept the default selection for all other settings and click Next. Destination Folder Ready to Install the Program Accept the default selection for all other settings and click Next. Click OK when the warning box appears. Click Install. Lab 20 VMware vCenter Update Manager 115 8. Click Exit to close the VMware vCenter Installer window. 9. Close the connection to the vCenter Update Manager system (if the Update Manager system is separate from your desktop host). Task 2: Install the Update Manager plug-in into the vSphere Client In this task, you install the Update Manager plug-in into the vSphere Client on your desktop system. Students should do the steps in this task individually. 1. Open the vSphere Client and log in to your team vCenter Server system as user root with the password that you recorded in “Preparing for the lab.” 2. In the menu bar, select Plug-ins > Manage Plug-i s. 3. Under Available Plug-ins in the Plug-in Manager window, click the Download and Install link. 4. When prompted by the VMware vCenter Update Manager Client 5.0 wizard, enter the following values. Field/setting Value Setup Language Select the setup language that you recorded in “Preparing for the lab.” Welcome page Click Next. License Agreement Select I accept the terms in the license agreement and click Next. Ready to Install the Program Click Install. a. When the installation completes, click Finish. b. When the security waming appears, select Install this certificate and do not display any security warnings for “” to prevent this warning from being displayed in the future. ©. Click Ignore to proceed with the connection. d. Verify that the Update Manager plug-in was enabled. @. Click Close to close the Plug-in Manager window. Keep the vSphere Client open. 16 Lab 20 VMware vCenter Update Manager Task 3: Modify cluster settings In this task, you enable vSphere Distributed Resource Scheduler (DRS) in fully automated mode and disable vSphere High Availability admission control. Students should work as a team to complete this task. 1. Select Home > Inventory > Hosts and Clusters. 2. Right-click Lab Cluster in the inventory and select Edit Settings. The Lab Cluster Settings dialog box appears. 3. In the left pane, select vSphere DRS, Select Fully Automated. This operation ensures that DRS migrates virtual machines to other nodes in the cluster. 4. In the left pane, select vSphere HA. Click Disable: Allow VM power on operations that violate availability constraints in the Admission Control field. 5. Click OK. 6. Select Lab Cluster in the inventory and click the Resource Allocation tab. 7. Observe the second column named Reservations to verify that no CPU and memory reservations are assigned to virtual machines. Removing CPU and memory reservations is necessary for this training environment. In a production environment, you might not have to remove CPU or memory reservations. Task 4: Configure Update Manager In this task, you import ESXi host patches from an archive on your desktop and configure settings for Update Manager. Do this task as a team. 4. Select Home > Solutions and Applications > Update Manager. Click the Configuration tab. Click the Download Settings link. Click the Import Patches link. 5. Select the directory that you recorded in “Preparing for the lab,” which contains the ESXi patch bundle. 6. When the security warning appears, select Install this certificate and do not display any security warnings for “” to prevent this warning from being displayed in the future. 7. Click Ignore to proceed with the connection, 8, Click Finish to complete the import operation, Lab 20 VMware vCenter Update Manager 417 Task 5: Create a patch baseline In this task, you create a patch baseline for both ESXi hosts and scan the ESXi hosts for compliance. Do this task as a team. 1. Click the Baselines and Groups tab. 2. In the Baselines panel, click the Create link. 3. When prompted by the New Baseline wizard, enter the following values. Field/setting Value Baseline Name ‘Type ESXi Host Update. Baseline Description Type Patch for ESXi 5.0. Baseline Type Keep the default value and click Next. Patch Options Click Fixed and click Next. Patches Select the patch shown in the list. The patch name is: miec-cnic-register net-cnic scai-bnx2i. Click the down arrow beneath the horizontal scroll bar to add the patch to the Fixed Patches to Add pane and click Next. Ready to Complete _Review your patch baseline. Verify the accuracy of Baseline Name and Baseline Type and click Finish. Task 6: Attach a baseline and scan for updates In this task, you scan the ESXi hosts in your cluster for bascline compliance. Do this task as a team. 1. In the upper-right comer of the Baselines and Groups tab, click the Compliance View link. 2. Select Lab Cluster in the vCenter Server inventory and click the Update Manager tab. Notice the arrow icons next to the tabs. You might have to click the right arrow to access the Update Manager tab. 3. Click the Attach link. The Attach Baseline or Group dialog box appears. 4. Select the ESXi Host Update check box and click Attach. 5. Click the Sean link. 18 Lab 20 VMware vCenter Update Manager 6. Inthe Confirm Scan window, verify that the Patches and Extensions and Upgrades check boxes are selected. 7. Click Sean. 8. Monitor the Recent Tasks pane and wait for the scan to finish, When the scan completes, it should result in noncompliance. Task 7: Stage patches onto ESXi hosts In this task, you copy the patches contained in the baseline to your ESXi host and apply the patches. Students should do the steps in this task individually. 1. You should see both ESXi hosts on the Lab Cluster Update Manager tab. Select your ESXi host. 2. Click Stage 3. When the Stage wizard appears, input the following: Field/setting Value Baseline Selection Accept the default selections and click Next. In the Patches column you see that zero patches are currently staged. Patch and Extension Accept the default selections and click Next. Exclusion Ready to Complete Click Finish. 4. The staging process should begin. 5. Monitor the Recent Tasks pane for the staging tasks. Wait for the tasks to complete. Both team members must complete task 7 before proceeding to task 8. Lab 20 VMware vCenter Update Manager 119 Task 8: Remet ite ESXi hosts In this task, you apply the patches staged in task 7. Do this task as a team, 1 2. 120 To begin the patching process, click Remediate. When prompted by the Remediate wizard, enter the following values. Field/setting Value Remediation Selection Leave the default and click Next. Patches and Extensions Leave the default and click Next. Schedule Leave the default and click Next. Power State Leave the default and click Next. Retry Delay Type 1 or change to 1 using the down arrow. Disable any removeable ‘Select the check box. Leave all other fields at their media devices connected to default selections and click Next. the virtual machines on the host Cluster Remediation Deselect Disable Distributed Power Management Options (DPM) ifit is enabled for any of the selected clusters. Click Generate Report to identify which tasks the remediation process performs for you. Click Close and click Next. Ready to Complete Review and verify your selections for accuracy. Click Finish. Monitor the Recent Tasks pane and answer the following questions: a. b. ©. Which ESXi host was remediated first? ‘Was it placed into maintenance mode by the remediation process? Were virtual machines migrated to the other node in cluster? ‘Was the patch installed on the ESXi host in maintenance mode?, Lab 20 VMware vCenter Update Manager e. Was the paiched ESXi host rebooted? Did the patched ESXi host exit maintenance mode?, ‘Was the other node placed into maintenance mode? ‘Were the virtual machines that the ESXi host hosted migrated to the other node in cluster? i. Was the other ESXi host patched? |. Did the other node exit maintenance mode? ze ‘The hosts in Lab Cluster show 100% compliance when remediation completes. Lab 20 VMware vCenter Update Manager 121 122 Lab 20 VMware vCenter Update Manager Lab 21 Installing VMware vCenter Server Objective: Install vCenter Server components In this lab, you will perform the following tasks: 1. Access your vCenter Server system. 2. Configure a SQL Server ODBC connection to a remote database. 3. Install vCenter Server. Preparing for the lab Record the following information: ‘VMware vCenter Server™ installation target host name vCenter Server system Administrator password Setup language Center Server database: local or remote? SQL Server authentication method ODBC data source name (DSN) SQL Server to connect to Lab 21 Installing VMware vCenter Server 123 ‘Your default database UNC user name UNC user password Location of installation software Task 1: Access your vCenter Server system In this task, you log in to your vCenter Server system as user Administrator. Students should do the steps in this task individually. 1. Ask your instructor how to access your vCenter Server installation target system. For example, your instructor migat have you use Remote Desktop Connection to access your vCenter Server system, 2. Login to your vCenter Server system as user Administrator, with the password that you recorded in “Preparing for the lab.” 3. If the VMware vSphere® Client™ is running, close the application before proceeding. Task 2: Configure a SQL Server ODBC connection to a remote database Task 2 is required only if you are connecting to a remote database. Consult with your instructor hefore proceeding. In this task, you create zn ODBC connection and connect vCeater Server to a remote database. 1, From your vCenter Server system desktop, select Start > Programs > Administrative Tools > Data Sources (ODBC). Click the System DSN tab and click Add. Select the SQL Native Client driver. Click Finish. When prompted by the Create a New Data Source to SQL Server wizard, enter the following values. 124 Lab 24 _Insialling VMware vCenter Server Field/setting Value Name Enter the ODBC DSN that you recorded in “Preparing for the lab.” Description Type vCenter Server Database. Server Enter the host name of the SQL Server to How should SQL Server verify authenticity of login ID? connect to that you recorded in “Preparing for the lab.” Ifyou see more than one SQL server in the list, make sure that you enter the correct SQL server name. Enter the name that you recorded in “Preparing for the lab.” The user account you logged in with appears in the Login ID field. Connect to SQL Server to obtain default settings for the additional configuration options Leave the check box selected. Change the default database to Remaining fields and settings Select the check box and set the default database to the value that you recorded in “Preparing for the lab.” ‘Make sure that you select your assigned database (and not the master database, for example). Leave the defaults and click Finish, 6. Click Test Data Source. If the test does not complete successfully, back up in the ODBC wizard and verify the information that you entered. 7. Click OK to return to the ODBC Microsoft SQL Server Setup dialog box. 8. Click OK to return to the ODBC Data Source Administrator dialog box. Verify that your new data source appears in the list of system DSNs. 9. Click OK to close the ODBC Data Source Administrator dialog box. Lab 21 Installing VMware vCenter Server 125 Task 3: Install vCenter Server In this task, you install vCenter Server software. Students should do the steps in this task individually. 1. 126 Go to the location of the vCenter Server installation software, which you recorded in “Preparing for the lab.” Start the VMware vCenter Installer: + Ifyou have an ISO image or physical CD-ROM mounted on the vCenter Server system's CD-ROM drive and autorun is enabled, the installer main window appears. * For files that are located in a local folder or that are on a network share, open the folder containing the files and double-click the autorun.exe file. + If security warning messages appear, click Run to continue. Click the vCenter Server link. If security warning message appears, click Run to continue. When prompted by the installation wizard, enter the following values Field/setting Value Choose Setup Language Welcome Page End-User Patent Agreement License Agreement User Name Organization License key Select the setup language that you recorded in “Preparing for the lab” and click OK. Click Next. Click Next. Select I agree to the terms in the license agreement and click Next. You do not assign a license for this lab. ‘Type VMware student. ‘Type VMware. Click Next. Leave blank (you install the license key in Lab 3) and click Next. Lab 24 _Insialling VMware vCenter Server Field/setting Value Database Options Ifyou did not do task 2, select Install a Microsoft SQL Server 2008 Express instance and click Next. If you did task 2, select Use an existing supported database, select the DSN created in task 2, and click Next. + In the second Database Options dialog box, type Administrator in Database Username. In Database Password, enter the Administrator password that you recorded in ‘Preparing for the lab” and click Next. + Ifa warning appears about reinitializing the Gatabase, select Replace my existing database with an empty one. If you are installing vCenter Server for the first time, you do not see this warming, vCenter Server Service Select Use SYSTEM Account. Accept the default fully qualified domain name and click Next. Destination Folder Accept the default and click Next. vCenter Server Linked Accept the default and click Next. Mode Options Configure Ports Accept the default and click Next. Configure Ports for Inventory Service Accept the default and click Next. vCenter Server JVM Accept the default and click Next. Memory Ready to Install the Click Install. Program 5. When the installation is complete, click Finish to exit the wizard. 6. Close the VMware vCenter Installer window. Lab 21 Installing VMware vCenter Server 127 128 Lab 24 _Insialling VMware vCenter Server SM AAA *VAP-ENG-ICHS-~LAB-~STUF el Koe

You might also like