Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
241 views139 pages

KK Vmware Lab Setup

vm

Uploaded by

Hadoop Learner
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF or read online on Scribd
0% found this document useful (0 votes)
241 views139 pages

KK Vmware Lab Setup

vm

Uploaded by

Hadoop Learner
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF or read online on Scribd
You are on page 1/ 139
VMware vSphere: Install, Configure, Manage Student Lab Manual ESXi 5.1 and vCenter Server 5.1 VMware® Education Services: vmware’ vetware, ne www.vmware.com/education TaB Lab 1: Lab 2: Lab 3: Lab 10, Lab 11: Lab 12, Lab 13: Lab 14; Lab 15; Lab 16: Lab 17: Lab 18, Lab 19; Lab 20: Lab 21: Lab 22: Lab 23: Lab 24, LE OF CONTENTS Installing VMware vSphere Graphical User Interfaces. Configuring VMware ESXi .. Working with Virtual Machines Using VMware vCenter Server cece cee 49 Standard Virtual Switches 27 : Accessing ISCSI Storage 7: Accessing IP Storage ...... FEEL EEEEEEEOIEN. ‘Managing VMware vSphere VMES. ....... ae wee 89 Using Templates and Clones 47 : Modifying a Virtual Machine : cee 53 Migrating Virtual Machines 6.002006 00000se0ceecteeceeteeeereeette eee e 2 58 + Managing Virtual Machines . weet cece 67 - Managing vApps. ween cece cece TS Access Control . coe cee TD - User Permissions Resource Pools .. ‘Monitoring Virtual Machine Performance ween cece Using Alarms 97 Using vSphere High Availability 103 (Optional) Designing a Network Configuration . Configuring VMware vSphere Fault Tolerance . Sphere Distributed Resource Scheduler veces cece ‘VMware vSphere Update Manager. ....... ae we ABB: (Optional) Installing VMware vCenter Server . . . 145 Lab1 Installing VMware vSphere Graphical User Interfaces Objective: Install student desktop components. 4. Access your student desktop system. 2. Install the vSphere Client. Preparing for the lab Record the following information: Desktop Administrator password Location of installation software Senup language ‘Your VMware vSphere® ESXi™ host ESXi host user name ESXi host root password Lab 1 Instaling ViNware vSphere Graphical User inertaces 1 Task 1: Access your student desktop system Tnthistask, you will og into your steer desktop system as user Administra 1. Ask your instructor how to access your student desktop system. For example, yourinstractor nught have you use Remote Desktop Conaceton, nto your stadentdesiaop system as user Administrator, with the posswonl that you seconded in “Preparing forthe lab” Task 2: Install the vSphere Client ‘In this tak, you will install the Vidware-vSphere® Clisnt™'on your desktop system and wariy that ‘the motallaion succeeded. Students should do the steps ia this task andividualy 4. Gotothe location of the installation sofovaze, which you eecnded “Preparing for the lab.” 2. Double-click autorun.exe gad click Run, 1f Security Waming dislog banes oppeer, clk Run 2. inthe VMware vCenter Installer window, cick wSphere Client 4. Click Install to startthe insallation wirard. 1 Security Waring dialog boxes appear, click Rom 5. When prompted by the instal wizard. perform the following setions, Fiela/Setting Action Setup Lang Select the setup len sin“ Proparing for the lab" and click OK. Weleome page Click Next End-User Patent Agreement Click Next License Agreement Select 1 agree to the terms in the license ment an click Next. User Name Type Viware student. Organization ‘ype Viware and click Next Destination Folder Acoept the defaul and click Next Ready to Install the Program Click Tastal 2 Lab 1 Installing VMware vSphere Graphical User Interfaces 6. When the installation is complete, click Finish, Click Exit to close the VMware® vCenter™ Installer window. 8 Login to your ESXi host with the Sphere Client a. Double-click the vSphere Client icon on your student desktop systemn, b. Enter the IP address or host name of your ESXi host in the IP Address/Name field. You recorded thename in “Preparing for the lab.” c. Type root for the ESXi user name and type the password that you recorded in “Preparing forthe lab.” d. Click Login. fe. Select Install this certificate and do not display secu to prevent this warning from being displayed in the future warnings for “chost_ name>" 1. Click Ignore to proceed with the comnestion, 9. Click OK when the VMware Evaluation Notice dialog bor is displayed. 9. In tie Inventory pane, click Inventory to verify that your ESXi host is displayed at the top of the inventory view on the left side of the window. 40. Inthe vSphere Clientmena bar, select File > Exit to close the vSphere Clicat Lab2 Configuring VMware ESXi Objective: Configure an ESXi host In this lab, you will perform the following tasks: ‘Connect to an ESXi host with the vSphere Client. ‘View the host hardware configuration. (Configure the DNS and routing information for an ESXi host Configure an ESXi host as an NTP client. ok ene Configure an ESXi host to use the direcry services Preparing for the lab Record the following infomation: ‘Your VMware vSphere® ESXi™ host mame ESXi host root password Active Directory (AD) domain name ‘Domain administrator user name ‘Domain administatorpasswond Preferred DNS server ‘VMkernel default gateway ‘Network Time Protocol (NTP) server Lab2 Confguring Vitware ESXi Task 1: Connect to an ESXi host with the vSphere Client In this task, you will use the VMware vSphere® Clieat™to log into an ESXi host, Students should do the seeps in this task individually. 1. Login toa system from which youcan start the Sphere Client. The instructor provides you ‘wits login procedures for your specific lab environment. 2. Double-click the vSphere Cent icon on the system's desktop, 3. Enler the host name of your ESXi host, which you recorded in “Preparing for the lab.” 4, ‘Type the user name root and enter the ES2i host root password that you recorded in “Preparing for the lab.” Click Login 5. Ifyou see a certificate waming, click Ignore. 6. When the VMwere Evaluation Notice window: is displayed, stating when your evaluation license expires, click OK. 7. Inthe vSphere Client Home page, you should see your host in the inventory panel. If you do not see yourhos, click Home and click Inventory ia the menu bar. Task 2: View the host hardware configuration In this task, you will view the health of the host hardware, as well as processor and memory information. Soudents shoald do the steps in this task individually. 1. Select your ESXi host in the inventory and click the Configuration tab. The hardware health status view is displayed. View the status by expanding objects in the Sensor list. ‘When you sre connected o a host through VMware xCenter Server™, you nse the Hardware Status tab to monitor the health of the host. 2. In the Hardware list, click Processors. View the processor model, processor speed, and other ‘nformetion about your ESXi host processors, 3. In the Hardware list, select Memory. View the total physical memory and how much memory is used by the systemand how much memory is available for use by the virtual machines Task 3: Configure the DNS and routing information for an ESXi host In this task, you will verify the DNS and routing information for your ESXi host. Students should do the steps in this task individually. 1. Select your ESXihost in the inventory and click the Configuration tab, 2. In the Software panel, click the DNS and Routing link 3. Click the Properties link, 4. In the DNS Configuration panel, perform the following actions. When you are finished, click OK, Field/Setting Action Domain ‘Verify that the AD domain name matches the value that you recorded in “Preparing for the lab.” Ifthe domain name does not match, enterthe domain name that you reconded in “Preparing for the lab.” Usethefollowing DNS _If this field is populated, verify the setting matches the server address prefecred DNS server that you recorded in “Preparing for the lab.” If this field is empty or incorrect. enter the value for prefemed DNS server that you recorded in “Preparing for the lab.” Look for hosts in the Leave the deftult following domains Default Gateway Clickthe Routing tab. ‘Verify the IP address for the VMkemel defiult gateway that you recorded in “Preparing for the lab.” the default gateway is not defined cr is incorrect, enter the BP address that you recorded in “Preparing for the lab.” 5. Click OK to close the DNS and Routing Configuration dislog box. Task 4: Configure an ESXi host as an NTP client In this task, you will configure the Network Time Protocol client on the ESXi host to synchronize its, time with an NTP server. Studeats should do the steps in this task individually. 1. Select your ESXi host in the inventory and click te Configurationtab. 2. In the Software panel, click Time Configuration. View the current settings, whith show that, the NIP client is stopped and that no NTP server is defined. Click Properties. The Time Configuration dialog boxis displayed. 4, Inthe Time Configuration dialog box, perform the following actions. Field/Setting Action Date and Time Recond the date and 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 Jn the NTP Daemon Options dialog box, click Add, Enter the NTP servername or IP address that you recorded in “Preparing for the lab.” Click OK w close the Add NTP Server window. Select the check box Restart NTP service to apply changes and click OK. Click OK to exit the Time Configuration dialog box. 6. Verify that the Time Configuration pant lists the NTP server that you added and thatthe NTP (Client is listed as Running, Ifthe status of the NTP Client has not changed to Running, go back to Properties dialog box andclick Options. In the General panel, click Start to start the NTP service. Task 5: Configure an ESXi host to use the directory services In thistask, you will configure your ESXi host to communicate with AD services. Students siould do the steps in this ask individually. 1. Select your ESXi host in the inventory and click the Configuration tab 2. Under Software, click the Authentication Services link 3. Click the Properties link. 4. Inthe Directory Services Configuration dislog box. perform the following actions FieldSetting Action User Directory Service Select Active Directoy Domain Settings Enter the AD domain name that yourecorded in “Preparing for the lab” and click Join Domain. Join Domain Enter your domain administrator user name (without ‘he domain neme)and the domain administrator password that you recorded in “Preparing for the lab.” Click Join Domain, 5. Click OK to close the Directory Services Configuration dialog box. 6. Verify the entries in A uthentication Services Settings. 7. Leavethe vSphere Client open for thenext lab. Lab3 Working with Virtual Machines Objective: Create and prepare virtual machines for use In this lab, you will perform the following tasks 4. Create o virtual machine 2. Install a guest operating system in « virtual machine. 3. Identify viral machine's disk formatand usage statistics. 4. Install VMuare Tools on a vienal machine installed with a Windows operating system 5. Prepare your virtual machine for upcoming labs. Preparing for the lab Revord the following infomation: ‘Your VMware vSphere® ESXi™ host name ESXi host root password ‘Viral machine datastorename Guest operating system ISO images location ‘Virwal machine Administrator password Lab 3 Working with Virtual Machines " Task 1: Create a tual machine In this task, you will 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 ESXi host. Use the root user name and the password that you recorded in “Preparing for the lab.” 2. In the navigation bar of vSphere Client, click Home and click the Inventory icon, 3. Right-clisk your ESXihostin the inventory and select New Virtual Machine, 4. When prompted by the Create New Virtual Machine wizard, perform the following actions Field/Setting Configuration Aeti Click Custom and click Next. ‘Name (of virtual machine) ‘Name the new vitual machine withyour first name, followed by themumber of your ESXi hostanda sequence number, starting with 1 For example, Greg has an ESXi host named g00se06, Thename ofhis virtual machine is Grex06-1 Click Next. Datastore Select the virtual machine datastore whose name you recorded in “Preparing for the lab” andelick Next. ‘Virtual Machine Version ‘Keep the default snd click Next. Guest Operating System Select the guest operating system that you seconded in “Preparing for the lab” and click Next ‘Number of virtual processors Keep the default end click Next ‘Memory ‘To ensure that you aré configuring 384MB of memory (not GB), select MB from the drop- down menu and type 384 in the space provided. Click Next ‘How many NICsdo you want to connect 2 Keep the deftult value of 1 Lab 3 Working with Virual Mactines eo erneoe " 12, Field/Setting Action NIC 1 Network Keep the default NIC 1 Adapter Keep the default Connect at Power On Leave selested and lick 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 (store with the virtual machine) 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 Virual Machine Properties diclog box is displayed. In the Hardware list, click New CD/DVD (adding). Click Datastore ISO file. Click Browse and go to the ISO images location that you recorded in “Preparing for the lsb.”” Click Open Select the ISO image that comesponds to the guest operating system that you selected during virtual machine creation and click OK. Inthe Virwal Machine Properties dialog box, select the Connect at power on check box. Click Finish to save the changes, Expand the inventory and verify that the new virtual machine is displayed in the iaventory panel. 13. In the inventory panel, select the virtual machine that you created and click the Summary tab. Record the following information. 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 will monitor an unattended installation of a Windows guest operating system in the virtual machine from the virtual machine console. Students should do the stepsin this task individually. 4. Onthe 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 instelation might ‘ake up w 25 minutes. 3. After the installation has completed, click Connect/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. Leave the virtual machine console open. Task 3: Identify a virtual machine’s disk format and usage statistics In this task, you will identify the virtual machine disk (VMDK) type. Students should do the steps in this task individually. 1. Right-click the ##-1 virtual machine in the inventory and select Edit Settings. 2. In the Hardware list, select Hard disk 1 3. Under Disk Provisioning, identity the VMDK type. What type of VMDK has been provisioned? 4 Lab 3 Working with Virtual Machines 4, Click Cancel to close the Virtual Machines Properties dialog box. 5. Click the ##1 virtual machine and click the Summary tab. 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 (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 ‘imereases dynamically as the virtual machine is used. Task 4: Install VMware Tools on a virtual machine installed with a Windows operating system In this task, you will install VMware® Tools™ on the guest operating system. Students should do the steps in this task individually. 1. 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.” 2. Install VMware Tools into the Windows guest operating, system a. In themenu bar of the virtusl machine console, select VM > Guest > Install Upgrade VMware Took. TIP If you are unable to move the pointer to the menu bar, press Crl--Altto release the pointer fom the virtual machine console. b. Reed the waming message that is displayed and click OK. Click anywhere in the virmal machine console window to give mouse focus to your virtual machine. Lab 3. Working with Virtual Machines 15 4d. The VMware Tools installation wizard starts. On the welcome page, click Next. On the Setup Type page, leave Typical selected and click Next 1. Click Install wo start the installation. Over the span of several seconds, several windows are displayed 3. IFyousee a pop-up window informing you that hardware acceleration is not enabled, click Yes and do steps 4a~4e. If you do not ee the pop-up window, hardware acceleration is already enabled. Go to step 5. a. Inthe Display Properties dialog box, click the Settings tab and click the Advanced button. ‘You might have to move the VMware Tools Installation wizanl wo 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 4. Click Finish to exit the VMware Tools Installation wizard, 5. When prompted t restartthe virtual machine, click Yes. 6. Afterthe virtual machine finishes rebooting, log in as user Administrator. Leave the virtual machine console open. Task 5: Prepare your virtual machine for upcoming labs In this task, you will connect the ClassFiles-vSphere iso image file and copy programsto ‘your virtual machine’s desktop. This ISO image contains files needed for future labs. You will also tum off automatic updates to prevent your virtual disk ffom filling up with unnecessary files ‘Students should do the steps in this tax individually. 4. Connect clase Files-vephere. iso to your virtual machine's CD-ROM drive: a. Inthe 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. o. 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) 3. Copy the following files from the CD-ROM drive (D:) to the virtual machine's desktop: * cpubusy.vbs * jometer.exe 16 Lab 3 Working with Virtual Machines ‘To copy files from the CD-ROM to the desktop, right-click the file onthe CD-ROM and select Copy. Right-click the desktop and select Paste. ‘You will use these files in a later lab. 4, Extract the files from the executable extpart . exe (to be used in a later lab): a. Onthe CD-ROM, double-click the file extpart exe b. Inthe WinZip Self Extractordialog box, click Unzip. Two files are unzipped w the path C: \dell \ExtPart. Click OK. & Click Closeto close the WinZip Self Extractor dialog box. 5. Disconnect fromthe cl.asafiles-vspheve .ico 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 Drivel c. Deselect the check boxes Connected and Connect at power on. Click OK. 6. Tum offautomatic updates in your Windows guest operating system: The following steps apply to the Windows 2003 operating system, These steps help prevent the virtual machine's disk from filling up with unnecessary files. A virtual machine with, insufficient disk space will affect fiture leb exercises a. From the virtual machine’s desktop, click Start > Settings > Control Panel. b. Right-click System and select Open. c. Click the Automatic Updates tab. d. Select Turn Off Automatic Updates and click OK. ©. Close the virtual machine console. 7. Log out of your vSphere Client session (File > Exit.) Lab 3 Working with Virtual Machines 7 Lab 4 Using VMware vCenter Server Objective: Perform basic vCenter Server inventory operations In this lab, you will perform the following tasks: 1. Configure the VCVA for first use. Install vSphere license keys. Create a vCenter Server inventory datacenter object. Create Center Server inventory folder objects. Add your ESXi host to the vCenter Server inventory. Use the web console to configure the vCenter Server Appliance to use Directory Services. Neoeen Use the vSphere Web Client to log in to the vCenter Server Appliance. Preparing for the lab Record the following informstion: ‘VMware® vCenter™ Server Appliance™ name Center Server Appliance user name Center Server Appliance password ‘Your VMware vSphee® ESXi™ host name Lab4 Using VMware vCenter Server 19 ESXi host roat password Enterprise Plus license key ‘vCenter Server license key ‘Windows Domain Administrator user name ‘Windows Domain Administrator password Task 1: Configure the VCVA for first use In this task, you will connectto the vCenter Server Appliance management page and configure the ‘appliance. Students should do the steps in thistask as a team from a single student desktop, 1. Open a web browserandconnect w the VCVA appliance management page at ht tps: // eVCVA_appliance_name>:5420/ 2. Ifyou get a waming thatthe site security certificate is not trusted, proceed anyway to the administration page. 3. Onthe VCVA Login page, log in as root with the password you recorded in “Preparing for the Jab” and click Login. a. Select Install this certificate and do not display security warnings for “” to prevent this warning from being displayed in the future b. Click Ignore to proceed with the connection. & Click OK when the VMware Evaluation Notice dialog box is displayed. On the vCenter Server Setup page, click A ccept license Agreement and click Next On the Configure Options page, click Configure with default settings and click Next. On the Review configuretion page, click Start Once the setup is complete, click Close. Px Pa Close the web browser and retura to the client desktop. Task 2: Install vSphere license keys Tn this task, you will install license keys to unlock advanced features of VMware vSphere® 5X Students should do the steps in this task asa team from a single student desktop 4. Start the VMware vSphere® Client™ Use itto log in to your vCenter Server Appliance with the username and password that you recorded in “Preparng for the lab.” 20 Lab 4 Using VMware vCenter Server 2. Select Home > Administration > Licensing. The Licensing pane is displayed. [FE aT aay oe oo orn 3. In the Product list, expand Evaluation Mode and expand No License Key. Your yCenter Server Appliance is in the list The Reporting tab enables you to monitor VRAM use. 4. Click the Manage vSphere Licenses link at the top of the tab. ‘When prompted by the Manage Sphere Licenses wizard, perform the following astions. Id/Setting Action 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 forthe lab.”) Include the hyphens: XXXXX-XXXXK-XXXXX-XXAKX- XXXXX, (The text box forces you to enter a hyphen every five characters) In Enter optional label for new license keys, type VMware ‘Training Licenses. Click Add License Keys Click Next Lab 4 Using VMware vCenter Server 2 Field/Setting Action Assign Licenses Click the vCenter Server tab. In the vCenter Server tab, your vCenter Server Appliance is an unlicensed asset. The Product column on the right shows that your vCenter Server Appliance has no license key. Assign the license to your vCenter Server appliance by clicking the 25-character vCemter Server 5 Standard license key. Click Next RemoveLicense Keys Click Next Confirm Changes Click Finish. 6. View the Product report in the Licensing pane. Task 3: Create a vCenter Server inventory datacenter object In this task, you willadd a detacemter object to the vCenter Server inventory. Students should do the steps in this task as a team from a single student desktop. 1. Select Home > Inventory > Hosts and Clusters 2. Click the New Datacenter icon above your vCenter Server Appliance name. 3. When the datacenter object is displayed in the inventory, type Training for the datacenter 22 Lab 4 Using VAtware vCenter Server Task 4: Create vCenter Server inventory folder objects In this task, you will add folder objects to the vCenter Server inventory Students should do the steps in this task as a team from a single student desktop. 4. Select Home > Inventory > Hosts and Clusters, 2. Ensure that the Training datacenter is highlighted and click the New Folder icon above your ‘vCenter Server Appliance name. oc Type Lab Servers forthe folder name. Select Home > Inventory > VMs and Templates, Expand the inventory. oa ee Click the Training datacenter and click the New Folder icon, a 7. Type LabVMs for the folder name. 8. Click the Training datacenter and click the New Folder icon. Type Templates forthe name of this secend folder. How does the list of inventory objects differ between the Hosts and Clusters view and the VMs and Templates view? Lab 4 Using VMware vCenter Server 23 Task 5: Add your ESXi host to the vCenter Server inventory In this task, you will 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. 4. Select Home > Inventory > Hosts and Clusters. Click your Lab Servers folder and click the Add Host icon above your vCenter Server Appliance name, a 2. When prompted by the Add Host wizard, perform the following actions. Username Password Host Summary Assign License Lockdown Mode Virtual Machine Location Ready to Complete Action Enter the fully qualified domain name of your ESXi host, which you recorded in “Preparing for the lab.” Type root. Enter the ESXi host root password that you recorded in “Preparing for the lab” ‘When you clickNext, a security alertis displayed, stating that vCenter Server is undble to verify the authenticity of the specified host. Click Yes to proceed ‘Verify the information and click Next. Select the VMware vSphere 5 Enterprise Plus license and click Next. Ignore any license wamings that might be displayed. Click Next ‘Do not enable lockdown mode. Click Next. Expand the Training datacenter and click the LabVMs folder. Click Next. Review the configuration summary and click Fis Lab 4 Using VMware vCenter Server 3. In the Recent Tasks pane at the bottom of the vSphere Client, monitor the progress of the task, After the task is finished, expand the Lab Servers folder and verify that your ESXi host is displayed in the inventory. 4. 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. 6. Select Home > Inventory > VMs and Templates. 7. Click the LabVMs folder. You should see your virtual machine. Remain logged in and minimize the vSphere Client open for the next lab. Task 6: Use the web console to configure the vCenter Server Appliance to use Directory Services In this task, you will configure the vCenter Server Appliance t use Directory Services, Students should do the steps in this task as a team from a single student desktop. 1. On the desktop of your Desktop system, double-click Google Chrome. 2. Inthe Google Chrome browser, navigateto the URL https :// 5480. 3. Log in to your vCemter Server Appliance with the user name and password that you recorded in “Preparing fr the lab” On the vCenter Server tb, click Authentication, On the Authentication page, mack the Active Directory Enabled check box. In the Domain text field, type vclaes. 1ocal Neos Enter the user and password text fields, type the Windows Domain username and password that you recorded in “Preparing for the lab.” 8. Click Save Settings. Atthe top of the page, under AD Authentication Settings the operation is confirmed by green text 9. Atthe top of the Google Chrome browser, click the System tab. 10. Click Reboot. Lab4 Using VMware vCenter Server 25 11. On the System Reboot confirmation, click Reboot The appliance takes several minutes to reboot. The System Reboot dialog box disappears after the reboot is nese completion. 12. Login to your vCemter Server Appliance with the user name and password that you recorded in “Preparing for the lab.” 43. On the Summary page, in the Services window, monitor the services listed until four of the five services are listed as Running. The vSphere Auto Deploy servie is notstaxted in this lab. 14, Click Logout user root 16. Leave the browser open for the next task. Task 7: Use the vSphere Web Client to log in to the vCenter Server Appliance {In this task, vou log in to the vSphere Web Client and view general information about your vCenter Server Appliance environment. Students should do the steps in this task individually 4. Inthe Google Chrome browser, navigate to the URL https: // :3443 /vsphere-client/ 2. Login to your vCenter Server Appliance with the vCenter Server Appliance user name and password that you recorded in “Preparing for the lab.” 3. In the nvigation bar on the left, click vCenter and select Datacenters under Inventory onthe left navigation pane. 4, Whatis the name of the datacenter listed? 5. In the navigation bar on the leff, click Training to view the list of top level objects in the night pane, 6. When finished reviewing the list of objects, close the Google Chrome browser. 26 Lab 4 Using VAtware vCenter Server Lab5 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 « standard virmal switch with a virtual machine port group. 3. Attach your virtual machine to a virtual switch port group. Prepai Record the following information: g for the lab ‘VMware® vCemter Server™ system name ‘vCenter Server user aame ‘vCenter Server password ‘ymnnies to use for the Production virtual switch ‘Virtual machine Administrator password Lab5 Standard Virtual Switches Task 1: View the current standard virtual switch configuration In this task, you will use the VMware vSphere® Client™'to view the current network configuration, ‘Students should do the steps in this task individually. 4. If the vSphere Client is not already active, use it to log into your vCenter Server system with the rootuser name and password that you recorded in “Preparing for the lab.” 2. Select Home > Inventory > Hosts and Clusters. 3. Inthe vCenter Server inventory, select your VMware vSphere® 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 VMkernel port named Management Network and a virtual machine port group named VM Nawork. You see ¢ virtual machine connected to VM Network. Task 2: Create a standard virtual switch with a virtual machine port group In this task, you will create a standard virtual switch for virtual machine networking and createa portgroup named Production. Students should do the steps in this task individually. 4. Click the Add Networking link. 2. When promptedby the Add Networking wizand, perform the following actions. Field/Setting Action Connection Type Virtual Machine and click Next Network Access Select Create a vSphere standard switch. Select the vmnie check boxes, which you recorded ia “Preparing for the lab.” Click Next Connection Settings In Network Label, type Production. Keep the default for the VLANID and click Next, Ready to Complete Click Finish, 3. Verify that the Production port group is displayed in the Networking pane. 28 Lab5 Standard Virtual Switches Task 3: Attach your ual machine to a virtual switch port group In this task, you will verify that your virtual machine can access the Web using the Production port group. Students should do the steps in this task individually. 4 oak en Lab Standard Virtual Switches Right-click yournamed virtual machine in the inventory and select Edit Settings Click Network Adapter 1 In the Network Connection drop-down menu, select Production, Verify that both the Connected and the Connect at power on check boxes are selected. Click OK to dismiss the Edit Setings window. Verify that your virtual machine can access the Web: a. Renew the virtual machine IP address: + Rightolick the vimal machine in the vCenter Server inventory ad select Open Console. + Login with Administrator and the virtual machine Administrator password that you specified in “Preparing for lab” and open a Command Prompt window (Start > Run), + Type ond. + At the command prompt, type ipconfig /release and press the Enter key. + Type ipconfig /renew andpress the Enter key. b. In Internet Explorer, go to hip: www.vmwaré.com. &. Exitlntemet Explore . Close the virtual machine's console. Leave the vSphere Client open for the next lab. Lab6é Accessing ISCSI Storage Objective: Configure access to an iSCSI and NFS datastore In this lab, you will perform the following tasks: 1. Adda VMkemel por group to a standard virtual switch. 2. Configure the iSCSI software adapter. Preparing for the lab Record the following information: ‘VMware® vCemter Server™ system name ‘vCenter Server user name ‘vCenter Server password ‘VMkernel port IP adiress/subnet mask ‘VMkernel default gateway ‘Your VMware vSphere® ESXi™ iSCSI qualified name (IQN) Name of iSCSI targe: Lab6 Accessing ISCSI Storage 1 Task 1: Add a VMkernel port group to a standard virtual switch In thistask, you will create a VMkernel port group named IP storage on vSwitch0. Students should do the steps in this task individually. 1. Ifthe VMware ySphere® Client™ is not already active, use itto log in to your vCenter Server system with the root user name and password that you recorded in “Preparing for the lab.” 2. Select Home > Inventory> Hosts and Clusters 3. Inthe vCenter Server inventory, select your ESXi host and click the Configuration tab. 4, In the Hardware list, click Networking. You sce that a standard virtual switch was created when this host was installed. 5. Click the Properties link for vSwitch0. 6. In the Ports tab (the default view in the vSwitch0 Properties window), click Add. 7. When the Add Nework wizard starts, perfomm the following actions, Field/Setting Action Connection Type Select VMkernel and click Next Port Group Properties, ‘Type IP Storage for the NetworkLabel. Keep the defeult for the VLAN ID. Use this port group for vMotion _ Leave deselected, Use this port group for Fault Leave deselected. Tolerance logging Use this port group for Leave deselected. management traffic Click Next Use the following IP settings Enter the VMkemel port IP address end subnet mask that you recorded in “Preparing for the lab.” ‘Verify thatthe VMkernel default gateway IP address correct, Click Next Summary Click Finish 8 Click Close in the vSwitchO Properties window. 32 Lab 6 Accessing ISCSI Storage Task 2: Configure the iSCSI software adapter In this task, you will enable the iSCSI software initiater, configure dynamic discovery, and display the iSCSI sofware adapter properties. Students should do the steps in this task individually. 4. Select Home > Inventory > Hosts and Clusters. in the Hardware list, select Storage Adapters. Click the Add ink Click Add Software iSCSI Adapter. Click OK when the warning dialog box is displayed. Select iSCSI Software Adapter in the Device column. Click the Properties link in the Details pane. The iSCSI Initiator Properties dialog box is displayed. 8 Verify that the General tab displays the iSCSI initiator name and e status of Enabled. Leave the Properties dialog box open. Ifthe IQN does not match what you recorded in “Preparing forthe lab,” click the Configure button. Change the IQN to match the value in “Preparing for the lab.” Neoeen 9. Click the Dynamic Discovery tab and click Add. 10. Enter the name or IP address of the iSCSI target that you recorded in “Preparing for the lab” 11. Leave the port set to 3260 and click OK. 12. Monitor the Recent Tasks pane and wait for the task to complete. 13. Verify that the iSCSI target's name and port number are listed in the Send Targets panel and click Close. 14. ‘When you are prompted to rescan the host bus adspter, click Yes. Wait for the rescen task t complete. 1, Select the iSCSI software adapter from the Storage Adapters list and view the Details pane. Record the values for the following fields w verify that a logical unit number was found, Fieldisetting Value Connected targets Devices Paths Lab 6 Accessing ISCSI Storage 33 Lab7 Accessing IP Storage Objective: Configure access to an iSCSI and NFS datastore In this lab, you will perform the following tasks: 1. Configue access to NFS datastores. 2. View iSCSI and NFS storage information Preparing for the lab ‘Record the following infomation: ‘VMware® vConter Server™ system name ‘vCenter Server user name ‘vCenter Server password NES server host name Path to your NFS datastore Lab7 Accessing IP Storage 35 Task 1: Configure access to NFS datastores In this task, you will mount an NFS detastore with read/write permissions. Students shoald do the stepsin 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 wizari, perform the following actions Field/Setting Action Storage Type Select Network File System and click Next. Server Enter the NFS server hostname or IP address that you recorded ia “Prepering forthe lab.” Folder Enter the path to the NFS datastore that you recorded in “Preparing for the lab.” ‘Mount NFS read only Leave the box unselected. You want to mount the NFS detastore as read write. Datastore name ‘Type NFS-. For example, NFS-Mike. Click Next Ready to Complete Click Finish. Task 2: w iSCSI and NFS storage information In this task, you will view information about your iSCSI and NFS storage and you will view the contents of the NFS datastore, Students should do the steps in this task indivilually. 1. Click the Storage Views tab of your ESXi host 2. Inthe list of reports select Show all SCSI Paths. Verify that the iSCSI adapter that you added. ‘earlier in the list. You might have to click the Update link in the upper-right comer. show all ¥etual Machines Show all Datastores Show all SCSI Wolumes (LUNs) Show all SCSI Adapters Show ai I Targets (Array Ports) Show all MAS Mounts. 3. Select Show all SCSI Targets (Array Ports) from the list of reports. View information ebout youriSCSI storage 4. Select Show all NAS Mounts from the list of reports. View information about your NFS storage Leave the vSphere Client open for the next lab. Lab8& 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 2 VMFS datastore. (Create a VMES datastore Expand a VMFS datastore to consume unused space on a LUN. Remove a VMES datastore. oak en Extend a VMFS datastore. Preparing for the lab Record the following information: ‘VMware® vCemter Server™ system name ‘vCenter Server root password Shared storage type used in this lab environment ‘Your local dtastore First assigned targevLUN number Second assigned targevLUN number Lab8 Managing VMware vSphere VMFS. 39 Task 1: Review your shared storage configuration In this task, you will learn how to display information about the shared storage in yourlab environment. Students should do the steps in this task individually. 4. If the VMware vSphere® Client™ is not already active, use it to log in to your vConter 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 vSphere® 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 nemed SCSI adapter type column, verify that e 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 that are available to your host. Task 2: Change the name of a VMFS datastore In this task, you will change the name ofa VMware Sphere® VMFS datastore. Students should do the steps in this task individually. 4. In the View listin the Storage Views tab, select Show all Datastores. View the information for each datastore, such as the capacity and free space 2. Click your local datastore, whost name you recorded in “Preparing for the lab” to go to the Datastores inventory view. The Show all Virtual Machines reports displayed. This report lists all virtual machines thatreside on this datastore 3. Inthe inventory, right-click your local datastore and select Rename. 4, Type Local -E8xi##, where ## is the number of your ESXi host. For example, for an ESXi hhost that ends in 02, the new name of the datastore is Local-ESXi02. 5. Verify that the new datastore name is displayed in the inventory. Task 3: Createa VMFS datastore In this task, you will create aprivate VMFS datastore on each logical unit mumber (LUN) that is assigned to you. “Private” means that this datastore isaccessible only by yourESXi host. Students should do the steps in this task individually. 4. Select Home > Inventory > Datastoresand Datastore Clusters, right-click the Training datacenter, and select Add Datastore. 40 Lab8 Managing VMware vSphere VMFS 2. When prompted by the Add Storage wizard, perform the following actions. Field/Setting Action Select host ‘Expand the inventory hierarchy and click your ESXi host. Click Next. Storage Type Select Dis/LUN and click Next. Select Disk/LUN Expand the Path ID column so thatit shows the LUN numbers, Click your first assigned targev LUN number, which you recorded in “Preparing forthe lab.” Click Next File System Version ‘Keep the default of VMFS-S and click Next Current Disk Layout Review the current disk layout and click Next Enter adatastore name ‘Type Privatevirs-#i, where ##is the target ‘number of your first assigned LUN that you recorded in“Preparing for the lab.” For example, if thetarget number of your assigned LUN ID is 1, the datastore name would be PrivateVMFS-01 Click Next Formatting Keep the default and click Next Ready t Complete (Click Finish. 3. Return to the Datastores inventory view to create a second datastore. Right-click the Training, datacenter and select Add Datastore. Lab8 Managing VMware vSphere VMFS. a 4. When prompted by the Add Storage wizard, perform the following actions ep xee 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 columnso that it shows the target ‘and LUN number. Click your second assigned target LUN number, which you recorded 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 Privatevirs-#i, where ##is the target snumber of your second assigned LUN, which you recorded in “Preparing for the lab.” For example, ifthe target number of your assigned LUND is 2, the datastore name would be Private VMFS-02. Click Next Formatting Click Custom Space Setting and reduce the LUN size by IGB. For example, if the current disk size is 10GB, change the size 10 9GB. (You increase this VMES datastore to its maximum size in task 4.) (Click Next Ready to Complete Click Finish. “Monitor the progress in the Recent Tasks pane and wait for the task to complete, ‘Verify that each new VMFS datastore is displayed in the datastore inventory. Jn the dasastore inventory, click the second PrivateVMFS.## datastore that you created. Click the Summary tab end record the value for Capacity Lab 8 Managing VMware vSohere VMFS. Task 4: Expand a VMFS datastore to consume unused space on a LUN In this task, you will increase the size of a VMFS datestore to consume the remaining space on the LUN. Students should do the steps in this task individually. 4. Click the Configuration tab of the second PrivateVMFS-## datastore that you created in task 3. 2. Click the Properties link in the Datastore Details pane. ‘Examine the information reported in the Extent Device pane. Record the following values: Size of the LUNused by the Private VMFS## datastore: Size of he VMFS dataswore in the datastore: Are these two values the same? ‘Why are these two values the same (or different)? 4, In the Properties dialog box, click Increase. ‘When prompted by the Increase Datastore Capacity wizard, perform the following actions Field/Setting Action Extent Device Select your second assigned LUN that you recorded in “Preparing for the lab.” ThisL UN should read Yes in the Expandable column, Click Next. Current Disk Layout Review the current disk layout. Notice the fiee 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 formation for sccuracy and click Finish. 6. Afterthe task is completed, review the datastore Properties dialog box and verify that the datastore size was increased to the maxirmum capacity (less space for system overhead). 7. Click Close to close the datastore Properties dialog box. Lab8 Managing VMware vSphere VMFS. 43 Task 5: Remove a VMFS datastore In this task, you will remove ¢ VMFS datstore, Students should do the steps in this task individually. 4. inthe Datastoresinventory, right-click your PrivateVMFS-## datastore, where ## is the second LUN ID that is assigned to you. 2. Click Delete. 3. Click Yes to confirm datastore deletion. 4. Verify that the datastore was removed fiom the inventory. Task 6: Extenda VMFS datastore {In this task, you will increase the size of a VMFS datastore by adding an extent Students should do the steps in this task individually. 4. Inthe Detastore inventory, click the Private VMFS-## datastore, where ## is the number of your first assigned LUN ID. 2. Click the Configuration tab. 3. inthe Datastore Details pane, click the Properties link. The Properties dislog boxis displeyed. Record the size ofthe total capacity of the VMFS datastore here: 4. Click Increase. ‘When prompted by the Increase Datastore Capacity wizard, perform the following actions. Field/Setting Action Extent Device ‘Expand the Path ID column so that it shows the LUN number. Click your second assigned LUN, ‘Youreconded this LUN number in “Preparing for the lab.” Click Next Current Disk Layout Review the current disk layout. Click Next. Capacit Leave the Maximize capacity check box selected. Click Next Ready to Complete (Click Finish. 44 Lab 8 Managing VMware vSohere VMFS. 6. 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. Itmightbe necessary to click Refresh in the Properties dialog box. Close the Properties dialog box. 8 In the Datastore Details pane, record thenew value for Total Formatted Capaci ‘The value should differ from the value recorded in step 3 9. Rename this datestore VHF'S-< student _aumbex > where student aumber is the number of your assigned ESXi host Leave the vSphere Client open for the next lab Lab8 Managing VMware vSphere VMFS 45 Lab 9 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. Copy Sysprep files to the vCenter Serverinstance Create a template Create customization specifications 2 3 4. Deploy a virtual machine from a template. 5. Clone a virmal machine that is powered on. Preparing for the lab Record the following informetion: ‘VMware® vCemter Server™ system name ‘vCenter Server Administrator password Location of Windows Sysprep files Sysprep files target folder Windows product key Time zone Lab9 Using Templates and Clones aT ‘VMware vSphere® VMFS datastore for virtual ‘machines ‘Virtual machine Administrator password Task 1: Copy Sysprep files to the vCenter Server instance In this task, you will configure guest operating system customization on your vCenter Server system, Students should do the steps in this task as a team from a single student desktop. 4. On the desktop of your student virtual machine, double-click WinSCP. Double click Upload sysprep files to the vCVA. Ifyou receive a security warning, click Update toupdate the cemificate In the User name field, type root and click OK. Enter the password you recorded in “Preparing for the lab” and click OK. Copy all ofthe files from the Sysprep folderon the desktop to the VCVA sysprep/svr2003 rectory. ep ok en Once the file copy is complete, select Disconnect from the Session menu. Close the WinSCP pro gram. Task 2: Create a template In this task, you will create a template by converting a virtual machine to a template. Students should do the steps in this task individually. 1. Ifthe VMware vSphere® Client™ is not elready sctive, use it to log in to your vCenter Server system, Login as user vot and enter thepassword that you reconled in “Preparing for the kb” 2. Inthe vSphere Client, select Home > Inventory > VMs and Templates. ‘Expand yourLabVMs folder. In this folder, you have a virtual machine named ##1. 4. Right-click the virtual machine and select Power > Shut Down Guest 5. Afferthe virtual machinehas shut down, right-click the virtual machine and select Template > Convert to Template. 6. Drag ##-1 virtual machine template from your LabVMs folder to your Templates folder. 7. Right-click the virtual machine template and click Rename. Type Template to change the template name. 48 Lab9 Using Templates and Clones Task 3: Create customization specifications In this task, you will create a customization specification for template deployment. Students should do the steps in this task individually. 1. Inthe vSphere Client, click Home, 2. In the Management panel, click Customization Specifications Manager. 3. Click New. Fiold/setting Action Target Virtual Machine OS Select Windows, Name ‘Type -CustomSpec. Click Next. Registration Inform: ‘Type VMware Student for Name and VMware for Organization. Click Next Computer Name (Click Use the virtual machine name and click Next. Product Key Enter the product key that you recorded in “Preparing for the lab” and leave all other fields at their defauk value. Click Next Administrator Password Re-enter the vCenter Server Administrator password that you recorded in “Preparing for the lab.” Re-enter the password in the Confirm password field and click Next. Time Zone Sekkct the time zone that you recorded in “Preparing forthe lab” and click Next Run Once Leave the default and click Next. Network Leave the defiult and click Next Workgroup or Domain Leave the defiult and click Next. Operating System Options Leave the defiult and click Next Ready to Complete Click Finish, 4, Verify that your customization specification was created successfully. Lab9 Using Templates and Clones 49 Task 4: Deploy a virtual machine from a template Tn this task, you will deploy a vietual machine ftom your template and allow vCenter Server to customize the guest operating system. Students should do the steps in this task individually. 4. Inthe vSphere Client, click Home 2. Inthe Inventory panel, select VMs and Templates. Right-click yoar named template and select Deploy Virtual Machine from this Template. 3. When prompted by the Deploy Template wizard, perform the following actions Field/Setting Action Name Name thenew virtual michine with your first name, followed by the number of your VMware vSphere® ESXi host and the sequence number “2”. For example, if Greg's ESXi host is named ESXi01, the name of this virtual machine is Greg01-2. Inventory Location Select your LabVMSs 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 Select your VMFS datastore for virtual machines, which for the virtual machine files you recorded in “Preparing for the lab,” and click Next. Guest Customization Select Power on this virtual machine after creation. Select Customize using an existing customization specification Select CustomSpee. Do not select the check box Usethe Customization Wizard to temporarily adjust the specification before deployment. Click Next. ‘Ready to Complete Do nat select the check box Edit virtual hardware (Experimental) Click Fi h. 50 Lab 9 Using Templates and Clones 4. Repeat steps 2 and 3 andcreate another virtual machine. Name this virtual machine t##3, 5. In the Recent Tasks pane at the bottom of the vSphere Client, monitor the progress of the ‘template deployment task. 6. Afteryou have created these virtual machines, open a virtual machine console to each of your new virtual machines 7. Verify that each virmal machine was created properly. Check the following: + The virmal machine booted up successfully. Wait at least two mimtes for Sysprep to complete its tasks, which includes a reboot of the system. + You can login 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. 8. Close the virmalmachine console. Do not shut down the virtual machine. Task 5: Clone a virtual machine that is powered on ‘In this task, you will clone a running virtual machine. Students should do the steps in this task individually. 1. Inthe Leb VMs folder, right-click the ##-2 virtual machine and select Clone. 2. When prompted by the Clone Virtual Mathine wizard, perform the following actions ield/Setting Action Name ‘Name the new virtual machine Hot Clone, followed by the number of your ESXi host. For ‘example, Greg has an ESXi host named ESXi01 ‘The name of this second virtual machineis Hot- Clone Inventory Location Select your LabVMSs 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 defaut. Lab9 Using Templates and Clones 51 Field/Setting Action Select a destination storage for the template files Select your VMFS datastore for virmal machines, which you recorded in “Preparing for the lab.” and click Next Guest Customization Option Select Power on this virtual machine after creation. Select Customize using an existing customization specification Select CustomSpec and click Next Ready to Complete lick Finish. ‘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 forthe next lab. Lab 9 Using Templates and Clones Lab 10 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 sizeof a VMDK file. Adjust memory allocation on a virtual machine. Rename a virtual machine in the vCenter Server inventory 2 3, 4, Adda maw LUN«o 4 virtual machine and verify that the guest operating system can see it 5. Expand a thin-provisioned virmal disk Preparing for the lab Record the following information: ‘VMware® vCenter Server™ system name ‘vCenter Server Administrator password ‘Virtual machine Administrator password ‘Your raw logical unit number (LUN) ID Lab10 Modifying a Virtual Machine 53, Task 1: Increase the size of a VMDK file In this task, you will increase the size of a virtual machine’s C: drive and configure the guest operiting system to ste the additional space. Students should do the steps in this task individually. 4. Ifthe VMware ySphere® Client™ is not already active, use it to log in to your vCenter Server system as user root, with the password thet you recorded in “Preparing for the lab.” 2. Select Home > Inventory > VMs and Templates 3. Verify that your Hot-Clone## virmal machine is powered on. If'it is not powered on, power it on now. 4, Right-click your Hot-Clone## virtual machine in the inventory and select Edit Settings. The Virtual Machine Properties dialog box is displayed. 5. In the Hardware list, select Hard Disk 1. 6. a Provisioned type 3GR and click OK. 7. Increase the size of the disk from within the guest operating system: a. Inthe inventory, right click the Hot-Clone virtual machine and select Open Console. b. Login to 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 deskwp, double-click My Computer. Record the value for the total size ofthe C: drive. d. Use Windows Explorer to open the folder C: \de11\Ext Part folder e. Double-click the extpart .exe file. 1. In Volume to extend, type C: g. In Size to expand the volume, type 1024 (to extend the volume by 1,024MB), h. On the virmél machine desktop, double-clickMy 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 7¢?, i. Close the virtual machine’s console. 54 Lab 10 Modifying a Virtual Machine Task 2: Adjust memory allocation on a virtual machine In this task, you will increase the virtual machine's memory: Students should do the steps in this task: individually. 1. Right-click yourHot-Clone## virtual machine in the inventory and select Power > Shut Down. Guest. Click Yes to confirm the shutdown, Afterthe 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 upperright of the Virtual Machines Properties dialog box Immedietely to the left ofthe drop-down menu, type 512. 7. Click OK, os on 2 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 tack, you will change the name ofa virmal machine in the inventory. Students should dothe stepsin this task individually. 1. Inthe inventory, right-click your Hot-Clone## virtual machine and select Rename. 2, Rename the virtual machine w ##4, where ##s the number of your VMware ESXi™thost. For example, if Greg has an host named ESXi01. The name of his virtual machine ‘8 Greg0l-4. Renaming a virtual machine in the inventory does not rename the virtual machine's folder or the files in the virml machine's folder. Lab10 Modifying a Virtual Machine 55 Add a raw LUN to a virtual machine and verify that the guest g system can see it In this task, you will add a raw LUN toa virtual machine that is powered on. You will verify thatthe ‘guest operating system can see the new virtual disk, Students should dothe steps in this task individually. 1. Addaraw LUN to the ##-2 virtual machine: a. Inthe inventory, rightclick the ##2 virtual machine and select Edit Settings. The Virtual Machine Properties dialog box is displayed. b. Inthe Virtual Machine Properties dialog box, click Add. When prompted by the Add Hardware wizard, perform the following actions, Idisetting 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 forthe lab.” Select Datastore Keep the default. Compatibility Mode Select Virtual Advanced Options Leave the defaults Ready to Complete Click Finish. 4. When a new entry for the hard disk is displayed in the Hardware list with the word “(adding)” next w it, click OK to add the raw LUN. 2. Inthe inventory, right-click the ##-2 virtual machine that you created and select, ‘Rename. Change the name to ##2-RDM virtual machine files: 2. Intheinventory, select the ¥##-2-RDM virtual machine and click the Storage ‘Views tab. b. Inthe drop-down menu, select Show all Virtual Machine Files, ©. Click the Update link. 6. Verify that a new file named Programs > Administrative Tools> Computer Management. Click Disk Management. Ifa disk wizard stants, click Cancel 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 ©. Close the Computer Management window and close the virmel machine console. Task 5: Expand a thin-provisioned virtual ik In this task, you will expand # thin-provisioned virtual disk to consume all the disk space that was allocated to it when itwas created. Students should do the steps in this task individually 1. View storage information for the virtual machine named ##3. a. Inthe inventory, select the virmal machine named s#-3, b. Click the Summary tab and record the storage information found in the Resources panel Provisioned Storage Notshared Storage Used Storage ‘Name of VMFS Datastore 2. Right-click ##-3 and select Power > Shut Down Guest. 3. 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 s#-3, d. Right-click the ##-3 vmdk file and select Inflate. Wai for the operation to finish. Lab10 Modifying a Virtual Machine 57 Neos 2. Observe the Size and Provisioned Size columns. Each column displays a different number. ‘When the inflate operation finishes, the Provisioned Size column is no longer visible. The Size column displays a new value equal to the size of the virtual disk. 1. Close the Datastore Browser. Select Home > Inventory > VMs and Templates. In the vCenter Server inventory, select the viral machine named ##3. (Click the Summary tab. ‘Record the storage information from in the Resources panel and verify thatthe disk is now fully allocated. Frovisioned Storage Not-shared Storage Used Storage Leave the vSphere Client open for the next lab. Lab 10 Modifyhg a Virtual Machine Lab 11 Migrating Virtual Machines Objective: Use vMotion and Storage vMotion to migrate virtual machines In this lab, you will perform the following tasks: 4. Migrate virtual machine files with Storage Motion, Create a virtual switch and a VMkernel port group for vMotion migration, ‘Verily that your ESXi host meets vMotion requirements. ‘Verify that your virtual machines meet vMotion requirements Performa vMotion migration of virtual machine on a shared datestore. Performa vMotion migration to a private datastore Neoeen Prepare ‘or the next lab, Preparing for the lab Record the following information: ‘VMware® vCenter Server™ system to ‘decommission ‘Team vCenter Server system name ‘VMware vSphere® ESXi™ host t be temporarily orphaned Lab 11 Migrating Virtual Machines ‘vmnnic for the VMware vSphere® vMotion® network ‘vMotion IP address ‘yMotion subnet mask Shared datastore for virtual machines ESXi host to migrate virtual machines to ‘Your ESXi host Task 1: Migrate virtual machine files with Storage vMotion In this task, you will use VMware vSphere® Storage vMotion® to relocate each of your virtual ‘machine files from your private datastore to your shared datastore. Students should do the steps in this task individually In this lab and the following labs, both student A and student B will log in to the team vCenter Server system sinmbaneously. Because you are now both managing the same vCenter Server system, youshould communicate with your teammate 4. Open the VMware vSphere® Web Client. Log in to the team vCenter Server system as user root, with the pessword that you recorded in “Preparing for the lab.” 2. Select Home > VMs and Templates and expand the LabVMs folder. Right-click ##-2-RDM and click Actions> Rename. Rename the virtual machine 1 ##-2 (that is, remove “-RDM” fiom the name). 4. Migrate each of your virtual machines from your private datastore to the shared datastore: a. Select ##-2 and click the Summary tab. b. Under Storage in the Related Objects panel, record the datastore thet the virtual machine resides on here: c. Inthe vSphere Web Client inventory, right-click the ##-2 virtuel machine, and then click Migrate 60 Lab 11 Migrating Virual Machines d. When prompted by the Migrate Virtual Machine wizerd, perform the following actions Id/Setting Action Select Migration Type Select Change Datastore. Select a virtual disk format Keep the default Select a destination storagefor the Select the shared dstastore that you recorded virtual machine files in“Preparing for the lab.” Click Next Ready to Complete Click Finish. @ Monitor the progress of the task in the Recent Tasks pane. 4. Affer the task is finished, click the Summary tab of the virtuel machine that you migrated to verify that your virtual machine is on the new datastore, Task 2: Create a virtual switch and a VMkernel port group for vMotion migration In this task, you will create a virtual switch with a VMKemel port that will be used in vMotion ‘migrations. Students should do the steps in this task individually. 1 oak en Select Home > vCenter > Hostsand Clusters. In the vCenter Web Client inventory, expand veva> Training. Select your ESXi host in the inventory, and in the right pane click Manage. Click Networking. Click the icon Add Host etw orking. When prompted by the Add Network wizard, perform the following actions Field/Setting Action Connection Type Select VMkernel Network Adapter. Click Next. Select target device Select New standard switch. Click Nest Create a Standard Switch Click the “+” sign and add the adapter that you recorded in “Preparing for the lab.” Click OK then click Next, Lab 11 Migrating Virtual Machines 61 Field/Setting Action Port Properties Type VMotion. for the Network Label. Select the VMotion traffic check box under Available Services, Click Next IP Address Select Use static IPv4 settings. Enter the vMotion IP address that you recorded in “Preparing for the lab” Subnet Mask Enter the vMotion subnet mask that you recorded in “Preparing, for the lab” Click Next. Summary Confirm the settings and click Finish. 7. Verify the configuration information for the new virtual switch in the Networking panel. Task 3: Verify that your ESXi host meets vMotion requirements In this task, you will verify that your ESXi host meets vMotion requirements. Students should do the stepsin this task individually. 1. Select Home > Hosts and Clusters. 2. Select each ESXi host and click its Summary tab. 3. View the Processor Type information w verify that the CPUs are compatible. 4. Click your ESXi host's Manage 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 button. b. Verify that a VMotion port group exists It should be a VMkernel port. Verify that the speed and duplex are set to 1000 full 6. Verify that both ESXi hosts have access to the same shared datastores: a. Select Home > vCenter> Storage. b. In the vCenter Web Client inventory, expand veva > Training, Select the shared datastore you recorded in “Preparing for the ab.” d. In the right pane, click Manage. 62 Lab 11 Migrating Virtual Machines @. Onthe Manage tab, click Settings ¥ Click Connectiv nd Multipathing g. Verify that both hosts are displayed in the wble. Task 4: Verify that your virtual machines meet vMotion requirements In this task, vou will verify that a virtual machine's settings meet vMotion requirements, Perform, this task forall of your named virtual machines. Students should do the steps in this task individually. Select Home > yCenter> VMs and Templates. In the right pane, click Summary. 2. 3. In your LabVMs folder, click the ##-2 virtual machine 4. In the VM Hardware pene, click Edit Settings. 5. ‘Verify that the virtual machine's CD/DVD Drive | isnot connected to 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 lick Client Device to remove existing connections 6. In the Hardware list, find Network Adapter 1. Veriffy that the viral machine is either disconnected from the network or connected to anetwork accessible by the destination ESXi host (your parmer’s ESXi host) 7. Check the Hardware list for a hard disk that is labeled Hard Disk 2. a. Ifyou havesuch a disk, point to the disk. b. Affera moment, click the x button that appears at the right side of the row forHard Disk 2. c. Mark the Delete files from datastore checkbox. ‘This RDM hard disk was added in a previous lab and must be removed so that the virtual ‘machine will be compatible with vMotioa. 8 Verify that CPU affinity is not ser: a. Click the arow next to CPU to expand the advanced CPU options. b. Ifthe Scheduling Affinity field displays a number, delete the number 9. Click OK to apply all virmal machine changes. Lab11 Migrating Vitual Machines 63 Task 5: Perform a vMotion migration of a virtual machine on a shared datastore In this task, you will migrate 8 virtual machine while itis powered on. Students should do the steps in this task individually. 4. Select Home > Hosts and Clusters. 2. Expand the vCenter Server inventory view by clicking on the arrow next to your ESXi host so that you can see all of your virtual machines 3. Migrate ##-2 to your partner's ESXi host: a. Click the virtual machine named ##-2 and click Actions > Migrate, If ##-2 is powered off, power iton before beginning the vMotion migration. >. When prompted by the Migrate Virtual Machine wizard, perform the following actions Field/Setting Ac Select Migration Type Select Change host. Select Destination Expand the inventory view and select the ESXi hostto migrate virtual machines to, which you recorded in “Preparing for the lab.” ‘The migration requirements are validated. Ifthe validation does not succeed, you receive warning or ercor messages. You will ot be able to contimue with the migration until the errors are rescived. ‘One reason that the validation might not succeed is if'araw device mapping resides in a private LUN. See task 6, step 5. Leave the default value. ‘Motion Priority Ready to Complete Click Finish. 4. tn the Recent Tasks panc, moniter the progress ofthe virtual machine migration. ‘Verify that your virtual machine is displayed under your partner’s ESXi host in the inventory. 6. Use vMotion and verify that your other virtual machines can be migrated successfully to your partner's ESXi host. 7. Migrate ¥#2 to back to your ESXi host 64 Lab 11. Migrating Virtual Machines Task 6: Perform a vMotion migration to a private datastore In this task, you will migrate a virtual machine while itis powered on w a private datastore on your partners ESXi host. Smdents should do the steps in this task individually. 4. Select Home > Hosts and Clusters 2. Expand the vCenter Server inventory view by clicking on the arrow next to your ESXi hos so that youcan seeall of your virtual machines. 3. Migrate ##-2 to your partner's ESXi host: a. Click the virtual machine named ##-2 end click Actions > Migrate. If ##-2 is powered off, power it on before beginning the vMotion migration. b. When prompted by the Migrate Virtual Machine wizard, perform the following actions Field/Setting Action Sclect Migration Type Select Change both host and datastore Select Destination Expand the inventory view and select the ESXi host ‘migrate virtual mechines , which you recorded in “Preparing for the lab” Select Datastore ‘Select the private datastore that you recorded in “Preparing for the lab” Motion Priority Leave the default value. Ready to Complete Click Finish 4, In the Recent Tasks pane, monitor the progress of the virtual machine migration. 5. Verify that your virtual machine is displayed under your partner’ sESXi host in the inventory. Lab11 Migrating Vitual Machines 65 Task 7: Prepare for the next lab In this task, you will migrate all of your virtual machines backto your host. Students should do the stepsin this task individually. 4. Sclect Home > 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 back to your ESXi host ‘a. Ifary ofyour virtual machines are powered off, powerit on before performing the ‘Motion migration. b. Click your virtual machine and click Actions > Migrate. When prompted by the Migrate Virtual Machine wizard, perform the following actions. Field/Setting Action Select Migration Type Select Change host. or Change host and datastore for the ‘virtual machine you migrated to private storage Select Destination Expand the inventory view and select your ESXi host. Datastore ‘The Shared datastore you recorded in “Preparing forthe lab” Motion Priol ‘Leave the default value. Ready to Complete Click Finish, 4. In the Recent Tasks pane, monitor the progress ofthe virtual machine migration, 5. Verify that your virtual machines are displayed under your ESXi hostin the inventory. 6. Close the vSphere Web Client 66 Lab 11. Migrating Virtual Machines Lab 12 Managing Virtual Machines Objective: Perform several virtual machine management tasks In this lab, you will perform the following tasks: 4. Unregister a virtual machine in the vCenter Server inventory Registera virtual machine in the vCenter Server inventory ‘Unregister and delete virmal machines from disk Take snapshots of a virtual machine. Revert toa snapshot. Delete an individual snapshot. Neoeen Use the Delete All function in Snapshot Manager. Preparing for the lab Record the following information: ‘VMware® vCemter Server™ system name ‘vCenter Server root password ‘Virtual machine Administrator password Software ISO image location Lab12 Managing Virtual Machines 67 Task 1: Unregister a virtual machine in the vCenter Server inventory In this task, youwill unregistera virtual mackine from the vCenter Server inventory. You will verify thatthe virtual machine files still exists on the VMware vSphere® VMFS datastore. Stadents should do the steps in this task individually. 4. Ifthe VMware vSphere® Client™'is notalready active, use it to log in to your team vCenter Serversystem. To log in, use the user name root and the password that you recorded in “Prepanng for the lab.” 2. Select Home > Inventory > VMs and Templates. 3. Click ##-4 (where ## is the numberof your VMware vSphere® ESXi™host) and click the Summary tab. 4. From the Storage column in the Resources panel, ecordthe VMFS datastore name where the ‘virtual machine resides: 5. Right-click ##-4 and select Power > Shut Down Guest. 6. Afterthe virtual machine has shut down, right-click ##-4 and select Remove from Inventory Do not select Delete from Disk. That operation is not recoverable. 7. Click Yes to confirm the removal and verify that ##-4 is no longer displayedin the inventory. Select Home > Inventory > Datastores and Datastore Clusters Right-click the VMFS ditastore on which s#-4 is located (the name that you recorded in step4) and select Browse Datastore. 10. In the Datastore Browser, on the Folderstab, does a folder named ##4 exist? ‘11. Click the ##4 folder to view the visual machine files. ‘The files in this folder were used by the virtual machine named ##-4 becaust you renamed Hot-Clone## in lab 10, task 3. The rename operation didnot rename the original set of files created when you created Hot-Clone##, Leave the Datastore Browser open for the nent task. 68 Lab 12. Managing Virtual Machines Task 2: Register a virtual machine in the vCenter Server inventory In this task, you will wegister @ virtual machine using a set of viral mschine files located on a datasore. You will verify thatthe virtual machine is displayed in the inventory. Students should do the steps in this task individually. 4. Inthe listof filesto the right of Folders pane, right-click the Hot-Clone##. vmx file and select, ‘Add to Inventory. 2. When prompted by the Add to Inventory wizard, perform the following actions, Field/Setting Action Name & Location ‘Type #i#-5, where ## is the ‘number of your ESXi host, In the Inventory Location pane, select your LabVMs folder. Click Next Host/Cluster Select your ESXi host. Click Next. Ready to Complete Click Finish, Close the Datastore Browser window. 4. Verify that the virtual machine is placed back in the inventory: a. Select Home > Inventory > VMs and Templates. b. Verify that ##-5 is in your LabVMSs folder. Task 3: Unregister and delete virtual machines from In this task, you will delete the ##-S virtual machine in your LabVMs folder. You will ‘verify that it was permanently deleted from the VMFS datastore. Students should do the steps in this task individually. 41. Select the ##-5 virtual machine in the inventory and click the Summat Record the VMFS datastore name on whith this virtual machine resides: ub. 2. Right-click ¥#-5 and select Delete from Disk 3. Click Yes to confirm the deletion and verify that ##-5 is no longer displayed in ‘he inventory. 4, Select Home > Inventory > Datastores and Datastore Clusters. Lab12 Managing Vrtual Machines 69 5. Right-click the VMFS detastore on which ##-S was located and select Browse Datastore. 6. Verify that the vitual machine files no longer exist. The folder would have been named with the original virtual machine name: Hot-Clone##. 7. Close the Datastore Browser. Task 4: Take snapshots of a virtual machine In this task, you will create a snapshot wee ofa virtual machine. Students should do the steps in this task individually, 4. Select Home > Inventory > VMs and Templates. 2. Open your Lab VMs folder, right-click the virtual machine ##3, and select Open Console. 3. Log in asuser Administrator, with the virtual machine Administrator password that you recorded in “Preparing for the lab.” 4, Drag the iometey .cxe file w the Recycle Bin, To remove the icnetex ox file, empty the Recycle Bin (right-##-3 and select Snapshot > Take Snapshot. 7. When prompted by the Take Virmal Machine Snapshot wizard, perform the following actions Id/Setting Value Name Type Without iometer. Description Type Deleted iometer.exe, Snapshot the virtual machine’smemory _lick todeselect. Quiesce guest file system (Needs VMware Leave unselected Tools installed) 8. Click OK and monitor the task in the Recent Tasks pane. 70 Lab 12. Managing Virtual Machines 9. Drag the cpubusy vis file w the Recycle Bin, To remove the cpubusy .vbs file, empty the Recycle Bin (right- Connect to ISO image on a datastore. & Navigate to the software ISO location that you recorded in “Preparing for the lab.” d. Select the ISO image Class £iles-vSphere. iso and click OK. 18. View your virtual machine console. If autorun dots not open the CD-ROM, use Windows Explorer and goto the CD-ROM drive (D:) 16. Copy the coubusy. vb file from the CD-ROM drive (D) to the virmal machine’s desktop. Lab12 Managing Virtual Machines n 17. 18, 19, 20. 2 2 Disconnect from the Class£iles-vSphere iso onthe CD-ROM dive a. Right-click the virtual machine in the inventory and select Edit Settings. b. In the Hardware list, select CD/DVD Drive1 & Select Client Deviee and click OK. ‘Return to the virtual machine console window and take another snapshot of this virtual machine by clicking the Snapshot icon. eS ‘When prompted by the Take Virmal Machine Snapshot wizard, perform the following actions. Field/Setting Action Name ‘Tyre With opubusy. 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. 1) “Yon should see three snapshots Leave the Snapshot Manager open, Lab 12 Managing Virtual Machines Task 5: Revert to a snapshot In this task, you revert a virtual machine to an carlier snapshot. Students should do the steps in this task individually. 1. tn the Snapshot Manager, select the snapshot named Without Iometer and Cpubusy and click Go to. 2. Click Yes to confirm thatyou want to revert to Without Iometer and Cpubusy, 3. Click Close to close the Snapshot Manager. 4. Did the virtual machine power off? Why? ‘Start your virtual machine by clicking the green arrow in the virtual machine console window. 6. Login to your virtual machine as user Administrator. Use the virtwal machine Administrator password that you recorded in “Preparing for the lab.” 7. Click the Snapshot Manager icon in the virtual machine console. You should see that the You Are Here pointer has been placed below the snapshot named Without Iometer and Cpubusy. 8. Click Close to close the Snapshot Manager. 9. Do yousee either ioneter. exe or cpubssy -vbs on the desktop? 40. Click the Snapshot Manager icon in the virtual machine console. 11, Inthe Snapshot Manager, select the snapshot named With Cpubusy and click Go te. 412. Click Yes to confirm that you want to revert to With Cpubasy. 13. Click Close to close the Snapshot Manager. 14, Did the virtual machine power off? 15. Doyousee cpubusy .vbs on the desktop? 16. Doyousee iometer exe on the desktop? Lab12 Managing Virtual Machines 13 Task 6: Delete an individual snapshot In this task, you will delete an individual snapshot. 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 the snapshot named With Cpubusy. 2. Inthe Snapshot Manager, click the snapshot named Without Iometer and Cpubusy and click Delete. Click Yes to confirm that you want to delete Without lometer and Cpubusy. 4. Click Close to close the Snapshot Manager. 5. Didthe virtual machine power off?, 6. Doyousee cpubusy .vbs on the desktop?, Task 7: Use the Delete All function in Snapshot Manager In this task, you will delete all remaining snapshots and record the effect of this operation, Students should do the steps in tis task individually. 41. Click the Snapshot Manager icon in the virtual machine console. You should see that the You Are Here pointer has been placed below the snapshot named With Cpubusy. 2. In the Snapshot Manager, celeot the last snapshot in the ist and click the Delete All button. 3. Click Yes to confirm that you want to delete all remaining snapshots. 4, Were all the remaining snapshots deleted from the Snapshot Manager? 5. Click Close to closed the Snapshot Maneger. 6. Doyousee cpubusy .vbs on the desktop?, Why?, 7. Close the virtual machine console. 74 Lab 12. Managing Virtual Machines Lab 13 Managing vApps Objective: Perform vApp management tasks {In this lab, you will perform the following tasks: 1. Create avApp. 2. Power ona vApp. 3. Removea vApp. Preparing for the lab Record the following informstion: ‘VMware® vCemter Server™ system name ‘vCenter Server Administrator password ‘Virtual machine Administrator password Software ISO image location Lab13 Managing wApps 75 Task 1: Create a App In this task, you will eceate a vSphere vApp thet contains multiple virtual machines and define a boot order sequence. Students should do the steps inthis task individually. 4. Select Home > Inventory > VMs and Templates, 2. Right-click ##-2 and select Power > Shut Down Guest. Click Yes to confirm the shutdown, 3. Repeat step 2 to shut down ##-3, Wait until both virtual machines have been powered off 4. Right-click LabVMs and select New vA.pp. 5. When prompted ky the New vApp wizard, perform the following actions. Id/Sel 9 Action vApp Name ‘Type -vapp. Click Next Destination for vApp Select your ESXi host. Click Next. Resourceallocation Leave the defaults, Click Next Ready to Complete Click Finish, ‘Verify that the vApp appears in the inventory. Drag the virtual machine named ##-2 to your vApp. Drag the virtual machine named ##-3 to your vApp. eo exne Do you ste ##-2 or ##3 on the left side of the vSphere Client in the ‘VMs and Templates view? 76 Lab 13 Managing vApps 10. " 12 13 14 18 16. 1” 18, 19, 20. Select your vApp and click the Virtual Machines tab. Do you see ##.2 or d#3? Select Home > Inventory > Hosts and Clusters. Expand your vApp. Do you see ##-2 or ##-3 on the left side of the ‘ySphere Client in the Hosts and Clusters view? Select Home > Inventory > VMs and Templates Right-click your vApp and select E dit Settings. Click the Start Order tb. Select ##-2 and click the down amow twice. ##2 is placed in group 2. Verify that ##-3 is displayed fist, i group 1 Select ##-3 and chenge the value in the Startup sequence proceeds when field rom 120 to 20 (seconds) Select ##-2 and chenge the value in the Startup sequence proceeds when field om 120 0 20 (seconds) Click OK, Task 2: Power on a vApp In this task, you will power on the vApp that you created. 1 2 Lab13_ Managing vApps Right-click your vApp and select Power On. ‘Monitor the tasks in the Recent Tasks pane. What did you observe? Task 3: Remove a vApp In this task, you will remove the vApp that you created, 1 PY PAREN 78 Right-click your vApp and select Shut Down. Click Yes to confirm the shutdown. Select Home > Inventory > Hosts and Clusters. Expand your vApp. Drag ##2 from your vApp to your host. Repeat step 3 for ##-3, Right-click your vApp and select Delete from Disk. Click Yes to confirm the deletion ‘Minimize, and leave the vSphere Client open forthe next lab, Using the VMware vSphere® Web Client, reboot the vCenter Server Appliance. a b. ‘On the desktop of your Desktop system, double-click Google Chrome. Inthe Google Chrome browser, navigate to the URL ht tps: // Exit) 11. Use the vSphere Client to log in directly to your ESXi host. Use your nonprivileged domain user name and password, which you recorded in “Preparing for the lab.” ‘Type the correct password. ‘Was the login success fil? (Can this user change the power state ofa virtual machine?, Why or why nor? 12. Exit the vSphere Client (File > Exit) Lab14 Access Control 381 Task 3: Explore the ESX Admins AD group 1 4. 82 ‘Use the vSphere Client tolog in to your ESXi host Use your domain administrator user name and password, which you recorded in “Preparing for the lab.” ‘Was the login successful? Why or why not? Select Home > Administration > Roles. In the Roles column, click Administrator. ‘What users and groups are assigned the Administrator role? Instead of assigning administrator role to individual accounts in the vSphere Client, you can add all of those users to the ESX Admins AD group. Log out of the vSphere Client (File > Exit) Lab 14 Access Control Lab 15 User Permissions Objective: Use a custom user role In this lab, you will perform the following tasks: 1. Create a custom role in vCenter Server. 2. Assign permissions on vCenter Server inventory objects. 3. Verify permission usability Preparing for the lab Record the following information: ‘Team VMware® vCenter Server™ system name ‘Team vCenter Server root password Active Directory domain ‘Your domain user name (nonprivileged account) Datastore for domain users Lab15 User Permissions 83 Task 1: Create a custom role in vCenter Server In this task, you will create a custom user role. Smidents should do the steps in this task individually. 1. Use the VMware vSphere® Client™ to log in to your team vCenter Server system as user r00t, ‘with the password that you recorded in “Preparing for the lab.” 2. Select Home > Administration > Roles. 3. Click Add Role. The Add New Role dialog box is displayed. 4. In Name, type VW Creator - . 5. In the Privileges pane, select the following privileges. Privilege category Privilege name Datastore Allocate space Network Assign network Resource ‘Assign virtual machine w rescurce pool ‘Virtual machine > Configuration Add new disk Add or remove device Memory Virtual machine> Interaction All privileges Select Interaction to include all privileges in this subcategery. Virtual machine> Inventory Create new 6. Click OK to add the sole. Task 2: Assign permissions on vCenter Server inventory objects In this task, you will assign the VM Creator role (which you created in task 1) to a nonprivileged user secount, This role grants a user the ability to create virtual machines. Students should do the stepsin this task individually, 4. Select Home > Inventory > VMs and Templates, 2. Select your LabVMs folder. 3. Click the Permissions tab. a4 Lab 15. User Permissions 4. in the Permissions tab, right-click in the white space under the list of permissions. Select Add Permission. The Assign Permissions dialog box is displayed. 5. Click Add. 6. From the drop-down menu in the Domain panel, select the AD domain that you recorded in “Preparing for the lab.” 7. in the search field of the Users and Group panel, enter the user neme of the nonprivileged domain eccount that you recorded in “Preparing for the lab.” Do not include the AD domain in ine 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. 10. 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. Notice that you essigned your custom role to a specific folder In the steps that follow, you will assign the custom role to a specific host, datastore, and network. Asa result, the uscr can create virtual machines, but only in the specified folder, host, datastore, and network. On the other hand, yoa can assign the role on an object higher in the vCenter Server inventory, such as the ‘Center Server object itself. In this case, the user would be able to create virtual machines in any folder, host, datastore, and network. 42, Select Home > Inventory > Hosts and Clusters, 43, Select your VMware vSphere® ESXi™ host in the inventory and click the Permissions tab. 14. Add the permission (as in steps 411). 46, 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, 17. Add the permission (as in steps 4-11). 18. Select Home> Inventory > Networking 49, Select the Production network and click the Permissions tb. 20. Add the permission (as in steps 4-11). Lab15 User Permissions 85 Task 3: Verify permission usability In this task, you will verify that the nonprivileged domain user account can ercatea virtual machine on. the objects on which you defined the permission. Students should do the steps in this task individually. 4. In the lower righteorner of the vSphere Client, notice that you are logged in as root 2. Minimize this instance of the vSphere Client Start another instance of the vSphere Client, In this instance, log into your vCenter Server system with the nonprivileged domain user name and password that you recorded in “Preparing forthe lab.” 4, In the lower right comer of the vSphere Client, notice that you are logged in as the nonprivileged domain user 5. Select Home > Inventory > VMs and Templates, LabVMSs is the only folder that you see. 6. Right-click your LabVMS folder and select New Virtual Machine ‘When prompted by the Create New Virtual Machine wizard, perform the following actions. Field/Setting Action ‘Virtual Machine Select Custom. Configuration Name ‘Type syour_name>-Temp, where is your firstname (for example, Brian-Temp) Inventory Location Your LabVMSs folder is selected for you. Click Next. Host/Cluster Select your ESXi host. Oaly your ESXi host i listed. Click Next. Datastore Select the datastore for domain users that you recorded in “Preparing for the lab.” The other datastores are not displayed in the list Click Next Virtual Machine Version _Leave the default. Click Next. Guest Operating System Leave the defiuls. Click Next. CPUs Leave the defaults. Click Next Memory Select MB from the drop-down menu andtype 4. Click Next 86 Lab 15. User Permissions Id/Setting Action Network ‘Verify that Produetion is the only option on the drop- down menu for NIC 1. Leave all other options attheir default settings. Click Next. SCSI Controller Leave the default. Click Next. Select aDisk Notice the options that are not available to you. Leave the default. Click Next. Disk Size In Capacity, type 2 andleave the default at GB. Select Thin Provision Leave the default setting for Location and click Next Advanced Options Leave the defaults and Click Next, Ready to Complete Click Finish. 8. Monitor the progress of the task in the Recent Tasks pane. As you proceeded through the wizard, did you notice that only those inventory objects on which you assigned pemnissions were available for the user to select? 9. Afferthe task is completed, verify that the virtual machine was created successfully. 40. Right-click your virtual machine in the inventory. Familiarize yourself with the options that the role does not permit. Forexample, the Delete from Disk option is unavailable 11. Exit the instance of the vSphere Client where youare logged in as the domain user 12. Display the vSphere Client instance where you are loggedin as Administrator. 13. Select Home > Inventory > Hosts and Clusters, 14, Right-click the virtual machine -Temp and select Delete from Disk. Click Yes to confirm deletion, 45, Exit the vSphere Client Lab15 User Permissions 87 Lab 16 Resource Pools Objective: Create and use resource pools on an ESXi host In this lab, you will perform the following tasks: 4. Create CPU contention, Create a resource pool named Fin-Test Create a resource pool named Fin-Prod. ken ‘Verify resource pool functionality Preparing for the lab Record the following information: Team VMware® vCenter Server™ system name ‘Team vCenter Server root password Lab16 Resource Pools 89 Task 1: Create CPU contention In this task, you will sun the epubusy . 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. 4. Ifthe VMware ySphere® Client™ is not elready active, use itto log in to your team. ‘Center Server system. Log in as user root, with the password that you recorded in “Preparing for the lab.” 2. Select Home > Inventory > VMs and Templates. 3. Open aconsole wo virtual machines ##2 and ##-3 and log in as Administrator. 4. Tneach virtual machine, sart an instance of the cpubusy.vbs script (on the virtual machine's cesktop) by right-clicking the script and selecting Open with Command Prompt. ‘This script runs continuously. Wait one totwo minutes forit to stabilize. This scriptrepeatedly oes floating-point computations. The serpt also displays the duration (wall-clock time) ofa computation. Example: 1 aia thee milion sines in 2 seconas! Use the number of seconds reported as a performance estimate. You should find that the program runs atapproximately the same rate in cach virtuel machine. 5. Inthe inventory view, right-click the ##-2 virtual machine and select Edit Settings. 6. Inthe viral machine Properties dialog box, click the Resources tab. 7. Click Advanced CPU 8. In the Scheduling Affinity pane, type 1 in the space provided. The virtual machine wall mun nly on processor 1. Click OK. CPU affinity is used mainly to create CPU contention for taining purposes. Use of this feanare in a production environment is strongly discouraged. 9. Repeat steps 5-8 o set the scheduling affinity for the other virtual machine, ##3 Force the virtual machineto use the same processor as the first virtual machine (processor 1). Allow coubusy. vbs to run for a minute or two. Use the number of seconds reported as a performance estimate. You should find that the program nuns at approximately the same rate in each virtuel machine. 90 Lab 16 Resource Pools Task 2: Create a resource pool named Fin-Test In this task, you will create a resource pool named Fin-Test. Students should do the steps in this tsk individually. 4. Select Home > Inventory > Hosts and Clusters, 2. Right-click your VMware vSphere® ESXi™ host and select New Resource Pool 3. Perform the following actions to assign properties to the resource pool. Resource pool property Action Name ‘Type Fin-Test. CPU Resource Shares Select Low from the drop-down menu. Allother settings ‘Leave the defaults 4, Click OK. Prod In this task, you will create a resource pool named Fin-Prod. Students should do the steps in this task individually. 1. Select Home > Inventory > Hosts and Clusters, Task 3: Create a resource pool named 2. Right-click your ESXi hoct in the inventory and select New Resource Pool. 3. Perform the following actions to assign properties to the resource pool. Resource pool property Action Name Type Fin-Prod CPU Resource Shares Select High from the drop-down mem, All other settings Leave the default. 4. Click OK. Lab16 Resource Pools 1 Task 4: Verify resource pool functionality In this task, you will verify that each resource pool provides the comect amount of CPU t each virtual machine when CPU contention occurs. Students should do the steps in this task individually 1. Select Fin-Test ia the inventory aad click the Summary teb. View the CPU Resource Settings panel. Record the number of shares for this resource pool: 2. Select Fin-Prod end click the Summary tab. View the Resource Settings panel. Record the aumber of shares for this resource pool: 3. Drag ##-2 to the Fin-Prod resource pool, 4, Drag ##3 to the Fin-Test resource pool. View the results of cpubusy. vbs in each virtual machine console. 1s 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. 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 Run the scripts for a few-seconds and compare the performance ofthe script in each virtual machine. IfCPU contention occws, 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 Normal 10. Stop the cpubusy. vbs scripts ineach virmal machine. Press Ctrl+C in each cpubusy window. 11. Minimize the virtual machine consoles. You will use them in the next lab. Leave the vSphere Client open for the next lab. 92 Lab 16 Resource Pools Lab 17 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. Create CPU activity 2. Use vSphere Web Clientto monitor CPU utilization. 3. Undo changes made to your virtual machines Preparing for the lab Record the following information: ‘Team VMware® vCenter Server™ system name ‘Team vCenter Server root password ‘VMware vSphere® Web Clieat URL Lab17 Monitoring Virtual Machine Performance 93 Task 1: Create CPU activity For this lab, you use the vSphere Web Client. All operations performed are the same whether using the VMware vSphere® Client™ or the vSphere Web Client unless otherwise noted. In this task, you will un the cpubusy .~vbs script in each virtual machine to create aheavy CPU load. Students should do the steps in tis task individually. 1. Use a web browser to connect to the vSphere Web Client URL that you recorded in “Preparing, for the lab.” If you receive a cenificate error, select to continue to the web site. Log in as user root with the team vCenter Server root password that you reconled in “Preparing for the lab." Upon connecting to vCenter Server using the vSphere Web Client, you might receive an error indicating that there are vCenter Server instances with expiring licenses in your inventory. Close this message 2. Inthe left navigation pane, select vCenter > VMs and Templates. Expand the view under your ‘Center Server to show your virtual machines. Ifyou are using the vSphere Client, select Home> Inventory > VMs and Templates. 3. Maximize the consoles to the virtual machines ##2 and ##3 and Jog in as Administrator. If you receive a certificate error, select to continue 16 the web site. 4, In each virmal machine, start an instance of the cpubusy . viss script (on the virtual machine’s desktop) by right-clicking the script and selecting Open with Command Prompt Task 2: Use vSphere Web Client to monitor CPU utilization In this task, you will modify and monitor the CPU performance graphs. Students should do the steps in this task individually. 4. Click ##- in the inventory Select the Monitor taband click the Performance tab. The Overview view displays by default. If you are using the vSphere Client, the Overview view will display as an unreachable web site because the webclient is not installed, 2. Click the Advanced button, By default, the Advanced panel shows CPU usage in real time. 3. Click the Chart Options link. Ifnecesséry, unpin the right-hand cofurmn i» make the link visible. The Customize Performance Chart dialog box is displayed, 94 Lab 17. Nonitoring Virtual Machine Performance 4. In the Chart Options pane, select CPU > Real-time. 5. In the Objects pane on the right, decelect the check box with the virtual machine’sname. 6. In the Counters pane, click None to deselect all selected counters. 7. Select the Used end Ready counters. 8 Click OK. The chartis displayed. 9. Open a new tb in your web browser to open a second instance of the vSphere Web Client You are not required to re-enter your connection credentials. 10. Select ##-3 in the inventory. Select the Monitor tab and click the Performance ab. If you are using the vSphere Client, the Overview view will display as an unreacheble web site because the webolient is not installed. 11. Configure the CPU Performance graph for ##-3 and select the same chart options as you did in steps 2-8. 12. Each web browser window now shows the configured chart for one of your virtual machines. 13. In the web browser window for each virtual machine, point to the end of the line graph to view the current CPU ready value. Lab17 Monitoring Virtual Machine Performance 95 14. Record the curent CPU ready value for each virtusl machine. Virtual machine name —_Latest CPU ready value ##2 ##3 Leave the Performance Chart windows open. 15, Sop the coubusy. vbs scripts in each virmal 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 thenext lab. 46. In the web browser window for each virtual machine, pointto the end of the line greph to view the current CPU ready value. ‘Wait for the chartto update. Performance charts update every 20 seconds, Did the Ready value change? Why or why not? Task 3: Undo changes made to your virtual machines Tn thistask, you will undo the changes made to each virtual machine. Students should do the steps in this task individually. 1. Close the web browser window for ##3. 2. Close the virtal machine consoles 3. Remove the scheduling affinity value fromyour_aame~##2: 2. Right-click the ##2 virtual machine in the inventory and select Edit Settings b. Clickthe Virmal Hardware tab if its not selected. c. Openthe pulldown menu next to CPU and delete the value 1 fiom the field in the Scheduling Affinity pane. &. ClickOK. 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 Serverlevel 5. Right-click anywhere to the right of the list of alams and select New Alarm. The Alarm Settings dialog box is displayed. Because you are creating an alarm forthe ##2 virtual machine, this elamn will ‘monitor only that virtual machine. If you set the alarm on en object higher in the vCenter Server inventory, the alarm will apply to multiple virtual machines. For example, if you created the alarm onthe vCenter Server object itself, the alarm would apply 1 all virtual machines 6. In the General tab, perform the followingactions. Field/Setting Action Alarm mime ‘Type VM CPU Usage - . Description Leave blank, Alarm Type- Monitor _Select Virtual Machine 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. 98 Lab 18 Using Alarms 8. 10 " 12 13 14, 16, Performthe following actions to add a trigger. Trigger setting Action Trigger Type Select VM CPU Usage (%). Condition Select Is above. Warning Double-click the current value and type 25. Condition Length Select for 30 see from the drop-down menu. Alert Type 50, Condition Length Leave the default (5 minutes), Leave Trigger if any of the conditions are satisfied selested. Do not change anything in the Reporting tab. Click the Actions tab. Click aaa. Configure the following action settings. Action setting Action Action Click Send a notification email below the Action header to activate the drop-down mem and select Suspend VM from the list. Configuration Leave as is, (This column does not apply tothis 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 blak, Click OK. Verify that your alarm is in the list of alarms. Your alarm should be at the end of the list Lab18 Using Alarms Task 2: Create a virtual machine alarm that monitors for an event Tn this task, you will 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 w the right of the list of alarms and selectNew Alarm. The Alam Setings dialog box is displayed 3. In the General tab, perform the following actions. Id/Setting Action Alarm name ‘Type VM Suspended - Description Leave blank. Alarm Type Monitor Select Virtual Machines aad select Monitor for specific events occurring on this object, for example, VM powered On. Enable this alarm Leave selected. 4, Click the Triggers tab. Click Add. 6. Double-click the trigger in the Event column to display adrop-dowa menu with alist of ‘riggers. Perform the following actions. Trigger setting Action Event Select VM suspended. Status Keep the defiul. 7. In the Conditions columa, click the Advanced link. The Trigger Conditions dialog box is, displayed. Click Add. In the Argument column, select Changetag and select VM name from the list 40. tn the Operator column, leave equal to selected, 100 Lab 18 Using Alarms 11. Click the area under the Value column. Type #i#-2 as the virtual machine name. is your first name, and ## is the number of your VMware vSphere® ESXi™ host. The virtual machine name is case-sensitive. 12. Click OK. 413. Without making changesin either the Reporting tab or the Actions tab, click OK. Verify that your alarn is in the list of alarms. Your alarm should be at the end of the list. Task 3: Trigger virtual machine alarms and acknowledge them In this task, you will tigger both alarms, view the triggered alerms, and acknowledge each alarm. ‘Students should do the steps ia this task individually. 4. Click the ##2 virtual machine and select Open Console Positionthe virtual machine console so that you can see bath the console and the Triggered Alarms ane at the same time. 3. On the virtual machine’s desktop, right-click coubusy.vbs and select Open withCommand Prompt. This action starts one instance of cpubusy. vos, 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 only briefly in the Triggered Alarms pane. So you might ‘ot 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, 4, Monitor the Recent Tasks pane for the Suspend Virtual Machine task 5. Verify that your VM Suspended alarm is triggered You should see an entry for this alarm in the Triggered Alarms pane. The Acknowledged and Acknowledged By fields are blank 6. Right-click your VM Suspended alarm and select Acknowledge Alarm. The Acknowledged and Acknowledged By fields are now populated 7. Power on the suspended virtual machine by right-clicking the virtual machine in the inventory and selecting Power > Power On. 8. In the virmal machine console, press Ctrl+C in the command window to stop epubusy .vés 9. Close the virmal machine console. 40. tn 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. Lab18 Using Alarms 101 Task 4: Disable virtual machine alarms In this task, you will disable your VM Suspended alarm and your VM CPU Usage alarm, Students should do the steps in this task individually. 1 102 Disable your VM CPU Usage alarm: a. Select the ##2 virtual machine in the inventory and click the Alarms tab. b. Click Definitions Right-click your VM CPU Usage alam and select Eit Settings d. In the General tab, deselect the Enable this alarm check box and click OK. Disable your VM Suspended alarm: a. Select the Training datacenter in the inventory and click the Alarms tb. b. Click Definitions. Find your VM Suspended alarm in the list and right-click it. Select Kit Settings d. In the General tab, deselect the Enable this alarm check box and click OK. Leave the vSphere Client open for the next lab. Lab 18 Using Alarms Lab 19 Using vSphere High Availability e: Demonstrate vSphere HA function: Objec: In this lab, you will perform the following tasks: 4. Create a cluster enabled for vSphere HA. ‘Add your ESXi host t a cluster. ‘Test vSphere HA functionality Determine vSphere HA cluster resource usage. ‘Manage vSphere HA slot size (Configure avSphere HA cluster with strict admission control, Neos on Prepare for upcoming labs Preparing for the lab Record the following infomation: ‘Team VMware® vCenter Server™ system name ‘Team yCenter Server root password ‘VMware vSphere® ESXi™host to partner with ‘Memory reservation (MB) Lab19__ Using Sphere High Availabilty 103 Task 1: Create a cluster enabled for vSphere HA In this task, you will create a cluster enabled for VMware vSphere® High Availability. Perform this taskas a team. Studeat A should do the steps in this tsk. 1. ifthe VMware vSphere® Client™is not already active, use itto log in to your team vCenter Server system. Log in as user root, with the password that you recorded in “Preparing for the lab.” 2. Select Home > Inventory > Hosts and Clusters. 3. Inthe invemtory, right-click the Training datacenter and click New Cluster. 4. When prompted by the New Cluster wizacd, perfoam the following actions. Fiold/Setting Action Name ‘Type Leb Cluster. Cluster Features, Click Turn on vSphere HA andclick Next Host Monitoring Status Leave default selection, Admission Control Leave default selection, Admission Control Pol Click Percentage of cluster resources reservedas failover spare capacity and click Next. Cluster DefaultSettings Leave default selections and click Next. VM Monitoring Status Leave default selection, Default Cluster Settings Leave default selection and click Next. VMware EVC Leave default selection and click Next. Virtual Machine Swapfile Leave default selection end click Next. Location Ready to Complete Click Finish. 5. Monitor the Recent Tasks pane, A cluster is being created. 104 Lab 19_ Using vSphere High Availability Task 2: Add your ESXi host to a cluster In this task, you will add your ESXi host to the Tab cluster that you created in task 1. Students should. do the steps in this task individually. 1. Expand your ab Servers folderinventory object and select your ESXi host 2. Drag your ESXi host to the Lab Chaster inventory object, 3. Click Yes when the warning is displayed. The warning alerts you that VMware vSghere® Distributed Resource Scheduler™ (DRS) is not yet enabled and that your existingresource pools will be collapsed into the duster root resource pool. 4, Monitor the Recent Tasks pane and wait forthe Configuring vSphere HA task to complete 5. After vSphere HA is enabled, select the Lab Cluster inventory object and click the Summary tab. The vSphere HA pane is displayed 6. Click the Cluster Status link. Review the content on ezch tab and answer the following questions: a. Which hostis the master? b. Does the number of protected virtual machines match the number of virtual machines m the cluster? How many datastores will be used for heartbeating? 8. Click OK to close 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. Lab19__ Using vSphere High Availabilty 105 Task 3: Test vSphere HA functionality In this task, will you verify that vSphere HA works properly. Do this task asa team. Student B should do the steps in this task. 4. Inthe inventory, select the master ESXi host and click the Virtual Machines tab Weite the name of one or more powered on virtual machineson the master host: 2. Sinmulate a host feilure by rebooting one of the hosts in the cluster: ‘Make sure that you reboot the system and that youdo not shut down the system, a. Right-click the master ESXi host thatyou recorded in task, step 7a, and click Reboot >. When amessage wams you that yourhost is not in maintenance mode, click Yes to reboot. ©. Type Testing vphere xa asthe reason for rebooting and click OK. Select Leb Cluster in the inventory and click the Tasks & Events tab. 4. Click Events to display the Events view. 5. From thedrop-down mena, select Show Cluster Entries t9 monitor the events for your ‘Sphere HA cluster. The chuster entries are sorted by time. Notice the entries that vSphere HA made when the host failure was detected. G) véphere HA tiated a vitual machine Falover fy warming 1981/2011 2:18:38 em ‘action in cluster Lab Cluster in datacenter Traking ‘Center Server is connected to a master HA @ fo toyst 2011 2:18:27 FM agent runring on host asvi02.elassJocalin Lab ‘Chster in Traning GD Center Server's disconnected irom master HA Ak wverning 10/31/2011 2:18:05 FM ‘gent running on host est. velassocalin Lab Cutter in Trang ‘The initiel messages from the hosts might indicate failures. These messages arc indicative that, the virtual machines on the downed host have failed. It will take 1 10 2 minutes for the virtual machines to successfully migrate to the new host. 106 Lab 19_ Using vSphere High Availability 6. 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. 7. Monitor the vCenter Server inventory until you see that the original master ESXi host is available Click the Lab Cluster inventory object. Click the Summary tab, 10. Click the Cluster Status link. 11. Compare the answer in task 2, step 7a, Is there a different master host?, 12. Click OK to close the cluster stams dialog box. Task 4: Determine vSphere HA cluster resource usage {In this task, you will record the information found on the Resource Allocation tab for Lab Cluster and answer questions based on that information. Do this task as a cluster team, SudentB should do the seeps in this task 4. Select Home > Inventory > Hosts and Clusters. 2. Select Lab Cluster in the inventory and click the Resource Allocation tab, Your view should look like the screenshot ae Resource Abcaie ane A ou Memory aca apse “2520s Raervel Capt: 2o0705 M0 rai Cabaaty 1S00BMHE rable Canoey 0x25 | Shans sesh |Tie0 | Lab19__ Using vSphere High Availabilty 107 3. Record the following information: + CPU total capacity (MHz) for the cluster: + CPU reserved capacity (MHz) for the cluster: + CPU available capacity QMHz) for the cluster: + Determine which virtual machine in the inventory has the highest CPU requirement. Note the number of virtual CPUs (vCPUs) and CPU speed of the virtual machine: (One way to determine these values is 1 view each virtual machine’s Summary tab. View how many vCPUs the virtual machine has. Then view the Summary tab of the ESXi host ‘on which your virtual machines are located. View the speed of the host's CPU. The speed of the physical CPU determines the speed of the vCPU + Memory total capacity (MB) for the cluster: + Memory reserved capacity (MB) forthe cluster _ + Memory available capacity (MB) for the cluster + Determine which virtual machine has the highest memory requirement, Write the memory size ofthe virtual machine: (One way to determine these values is to view each virtual machine’s Summary tab to view the memory size of the virtual machine. 4, Based onthe CPU numbers, how many virtual machines can this cluster support based on the available CPU capacity (assumingno overiead)? 5. Based onthe memory mumbers, how many virtual machines can this cluster support based oa the available memory capacity (assuming no overhead)? 6. Ithese two mumbers are different, what must you do to your cluster resources to get to the higher number? 108 Lab 19. Using vSphere High Availability Task 5: Manage vSphere HA slot size In this task, you will experiment with w 10 control slot allocation ina vSphere High Availability cluster. The number of virtual machines that can be started in # cluster depends on how many slots are available. Do thistask as a clusterteam. Student A should do the steps in this task. 4. Right-click Lab Cluster in the inventory and select Edit Settings. 2. Select vSphere HA 3. In the Admission Control Policy pane, ensure that the Host failures the cluster tolerates policy is selected. 4, Click OK. 5. Select Lab Cluster in the inventory and click the Summary tab. 6. View slot information for this cluster: a. In the vSphere HA panel, click the Advanced Runtime Info link to view the slot information for this cluster. How much CPU, vimual CPU space, and RAM does your deftult slot require? b. Click OK w close the window. 7. Set the CPU reservation on the virtual machine ##-3 a. Right-click ##3 in the inventory and select Edit Settings. b. Click the Resources tab. The CPU setting is selected. c. Sethe Reservation field to 512m, Click OK to commit the change. 8. View slot information for this cluster: a. In the Summary tb of the cluster, click the Advanced Runtime Info link. Did changing the reservation chan ge the slot size in comparison with the value that you recorded in step 6? How much CPU, virtual CPU space, and RAM does your slot requirenow? b. Click OK w close the window. Lab19__ Using vSphere High Availabilty 109 9. 10. " 12, 110 Use the advanced vSphere HA settings wo enforce a slot size: a Right-click Tab Cluster in the inventory and select Fait Settings >. Select vSphere HA fom the list and click Advanced Options ©. Inthe Advanced Options (vSphere HA) window, enter the following option-value pair. Option Value das slotCpulaMHz_ 300 4d. Click OK wo close the Advanced Options (vSphere HA) window. 2. Click OK t committhe changes. ‘View slot information for this cluster: 2. In the Summary tab of the cluster, click the Advanced Runtime Info link. Compare the current value with what you corded in step 10. ‘How much CPU, virmal CPU space, and RAM does your slot require now? d. Click OK w dismiss the window. Remove the advanced vSphere HA setting: a. Right-click Lab Cluster in the inventory and select Edit Settings. >. Select vSphere HA fom the list and click Advanced Options ©. Select das slotCpulaMHz and delete the entry d. Click OK wo close the Advanced Options (vSphere HA) window. 2. Click OK w commityour changes Remove the CPU reservation on s#3: a. Right-click ##3 in the inventory and select Edit Settings >. Click the Resources tab. The CPU setting is selected. c. Change the CPU reservation to 0 (MHz) 4. Click OK to committhe change. Lab 19_ Using vSphere High Availability Task 6: Configure a vSphere HA cluster with strict admission control In this tack, you will assign memory reservations to restrict Lab Cluster to have only four slots cluster wide. Lab Cluster will have two slots per ESXi host. Do this task as a cluster team. Student B should do the steps in this task. Intask 5, when you configured your cluster with Host failures the cluster tolerates, you instructed ‘Sphere HA to calculate slots. vSphere HA celoulated space for a virtual machine to run, based on the largest CPU and memory allocation across all virtual machines. In this task, you will learn how strict admission control works 4. Select Lab Cluster in the inventory and click the Virtual Machines tab. Shut down all virtual machines, 2. Afterall virtual machines are powered off, click the Resource Allocation tab. Identify the total memory capacity and divide it by the number of ESXi hosts in the cluster. The result is the usable memory per ESXi host. For example, if you have two ESXi hosts in your cluster and the total capacity for memoryis 3,410MB, then 3,410/2= 1,705. Memory Total Capacity: 3410 NB Reserved Capacity: OND Available Capacity: 3410 NB The value for Total Capacity that you see in this step might differ from what you see in the screenshot. How much available memory is there per ESXi host? The virtual machines have no memory reservations, so why is less memory available in the cluster than in the total memory installed in the ESXi hoss? 4, Assign to each virtual machine -##-2, the memory reservation 256MB. ‘a. Right-click each ##-2 virtual machine listed in the Resource Allocation tab ‘and select Edit Resource Settings b. Set the memory reservation i 256MB. & Click OK t commit the changes. Lab19__ Using vSphere High Availabilty mn 5. Before powering on virtual machines, click the Lab Cluster Summary tab and click Advanced Runtime Info. ‘What is the total number of slots in the cluster? Why is the vSphere Client reporting that many slots? 6. Click OK w close the Advanced Runtime Info window. Right-click the ##-2 virtual machine and selectPower > Power On. 8 Tose the effect that powering on this virtual machine hason your cluster, click the Lab Cluster Summary tab and click Advanced Runtime Info Record the values that you observe: Total slows: Used slows Available slow: Failoverslow: Why is the value for Failover slots only half the umber of Total slots? ‘Record the values that you observe: (CPU slotsize (MHz): ‘Memory slot size (MB): ‘Why does the memory slot size not match the value you recorded in “Preparing forthe lab”? 12 Lab 19_ Using vSphere High Availability 9. Click OK to clase the window. 40. Inthe inventory, right-click the ##-2 virtual machine aad selec: Power> Power On. 41. Click Advanced Runtime Infa to see the number of available slots change, How many slotsare available now and way? 12. Right-click the ##-2 virmal machine and select Power > Power On. Was your virtual machine allowed to power on? Why or why not? Ifa cluster has N total slots, does that mean you can power on N virtual machines? Task 7: Prepare for upcoming labs In this task, you remove the Lab Servers folder, which is no longer needed. Then you reconfigure ‘your chaster for upcoming labs by removing the memory reservations that you set up previously and by disabling admission control. Do this task as a cluster team Student A should do the steps inthis task. 1. Right-click the Lab Servers folder inventory object and click Remove, Click Yes to confirm the operation. Select Lab Cluster in the inventory. Click the Resource Allocation tab. Click the Memory button to enter Memory view. Pak en Remove the virtual machine memory reservation for each of the virtual machines: a. Select a virtual machine thathas a memory reservation, b. Select the memory reservation value for example, 256) and type 0. Press Enter. Select the next virtual machine. Remove the reservation as you did in step b. Lab19__ Using vSphere High Availabilty 13 7. Edit the settings of the chaster to allow the number of running virtual machines to exceed the failover capacity of the cluster: Inthe inventory, right-click Lab Cluster and select Edit Settings. b. Inthe left pane, select vSphere HA. In the Admission Control panel, select Disable: Allow VM power on operations that violate availability constraints. Click OK tw commit your changes. 8. Keep the vSphere Client open forthe next lab. 14 Lab 19° Using vSphere High Availability Lab 20 (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: 4. Analyze the requirements 2. Design virtual switches and physical comections, Preparing for the lab Based on a scenario, you design the network configuration for a VMware® ESXi™ host specifying, the Sollowing: + Virtual switches + Ports and port groups + Port group policies + Physical connections A setof network requirements is provided. The requirements are not complete and they leave a good. deal 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. Lab20 (Optional) Designing a Network Coniiguration 5 Task 1: Analyze the requirements In this tack, you are the administrator in charge of configuring an ESXi host in your company’s production environment. This ESXi host is one of several hosts that need to be configured {identically in your production environment. This ESXi host needs to be configured so that it can be one node in 2 DRS/HA cluster. The cluster is not configured at this time, but all necessary networking details must be in place so that the cluster can be configured later. Details of the networking requirements include the following Component Networking requirements ‘Virtual machines and Web-based applications that are implemented by using four virtual applications machines arranged as follows: + -VM1 and VM2: Web servers, and network address translation (NAT) clients of VM3 + VM3: front end ior the Web servers. Acts as a NAT router for the back-end virtual machines + VM4: atest box, used to test intrusion detection systemsand ‘virus-protection software, among other applications IP-bised storage ANAS, used to hold running virmal machines forthe test virtual ‘machines only (storage forthe production virtual machines is provided by a SAN) Physical NICs Fourphysical network adapters: one 100Mbps and three Gigabit Ethernet (GigE) cards External networks Twophysical switches and four extemal LANs, each named indicate its purpose. A single physical switch is configured to handle traffic for three networks, which are implemented as ‘VLANS. One physical switchis dedicated to the management LAN, which, by company policy, must be physically separate from all other networks. The management L AN is used by VMware® ‘vCenter Server™, including being used to monitor VMware ‘vSphere® High Availability heartbeat 16 Lab 20 (Optional) Designing a Network Configuration Task 2: Design virtual s\ tches and physical connections In this task, you use the information in task 1 and the following diagram to draw a network configuration. Show all virtual switches and their poms and port groups and indicate the policies to be applied to each (NIC teaming, VLANs, security, raffic shaping). Also show the connections from the virtual machines to the virtual switches, as well as fiom the physical network interface cards (NICS) to the physical switches. ‘There is no single comect answer In fact, many reasonable solutions are possible. The point of this lab is not tocome up with the one “right” answer. Rather, this lab encourages a discussion of the advantages and disadvantages of different solutions M4 vu M3, vM4 & % wey & Poy ‘Tost VIAN 101 Production VLAN 102 IP Storage VLAN 103 fanagemontLAN Lab20 (Optional) Designing a Network Configuration “7 Lab 21 Configuring VMware vSphere Fault Tolerance Object Configure Fault Tolerance for a virtual machine and verify that Fault Tolerance works In this lab, you will perform the following tasks: 1. Prepare the virtual machine. 2. Enable Fault Tolerance logging, 3. Activate Fault Tolerance. 4, Test Fault Tolerance. 5. Disable Fault Tolerance. ‘Not all classroom lab environments support VMware vSphere® Fault Tolerance, If the hardware in ‘your classroom does not support Fault Tolerance, do the exercise with the Fault Tolerance simulation provided by your instructor. Adobe Flash Player 8 or later is required to view the simulation. Lab21 Configuring VMware vSphere Fault Tolerance 19 Preparing for the lab Record the following information: ‘Team VMware® vCenter Server™ system name Team vCenter Server root password ‘VMware vSphere® ESXi™' team to partner with Task 1: Propare the virtual machine In this task, you will configure a virtual machine capable of using Fauh Tolerance in a nested ESXi environment (that is, running ESXi hosts as virtual machines). Students should perform this lab as a team, Student A should do the steps in this task. Do this task only if your instructor tells you do it. CAUTION ‘Nested ESXi is not an officially supported configuration, nor is running Fault Tolerance in nested ESXi, Neither configuration should be used in production envitonments This task should be performed only by smdents using ¢ nested lab envizonment. For exemple, the ‘VMware® vClass environment uses anested environment, which requires additional steps to be performed to enable the lab to work. If you are unsure whether you should do this task, ask your instructor. 1. Ifthe VMware vSphere® Client™ is not already sctive, log in to the team vCenter Server system as user root, with the password thet you recorded in “Preparing for the lab.” 2. Select Home > Inventory > Virtual Machines and Templates. 3. Select one of the ##-+# virtual machines, where ## comesponds to the number of your ESXi host. 4, Ifthe virtual machine is powered on, shutdown the guest operating systern Right-click the virtual mechine and select Edit Settings 6. Click CD/DVD crive 1 and ensure that the Client Device radio buton is selected in the Device ‘Type field of the configuration. Also ensure that the Mode Passthrough IDE (recommended) is selected. 8 Click the Options tb and select Advanced/General, 9. In the right pane, click Configuration Parameters. 10. tn the Neme column, find the replay . supported line 11. Ia the Value column, change false to true. 120 Lab 21 Configuring VMware vSphere Fault Tolerance 12, Add the replay.allowFT and replay-al1ovBTOn1y lines to the Configuration Parameters, a. On the Configuration Parameters page, click Add Row b. Ih the Name column, type replay allow? In the Value column, type true & In the Name column, type replay -allowsTOnly. In the Valve column, type true. 413. To set an additional parameter, clk the Options tab and sclect Advanced General Repeat this, sep to enter another parameter. ‘The Configuration Parameters page should look like the sereenshor. Neste vlcetigrsts: parameter nocd fe ememnen etseee wera cine apne Se amet been potrdnetpeeet we AaglaylewsTny ue i oS” verses or séecmenia a sapgscnaneeet e 200 seo dervaione is volunesa7eSSo7 eats? Obie w? essere eostt aon bo. sisacmn ‘tsa oiodeceoranbay ‘daon eas | sein | maa 14. Click OK twice. Wait forthe virtual machine to doa reconfiguration. After the configuration is complete, leave the vSphere Client open and continue to the next tsk. Lab21 Configuring VMware vSphere Fault Tolerance 121 Task 2: Enable Fault Tolerance logging In this tack, you will configure a virtual switch for Fault Tolermce logging. Students should do the stepsin this task individually. 4. Select Home > Inventory > Hosts and Clusters, 2. Select your ESXi host in the inventory and click the Summary tab View the General pane ‘The Host Configured for FT field should show No. 3. Click the Configuration tab. 4. Click the Networking link and click vSphere Standard Switch 5. Scroll to the virtual switch that contains the VMkemel port named vMotion and click the Properties link 6. Select vMotion fiom the list and click Edit. 7. Select the Fault Tolerance Logging check box and click OK, 8 Click Yes to acknowledge the waming message. Because of bandwidth requirements, in a production environment VMware® does not recommend enabling both VMware vSphere® vMotion® and Fault Tolerance logging on a single physical or virtual adapter. Instead, dedicate one Gigabit Ethemet adapter each to ‘Motion and Fault Tolerance. 9. Click Clase to close the vSwitch Properties dialog box: 10. Click the Summary tab and confirm that the Host Configured for FT field now shows Yes. I? this lab is performed ina nested ESXi environment, this field will continue w show No because ESXi is installed on virtual hardware, not physical hardware. 11. Wait for your ESXi host parmer to complete this task. Task 3: Activate Fault Tolerance In this task, you will ectivate Fault Tolerance on a virtual machine. Sudent B should do the steps in this task, 1. Ifthe vSphere Client is not already active, use the vSphere Client to log in w the team vCenter Server system as user root. Use the password that you recorded in “Preparing for the lab.” 2. Select Home > Inventory > Hosts and Clusters. Select a virtual machine in the inventory and verify that it meets the requirements for Fault Tolerance, as outlined in the lecture book 122 Lab 21 Configuring VMware vSphere Fault Tolerance If this lob is performed in a nested ESXi environment, you must select the virtual machine that was configured in task 1 4, Right click the virtual machine aad selec: Power™ Shut Down Guest. Click Ves to confirm shutdown. 5. Right-click the virtual machine and select Fault Tolerance > Turn On Fault Tolerance 6. Read the warning window and click Yes to confirm that you wantto activate Fault Tolerance. 7. Monitor the Recent Tasks pane while VMware vSphere® High Availablity is tuming on Fault Tolerance. A. Afferthe tacks complete, view the information inthe Fault Tolerance parel on the Summary tab of the virtual machine, On which host is the primary virtual machine? (On which host is the secondary virtual machine? 8. Power on the virtual machine and observe how the information ia the Fault Tolerance pacel changes. 40. Select Lab Cluster in the inventory and click the Virtual Machines tab. Notice that both the primary and the secondary virtual machines are displayed in the list. Task 4: Test Fault Tolerance In this task, you will est the Fault Tolerance configuration. Student A should do the steps in this task. 1. Open consoles to the primary and the secondary virtual machines. Arrange the consoles side by side. Log in to the primary virtual machine as user Administrator. 2. Inthe primary virtual machine, ogen a Command Prompt window and type ipconfig. What is the IP address of the primary virtual machine? 3. Start a continuous ping to your ESXi host: # ping -t 4. In the inventory, right-click your virmal machine and select Fault Tolerance > Test Failover to sirmulate a virtual machine failure 5. Quickly view the virtual machine consoles side by side and watch what heppens over the next couple of minutes. (Pay special atention to the console title bars.) What did you observe during the test? Did the ping operation see an increase in its TTL value during the failover? Lab21 Configuring VMware vSphere Fault Tolerance 123 6. Click the Lab Cluster’s Virtual Machines tab. View the host information displayed for the primary and the secondary virtual machines 7. in the Virtual Machines tab, double-click the primary viral machine to open the virtual machine's Summary tab, View the Fault Tolerance information. 8 Access the console of the primary virtual machine, Press Ctrl+C to stop the continuous pings. Close the consoles. Task 5: Disable Fault Tolerance In this task, you will disable Fault Tolerance for the virtual machine. Student B should do the steps in this task. 4. in the inventory, right-click the protected virtual machine and select Fault Tolerance. 2. Compare the waming messages that you would see if you were tuming off Fault Tolerance ‘nstead of disabling Fault Tolerance: a. Click Turn Off Fauit Tolerance. A warning message is displayed. Read the waming message and notice which actions are taken. Click No. b. Right-click the protected virtual machine and select Fault Tolerance. Select Disable Fault Tolerance. Read the warning message and notice which actions are taken. Click No. ‘Wht is the difference between Turn Off Fault Tolerance and Disable Fault Tolerance? 3. Tum offFault Tolerance. Right-click the protected virtual machine and select Fault Tolerance > Turn Off Fault Tolerance. At the warning message, click Yes 4. Verify that the Fault Tolerance pane on te Summary tb is no longer present. Leave the vSphere Client opea for the neat lab. 124 Lab 21 Configuring VMware vSphere Fault Tolerance Lab 22 vSphere Distributed Resource Scheduler Objective: Implement a DRS cluster In this lab, you will perform the following tasks: 1. Create load imbalance. Create a DRS cluster. Verify proper DRS cluster functionality. Create, test, and disable an affinity rue. Create, test, and disable an anti-affinity rule. Pak eN Create, test, and disable a virtual machine to hostan affinity nule. Preparing for the lab Record the following information: ‘Team VMwere® vCenter Server™ system name Team vCenter Server root password ‘Virtual machine Administrator password ‘VMware vSphere® ESXi™ host to partner with, Lab22_ vSphere Distributed Resource Scheduler 125 Task 1: Create load imbalance In this task, you will create load imbalince across the hosts. Student A should de the steps in thistask 1. Ifthe VMware vSphere® Client™ is notalready active, log in to the team vCemter Server system as user root. Use the password that you recorded ia “Prepering forthe lab.” 2. Migrateall the virtual machines to one host. See Lab 12 for a review of how to perform migrations. 3. Select Home > Inventory > Hosts and Clusters, 4, Select Lab Cluster in the inventory and click the Virtual Machines tab. 5. Power on all virmal machines on one host. Right-click each virtual machine and select Power > Power On. Wait for all viral machines to power on. 6. Startan instance of epubusy. vis in three or four of the powered on virtual machines: a. Right-clicka virtual machine and sclect Open Console. b. Login to your virtual machine as user Administrator, with the password that you recorded in “Preparing for the lab.” c Start an instance of the cpudusy . vbs script (on the virtual machine's desktop) by right clicking the script and selecting Open with Command Prompt, . Repeat task 6 until you have three or four virtual machines running CPU busy ‘The number of virtual machines running cpubusy. vbs necessary to caust VMware vSphere® Distributed Resource Scheduler™ (DRS) to begin migrations depends on the resource capacity ofthe lab infrastructure. Your instructor can advise you on how many virtual machines running cpubuay vb youneed Task 2: Create a DRS cluster In this task, you enable DRS on an existing cluster. Student B should do the steps in this task. 1. If the vSphere Client is not already active, log in to the team vCenter Server system as user root. Ust the password that you recorded in “Preparing for the lab.” 2. Select Home > Inventory > Hosts and Clusters. 126 Lab 22 Sphere Dstributed Resource Scheduler 3. Right-click the Lab Cluster inventory object and select Edit Settings: a. In the left column, ensure that Cluster Features is selected and selectthe Turn on vSphere DRS check box. b. In the left pane. click vSphere DRS and selest Manual forthe automation level Move the Migration Threshold slider to the right to Aggressive d. Click OK w apply the changes. Task 3: Verify proper DRS cluster functionality In this task, you will verify that the DRS cluster is functioning properly. Studeat A should do the steps in this task, 1. Select Home > Inventory > Hosts and Clusters, 2. Click the Lab Claster inventory cbject. 3. Click the DRS tab. 4, Click the Run DRS link. Clicking this link forces DRS to immediately evaluate the cluster and provide recommendations instead of waiting the standard 5 minutes before generating recommendations 5. Click the Summary tab. 6. Observethe vSphere DRS panelon the Summary tab. Does the Current host load standard deviation field show that the load is imbalanced? 7. Click the View Resource Distribution Chart link This chart displays the CPU or memory use perhost. Point to each colored square. You see information on how much of the entitled resource (CPU or memory) each virtual machine 's using. 8. Close the chart window. 9. Click the DRS tb. 10. Review the DRS recommendations. ‘11. Click Apply Recommendations and monitor the Recent Tasks pane for virtual machine migrations. Wait for the virtual machine migrations to complete. 12. Click the Run DRS linkin the upper right corner of the DRS tab. This action forces DRS to evaluatethe cluster status, Lab22_ vSphere Distributed Resource Scheduler 127 43. Click the Summary tab. Does the current host load standard deviation show that the load is balanced? 14. Sup the coubusy. vbs scripts in each vimual machine. Press CwrC in each epubusy window. 15, Close the virmal machine consoles, Task 4: Create, test, and disable an affinity rule In this task, you will create a rule that forces 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 virmal machine that you own is running on a different ESXi host, Ifthe virtual machines that you own, are running on the same ESXi host, select one to migrate to the other ESXi host in the cluster before you goto step 2. Ifyou 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 box is displayed, 3. Inthe left pane, select vSphere DRS > Rules. 4 Click Aad 5. Perform the following actions in the Rules dialog box. Field Action Name ‘Type Colocate VMs. Type Select Keep Virtual Machines Together. Virtual Machines Click Ada. Inthe Vietual Machines dislog box, select the check box next to each ofthe virtual machines that you own, named ##-<. Click OK. 128 Lab 22 vSphere Distibuted Resource Scheduler In the Rules dialog box, click OK. Click OK to close the Lab Cluster Settings dialog box. Click the Lab Cluster DRS tab. Evaluate the cluster configuration by clicking the Rum DRS link.Do yousee any recommendations? eexne Why or why nor?, a If you did not get a recommendation, use VMware vSphere® vMotion® migration to move one of your named virtual machines to the other ESXi host inthe cluster. Return to the DRS tab and click Run DRS to see what the results are 40. Ifyou are ahead of your lab partner, wait for your partnerto reach this point in the lab. 41. Student A should click Apply Recommendations and monitor the Recent Tasks pane as the recommendation is applied. The virtual machines associated with your affinity rule are migrated 1 one of the two hosts in the DRS cluster. 12. Click the Virtual Machines tab. 13, Click the Host column heacling sort the virtual machines by the FSXi host on which they reside. The virtual machines that you owa should be running on the same ESXi host. 14. Right-click the Lab Cluster inventory object and select Edit Settings. 46, Inthe left pane, select vSphere DRS > Rules. 16. To disable the aifinity rule, deselect the check box next to your affinity rule and click OK, To delete an affinity rule, you select the rule and click Remove. For this lab, keep the rule disabled. Lab22_ vSphere Distributed Resource Scheduler 129 Task 5: Create, test, and disable an anti-affinity rule In this task, you create a rule that forces the separation of virtual machines onto different ESXi hosts. Students should do the steps in this task individually. 4. Right-click Lab Cluster in the inventory and select Edit Settings, The Lab Cluster Settings dialog box is displayed 2. Onthe vSphere DRS > Rules page, click Add. 3. Perform the following actions in the Rules dialog box. Close the Lab Cluster Settings dialog box when you are done. Rule field for anti-affinity rule 1 Action Name ‘Type Separate VMs. Type Select Separate Virtual Machines. Virtual Machines Click Ada, In the Virtual Machines dialog box, select the check box next to each of the virtual machines that you ‘own, named ##-#. Click OK. tn the Rules dialog box, click OK. Click OK to close the Lab Cluster Settings dialog box. Click the Lab Cluster DRS tab. Noms 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 be displayed. If recommendation is not displayed, check the rules that you created to verify the accuracy of your inputs, 8 Ifyou are ahead of your lab partner, wait for your partner to reach this point in the lab. 9. Student B should click Apply Recommendations 40. Monitor the Recent Tasks pane as the recommendations are applied. The virtual machines with anti-affinity rules applied to them are migrated to another ESXi host in the cluster. ‘11. Click the Virtual Machines tab. 130 Lab 22. vSphere Distributed Resource Scheduler 12. 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. 43. Right-click Lab Cluster inventory object and select Edit Settings 14. In the left pane, select vSphere DRS > Rules. 15, To disable the anti-affinity rule, select the check box next to your ant-affinity mule and click OK. To delete an anti-affinity rule, you select the rule and click Remove. For this lab, the rule is only disabled. Task 6: Create, test, and disable a virtual machine to host an affinity rule In this task, you create virtual machine and host DRS groups. You creste a rule that dictates which ESXi hosts that your virtual machines can run on. Students should do the steps in this task individually. 4. Right-click Lab Cluster in the vCemter Server inventory and select Edit Settings In the left pane, select vSphere DRS > DRS Groups Manager. In the Virtual MachinesDRS Groups panel, click Add. Aen In the DRS Group window, perform the following steps a. Typt -VMs in the Name field b. Click one of your named virtual machines to select it & Click >> to move your virtual machine to the box on the right. . Perform steps 4b and 4e to move your other virtual machine the bor on the right. @. Clik OK. 5. In the Hosts DRS Groups panel, click Add. 6. Inthe DRS Group window, perform the following steps a. Type -ESXi host ia the Name field b. Click the ESXi hostassigned to you o selectit & Click>> tomove your ESXi host tothe box on the right. d. Click OK. In the left pane, click Rules. 8 Click Add Lab22__vSphere Distributed Resource Scheduler 131 9. Inthe Rules dialog box, perform the following actions. Field/Setting Action Name ‘Type Run only on -ESXi host. Type Select Virtual Machines to Hosts from the drop-down mem, ‘Cluster VM Group Select -VMs from the drop-down menu. Select Must run on hosts in group from the drop-down menu. (Cluster Host Group Select -ESXi host from the drop-down menu. 40. Click OK to close the Rules dialog box. 11, Click OK to close the Lab Cluster Setings window. 42. Click the Lab Cluster DRS tab. 43. Click the Run DRS link to make DRS evaluate the state ofthe cluster and make recommendations. A recommendation to separate your virtual machines should be displayed. ‘Why has DRS made this recommendation?, 14. Ifyou are ahead of your lab partner, wait for your partner to reach this point in the lab. 15. Suadent A should click Apply Recommencations, 16. Monitor the Recent Tasks pane asthe recommendations are applied. The virtual machines with ‘virtual machine to host affinity rules applied to them are migrated to another ESXi host in the chster. 17. Click the Virtual Machines tab. 48. Click the Host column heading to sort the virtual machines by the ESXi host on which they reside, The virtual machine that you own that was running on your partner’sESXi host should. have been migrated to your ESXi host. 19. Right-click one of your named virtual machines in the inventory and click Migrate. 20. Inthe Migrate Virtual Machine wizard, perform the following actions, Select Migration Type Select Change host Select Destination Expand the inventory view and select your partner's ESXi host 132 Lab 22 vSphere Distibuted Resource Scheduler 21. What do you seein the Compati field? 22. Click Cancel toclose the Migrate Virtual Machine wizard. 23, Right-click the Lab Cluster inventory object and select Edit Settings. 24. Inthe left pane, select vSphere DRS > Rules 25. To disable your virmal machine host aifinity rule, select the check box next to your rule to remove the check and click OK. Leave your vSphere Client open for the next lab. Lab22_ vSphere Distributed Resource Scheduler 133 Lab 23 VMware vSphere Update Manager Objective: Install, configure, and use Update Manager Tathis lab, you will perform the following tasks: Install Update Manager Install the Update Manager plug-in into the vSphere Client Modify cluster settings. Configure Update Manager. eate & patch baseline. Attach a baseline and scan for updates Stage the patches onto the ESXi hosts 8. Remediate the FSXi hosts Lab23 VMware vSphere Update Manager 135 Preparing for the lab Record the following information: “VMware vSphere® Update Manager™ system name Location of installation software Setup language Shared datastore ‘Team VMware® vCenter Server™ system name ‘Team vCenter Server root password ‘VMware vSphere® ESXi™>patch bundle Task 1: Install Update Manager In this task, you will install Update Manager into one of the two desktop machines in your environment. Do this task as a team. Sudent A should perform this task 4. Open a connection to the desktop of the Update Manager system that you recorded in “Preparing for the lab.” This action is typically done with Remote Desktop Connection. Your instructor will provide specific details if you are to use some other technology. Goto the location of the installation software, which you recorded in “Preparing for the lab” Double-click autorun. exe. IESecurity Warning dialog boxes are displayed, click Run. In the VMware vCenter Installer window, click the VMware vSphere Update Manager link. (Click Install to start the installation wizard NOOR en Click Run when the Security Warning dialog box is displayed. 136 Lab 23 VMware vSphere Update Manager 8. When prompted by the installation wizard, perform the following actions 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 accept theterms in the license agreement and click Next SupportInformation Deselect Download updates from default sources immediately after installation and click Next. IP Address/Name Enter the team vCenter Server system name or IP address that you recorded in “Preparing for the lab.” Port Accept the default Username ‘Type root. Password Enter the wot password that you recorded in “Preparing for the lab.” Click Next. Database Options Accept the default and click Next VMware vSphere Update Manager Port Settings fname resolution is working, selectthe hostname from. the drop-down mens, If name resolution is not workiag, select the P address ftom the drop-down menu. “Accept the default selection for all other settings and click Next. Destination Folder ‘Accept the default selection for all other settings and click Next. Click OK when the warning box is displayed, Ready to Installthe Program Click Install. 9. Click Finish to close the installation wizard. 10. Click Exit w close the VMware vCenter Installer window. Lab23_ VMware vSphere Update Manager 137 Task 2: Install the Update Manager plug-in into the vSphere Client In this task, you will install the Update Manager plug-in into the VMware vSphere® Client™ on ‘your desktop system, Students should do the steps in this task individually. 4. Open the vSphere Client and log in to your team vCenter Server system as user root. Use the password that you recorded in “Preparing for the lab.” 2. Inthe menu bar, select Plug-ins > Manage Plug- 3. Under Available Plug-ins in the Plug-in Manager window, click the Download and Install link next to VMware vSphere Update Manager Extension, 4, When prompted by the VMware vCenter Update Manager Client 5.1 wizard, perform the following actions. If Security Warning dialog boxes are displayed, click Run. Field/Setting Action 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 8. When the insallation completes, click Finish b. When the security waming is displayed, select Install this certificate and do not display any security warnings for “” tp prevent this warning from being displayed in the future. ¢. Click tgnore to proceed with the connection, 4. Verify in the Plug-in Manager window that the Update Manager plug-in was enabled, @. Click Close to close the Plugin Manager window. Keep the vSphere Client open. 138 Lab 23 VMware vSphere Update Manager Task 3: Modify cluster settings In this task, you will enable VMware vSphere® Distributed Resource Scheduler™ (DRS) in fully automated mode and disable VMware vSphere® High Availability admission control, Sudents should work as a team to complete this task. Student B should perform 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 is displayed. 3. Inthe left pane, select vSphere DRS. Select Fully Automated. This operation ensures thet DRS migrates virtual machines to other nodes inthe cluster. 4. Inthe left pane, select vSphere HA. Click Disable: Allow VM power on operations that violate availability constraints in the Admission Control field, Click OK. 6. Select Lab Cluster in the inventory and click the Resource Allocation tab. 7. Observe the Reservations column to verify that 20 CPU and memory reservations are assigned 1 virtual machines. Removing CPU and memory reservations is necessary for this training, environment. Ina production environment, you might not have to remove CPU or memory reservations. Task 4: Configure Update Manager In this task, you will import ESXi host patches from an archive on your desktop and configure settings for Update Manager. Do this task as a team. Student A should perform this task 4. Select Home > Solutions and Applications > Update Manager. 2. Click the Configuration tab. 3. Click the Download Settings link 4, Click the Import Patches link. 5. Click Browse and select the ESXi patch bundle that you seconded in “Preparing for the lab.” Click Next 6. When the security waming is displayed, select Install this certificate and do not display any security warnings for “” to prevent this warning from being displayed in the funure. 7. Click Ignore to proceed with the connection, 8 Click Finish to complete the import operation. Lab23 VMware vSphere Update Manager 139 Task 5: Create a patch baseline In this task, you will create apatch baseline for both ESXi hosts and scan the ESXi hosts for compliance. Do this task as # team, Student B should perform this task 1. Click the Baselines and Groups mb. 2. In the Baselines panel, click the Create link. ‘You see two Create links: one under the Baseline panel end one under the Baseline Groups panel. Click the Create link under the Baseline panel 3. When prompted by the New Baseline wizard, perform the following actioas. Field/Setting Action Baseline Name ‘TypeESKi Host Update. Baseline Description Type Patch for ESKi 5.1 Baseline Type Keep the definlt value and click Next Patch Options Select Fixed and click Next. Patches Scroll to the right and select patch ESXi510-201303202-UG Click the down arrow under the horizontal scroll bar to add the patch to the Fixed Patches to Add pane and click Next Ready to Complete Review yourpatch baseline. Verify the accuracy of Baseline Name and Baseline Type and lick Finish. Task 6: Attach a baseline and scan for updates In this task, you will sean the ESXi hosts in your cluster for baseline compliance. Do this task as a team, Student A should perform this task. 4. 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. If you do not see the Update Manager tab, click the right arrow to access it 3. Click the Attack link. The Attach Baseline or Group dialog box is displayed. 140 Lab 23 VMware vSphere Update Manager 4, Select the check box next to ESXi Host Update and click Attach 5. Click the Sean link. 6. Inthe Confim 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 forthe sean to finish. When the tsk is complete, the scan should discover that the ESXi hosts are noncompliant Task 7: Stage the patches onto the ESXi hosts In this task, you will copy the patches contained in the baseline to your ESXi host and apply the patches. Students should do the steps in this task individually. 4. You should see both ESXi hosts on the Lab Cluster Update Manager tab. Select your host from the right pane, not from the vCemter Server inventory in the left pane. 2. Click Stage. When prompted by the Stage wizard, perform the following actions Field/Setting Action Baseline Selection, Accept the default selections and click Next. In the Patches column, you see that zero patches are staged. Patch and Extension Accept the default selections and click Next. Exclusion Ready to Complete Click Finish. 4, Monitor the Recent Tasks pane fbr the staging tasks, Wait for the tasks to complete Both team members must complete task 7 before proceeding to task 8 Lab23_ VMware vSphere Update Manager 141 Task 8: Remediate the ESXi hosts In this task, you will apply the patches that were staged in task 7. Do this taskas a team. Student B should perform this task. 4. Select Lab Cluster in the vCenter Serverinventory. 2. To begin the pathing process, click Remediate. 3. When prompted by the Remediate wizard, perform the following actions. Fiold/Sotting Action Remediation Selection Leave the deffult and click Next Patches and Extensions Leave the default and click Next Schedule Leave the default and click Next Host Remediation Options _Select Disable any removeable media devices connected to the virtual machines on the host. ‘Leave all other fields at their default selection and click Next ClusterRemediation Options Deselect Disable Distributed Power Management (DPM) if itis enabled for any of the selected clusters. Click Generate Report to identify which tasksthe remediation process performs for you. Click Close and click Next. Ready to Complete Review and verify your selections for accuracy. Click Finish, 4, Monitor the Recent Tasks pane and answer the following questions: a b. c. 142 ‘Which ESXi host was remediated first? ‘Was it placed into maintenance mode by the remediation process? ‘Were virtual machines migrated to the othernode in eluster?, ‘Was the patch installed on the ESXi host in maintenance mode?, ‘Was the patched FSXi host rebooted? Lab 23 VMware vSphere Update Manager 1. Didthe patched ESXi host exit maintenance mode?, g. Wasthe othernode placed into maintenance mode?, ‘Were the virtual machines that the ESXi host migrated to the other node in cluster? i. Was the other ESXi hostpatched?, J. Didthe other node exit maintenance mode? ‘The hosts in Lab Cluster show 100 percent compliance when remediation completes, Lab23 VMware vSphere Update Manager 143 Lab 24 (Optional) Installing VMware vCenter Server Objective: Install vCenter Server components In this lab, you will perform the following tasks: 4. Install vCenter Server. Preparing for the lab ‘Record the following information: ‘Your VMware® vCenter Server™ system name ‘vCenter Server Adrtinistrator password Location of the vCenter Server installation software Setup language Local system name UNC user name UNC user password Lab24 (Optional) Installing VMware vCenter Server 145, Task 1: Install vCenter Server In this task, you will install vCenter Server software. Students should do the steps in this task. individually. 1. Goto the location of the yCenter Server iastallatica software, which you recorded in “Preparing for the lab.” 2. Start the VMware vCenter Installer + Ifyou have én ISO image or physical CD-ROM mounted on the vCenter Server systern’s CD-ROM drive and autorun is enabled, the installer main window is displayed + Forfiles that are loceted in alocal folder or that are on a network share, open the folde- containing the files and double-click the autozun. exe file, + Ifsecurity warning messages are displayed, click Run to continue, 3. Click the vCenter Server Simple Install link and click Install. fa security waming message 's displayed, click Run t continue. 4. When prompted by the installation wizard, perform the following actions Field/Setting Action 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. You do not assign a license for this lab. Single Sign On Information _In the Password and Confirm Password fields, type the password that you recorded in “Preparing for the lab.” Single Sign On Database Acceptthe default option and click Next Local System Information _In the Fully Quulified Domain Name or IP address field, verify that the name you recorded in “Preparing for the lab” and click Next Security SupportProvider _ Acceptthe default apticn and click Next. Interface Destination Folder ‘Accept the default folder and click Nest. 146 Lab 24 (Optional) Installing VMware vCenter Server Field/Setting Action ‘vCenter Single Sign On Port Settings ‘Accept the defiult port and click Next Ready to Install Database Initialization ‘Warning Click Install. Accept the default value and click Next. Ready to Install Click Install License Key Database Options Don’tenter a license key and install in evaluation mode and click Next Select Install 2 Microsoft SQL Server 2008 Express instance and click Next Center Server Service Select Use SYSTEM Account. Verify that the default fly qualified domain name matches your local system name, which you recorded in “Preparing for the lab.” Ifthe values, do notmatch, change the FQDN to the correct value. Click Next Configure Ports ‘Accept the default and click Next. vCenter Server JVM Accept the default and click Next. Memory Ready to Install the Program Click Install. 5. When the installation is complete, click Finish to exit the wizard, 6. Close the VMware vCenter Installer window. Lab24 (Optional) Installing VMware vCenter Server 147

You might also like