124491415 vmware vsphere 5 education student laboratory exercises

Upload: dhrubagogoi

Post on 10-Oct-2015

59 views

Category:

Documents


0 download

DESCRIPTION

vmware

TRANSCRIPT

  • VMware Education ServicesVMware, Inc.

    www.vmware.com/education

    VMware vSphere:Install, Configure, ManageStudent Laboratory ExercisesESXi 5.0 and vCenter Server 5.0

    VS5ICM_LabGuide.book Page 1 Monday, August 8, 2011 9:38 AM

  • www.vmware.com/education

    Copyright/Trademark

    Copyright 2011 VMware, Inc. All rights reserved. This manual and its accompanying materials are protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents. VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. All other marks and names mentioned herein may be trademarks of their respective companies.

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

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

    VMware vSphere:Install, Configure, ManageESXi 5.0 and vCenter Server 5.0Part Number EDU-ENG-ICM5-LAB-STUStudent Laboratory ExercisesRevision A

    VS5ICM_LabGuide.book Page 2 Monday, August 8, 2011 9:38 AM

  • VMware vSphere: Install, Configure, Manage i

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

    Lab 1: Install VMware vSphere Graphical User Interfaces. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1Lab 2: Configuring VMware ESXi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5Lab 3: Working with Virtual Machines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9Lab 4: Configure VMware vCenter Server Appliance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17Lab 5: Using VMware vCenter Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23Lab 6: Standard Virtual Switches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29Lab 7: Accessing IP Storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33Lab 8: (Optional) Designing a Network Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39Lab 9: Managing VMware vSphere VMFS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43Lab 10: Using Templates and Clones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51Lab 11: Modifying a Virtual Machine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59Lab 12: Migrating Virtual Machines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .65Lab 13: Managing Virtual Machines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .71Lab 14: Access Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .79Lab 15: Resource Pools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87Lab 16: Monitoring Virtual Machine Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .91Lab 17: Using Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .95Lab 18: Using vSphere High Availability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .101Lab 19: vSphere Distributed Resource Scheduler (DRS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .105Lab 20: VMware vCenter Update Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113Lab 21: Installing VMware vCenter Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .123

    VS5ICM_LabGuide.book Page i Monday, August 8, 2011 9:38 AM

  • ii VMware vSphere: Install, Configure, Manage

    VS5ICM_LabGuide.book Page ii Monday, August 8, 2011 9:38 AM

  • 1

    Lab 1 Install VMware vSphere Graphical User Interfaces 1

    Lab 1Install VMware vSphere Graphical User Interfaces :

    Objective: Install student desktop components1. Install the vSphere Client.

    2. Install vSphere Web Access.

    3. Install the Web Client (Server).

    Preparing for the labRecord the following information:

    Location of installation software

    Setup Language

    Your VMware ESXi host name

    ESXi host user name

    ESXi host root password

    VS5ICM_LabGuide.book Page 1 Monday, August 8, 2011 9:38 AM

  • 2 Lab 1 Install VMware vSphere Graphical User Interfaces

    Task 1: Access your student desktop systemIn this task, you log in to your student desktop system as user Administrator.

    1. Ask your instructor how to access your student desktop system. For example, your instructor might have you use Remote Student Desktop Connection.

    2. Log in to your student desktop system as user Administrator, with the password that you recorded in Preparing for the lab.

    Task 2: Install the vSphere ClientIn this task, you install the VMware vSphere Client on your desktop system and verify that the installation succeeded. Students should do the steps in this task individually.

    1. Go to the location of the student desktop installation software, which you recorded in Preparing for the lab.

    2. Double-click autorun.exe and click Run.

    a. If Security Warning dialog boxes appear, click Run to continue.

    3. In the VMware Infrastructure Management Installer window, click vSphere Client.

    4. Click Install to start the installation wizard.

    a. If Security Warning dialog boxes appear, click Run to continue.

    5. When the install wizard appears, enter the following information:

    Field/setting Action

    Setup Language Select the setup language that you recorded in Preparing for the lab and click OK.

    Welcome page Click Next.

    End-User Patent Agreement Click Next.

    License Agreement Select I agree to the terms in the license agreement and click Next.

    User Name Type VMware student.Organization Type VMware and click Next.

    VS5ICM_LabGuide.book Page 2 Monday, August 8, 2011 9:38 AM

  • 1

    Lab 1 Install VMware vSphere Graphical User Interfaces 3

    6. When the installation is complete, click Finish.

    7. Log in to your VMware ESXi host with the vSphere Client.

    a. Double-click the vSphere Client icon on your student desktop system.

    b. Enter the IP address or host name of your first ESXi host in the IP Address / Name field.

    c. Type root for the ESXi user name and type the password that you recorded in Preparing for the lab.

    d. Click Login.

    e. Select Install this certificate and do not display security warnings for to prevent this warning from being displayed in the future.

    f. Click Ignore to proceed with the connection.

    g. Click OK when the VMware Evaluation Notice dialog box appears.

    8. In the Inventory pane, click Inventory to verify that your ESXi host appears at the top of the inventory view on the left side of the window.

    9. In the vSphere Client menu bar, select File > Exit to close the vSphere Client.

    Task 3: Install the Web Client (Server)In this task, you install the VMware vSphere Web Client on your student desktop system and verify that the installation succeeded. Students should do the steps in this task individually.

    1. If you closed the installer from task 2, restart the installer:

    a. Go to the location of the student desktop installation software, which you recorded in Preparing for the lab.

    Destination Folder Accept the default and click Next.

    Ready to Install the Program Click Install.

    Field/setting Action

    VS5ICM_LabGuide.book Page 3 Monday, August 8, 2011 9:38 AM

  • 4 Lab 1 Install VMware vSphere Graphical User Interfaces

    b. Double-click autorun.exe and click Run.

    c. When the Security Warning dialog box appears, click Run.

    2. In the VMware vCenter Installer window, click vSphere Web Client (Server) to start the installation wizard.

    3. Click Install.

    4. When the installation is complete, click Finish.

    When you click Finish, the vSphere Web Client Administration Tool starts in a Web browser and prompts you to connect to a VMware vCenter Server instance. Do not register your vCenter Server instance at this time. You will register with a vCenter Server system in a later lab.

    5. Close the browser.

    6. Click Exit to close the VMware vCenter Installer window.

    Field/setting Value

    Setup Language Select the setup language that you recorded in Preparing for the lab and click OK.

    Welcome page Click Next.

    End-User Patent Agreement Click Next.

    License Agreement Select I agree to the terms in the license agreement and click Next.

    User Name Type VMware student.Organization Type VMware. Click Next.Port Settings Accept the default and click Next.

    Destination Folder Accept the default and click Next.

    Ready to Install the Program Click Install.

    VS5ICM_LabGuide.book Page 4 Monday, August 8, 2011 9:38 AM

  • 2

    Lab 2 Configuring VMware ESXi 5

    Lab 2Configuring VMware ESXi :

    Objective: Configure an ESXi hostIn this lab, you will perform the following tasks:

    1. Connect to an ESXi host with the vSphere Client.

    2. View host hardware configuration.

    3. Configure DNS and routing information for an ESXi host.

    4. Configure the ESXi host as an NTP client.

    Preparing for the labRecord the following information:

    Your VMware ESXi host name

    ESXi host user name

    ESXi host root password

    Domain name

    NTP Server

    Preferred DNS server

    VMkernel default gateway

    VS5ICM_LabGuide.book Page 5 Monday, August 8, 2011 9:38 AM

  • 6 Lab 2 Configuring VMware ESXi

    Task 1: Connect to an ESXi host with the VMware vSphere ClientIn this task, you use the VMware vSphere Client to log in to an ESXi host. Students should do the steps in this task individually.

    1. Log in to a system from which you can start the vSphere Client. The instructor provides you with login procedures for your specific lab environment.

    2. Double-click the vSphere Client icon on the systems desktop.

    3. Enter the host name of your ESXi host, which you recorded in Preparing for the lab.

    4. Type the user name root and type the ESXi host root password that you recorded in Preparing for the lab. Click Login.

    5. If you see a certificate warning, click Ignore.

    6. When the VMware Evaluation Notice window appears stating when your evaluation license expires, click OK. The vSphere Client Home page appears. You should see your host in the inventory panel. If it is not there, click Home and click Inventory in the menu bar.

    7. Your host is listed in the inventory panel.

    Task 2: View host hardware configurationIn this task, you view the health of the host hardware, as well as processor and memory information. Students should do the steps in this task individually.

    1. Click the Configuration tab of your ESXi host. The hardware health status view is displayed. View the status by expanding objects in the Sensor list.

    TIP

    When you are connected to a host through VMware vCenter Server, you use the Hardware Status tab to monitor the health of the host.

    2. In the Hardware panel, click Processors. View the processor model, processor speed, and other information about your ESXi host processors.

    3. In the Hardware panel, select Memory. View the total physical memory and how much memory is used by the system and by the virtual machines.

    VS5ICM_LabGuide.book Page 6 Monday, August 8, 2011 9:38 AM

  • 2

    Lab 2 Configuring VMware ESXi 7

    Task 3: Configure DNS and routing information for an ESXi hostIn this task, you verify the DNS and routing information for your ESXi host. Students should do the steps in this task individually.

    1. Select your ESXi host 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 and Routing Configuration panel, enter the following values. When you are finished, click OK.

    5. Click OK to dismiss the DNS and Routing Configuration dialog box.

    Field/setting Action

    Domain Verify that the domain name matches the value that you recorded in Preparing for the lab.

    If the domain name does not match, enter the domain name that you recorded in Preparing for the lab.

    Use the following DNS server address

    If this field is populated, verify the setting matches the preferred DNS server that you recorded in Preparing for the lab.

    If this field is empty or incorrect, enter the value for preferred DNS server that you recorded in Preparing for the lab.

    Look for hosts in the following domains

    Leave the default.

    Click the Routing tab.

    Default Gateway Verify the IP address for the VMkernel default gateway that you recorded in Preparing for the lab.

    If the default gateway is not defined or is incorrect, enter the IP address that you recorded in Preparing for the lab.

    VS5ICM_LabGuide.book Page 7 Monday, August 8, 2011 9:38 AM

  • 8 Lab 2 Configuring VMware ESXi

    Task 4: Configure the ESXi host as an NTP clientIn this task, you configure the Network Time Protocol client on the ESXi host to synchronize its time with an NTP server. Students should do the steps in this task individually.

    1. Select your ESXi host in the inventory and click the Configuration tab.

    2. In the Software panel, click Time Configuration. View the current settings, which show that the NTP client is stopped and that no NTP server is defined.

    3. Click Properties. The Time Configuration dialog box appears.

    4. Click OK to exit the Time Configuration dialog box.

    5. Verify that the Time Configuration pane lists the NTP server that you added and that the NTP Client is listed as Running.

    6. Leave the vSphere Client open for the next lab.

    Field/setting Action

    Date and Time Record 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 In the NTP Servers dialog box, click Add and type the NTP server name or IP address that you recorded in Preparing for the lab.

    Restart NTP service to apply changes Select the check box and click OK.

    VS5ICM_LabGuide.book Page 8 Monday, August 8, 2011 9:38 AM

  • 3

    Lab 3 Working with Virtual Machines 9

    Lab 3Working with Virtual Machines :

    Objective: Create and prepare virtual machines for useIn this lab, you will perform the following tasks:

    1. Create a virtual machine.

    2. Install a guest operating system in a virtual machine.

    3. Identify a virtual machines disk format and usage statistics.

    4. Install VMware Tools on a virtual machine installed with a Windows operating system.

    5. Enable time synchronization between a virtual machine and an ESXi host

    6. Copy programs from CDROM to your virtual machine.

    Preparing for the labRecord the following information:

    Your VMware ESXi host name

    ESXi host user name

    ESXi host root password

    Location of ISO images

    Virtual machine datastore

    VS5ICM_LabGuide.book Page 9 Monday, August 8, 2011 9:38 AM

  • 10 Lab 3 Working with Virtual Machines

    Task 1: Create a virtual machineIn this task, you use the Create New Virtual Machine wizard to create a virtual machine on the your ESXi host. Students should do the steps in this task individually.

    1. If the VMware vSphere Client is not already active, use it to log in to your first ESXi host. Use the root user name and password that you recorded in Preparing for the lab.

    2. In the address bar of vSphere Client, click Home and click the Inventory icon.

    3. Right-click your ESXi host in the inventory and select New Virtual Machine.

    4. When prompted by the Create New Virtual Machine wizard, enter the following values.

    Guest operating system version

    Virtual machine Administrator password

    Field/setting Action

    Configuration Click Custom and click Next.

    Name (of virtual machine) Name the new virtual machine with your first name, followed by the number of your ESXi host and a sequence number, starting with 1. For example, Greg has an ESXi host named goose06. The name of his virtual machine is Greg06-1.

    Click Next.

    Datastore Select the that you recorded in Preparing for the lab and click Next.

    Virtual Machine Version Keep the default and click Next.

    Guest Operating System Recorded in Preparing for the lab

    Number of virtual processors Keep the default and click Next.

    Memory To ensure that you are configuring 384MB of memory (not GB), select MB from the drop-down menu and type 384 in the space provided.

    VS5ICM_LabGuide.book Page 10 Monday, August 8, 2011 9:38 AM

  • 3

    Lab 3 Working with Virtual Machines 11

    5. In the Hardware list, click New CD/DVD (adding).

    6. Click Datastore ISO file.

    7. Click Browse and go to the ISO image that you recorded in Preparing for the lab.

    8. Click Open.

    9. Select the ISO image that corresponds to the guest operating system that you selected during virtual machine creation and click OK.

    10. In the Virtual Machine Properties dialog box, select the Connect at power on check box.

    11. Click Finish to save the changes.

    12. Verify that the new virtual machine appears in the inventory panel.

    13. In the inventory panel, select the virtual machine that you created and click the Summary tab. Record the following information.

    How many NICs do you want to connect Keep the default value of 1.

    NIC 1 Network Keep the default.

    NIC 1 Adapter Keep the default.

    Connect at Power On Leave selected and click Next.

    SCSI Controller Keep the default and click Next.

    Disk Keep the default and click Next.

    Disk Size Type 2GB.Disk Provisioning Click Thin Provision.

    Location Keep the default and click Next.

    Virtual Device Node Keep the default.

    Mode Independent Leave unselected and click Next.

    Ready to Complete Click the Edit the virtual machine settings before completion check box and click Continue. The Virtual Machine Properties dialog box appears.

    Field/setting Action

    VS5ICM_LabGuide.book Page 11 Monday, August 8, 2011 9:38 AM

  • 12 Lab 3 Working with Virtual Machines

    Task 2: Install a guest operating system in a virtual machineIn this task, you monitor an unattended installation of a Windows guest operating system in the virtual machine from the Console tab. Students should do the steps in this task individually.

    1. From the Summary tab, click Power On in the Commands panel.

    2. Click the Open Console link and monitor installation progress.

    The Windows guest operating system should perform an unattended installation. After your virtual machine powers on, it begins to install the guest operating system. The installation might take up to 25 minutes.

    3. After the installation has completed, click 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.

    Task 3: Identify a virtual machines disk format and usage statisticsIn this task, you 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 panel, select Hard disk 1.

    3. Under Disk Provisioning, identify the VMDK type. What type of VMDK has been provisioned?______________

    ANSWER: The disk type should read Thin Provision.

    4. Click Cancel to close the Virtual Machines Properties dialog box.

    5. Click the ##-1 virtual machine and click the Summary tab.

    Summary tab field Virtual machine 1

    Provisioned Storage

    Not Shared Storage

    Used Storage

    VS5ICM_LabGuide.book Page 12 Monday, August 8, 2011 9:38 AM

  • 3

    Lab 3 Working with Virtual Machines 13

    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.

    Compare these values to the values listed in task 1, step 13. The values should be different. Although a 2GB virtual VMDK has been configured for this virtual machine, the storage space consumed by the VMDK is lower than the total allocated disk space. The used storage space increases dynamically as the virtual machine is used.

    Task3, step 6: The values Not Shared Storage and Used Storage should be the same for the virtual machine. But when, for example, linked clones are used, the values should be different.

    Summary tab field Virtual machine 1

    Provisioned Storage

    Not Shared Storage

    Used Storage

    VS5ICM_LabGuide.book Page 13 Monday, August 8, 2011 9:38 AM

  • 14 Lab 3 Working with Virtual Machines

    Task 4: Install VMware Tools on a virtual machine installed with a Windows operating systemIn this task, you install VMware Tools on the guest operating system. Students should do the steps in this task individually.

    1. In the Summary tab, click Open Console from the Commands pane.

    2. From the virtual machine console, log in to the guest operating system:

    a. In the menu bar of the virtual machine console, select VM > Guest > Send Ctrl+Alt+Del.

    b. In the Windows login screen, log in as user Administrator with the virtual machine Administrator password that you recorded in Preparing for the lab.

    3. Install VMware Tools into the Windows guest operating system:

    a. In the menu bar of the virtual machine console, select VM > Guest > Install/Upgrade VMware Tools.

    TIP

    If you are unable to move the pointer to the menu bar, press Ctrl+Alt to release the pointer from the virtual machine console.

    b. Read the warning message that appears and click OK.

    c. Click anywhere in the virtual machine console window to give mouse focus to your virtual machine.

    d. The VMware Tools installation wizard starts. On the welcome page, click Next.

    e. On the Setup Type page, leave Typical selected and click Next.

    f. Click Install to start the installation. Over the span of several seconds, several windows are displayed.

    4. If you see a pop-up window informing you that hardware acceleration is not enabled, click Yes and do steps 4a4c. If you do not see the pop-up window, hardware acceleration is already enabled. Go to step 5.

    a. In the Display Properties dialog box, click the Settings tab and click the Advanced button. You might have to move the VMware Tools Installation wizard to the side so that you can see the Display Properties dialog box.

    b. Click the Troubleshoot tab. Drag the Hardware Acceleration bar from None to Full. Click OK.

    c. Click OK to exit the Display Properties dialog box.

    5. Click Finish to exit the VMware Tools Installation wizard.

    VS5ICM_LabGuide.book Page 14 Monday, August 8, 2011 9:38 AM

  • 3

    Lab 3 Working with Virtual Machines 15

    6. When prompted to restart the virtual machine, click Yes.

    7. After the virtual machine finishes rebooting, log in as user Administrator.

    Leave the virtual machine console open.

    Task 5: Enable time synchronization between a virtual machine and an ESXi hostIn this task, you configure VMware Tools to synchronize the time between the virtual machine and the ESXi host. Students should do the steps in this task individually.

    1. In the virtual machine console, notice the time, which is displayed in the notification area.

    2. In the notification area, right-click the VMware Tools icon and select Open VMware Tools.

    3. Select the Time synchronization between the virtual machine and the ESX Server check box and click OK.

    4. Select Home > Inventory > Inventory.

    5. Select your ESXi host from the inventory and click the Configuration tab.

    6. Click the Time Configuration link.

    7. Compare the time in the virtual machine and the ESXi host time. If they do not match, you might have to adjust your virtual machines time zone.

    CAUTION

    Be aware that the virtual machine Timezone/Daylight Savings settings might be different than your current location.

    Task 6: Copy programs from CDROM to your virtual machineIn this task, you connect to the ClassFiles-vSphere.iso image file and copy programs to your virtual machines desktop. This ISO image contains files needed for future labs. Students should do the steps in this task individually.

    1. Connect ClassFiles-vSphere.iso to your virtual machines CD-ROM drive:a. In the icon bar of the virtual machine console window, click the Connect/disconnect the

    CD/DVD devices of the virtual machine icon (the right-most active icon).

    b. Select CD/DVD Drive 1 > Connect to ISO image on a datastore.

    c. Select Classfiles-vSphere.iso and click OK.2. Open your virtual machine console. If autorun does not open the CD-ROM, use Windows

    Explorer and go to the CD-ROM drive (D:).

    VS5ICM_LabGuide.book Page 15 Monday, August 8, 2011 9:38 AM

  • 16 Lab 3 Working with Virtual Machines

    3. Copy the following files from the CD-ROM drive (D:) to the virtual machines desktop:

    cpubusy.vbs iometer.exe

    You use these files in a later lab.

    4. Extract the files from the executable extpart.exe (to be used in a later lab):a. On the CD-ROM, double-click the file extpart.exe.b. In the WinZip Self-Extractor dialog box, click Unzip. Two files are unzipped to the path

    C:\dell\ExtPart. Click OK.c. Click Close to close the WinZip Self-Extractor dialog box.

    5. Disconnect from the Classfiles-vSphere.iso on the CD-ROM drive:a. Right-click the virtual machine in the inventory and select Edit Settings.

    b. In the Hardware list, select CD/DVD Drive 1.

    c. Select Client Device and click OK.

    d. Close the virtual machine console.

    6. Log out of your vSphere Client session (File > Exit.)

    VS5ICM_LabGuide.book Page 16 Monday, August 8, 2011 9:38 AM

  • 4

    Lab 4 Configure VMware vCenter Server Appliance 17

    Lab 4Configure VMware vCenter Server Appliance :

    Objective: Prepare vCenter Server ApplianceIn this lab, you will perform the following tasks:

    1. Configure the vCenter Server appliance with a Web browser.

    2. Configure vCenter Server appliance to use directory services.

    3. Register VMware vSphere Web Client with vCenter Server appliance.

    4. Connect to the vCenter Server appliance with the vSphere Client.

    Preparing for the labRecord the following information:

    Team VMware vCenter Server appliance host name

    vCenter Server appliance user name

    vCenter Server appliance password

    Directory services domain name

    Domain administrator user name

    Domain administrator password

    VS5ICM_LabGuide.book Page 17 Monday, August 8, 2011 9:38 AM

  • 18 Lab 4 Configure VMware vCenter Server Appliance

    Task 1: Configure the vCenter Server appliance with a Web browserIn this task, you access the vCenter Server virtual appliance using a Web browser and prepare the appliance for use. Only one student on the team performs this task.

    1. From your desktop system, open a Web browser.

    2. Enter the vCenter Server appliance management URL that you recorded in Preparing for the lab.

    3. Enter the user name and password to log in to the vCenter Server appliance. You recorded the user name and password in Preparing for the lab.

    4. When you log in, you are placed on the vCenter Server appliance configuration tab. The EULA Status is Not Accepted. To accept the end-user license agreement (EULA), click Accept EULA under Actions on the right side of the browser.

    5. Click Database.

    6. The Database Type default selection is UNCONFIGURED. In the Database Type drop-down menu, select embedded.

    7. Click Test Settings. A message indicating that the operation was successful appears after the test has completed. The Schema Version reads 0.0.0.

    NOTE

    This operation might take 3 to 5 minutes to complete.

    8. Click Save Settings. A message indicating that the operation was successful appears after the information has been saved. The Schema Version now reads VirtualCenter Database 5.0.

    NOTE

    This operation might take 3 to 5 minutes to complete.

    9. Click the Status tab. The Service Status should read Stopped.

    10. Click Start vCenter. When startup has completed, the Service Status should read Running.

    vCenter Server appliance Management URL

    vCenter Server appliance Registration URL

    VS5ICM_LabGuide.book Page 18 Monday, August 8, 2011 9:38 AM

  • 4

    Lab 4 Configure VMware vCenter Server Appliance 19

    Task 2: Configure vCenter Server appliance to use directory servicesIn this task you configure the vCenter Server appliance to use Active Directory (AD). Only one student on the team performs this task.

    1. Click the Authentication tab in the browser.

    2. Click Active Directory.

    3. Click the box that reads Active Directory Enabled.

    4. Enter the domain name that you recorded in Preparing for the lab.

    5. Enter the Administrator user name and password that you recorded in Preparing for the lab.

    6. Click Save Settings.

    A message indicating success should appear. If you see an error, verify that you typed the correct user name and password.

    7. Click Status and verify that the AD Status is enabled and the AD domain matches what you recorded in Preparing for the lab.

    8. Click the System tab.

    9. Click Reboot and, when the System Reboot dialog box appears, click Reboot again.

    10. Click Cancel to log out and close the Web browser.

    Task 3: Register VMware vSphere Web Client with vCenter Server applianceIn this task, you register the Web client that you installed in Lab 1 with the vCenter Server appliance that you configured in task 1of this lab. Students should do the steps in this task individually.

    1. From your desktop, select Start > All Programs > VMware > VMware vSphere Web Client and select vSphere Administration Application. If you get security warnings, click the Continue to this website (not recommended) link.

    2. An error appears at the top of the browser stating that vSphere Web Client is not registered with a vCenter Server appliance. To fix this, click Register vCenter Server appliance.

    3. Enter the following information to register the vCenter Server appliance.

    VS5ICM_LabGuide.book Page 19 Monday, August 8, 2011 9:38 AM

  • 20 Lab 4 Configure VMware vCenter Server Appliance

    4. When the Security Warning dialog box appears, click Install this certificate and do not display any security warnings for this server.

    5. Click Ignore.

    6. After you have successfully registered vSphere Web Client with your vCenter Server appliance, dismiss the vSphere Web Client Administrator Tool window.

    7. Verify that you can log in to the vCenter Server appliance using vSphere Web Client. On your desktop, select Start > All Programs > VMware > VMware vSphere Web Client and click vSphere Web Client. If you get security warnings, click the Continue to this website (not recommended) link.

    8. On the login page, the Server field should populate with the URL and port of the vCenter Server appliance. Enter the vCenter Server appliance user name and password that you recorded in Preparing for the lab.

    When you can successfully log in, you are finished with this task.

    9. Close the Web Client.

    Field/setting Action

    vCenter Server URL Enter the vCenter Server registration URL that you recorded in Preparing for the lab.

    User name Type root.Password Enter the password that you recorded in Preparing for the

    lab.

    vSphere Web Client URL Enter the Registration URL that you recorded in Preparing for the lab and click Register.

    VS5ICM_LabGuide.book Page 20 Monday, August 8, 2011 9:38 AM

  • 4

    Lab 4 Configure VMware vCenter Server Appliance 21

    Task 4: Connect to the vCenter Server appliance with the vSphere ClientIn this task you use the VMware vSphere Client to log in to the vCenter Server appliance. Students should do the steps in this task individually.

    1. Log in to the vCenter Server appliance host with the vSphere Client. Double-click the vSphere Client icon on your student desktop system.

    2. In the vSphere Client login dialog box, enter the IP address or host name of your vCenter Server appliance host.

    a. Enter the vCenter Server appliance user name and password that you recorded in Preparing for the lab.

    b. Click Login.

    c. Select Install this certificate and do not display any security warnings for to prevent this warning from being displayed in the future.

    d. Click Ignore to proceed with the connection.

    e. Click OK when the VMware Evaluation Notice dialog box appears.

    Leave the vSphere Client open for the next exercise.

    The evaluation license might have expired in a VDC vClass environment.

    VS5ICM_LabGuide.book Page 21 Monday, August 8, 2011 9:38 AM

  • 22 Lab 4 Configure VMware vCenter Server Appliance

    VS5ICM_LabGuide.book Page 22 Monday, August 8, 2011 9:38 AM

  • 5

    Lab 5 Using VMware vCenter Server 23

    Lab 5Using VMware vCenter Server :

    Objective: Perform basic vCenter Server inventory operationsIn this lab, you will perform the following tasks:

    1. Install vSphere license keys.

    2. Create a vCenter Server inventory datacenter object.

    3. Create vCenter Server inventory folder objects.

    4. Add your ESXi host to the vCenter Server inventory.

    Preparing for the labRecord the following information:

    Team VMware vCenter Server appliance host name

    vCenter Server appliance user name

    vCenter Server appliance user password

    Your VMware ESXi host name

    ESXi host root password

    VS5ICM_LabGuide.book Page 23 Monday, August 8, 2011 9:38 AM

  • 24 Lab 5 Using VMware vCenter Server

    Task 1: Install vSphere license keysIn this task, you install license keys to unlock advanced features of VMware vSphere 5.0. Only one student on the team performs this task.

    1. Select Home > Administration > Licensing. The Licensing pane appears.

    2. In the Product list, expand Evaluation Mode and expand No License Key. Your ESXi hosts and vCenter Server system are in the list.

    3. Click the Manage vSphere Licenses link in the upper-right corner.

    4. When prompted by the Manage vSphere Licenses wizard, enter the following values.

    NOTE

    The Reporting tab allows you to monitor vRAM use. To use this feature, you must install and configure the VMware vSphere Web Client (Server).

    Enterprise Plus license key

    vCenter Server license key

    VS5ICM_LabGuide.book Page 24 Monday, August 8, 2011 9:38 AM

  • 5

    Lab 5 Using VMware vCenter Server 25

    5. View the Product report in the Licensing pane.

    In a nested ESXi environment, such as the VDC, students must run the Get Eval Licenses PowerShell script located in the Lab Files folder. The Get Eval Licenses script populates a text file in the Lab Files\Evaluation Licenses folder named vSphereLicense.txt. Students can read the licenses to use for step 4 from this file.

    Field/setting Value

    Add License Keys In Enter new vSphere license keys (one per line), enter the vCenter Server license key and the vSphere Enterprise license key. You recorded these keys in Preparing for the lab.

    TIP

    Include the hyphens: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX. (The text box forces you to enter a hyphen every five characters.)

    In Enter optional label for new license keys, type VMware Training Licenses and click Add License Keys.Click Next.

    Assign Licenses Click the vCenter Server tab.

    In the vCenter Server tab, your vCenter Server system is an unlicensed asset. The Product column on the right shows that your vCenter Server system has no license key. Assign the license to your vCenter Server appliance by clicking the 25-character vCenter Server 5 Standard license key.

    Click Next.

    Remove License Keys Click Next.

    Confirm Changes Click Finish.

    VS5ICM_LabGuide.book Page 25 Monday, August 8, 2011 9:38 AM

  • 26 Lab 5 Using VMware vCenter Server

    Task 2: Create a vCenter Server inventory datacenter objectIn this task, you add a datacenter object to the vCenter Server inventory. Only one student on the team performs this task.

    1. Click the New Datacenter icon above your vCenter Server system name.

    2. When the datacenter object appears in the inventory, type Training for the datacenter name.

    Task 3: Create vCenter Server inventory folder objectsIn this task, you add folder objects to the vCenter Server inventory. Only one student on the team should do steps 1-3. Both students should do steps 4-10.

    1. Select Home > Inventory > Hosts and Clusters.

    2. Ensure that the Training datacenter is highlighted and click the New Folder icon above your vCenter Server system name. Only one student on the team should perform this step.

    3. Type Lab Servers for the folder name.4. Select Home > Inventory > VMs and Templates.

    5. Expand the inventory.

    6. Click the Training datacenter and click the New Folder icon.

    7. Type ## as the name of the folder, where ## is the number of your ESXi host. 8. Create a subfolder in the ## folder. Right-click the folder ## and

    click New Folder.

    VS5ICM_LabGuide.book Page 26 Monday, August 8, 2011 9:38 AM

  • 5

    Lab 5 Using VMware vCenter Server 27

    9. Type LabVMs for the folder name. This folder is called your LabVMs folder.

    10. Repeat steps 8 and 9 to create a second subfolder. Type Templates for the name of this second subfolder. This folder is called your Templates folder.

    How does the list of inventory objects differ between the Hosts and Clusters view and the VMs and Templates view?

    ANSWER: A folder object appears only in the view in which it was created. In other words, the Lab Servers folder appears only in the Hosts and Clusters view. The folders named LabVMs and VMTemplates appear only in the VMs and Templates view. Also, the folder icons look different in the two views.

    Task 4: Add your ESXi host to the vCenter Server inventoryIn this task, you add your ESXi host to the Lab Servers folder in the vCenter Server inventory and view general information about your ESXi host. Students should do the steps in this task individually.

    1. Select Home > Inventory > Hosts and Clusters. Click your Lab Servers folder and click the Add Host icon above your vCenter Server system name.

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

    Field/setting Action

    Host Enter the fully qualified domain name (FQDN) or IP address of your ESXi host, which you recorded in Preparing for the lab.

    Username Type root.Password Enter the ESXi host root password that you recorded

    in Preparing for the lab.

    When you click Next, a security alert appears stating that vCenter Server is unable to verify the authenticity of the specified host. Click Yes to proceed.

    Host Summary Verify the information and click Next.

    VS5ICM_LabGuide.book Page 27 Monday, August 8, 2011 9:38 AM

  • 28 Lab 5 Using VMware vCenter Server

    3. In the Recent Tasks pane at the bottom of the VMware vSphere Client, monitor the progress of the task. After the task is finished, expand the Lab Servers folder and verify that your ESXi host appears in the inventory.

    4. Expand the Lab Servers folder in the inventory and click your ESXi host.

    5. 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. Click the Hardware Status tab and view the status of your ESXi hosts hardware.

    7. Select Home > Inventory > VMs and Templates.

    8. Expand your named folder and click the LabVMs folder. You should see your virtual machine.

    Remain logged in and leave the vSphere Client open for the next lab.

    Assign License Select VMware vSphere 5 Enterprise Plus and click Next. Ignore any license warnings that might appear. Click Next.

    Lockdown Mode Do not enable lockdown mode. Click Next.

    Virtual Machine Location Expand the Training datacenter and click your named folder. Click the LabVMs folder and click Next.

    Ready to Complete Review the configuration summary and click Finish.

    Field/setting Action

    VS5ICM_LabGuide.book Page 28 Monday, August 8, 2011 9:38 AM

  • 6

    Lab 6 Standard Virtual Switches 29

    Lab 6Standard Virtual Switches :

    Objective: Create a standard virtual switch and port groupIn this lab, you will perform the following tasks:

    1. View the current standard virtual switch configuration.

    2. Create a standard virtual switch with a virtual machine port group.

    3. Attach your virtual machine to a virtual switch port group.

    Preparing for the labRecord the following information:

    VMware vCenter Server appliance user name

    vCenter Server appliance password

    vmnics to use for the ProdVMs virtual switch

    Virtual machine Administrator password

    VS5ICM_LabGuide.book Page 29 Monday, August 8, 2011 9:38 AM

  • 30 Lab 6 Standard Virtual Switches

    Task 1: View the current standard virtual switch configurationIn this task, you use the VMware vSphere Client to view the current network configuration. Students should do the steps in this task individually.

    1. If the vSphere Client is not already active, use it to log in to your vCenter Server system with the domain administrator user name and password that you recorded in Preparing for the lab.

    2. Select Home > Inventory > Hosts and Clusters.

    3. In the vCenter Server inventory, select your VMware ESXi host and click the Configuration tab.

    4. In the Hardware list, select Networking. You see that a standard virtual switch was created when this host was installed.

    The virtual switch is named vSwitch0. It contains a VMkernel port named Management Network and a virtual machine port group named VM Network. You see a virtual machine connected to VM Network.

    Task 2: Create a standard virtual switch with a virtual machine port group In this task, you create a standard virtual switch for virtual machine networking and create a port group named ProdVMs. Students should do the steps in this task individually.

    1. Click the Add Networking link.

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

    3. Verify that the ProdVMs port group appears in the Networking pane.

    Field/setting Value

    Connection Type Virtual Machine and click Next.

    Network Access Select Create a vSphere standard switch.Select the vmnic check boxes, which you recorded in Preparing for the lab.Click Next.

    Connection Settings In Network Label, type ProdVMs. Keep the default for the VLAN ID and click Next.

    Ready to Complete Click Finish.

    VS5ICM_LabGuide.book Page 30 Monday, August 8, 2011 9:38 AM

  • 6

    Lab 6 Standard Virtual Switches 31

    Task 3: Attach your virtual machine to a virtual switch port groupIn this task, you verify that your virtual machine can access the Web using the ProdVMs port group. Students should do the steps in this task individually.

    1. Right-click your named virtual machine in the inventory and select Edit Settings.

    2. Click Network Adapter 1.

    3. Click the Connected check box to detach the virtual machine from the network.

    4. Click the Network Connection drop-down menu and click ProdVMs.

    5. Click the Connected check box to reattach the virtual machine to the network.

    6. Click OK to dismiss the Edit Settings window.

    7. Verify that your virtual machine can access the Web:

    a. Renew the virtual machine IP address. To do this, perform one of the following actions:

    Reboot the virtual machine.

    Right-click the virtual machine in the vCenter Server inventory and select Open Console.

    Log in with Administrator and the password that you specified in Preparing for lab and open a Command Prompt window (Start > Run).

    Type cmd. At the command prompt, type ipconfig /release and then type ipconfig /renew.

    b. In Internet Explorer, go to http://www.vmware.com.

    c. Exit Internet Explorer.

    d. Close the virtual machines console.

    Leave the vSphere Client open for the next lab.

    VS5ICM_LabGuide.book Page 31 Monday, August 8, 2011 9:38 AM

  • 32 Lab 6 Standard Virtual Switches

    VS5ICM_LabGuide.book Page 32 Monday, August 8, 2011 9:38 AM

  • 7

    Lab 7 Accessing IP Storage 33

    Lab 7Accessing IP Storage :

    Objective: Configure access to an iSCSI and NFS datastoreIn this lab, you will perform the following tasks:

    1. Add a VMkernel port group to a standard virtual switch.

    2. Configure the iSCSI software adapter.

    3. Configure access to NFS datastores.

    4. View iSCSI and NFS storage information.

    Preparing for the labRecord the following information:

    VMware vCenter Server appliance user name

    vCenter Server appliance password

    VMkernel port IP address/subnet mask

    VMkernel default gateway

    Name of iSCSI target

    Your VMware ESXi iSCSI qualified name (IQN)

    VS5ICM_LabGuide.book Page 33 Monday, August 8, 2011 9:38 AM

  • 34 Lab 7 Accessing IP Storage

    Task 1: Add a VMkernel port group to a standard virtual switchIn this task, you create a VMkernel port group named IP storage on vSwitch0. Students should do the steps in this task individually.

    1. Select Home > Inventory > Hosts and Clusters.

    2. In the VMware vCenter Server inventory, select your ESXi host and click the Configuration tab.

    3. In the Hardware list, click Networking. You see that a standard virtual switch was created when this host was installed.

    4. Click the Properties link for vSwitch0.

    5. The default view in the vSwitch0 Properties window, is the Ports tab. Click Add.

    6. When the Add Network wizard appears, enter the following values.

    NFS server host name

    Your NFS LUN

    Field/setting Value

    Connection Type Select VMkernel and click Next.

    Port Group Properties Type IP Storage for the Network Label. Keep the default for the VLAN ID.

    Use this port group for vMotion Leave deselected.

    Use this port group for Fault Tolerance logging

    Leave deselected.

    Use this port group for management traffic

    Leave deselected.

    Click Next.

    VS5ICM_LabGuide.book Page 34 Monday, August 8, 2011 9:38 AM

  • 7

    Lab 7 Accessing IP Storage 35

    7. Click Close in the vSwitch0 Properties window.

    Task 2: Configure the iSCSI software adapterIn this task, you enable the iSCSI software initiator, configure dynamic discovery, and display the iSCSI software adapter properties. Students should do the steps in this task individually.

    1. In the Hardware list, select Storage Adapters.

    2. Click the Add link.

    3. Click Add Software iSCSI Adapter.

    4. Click OK when the warning dialog box appears.

    5. Select iSCSI Software Adapter in the Device column.

    6. Click the Properties link in the Details pane. The iSCSI Initiator (iSCSI Software Adapter) Properties dialog box appears.

    7. Verify that the General tab displays the iSCSI initiator name and a status of Enabled. Leave the Properties dialog box open. If the IQN does not match what you recorded in Preparing for the lab, click the Configure button. Then change the IQN to match the value in Preparing for the lab.

    8. Click the Dynamic Discovery tab and click Add.

    9. Enter the name of the iSCSI target that you recorded in Preparing for the lab.

    10. Leave the port set to 3260 and click OK.

    11. Monitor the Recent Tasks pane and wait for the task to complete.

    12. Verify that the iSCSI targets name and port number are listed in the Send Targets panel and click Close.

    13. When you are prompted to rescan the host bus adapter, click Yes. Wait for the rescan task to complete.

    Use the following IP settings Enter the VMkernel port IP address and subnet mask that you recorded in Preparing for the lab.

    Verify that the VMkernel default gateway IP address is correct.

    Click Next.

    Summary Click Finish.

    Field/setting Value

    VS5ICM_LabGuide.book Page 35 Monday, August 8, 2011 9:38 AM

  • 36 Lab 7 Accessing IP Storage

    14. Select the iSCSI software adapter from the Storage Adapters list and view the Details pane. Record the values for the following fields to verify that a logical unit number was found.

    Task 3: Configure access to NFS datastoresIn this task, you mount an NFS datastore with read/write permissions. Students should do the steps in this task individually.

    1. Click the Configuration tab of your ESXi host.

    2. In the Hardware list, select Storage.

    3. In the Datastores pane, select Add Storage.

    4. When prompted by the Add Storage wizard, enter the following values.

    Field/setting Value

    Connected targets

    Devices

    Paths

    Field/setting Value

    Storage Type Select Network File System and click Next.

    Server Enter the NFS server host name or IP address that you recorded in Preparing for the lab.

    Folder Enter the path to the NFS datastore that you recorded in Preparing for the lab.

    Mount NFS read only Leave the default setting.

    Datastore name Type NFS- and the name of your NFS LUN that you recorded in Preparing for the lab. For example, NFS-LUN1.

    Click Next.

    Ready to Complete Click Finish.

    VS5ICM_LabGuide.book Page 36 Monday, August 8, 2011 9:38 AM

  • 7

    Lab 7 Accessing IP Storage 37

    Task 4: View iSCSI and NFS storage informationIn this task, you view information about your iSCSI and NFS storage, and you view the contents of the NFS datastore. Students should do the steps in this task individually.

    1. Click the Storage Views tab of your ESXi host.

    2. In the list of reports, select Show all SCSI Paths. Verify that the iSCSI adapter that you added earlier appears in the list. You might have to click the Update link in the upper-right corner.

    3. Select Show all SCSI Targets (Array Ports) from the list of reports. View information about your iSCSI storage.

    4. Select Show all NAS Mounts from the list of reports. View information about your NFS storage.

    Leave the VMware vSphere Clientopen for the next lab.

    VS5ICM_LabGuide.book Page 37 Monday, August 8, 2011 9:38 AM

  • 38 Lab 7 Accessing IP Storage

    VS5ICM_LabGuide.book Page 38 Monday, August 8, 2011 9:38 AM

  • 8

    Lab 8 (Optional) Designing a Network Configuration 39

    Lab 8(Optional) Designing a Network Configuration :

    Objective: Design a network configuration for an ESXi host, based on a set of requirementsIn this lab, you will perform the following tasks:

    1. Analyze the requirements.

    2. Design virtual switches and physical connections.

    Preparing for the labBased on a scenario, you design the network configuration for a VMware ESXi host, specifying the following:

    Virtual switches

    Ports and port groups

    Port group policies

    Physical connections

    A set of 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).

    NOTE

    This lab can be done separately by each member in the ESXi team.

    VS5ICM_LabGuide.book Page 39 Monday, August 8, 2011 9:38 AM

  • 40 Lab 8 (Optional) Designing a Network Configuration

    Task 1: Analyze the requirementsIn this task, you are the administrator in charge of configuring an ESXi host in your companys production environment. Details of the networking requirements include the following.

    Component Networking requirements

    Virtual machines and applications

    Web-based applications that are implemented by using four virtual machines arranged as follows:

    VM1 and VM2: Web servers, and network address translation (NAT) clients of VM3

    VM3: front end for the Web servers. Acts as a NAT router for the back-end virtual machines

    VM4: a test box, used to test intrusion detection systems and virus-protection software, among other applications

    IP-based storage A NAS, used to hold running virtual machines for the test virtual machines only (storage for the production virtual machines is provided by a SAN)

    Physical NICs Four physical network adapters: one 100Mbps and three Gigabit Ethernet (GigE) cards

    External networks Two physical switches and four external LANs, each named to indicate its purpose. A single physical switch is configured to handle traffic for three networks, which are implemented as VLANs. One physical switch is dedicated to the management LAN, which, by company policy, must be physically separate from all other networks. The management LAN is used by VMware vCenter Server.

    VS5ICM_LabGuide.book Page 40 Monday, August 8, 2011 9:38 AM

  • 8

    Lab 8 (Optional) Designing a Network Configuration 41

    Task 2: Design virtual switches and physical connectionsIn this task, you use the information in task 1 and the following diagram to draw a network configuration. Show all virtual switches and their ports and port groups and to indicate the policies to be applied to each (NIC teaming, VLANs, security, traffic shaping). Also show the connections from the virtual machines to the virtual switches, as well as from the physical network interface cards (NICs) to the physical switches.

    There is no single correct answer. In fact, many reasonable solutions are possible. The point of this lab is not to come up with the one right answer. Rather, this lab encourages a discussion of the advantages and disadvantages of different solutions.

    VS5ICM_LabGuide.book Page 41 Monday, August 8, 2011 9:38 AM

  • 42 Lab 8 (Optional) Designing a Network Configuration

    VS5ICM_LabGuide.book Page 42 Monday, August 8, 2011 9:38 AM

  • 9

    Lab 9 Managing VMware vSphere VMFS 43

    Lab 9Managing VMware vSphere VMFS :

    Objective: Create and manage VMFS datastoresIn this lab, you will perform the following tasks:

    1. Review your shared storage configuration.

    2. Change the name of a VMFS datastore.

    3. Create a VMFS datastore.

    4. Expand a VMFS datastore to consume unused space on a LUN.

    5. Remove a VMFS datastore.

    6. Extend a VMFS datastore.

    Preparing for the labRecord the following information:

    VMware vCenter Server appliance user name

    vCenter Server appliance password

    Shared storage type used in this lab environment

    Your local datastore

    Assigned logical unit number (LUN) IDs

    VS5ICM_LabGuide.book Page 43 Monday, August 8, 2011 9:38 AM

  • 44 Lab 9 Managing VMware vSphere VMFS

    Task 1: Review your shared storage configurationIn this task, you learn how to display information about the shared storage in your lab environment.

    1. If the VMware vSphere Client is not already active, use it to log in to your vCenter Server system. To log in, use the user name root and the password that you recorded in Preparing for the lab.

    2. Select your VMware ESXi host in the inventory and click the Storage Views tab.

    3. In the View list, select Show all SCSI Paths from the Reports drop-down menu. In the column named SCSI adapter type, verify that a SCSI adapter exists for the shared storage type that you recorded in Preparing for the lab.

    4. In the View list, select Show all SCSI Volumes (LUNs). This view displays all SCSI LUNs available to your host.

    Task 2: Change the name of a VMFS datastoreIn this task, you change the name of a VMware Sphere VMFS datastore. Students should do the steps in this task individually.

    1. In the View list of the Storage Views tab, select Show all Datastores. View the information for each datastore, such as the capacity and free space.

    2. Click , which you recorded in Preparing for the lab to go to the Datastores inventory view. The Show all Virtual Machines report is displayed. This report lists all virtual machines that reside on this datastore

    3. In the inventory, right-click , which you recorded in Preparing for the lab and select Rename.

    4. Type Local-ESXi##, where ## is the number of your ESXi host. For example, for an ESXi host that ends in 02, the new name of the datastore is Local-ESXi02.

    5. Verify that the new datastore name appears in the inventory.

    Task 3: Create a VMFS datastoreIn this task, you create a VMFS datastore on each LUN that is assigned to you. Students should do the steps in this task individually.

    1. Select Home > Inventory > Datastores and Datastore Clusters, right-click the Training datacenter, and select Add Datastore.

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

    VS5ICM_LabGuide.book Page 44 Monday, August 8, 2011 9:38 AM

  • 9

    Lab 9 Managing VMware vSphere VMFS 45

    3. Return to the Datastores inventory view to create a second datastore. Right-click the Training datacenter and select Add Datastore.

    4. When prompted by the Add Storage wizard, enter the following values.

    Field/setting Action

    Select host Expand the inventory hierarchy and click your ESXi host. Click Next.

    Storage Type Select Disk/LUN and click Next.

    Select Disk/LUN Expand the Path ID column so that it reveals the LUN numbers and click your first assigned target and LUN number. You recorded this in the LUN ID in Preparing for the lab.

    Click Next.

    File System Version Keep the default of VMFS-5 and click Next.

    Current Disk Layout Review the current disk layout and click Next.

    Enter a datastore name Type VMFS-##, where ## is the target number of your first assigned LUN ID that you recorded in Preparing for the lab. For example, if the target number of your assigned LUN ID is 1, the datastore name would be VMFS-01.

    Click Next.

    Formatting Keep the default and click Next.

    Ready to Complete Click Finish.

    VS5ICM_LabGuide.book Page 45 Monday, August 8, 2011 9:38 AM

  • 46 Lab 9 Managing VMware vSphere VMFS

    5. Monitor the progress in the Recent Tasks pane and wait for the task to complete.

    Field/setting Action

    Select host Expand the inventory hierarchy and click your ESXi host. Click Next.

    Storage Type Select Disk/LUN and click Next.

    Select Disk/LUN Expand the Path ID column, so that it shows the target and LUN number, and click your second assigned LUN ID. You recorded this LUN ID in Preparing for the lab.

    Click Next.

    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 VMFS-##, where ## is the target number of your second assigned LUN ID, which you recorded in Preparing for the lab. For example, if the target number of your assigned LUN ID is 2, the datastore name would be VMFS-02.

    Click Next.

    Formatting Click Custom Space Setting and reduce the LUN size by a half. For example, if the current disk size is 10GB, change the size to 5GB. (You increase this VMFS datastore to its maximum size in the next task.)

    Click Next.

    Ready to Complete Click Finish.

    VS5ICM_LabGuide.book Page 46 Monday, August 8, 2011 9:38 AM

  • 9

    Lab 9 Managing VMware vSphere VMFS 47

    6. Verify that each new VMFS datastore appears in the datastore inventory. You might have to click Update to see the latest information.

    7. In the datastore inventory, click the VMFS-## datastore that you created.

    8. Click the Summary tab and record the value for Capacity: __________.

    Task 4: Expand a VMFS datastore to consume unused space on a LUNIn this task, you increase the size of a VMFS datastore to consume the remaining space on the LUN. Students should do the steps in this task individually.

    1. Click the Configuration tab of the 5GB VMFS-## datastore that you created in the previous task.

    2. Click the Properties link in the Datastore Details pane.

    3. In the Properties dialog box, click Increase.

    4. When prompted by the Increase Datastore Capacity wizard, enter the following values.

    5. After the task is completed, review the datastore Properties dialog box and verify that the datastore size was increased to the maximum capacity (less space for system overhead).

    6. Click Close to dismiss the datastore Properties dialog box.

    Field/setting Action

    Extent Device Select your second assigned LUN ID that you recorded in Preparing for the lab. This LUN should read Yes in the Expandable column.

    Click Next.

    Current Disk Layout Review the current disk layout. Notice the free space available on the LUN (under Primary Partitions) and click Next.

    Extent Size Leave the Maximize available space check box selected and click Next.

    Ready to Complete Review the information for accuracy and click Finish.

    VS5ICM_LabGuide.book Page 47 Monday, August 8, 2011 9:38 AM

  • 48 Lab 9 Managing VMware vSphere VMFS

    Task 5: Remove a VMFS datastoreIn this task, you remove a VMFS datastore. Students should do the steps in this task individually.

    1. Right-click your VMFS-## datastore. Where ## is the second LUN ID that is assigned to you.

    2. Click Delete.

    3. Click Yes to confirm datastore deletion.

    4. Verify that the datastore was removed from the inventory.

    Task 6: Extend a VMFS datastoreIn this task, you increase the size of a VMFS datastore by adding an extent. Students should do the steps in this task individually.

    1. In the Datastore inventory, click the VMFS-## datastore, where ## is the number of your first assigned LUN ID.

    2. Click the Configuration tab.

    3. In the Datastore Details pane, click the Properties link. The Properties dialog box appears. Record the size of the total capacity of the VMFS datastore here:______________.

    4. Click Increase.

    5. When prompted by the Increase Datastore Capacity wizard, enter the following values.

    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.

    Field/setting Action

    Extent Device Expand the Path ID column so that it reveals the LUN number and click your second assigned LUN ID. You recorded this LUN ID in Preparing for the lab.

    Current Disk Layout Review the current disk layout.

    Capacity Leave the Maximize capacity check box selected.

    Ready to Complete Click Finish.

    VS5ICM_LabGuide.book Page 48 Monday, August 8, 2011 9:38 AM

  • 9

    Lab 9 Managing VMware vSphere VMFS 49

    NOTE

    It might be necessary to click Refresh in the Properties dialog box.

    7. Close the Properties dialog box.

    8. In the Datastore Details pane, record the new value for Total Formatted Capacity: ___________. The value should differ from the value recorded in step 3.

    Leave the vSphere Client open for the next lab

    At the conclusion of this lab, there should be two VMFS volumes. One named VMFS-01 and a second named VMFS-03. Both students must successfully complete this lab before starting the next lab or they will have problems with the cloning and template labs.

    VS5ICM_LabGuide.book Page 49 Monday, August 8, 2011 9:38 AM

  • 50 Lab 9 Managing VMware vSphere VMFS

    VS5ICM_LabGuide.book Page 50 Monday, August 8, 2011 9:38 AM

  • 10

    Lab 10 Using Templates and Clones 51

    Lab 10Using Templates and Clones :

    Objective: Deploy a virtual machine from a template and clone a virtual machineIn this lab, you will perform the following tasks:

    1. Create a template.

    2. Copy Sysprep files to the vCenter Server appliance.

    3. Create Customization Specifications.

    4. Deploy a virtual machine from a template.

    5. Clone a virtual machine that is powered on.

    Preparing for the labRecord the following information:

    VMware vCenter Server appliance host name

    vCenter Server appliance user name

    vCenter Server appliance root password

    Guest operating system version

    Location of Windows Sysprep files

    Sysprep files target folder

    VS5ICM_LabGuide.book Page 51 Monday, August 8, 2011 9:38 AM

  • 52 Lab 10 Using Templates and Clones

    Task 1: Create a templateIn this task, you create a template by cloning a virtual machine to a template. Students should do the steps in this task individually.

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

    2. In the vSphere Client, select Home > Inventory > VMs and Templates.

    3. Expand your LabVMs folder. In this folder, you have a virtual machine named ##-1.

    4. Right-click the virtual machine and select Power > Shut Down Guest.

    5. After the virtual machine has shut down, right-click the virtual machine and select Template > Convert to Template.

    6. Drag ##-1 virtual machine template from your LabVMs folder and drop it in your Templates folder.

    7. Right-click the virtual machine template and click Rename. Type Template to change the template name.

    Your VMFS volume

    Windows product ID

    Virtual machine Administrator password

    Time Zone

    VS5ICM_LabGuide.book Page 52 Monday, August 8, 2011 9:38 AM

  • 10

    Lab 10 Using Templates and Clones 53

    Task 2: Copy Sysprep files to the vCenter Server applianceIn this task, you configure guest operating system customization on your vCenter Server system. Only one student in the team performs this task.

    1. From your desktop double-click the WinSCP icon. If a security warning dialog box appears, click Run to continue. Click New.

    2. Type the host name of the vCenter Server appliance that you recorded in Preparing for the lab and click Login. If a warning dialog box appears, click Yes to continue.

    3. Type root for the user name and enter the password that you recorded in Preparing for the lab. Press Enter.

    4. When you have successfully logged in to the vCenter Server with the WinSCP program, in the left pane go to the location of the sysprep files that you recorded in Preparing for the lab. The folder should represent the version of the Windows guest operating system that you are running in your virtual machines.

    5. In the right pane, go to the sysprep files target folder that you recorded in Preparing for the lab.

    6. To copy the sysprep files into the target folder, select all files in the left pane and drag and drop them onto the right pane. Click Copy when the dialog box appears.

    7. When the copy operation is completed, click F10 Quit at the bottom of the window.

    8. Click OK to end the session.

    Task 2, step 3: (Optional) If you are teaching this course in a vClass environment, the WinSCP program has been configured to put the student in the proper folder locations to perform the copy operation. Students should click Stored Sessions in the pane under Sessions. Then select Upload sysprep files to vCVA and click Login. The student must provide user name and password. After logging in, the student can select all files on the left side of the window and paste them into the folder on the right side and then close the session.

    VS5ICM_LabGuide.book Page 53 Monday, August 8, 2011 9:38 AM

  • 54 Lab 10 Using Templates and Clones

    Task 3: Create Customization SpecificationsIn this task, you create a customization specification for template deployment. Students should do the steps in this task individually.

    1. In the vSphere Client, click Home.

    2. In the Management bar, click Customization Specifications Manager.

    3. Click New.

    Field/setting Action

    Target Virtual Machine OS Select Windows.

    Name Type -CustomSpec. Click Next.Registration Information Type VMware Student for the Name and

    VMware for the Organization. Click Next.Computer Name Click Use 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 default value. Click Next.

    Administrator Password Re-enter the Administrator password that you recorded in Preparing for the lab. Re-enter the Administrator password in the Confirm password field and click Next.

    Time Zone Select the time zone that you recorded in Preparing for the lab and click Next.

    Run Once Leave the default and click Next.

    Network Leave the default and click Next.

    Workgroup or Domain Leave the default and click Next.

    Operation System Options Leave the default and click Next.

    Ready to Complete Click Finish.

    VS5ICM_LabGuide.book Page 54 Monday, August 8, 2011 9:38 AM

  • 10

    Lab 10 Using Templates and Clones 55

    4. In the vSphere Client, click Home.

    5. Point to Inventory and select VMs and Templates.

    Task 4: Deploy a virtual machine from a templateIn this task, you deploy a virtual machine from your template and allow vCenter Server to customize the guest operating system. Students should do the steps in this task individually.

    1. Right-click your named template and select Deploy Virtual Machine from this Template.

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

    3. Repeat steps 1 and 2 and create another virtual machine. Name this virtual machine ##-3.

    Field/setting Value

    Name Name the new virtual machine with your first name, followed by the number of your VMware ESXi host and a sequence number. For example, Greg has an ESXi host named ESXi01. The name of his second virtual machine is Greg01-2.

    Inventory Location Select your LabVMs folder and click Next.

    Host/Cluster Expand the Lab Servers folder and click your ESXi host. Click Next.

    Select a virtual disk format Keep the default.

    Select a destination storage for the virtual machine files

    Select your VMFS volume, which you recorded in Preparing for the lab and click Next.

    Guest Customization Option Click Power on this virtual machine after creation.

    Click Customize using an existing customization specification.

    Click CustomSpec and click Next.

    Ready to Complete Click Finish.

    VS5ICM_LabGuide.book Page 55 Monday, August 8, 2011 9:38 AM

  • 56 Lab 10 Using Templates and Clones

    4. In the Recent Tasks pane at the bottom of the vSphere Client, monitor the progress of the template deployment task.

    5. After you have created these virtual machines, open a virtual machine console to each of your new virtual machines.

    6. Verify that each virtual machine was created properly. Check the following:

    The virtual machine booted up successfully. Wait at least two minutes for Sysprep to complete its tasks, which includes a reboot of the system.

    You can log in to the guest operating system as Administrator with the virtual machine Administrator password that you recorded in Preparing for the lab.

    VMware Tools is installed with time synchronization configured.

    The cpubusy.vbs file is on the desktop.7. Close the virtual machine console. Do not shut down the virtual machine.

    Task 5: Clone a virtual machine that is powered onIn this task, you clone a running virtual machine. Students should do the steps in this task individually.

    1. In the LabVMs folder, right-click the ##-2 virtual machine and select Clone.

    2. When prompted by the Clone Virtual Machine wizard, enter the following values.

    Field/setting Action

    Name Name the new virtual machine with Hot-Clone followed by the number of your ESXi host. For example, Greg has an ESXi host named ESXi01. The name of his second virtual machine is Hot-Clone01.

    Inventory Location Select your LabVMs folder and click Next.

    Host/Cluster Expand the Lab Servers folder and click your ESXi host. Click Next.

    Select a virtual disk format Keep the default.

    Select a destination storage for the template files

    Select your VMFS volume, which you recorded in Preparing for the lab, and click Next.

    VS5ICM_LabGuide.book Page 56 Monday, August 8, 2011 9:38 AM

  • 10

    Lab 10 Using Templates and Clones 57

    3. Monitor the task in the Recent Tasks pane. Allow the task to run. Check the result during the next lab.

    Leave the vSphere Client open for the next exercise.

    Guest Customization Option Click Power on this virtual machine after creation.

    Click Customize using an existing customization specification.

    Click CustomSpec and click Next.

    Ready to Complete Click Finish.

    Field/setting Action

    VS5ICM_LabGuide.book Page 57 Monday, August 8, 2011 9:38 AM

  • 58 Lab 10 Using Templates and Clones

    VS5ICM_LabGuide.book Page 58 Monday, August 8, 2011 9:38 AM

  • 11

    Lab 11 Modifying a Virtual Machine 59

    Lab 11Modifying a Virtual Machine :

    Objective: Modify a virtual machines hardware and add a raw LUN to a virtual machineIn this lab, you will perform the following tasks:

    1. Increase the size of a VMDK file.

    2. Adjust memory allocation on a virtual machine.

    3. Rename a virtual machine in the vCenter Server inventory.

    4. Add a raw LUN to a virtual machine and verify that the guest operating system can see it.

    5. Expand a thin-provisioned virtual disk.

    Preparing for the labRecord the following information:

    Virtual machine Administrator password

    Raw logical unit number (LUN) ID

    VS5ICM_LabGuide.book Page 59 Monday, August 8, 2011 9:38 AM

  • 60 Lab 11 Modifying a Virtual Machine

    Task 1: Increase the size of a VMDK fileIn this task, you increase the size of a virtual machines C: drive and configure the guest operating system to see the additional space. Students should do the steps in this task individually.

    1. Select Home > Inventory > VMs and Templates.

    2. Verify that your Hot-Clone## virtual machine is powered on. If it is not, power it on now.

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

    4. In the Hardware list, select Hard Disk 1.

    5. In Provisioned Size, type 3GB and click OK.6. Increase the size of the disk from within the guest operating system:

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

    b. Log in to the guest operating system as user Administrator, with the virtual machine Administrator password that you recorded in Preparing for the lab.

    c. On the virtual machine desktop, double-click My Computer. Record the value for the total size of the C: drive.____________.

    ANSWER: For example, if you are using a VDC kit, this value will be approximately 2GB.

    d. Use Windows Explorer to open the folder C:\dell\ExtPart folder. e. Double-click the extpart.exe file. f. 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 virtual machine desktop, double-click My Computer to verify that the C: drive was

    extended. Record the value for total size of the C: drive.____________________. Does the value differ from the size recorded in step 6c?_________

    ANSWER: Yes. The value should differ by ~1GB.

    i. Close the virtual machines console.

    VS5ICM_LabGuide.book Page 60 Monday, August 8, 2011 9:38 AM

  • 11

    Lab 11 Modifying a Virtual Machine 61

    Task 2: Adjust memory allocation on a virtual machineIn this task, you increase the virtual machines memory. Students should do the steps in this task individually.

    1. Right-click your Hot-Clone## virtual machine in the inventory and select Power > Shut Down Guest.

    2. Click Yes to confirm the shutdown.

    3. After the virtual machine has shut down, right-click it and select Edit Settings.

    4. Verify that Memory is selected in the Hardware list.

    5. Select MB from the drop-down menu in the upper right of the Virtual Machines Properties dialog box.

    6. Immediately to the left of the drop-down menu, type 512. 7. Click OK.

    8. Click the virtual machines Summary tab to verify that the memory has increased.

    Task 3: Rename a virtual machine in the vCenter Server inventoryIn this task, you change the name of a virtual machine in the inventory. Students should do the steps in this task individually.

    1. In the inventory, right-click your Hot-Clone## virtual machine and select Rename.

    2. Rename the virtual machine to ##-4, where ## is the number of your VMware ESXi host. For example, if Greg has an host named ESXi01. The name of his virtual machine is Greg01-4.

    CAUTION

    Renaming a virtual machine in the inventory does not change the name of the virtual machine files on the datastore. For example, if the virtual machine Hot-Clone is renamed to Greg01-4 in the VMware vCenter Server inventory, the files on the datastore are still named Hot-Clone##.

    To rename a virtual machine and all files belonging to it, rename the virtual machine in the inventory and use vSphere Storage vMotion to move the virtual machine to a different datastore. For this task, you only rename the virtual machine.

    Task 3, step 2: After the virtual machine has been renamed, the folder containing the virtual machine files have the original name of this virtual machine, not the new name of the virtual machine in the inventory.

    VS5ICM_LabGuide.book Page 61 Monday, August 8, 2011 9:38 AM

  • 62 Lab 11 Modifying a Virtual Machine

    Task 4: Add a raw LUN to a virtual machine and verify that the guest operating system can see itIn this task, you add a raw LUN to a virtual machine that is powered on and verify that the guest operating system can see the new virtual disk. Students should do the steps in this task individually.

    1. Add a raw LUN to the ##-2 virtual machine:

    a. In the inventory, right-click the ##-2 virtual machine and select Edit Settings. The Virtual Machine Properties dialog box appears.

    b. In the Virtual Machine Properties dialog box, click Add.

    c. When prompted by the Add Hardware wizard, enter the following values.

    d. When a new entry for the hard disk appears in the Hardware list with the word (adding) next to it, click OK to add the raw LUN.

    2. In the inventory, right-click the ##-2 virtual machine that you created and select Rename. Change the name to ##-2-RDM.

    3. View the ##-2-RDM virtual machine files:

    a. In the inventory, select the ##-2-RDM virtual machine and click the Storage Views tab.

    b. Click the Update link.

    c. In the drop-down menu, select Show all Virtual Machine Files.

    d. Verify that a new virtual machine file named ##-2_1-rdm.vmdk exists.

    Field/setting Action

    Device Type Select Hard Disk and click Next.

    Select a Disk Select Raw Device Mappings and click Next.

    Select Target LUN Select your assigned LUN, which you recorded in Preparing for the lab.

    Select Datastore Keep the default.

    Compatibility Mode Select Virtual.

    Advanced Options Leave the defaults.

    Ready to Complete Click Finish.

    VS5ICM_LabGuide.book Page 62 Monday, August 8, 2011 9:38 AM

  • 11

    Lab 11 Modifying a Virtual Machine 63

    4. Verify that the guest operating system can see the new disk:

    a. Open a console to the virtual machine and log in as user Administrator, with the password that you recorded in Preparing for the lab.

    b. Select Start > Programs > Administrative Tools > Computer Management.

    c. Click Disk Management.

    d. Verify that Disk 1 is listed. Disk 1 is the raw device mapping. You can now use the guest operating system utilities to format the drive. In this lab, you do not have to format the drive.

    CAUTION

    If a disk wizard automatically appears, click Cancel.

    e. Close the Computer Management window and close the virtual machine console.

    Task 5: Expand a thin-provisioned virtual diskIn this task, you expand a thin-provisioned virtual disk to consume all the disk space that was allocated to it when it was created. Students should do the steps in this task individually.

    1. View storage information for the virtual machine named ##-3:

    a. In the inventory, select the virtual machine named ##-3.

    b. Click the Summary tab and record the storage information found in the Resources panel.

    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 ##-3.

    d. Right-click the ##-3.vmdk file and select Inflate. Wait for the operation to finish.

    Provisioned Storage

    Not-shared Storage

    Used Storage

    Datastore

    VS5ICM_LabGuide.book Page 63 Monday, August 8, 2011 9:38 AM

  • 64 Lab 11 Modifying a Virtual Machine

    e. Observe the columns labelled Size and Provisioned Size. Each shows a different number. When the inflate operation finishes, the Provisioned Size column disappears and the Size column shows a new value equal to the size of the virtual disk

    f. Close the Datastore Browser.

    4. Select Home > Inventory > VMs and Templates.

    5. In the vCenter Server inventory, select the virtual machine named ##-3.

    6. Click the Summary tab.

    7. Record the storage information found in the Resources panel and verify that the disk is now fully allocated.

    Leave the VMware vSphere Client open for the next lab.

    Provisioned Storage

    Not-shared Storage

    Used Storage

    VS5ICM_LabGuide.book Page 64 Monday, August 8, 2011 9:38 AM

  • 12

    Lab 12 Migrating Virtual Machines 65

    Lab 12Migrating Virtual Machines :

    Objective: Use vMotion to migrate virtual machinesIn this lab, you will perform the following tasks:

    1. Create a virtual switch and VMkernel port group for vMotion migration.

    2. Verify that your ESXi host meets vMotion requirements.

    3. Verify that your virtual machines meet vMotion requirements.

    4. Perform a vMotion migration of a virtual machine.

    5. Migrate virtual machine files with Storage vMotion.

    Preparing for the labRecord the following information:

    VMware ESXi host to migrate virtual machines to

    Team VMware vCenter Server system name

    vmnic for the VMware vSphere vMotion network

    vMotion IP address

    vMotion subnet mask

    Shared virtual machine datastores

    VS5ICM_LabGuide.book Page 65 Monday, August 8, 2011 9:38 AM

  • 66 Lab 12 Migrating Virtual Machines

    Task 1: Create a virtual switch and VMkernel port group for vMotion migrationIn this task, you create a virtual switch with a VMkernel port and use it to migrate virtual machines using vMotion.

    1. Select Home > Inventory > Hosts and Clusters.

    2. Select your ESXi host in the inventory and click the Configuration tab.

    3. Click the Networking link in the Hardware panel.

    4. Click Add Networking.

    5. When prompted by the Add Network wizard, enter the following values.

    6. Verify the configuration information for the new virtual switch in the Networking panel.

    Task 2: Verify that your ESXi host meets vMotion requirementsIn this task, you verify that your ESXi host meets vMotion requirements. Students should do the steps in this task individually.

    1. Select Home > Inventory > Hosts and Clusters.

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

    Performance of task 2 is optional at the instructors discretion.

    Field/setting Action

    Connection Type Click VMkernel.

    Network Access Select the vmnic for the vMotion network that you recorded in Preparing for the lab.

    Network Label Type vMotion.Select the Use this port group for vMotion check box.

    IP Address Enter the vMotion IP address that you recorded in Preparing for the lab.

    Subnet Mask Enter the vMotion subnet mask that you recorded in Preparing for the lab.

    Summary Confirm the settings and click Finish.

    VS5ICM_LabGuide.book Page 66 Monday, August 8, 2011 9:38 AM

  • 12

    Lab 12 Migrating Virtual Machines 67

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

    4. Click your ESXi hosts Configuration tab.

    5. Verify that a vMotion port group exists and that it is configured with a speed and duplex of 1000Mb, Full Duplex:

    a. Click the Networking link.

    b. Click the vSphere Standard Switch button. A vMotion port group should exist and it should be a VMkernel port.

    c. Verify that the speed and duplex is set to 1000 full.

    6. Verify that both ESXi hosts have access to the same shared datastores:

    a. Select the Training datacenter folder and click the Maps tab.

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

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

    d. Under VM Options, deselect every check box.

    e. Click Apply Relationships. Both ESXi hosts should have access to the same shared datastores for virtual machines, which you recorded in Preparing for the lab.

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

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

    b. Under VM Options, deselect every check box.

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

    Task 3: Verify that your virtual machines meet vMotion requirementsIn this task, you verify that a virtual machines settings meet vMotion requirements. Perform this task for all of your named virtual machines. Students should do the steps in this task individually.

    1. Select Home > Inventory