Vmware Vsphere: Install, Configure, Manage: Lab Manual Esxi 7.X and Vcenter Server 7.X
Vmware Vsphere: Install, Configure, Manage: Lab Manual Esxi 7.X and Vcenter Server 7.X
Copyright/Trademark
Copyright © 2020 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.
Course development: Vivian Li, Jerry Ozbun
Technical review: John Krueger, Joseph Desmond, Joe Cooper, Roy Freeman, Carla
Gavalakis, Rasmus Haslund, Steve Schwarze, Anthony Rivas
Technical editing: James Brook, Shalini Pallat
Production and publishing: Ron Morton, Regina Aboud
The courseware for VMware instructor-led training relies on materials developed by the
VMware Technical Communications writers who produce the core technical documentation,
available at http://www.vmware.com/support/pubs.
www.vmware.com/education
TABLE OF C ONTENT S
4
- SAN Storage (iSCSI, NFS)
- Active Directory Server
- Remote Desktop Server
- The network
5
Lab 2
Installing & Configuring ESXi Hosts
2
Objective: Install & Configure an
ESXi host
In this lab, you perform the following tasks:
1. Install ESXi on a VM
2. Examine the Options in the DCUI
3. Configure the Management Network
4. Enable SSH
5. View System Logs
6. Clean Up for the Next Lab
6
Task 1: Install ESXi
You install VMware ESXi™ on a virtual machine. This nested ESXi host operates in the same
way as a physical host but uses different user interfaces for the installation. You use the VMware
Host Client™ to configure and manage the nested ESXi host.
1. From the taskbar, open your Web browser. From the address bar, type: <your
ESXi>.vclass.local.
Example: If you’re Student A, you should type esxi01.vclass.local (or 172.20.10.51), or
esxi02.vclass.local (or 172.20.10.52) for Student B
2. When a Security Warning window appears, select Understand the risk, choose Add Exception,
and Confirm Security.
3. In the User name text box, enter root.
4. In the Password text box, enter the standard lab password and click Log in.
5. In the Navigator pane on the left, select Virtual Machines.
6. Right-click esxi-host-vm and select Power > Power On.
7. If you are prompted with Answer question prompt, select I moved it and click Answer
8. Right-click esxi-host-vm and select Console > Open browser console
NOTE
Whenever the screen appears frozen, it is due to inactivity timeout. Press Ctrl+Alt to release
the pointer. Right-click the Console tab and select Refresh (F5).
9. On the Welcome to the VMware ESXi 7.x.0 Installation page, press Enter.
10. On the Accept the End-User License Agreement page, press F11 to accept and continue.
11. On the Select a Disk to Install or Upgrade page, ensure that the local disk is selected and
press Enter.
12. On the Please select a keyboard layout page, ensure your setup language is selected and
press Enter.
13. On the Enter a root password page, enter the standard lab password in the Password and
Confirm password text boxes and press Enter.
14. When the Error(s)/Warning(s) Found During System Scan message appears, press Enter
to accept that the system does not support hardware virtualization.
15. Press F11 to confirm the installation.
The installation might take a few minutes. A progress bar shows the completion status of the
installation.You might need to refresh the screen by right-clicking the virtual machine’s
7
console tab in Your browser and selecting Refresh (F5).
16. When the Installation Complete message appears, press Enter to reboot the system.
17. Monitor the reboot process until the DCUI reappears and then leave your screen open for
the next lab task.
NOTE
The console may have timed out due to inactivity since the previous lab. If so, press Ctrl +
Alt to release your cursor and right-click the Console tab and select Refresh (F5) from the
drop- down menu.
2. In the Authentication Required dialog box, ensure that root appears in the Login Name text box.
3. Press Tab to enter the standard lab password in the Password text box.
4. On the System Customization screen, ensure that the Configure Password option is
selected and press Enter to change the nested host password.
8
Task 3: Configure the Management Network
In order to manage your host remotely, you must configure the ESXi host management network
interface. This interface will be used by VMware Host Client and VMware vCenter Server®
to access the host.
1. Use the down arrow to select Configure Management Network.
In the right pane, you can see that the IP address is acquired from DHCP server.
2. Press Enter.
3. Press the down arrow to go to IPv4 Configuration and press Enter to change it.
4. Press the down arrow to go to Set static IPv4 address and network configuration and
press the space bar to select it.
5. Press Enter to save the acquired DHCP IP address as the static IP address.
6. On the Configure Management Network page, use the down arrow to navigate to
DNS Configuration and press Enter.
7. If Use the following DNS server addresses and hostname is not already selected, press
the down arrow to go to the option and press the space bar to select it.
8. In the Hostname text box, enter esxi-host-vm and press Enter to save your changes.
9. Press Esc.
10. When prompted by the Configure Management Network: Confirm message, press Y
to accept the changes.
9
and press Enter.
2. On the Troubleshooting Options page, use the down arrow to select Enable SSH and
press Enter.
The option changes from Enable SSH to Disable
SSH. In the right pane, you should see SSH is
Enabled.
3. Press Esc to return to the main options page.
NOTE
The root password for the nested host is the standard lab password changed to all lowercase in
task 1.
3. On the Shut down/Restart options page, press F2 to shut down the nested ESXi host virtual
machine.
4. After the progress bar at the bottom shows complete, close your console tab and return to the
VMware Host Client.
5. If you have been logged out due to inactivity, log in again with the user name root and the
10
standard lab password.
6. In VMware Host Client, select Virtual Machines in the left pane.
7. In the right pane, right-click esxi-host-vm and select Delete.
8. On the Delete VM page, click Delete.
9. Leave VMware Host Client open for the next lab.
11
Lab 3
Deploying and Configuring a Virtual
3
Machine
12
Task 1: Create a Virtual Machine
You create a virtual machine based on specific requirements, such as a particular operating
system or hardware configuration. In this task, you create one virtual machine on each ESXi
host.
1. Open your Web browser in remote desktop. From the address bar, type: <your
ESXi>.vclass.local.
2. Log in using root as the host user name and the standard lab password.
3. In the Navigator pane, select Host.
4. In the right pane, click Create/Register VM to start the New Virtual Machine wizard.
5. On the Select creation type page, ensure that create a new virtual machine is selected
and click Next.
6. On the Select name and guest OS page, name the virtual machine with your first name,
followed by the number of your assigned ESXi host and a sequence number, start with 1.
For example, Mike has ESXi01, so his virtual machine is named Mike01-1.
7. For Compatibility, select ESXi 7.0 virtual machine.
8. For Guest OS Family, select Windows.
9. For Version, select Microsoft Windows 2008 (32-bit) as the Guest operating system
version and click Next.
10. On the Select storage page, select the local-esxi local datastore and click Next.
11. On the Customize settings page, enter 1 for CPU, enter 1024 MB for Memory, and enter
11 GB for Hard Disk 1, and choose Disk Provisioning type: “Thin Provisioned”
12. Locate CD/DVD Drive 1 and select Datastore ISO file from the drop-down menu.
13
13. In the Datastore browser window, browse to local-esxi and choose the guest operating
system ISO image
en_windows_server_2008_datacenter_enterprise_standard_xxx.iso , click
Select
14. On the Customize Settings page, click the triangle next to CD/DVD Drive 1.
15. Select the Connect at power on and Connect check boxes and click Next.
16. On the Ready to Complete page, review the information and click Finish.
17. In the Navigator pane, verify that the virtual machine number count is 1.
In the Navigator pane, select Virtual Machines and verify that your newly created virtual machine
appears in the right pane.
18. Click the virtual machine name in the right pane.
19. Expand the General Information pane, Hardware Configuration pane, and
Resource Consumption pane to review the current settings.
20. In the Hardware Configuration pane, expand Hard disk 1 and record the information.
• Backing
• Capacity
• Thin provisioned
14
Task 2: Install a Guest Operating System
After creating a virtual machine, you install an operating system.
1. Open your Web browser in remote desktop. From the address bar, type: <your
ESXi>.vclass.local.
2. In VMware Host Client, verify that virtual machine is selected in the Navigator pane.
3. Right-click the virtual machine and select Power > Power on.
4. Right-click the virtual machine and select Console > Open console in new tab to monitor
the installation progress.
5. If activity in the console becomes unresponsive, refresh the display by right-clicking the
Console tab and selecting Refresh (F5).
NOTE
You can press Ctrl+Alt at any time to release the pointer from the virtual machine console.
You can use the space bar to select check boxes or click buttons.
6. When the Install Windows wizard appears, review the default settings and click Next.
7. Click Install now.
8. Select the I accept the license terms check box and click Next.
9. On the Installation type page, select Custom (Advanced).
15
10. Verify that Disk 0 Unallocated Space is selected and click Next.
The Windows installation process may take 8 to 10 minutes.
11. Enter the virtual machine Administrator password is VMware1!, press Tab, and re enter the
password.
12. When the virtual machine’s Initial Configuration Tasks window opens, select the Do not show
this window at logon check box or close this window
13. When the Server Manager window opens, check box Do not show me this console at logon
and close it.
14. Choose the network type Work and close it.
15. Open Control Panel, and disable Firewall of OS and click Apply and OK
16
16. Back to VMware Host Client tab. In the Navigator pane, right-click your virtual machine and
select Edit Settings.
17. From the CD/DVD Drive 1 drop-down menu, select Host device.
18. Expand the CD/DVD Drive 1 view and deselect the Connect at power on check box.
19. Click Save and leave this VMware Host Client tab open for the next task.
17
Task 3: Install VMware Tools
After installing an operating system on your virtual machines, you install VMware Tools™ in
virtual machine has been created
1. In VMware Host Client, right-click your VM name in the Navigator pane and select Guest OS
> Install VMware Tools.
2. Return to the VM console tab and refresh the browser tab until the AutoPlay window appears.
To refresh the virtual machine console, press Ctrl+ Alt to release your cursor and then right-
click the tab and select Refresh (F5) from the drop-down menu.
You might have to refresh more than once.
3. In the AutoPlay window, click Run Setup.exe.
4. If the AutoPlay windows doesn’t start, click Start and select Computer and double-click on CD
Drive to run setup
12. Log in with the user name admin and the standard lab password. Leave the window
open for the next task.
18
Task 4: Install Files
You mount an ISO image to the virtual machine’s CD/DVD drive so that the files can be copied to
the virtual machine desktop for use in later labs.
1. In the VMware Host Client for your first host, right-click your virtual machine and select Edit
Settings.
2. Expand CD/DVD Drive 1 by clicking the triangle next to it.
3. Select Datastore ISO file from the drop-down menu.
4. For the CD/DVD Media setting, click Browse and navigate to Local-esxi for your host
5. Select ClassFiles-vSphere.iso and click Select.
6. On the Edit settings page, click Save.
7. Return to the VM console tab and log into OS.
8. If the CD/DVD drive does not open automatically, click Start and select Computer.
9. Right-click DVD drive (D:) CDROM and select Open to open the ISO image.
10. Copy the cpubusy VBScript Script file (NOT the cpubusy.pl file) and the iometer application
files from the DVD drive (D:) to the virtual machine’s C:\ drive for use in later labs.
a. Press Ctrl+click to select the files.
b. Press Ctrl to select all files on CD, right-click and select Copy.
c. Right-click on C:\ (don’t paste them on desktop) and select Paste from the drop-down
menu.
11. Return to VMware Host Client and disconnect the virtual machine from Classfiles-
vSphere.iso on the CD/DVD drive.
a. In VMware Host Client, right-click the virtual machine in the inventory pane and select
Edit Settings.
b. In the Hardware list, locate CD/DVD Drive 1.
c. From the drop-down menu, select Host device.
d. Deselect the Connect check box next to CD/DVD Drive 1.
e. Click Save.
12. To avoid future unnecessary logins, disable the screen saver on your virtual machine.
a. From the virtual machine’s desktop, select Start > Control Panel.
19
b. Double-click Personalization.
d. From the Screen saver drop-down menu, select (None) and click OK.
13. Shutdown your virtual machine and close the vSphere Host Client.
20
Lab 4
Working with vCenter Server
4
Objective: Install and use vCenter
Server Appliance
In this lab, you perform the following tasks:
21
Task 1: Deploy vCenter Server Appliance
You deploy a VMware vCenter® Server Appliance™ on a your ESXi host. (Student A on ESXi-01
host, and student B on ESXi-02 host).
Students perform the steps in this task individually.
1. On your student remote desktop, navigate to the CD ROM
2. Double-click the vcsa-ui-installer folder.
3. Double-click the win32 folder.
4. Locate and double-click the installer.exe application.
5. On the vCenter Server Appliance 7.x Installer page, click Install.
6. On the Install-Stage 1: Deploy appliance page, select the I accept the terms of the license
agreement check box and click Next.
7. On the Appliance deployment target page, enter your ESXi IP address in the ESXi
host or vCenter Server name text box.
8. In the HTTPS port text box, enter 443.
9. In the User name text box, enter root.
10. In the Password text box, enter the VMware1! and click Next.
11. On the Certificate Warning page, click Yes.
12. On the Set up appliance VM page,
- Enter vcsa-01 in the VM name text box if you’re studentA.
- Enter vcsa-02 in the VM name text box if you’re studentB.
13. Enter the standard lab password in the Root password and Confirm root password text boxes
and click Next.
14. On the Select deployment size page, accept the default Tiny and click Next.
15. On the Select datastore page, select Local-esxi as the deployment datastore.
16. Select the Enable Thin Disk Mode check box and click Next.
17. On the Configure network settings page, select VM Network from the Network drop-down
menu.
18. From the IP version drop-down menu, select IPv4.
19. From the IP assignment drop-down menu, select static.
20. In the FQDN (System name) text box,
22
- Enter vcsa-01.vclass.local if you’re studentA.
- Enter vcsa-02.vclass.local if you’re studentB.
21. In the IP address text box,
- Enter 172.20.10.194 if you’re studentA.
- Enter 172.20.10.195 if you’re studentB.
22. In the Subnet mask or prefix length text box, enter 255.255.255.0.
23. In the Default gateway text box, enter 172.20.10.10.
24. In the DNS servers text box, enter 172.20.10.10 and click Next.
25. Click Finish.
The Deploying the appliance status bar shows the deployment progress. This deployment might
take 15 to 20 minutes to complete.
4. On the SSO configuration page, enter vsphere.local in the SSO domain name text box.
5. In the SSO password and Confirm password text boxes, enter the standard lab password.
6. On the Configure CEIP page, deselect the Join the VMware Customer Experience
Improvement Program check box and click Next.
7. On the Ready to complete page, click Finish.
8. When you are prompted with the warning message You will not be able to pause or
stop the install from completing once it’s started. Click OK to
continue or Cancel to stop, click OK.
The installation might take about 20 minutes to complete.
9. When the progress bar shows that the installation is complete, click Close.
If your browser is open, it will automatically open a new browser tab.
10. Back to vSphere Host Client web browser with root as user name and the standard lab password.
23
11. In the navigator pane, select Virtual Machines.
12. In the right pane, right-click your newly deployed vCenter Server Appliance and select Power
> Power off.
13. When prompted with the warning messaging about powering off the virtual machine, click Yes
to continue.
14. When vCenter Server Appliance is powered off, right-click it in the Navigator pane and select
Delete.
15. When prompted with the Are you sure message, click Delete.
Task 3: Access & Install vCenter Server Appliance and Host License
Keys
You install license keys in vCenter Server Appliance to unlock the advanced features of VMware
vSphere® 7.
Perform this task as a team. Student B should perform the steps in this task.
1. Open your Web browser in remote desktop. From the address bar, type IP address or DNS name
of vCenter Appliance, choose one of them: vcva01.vclass.local or 172.20.10.94
2. Accept Certificate warning, choose Launch vSphere Client (HTML5) and login with user:
[email protected] and default lab password: VMware1!
3. In the vSphere Client Web, click the Menu icon on the blue bar and select Administration.
4. In the Navigator pane, select Licenses and click the Licenses tab in the content pane.
24
6. On the Enter license keys page, enter the VMware vCenter Server and vSphere
Enterprise Plus license keys in the License keys text box.
7. Verify that two licenses are listed in the text box and click Next.
8. On the Edit license names page, enter VMware vCenter Server in the VMware
vCenter Server 7 license name text box.
9. Enter VMware vSphere in the VMware vSphere 7 license name text box and click Next.
25
12. You need to assign key license to vCenter appliance.
a. In the center pane, click the Assets tab, and choose vCenter Server Systems Tab
b. Check box the vCenter Server Appliance instance and select Assign License.
c. In the Assign License window, select the VMware vCenter Server license and click OK.
1. Open your Web browser in remote desktop. From the address bar, type IP address or DNS name
of vCenter Appliance, choose one of them: vcva01.vclass.local or 172.20.10.94
2. Choose vSphere Client (HTML5)
4. In the Navigator pane, right-click your vCenter Server Appliance name and
select New Datacenter.
5. In the Datacenter name text box, enter Training and click OK.
26
In the Navigator pane, you should see the new data center object listed under
vCenter Server Appliance.
2. On the vSphere Client Web Home page, select Hosts and Clusters.
5. On the Connection settings page, enter your ESXi host login user name and password and click
Next.
6. If you see a security alert stating that the certificate store of vCenter Server cannot verify the
certificate, click Yes to proceed.
7. On the Host summary page, review the information and click Next.
8. On the Assign license page, click the button for your VMware vSphere license key and click
Next.
9. On the Lockdown mode page, leave Disabled clicked and click Next.
10. On the VM location page, leave the Training data center object selected and click Next.
11. On the Ready to complete page, review the information and click Finish.
12. In the vSphere Client Web Recent Tasks pane, monitor the progress of the task.
13. In the Navigator pane, click the arrow next to Training to expand the view.
14. In the Navigator pane, select your ESXi host and click the Summary tab to view the information,
such as its CPU, memory, storage, NICs, and virtual machines.
27
3. In the Time Configuration pane, verify that the NTP client (your ESXi host) appears as disabled,
the NTP service status appears as stopped, and no NTP server is defined.
4. Click Edit. The Edit Time Configuration dialog box appears.
7. In the NTP Servers text box, enter the IP address of your NTP server: 172.20.10.10
9. In the Time Configuration pane, verify that the NTP client appears as enabled and that the NTP
service status appears as running.
10. Close the vSphere Client Web.
28
7. In the Password text box, enter password in password box and click Start.
8. When the vCenter Server backup progress bar appears, close the vCenter Server Appliance
Management UI browser tab.
29
Lab 5
Creating Folders in vCenter
Server Appliance
6
Task 1: Create a Host and Cluster Folder
You use folders to group hosts and clusters of the same type for easier management.
Perform this task as a team. Student B should perform the steps in this task.
1. On the vSphere Client Web Home page, click Hosts and Clusters.
2. In the left pane, click the arrow to expand the vCenter Server inventory.
3. Right-click Training and select New Folder > New Host and Cluster Folder.
7. In the vSphere Client Web, click the Menu icon and select Home.
30
Task 2: Create Virtual Machine and Template Folders
You use folders to group virtual machines of the same type for easier management.
Perform this task as a team. Student A should perform the steps in this task.
1. On the vSphere Client Web Home page, click Menu and choose VMs and Templates.
2. Right-click the Training data center and select New Folder > New VM and Template Folder.
3. Enter LabVMs as the folder name and click OK.
4. In the left pane, click the arrow to expand the Training data center.
5. Drag both virtual machines into the LabVMs folder.
6. Expand the LabVMs folder to verify that both virtual machines are in the folder.
7. Right-click Training and select New Folder > New VM and Template Folder to create a
second virtual machine folder.
8. Enter Templates as the folder name and click OK.
9. Leave the vSphere Client Web open for the next lab.
31
Lab 6 (Option)
Integrating VMware vCenter and
Active Directory Server
e. Click JOIN.
c. If a security warning appears, click Advanced and click Accept the Risk and Continue.
d. At the login screen, log in by entering root for the user name and VMware1! for the
password.
The vCenter Server Management window opens.
e. From the Actions drop-down menu in the top-right corner, select Reboot.
Perform this task as a team. Student B should perform the steps in this task.
3. Under Single Sign-On in the navigation pane, select Users and Groups.
By default, the list of users for the LocalOS domain appears in the right pane.
4. In the Users pane, select vclass.local from the Domain drop-down menu.
NOTE
b. In the User/Group search box, enter usera and select Administrator from the list.
e. Click OK.
2. On the vSphere Client login screen, enter [email protected] as the user name and VMware1! as
the password.
d. On the Select a name and folder page, enter Test VM in the Virtual machine name text box.
e. Verify that Lab VMs is selected and click NEXT.
f. On the Select a compute resource page, expand the Lab Servers folder, select saesxi-
01.vclass.local, and click NEXT.
h. On the Select compatibility page, leave ESXi 7.0 and later selected and click NEXT.
i. On the Select a guest OS page, select Windows from the Guest OS Family drop-down
menu.
j. Select Microsoft Windows Server 2008 (32-bit) from the Guest OS Version drop-down
menu and click NEXT.
k. On the Customize hardware page, choose 1 vCPU, 1GB Memory, 10GB Hard Disk
l. Click NEXT.
n. Expand the Lab VMs folder in the navigation pane and verify that Test VM appears under
this folder.
3. Delete Test VM.
a. In the navigation pane, right-click Test VM and select Delete from Disk.
c. Verify that Test VM does not appear under the Lab VMs folder.
9. Attach Your Virtual Machine to the New Virtual Machine Port Group
7
Students perform the steps in this task individually.
Use the following information from the class configuration handout:
• vCenter Server Appliance name
• vCenter Single Sign-On user name
• vCenter Single Sign-On password
• ESXi host name
1. open a Web browser and connect to the VMware vCenter Server™ Appliance™ home page at
https://vcva01.vclass.local and login
2. On the vSphere Client Web Home page, click Hosts and Clusters.
3. Select Training > Lab Servers > your_ESXi_host.
4. Click the Configure tab and click the Networking tab.
Q2. Which physical adapter is the default standard switch connected to?
4. On the Create a Standard Switch page, click the Add Adapters icon (the green plus sign).
7. On the Connection Settings page, enter Production in the Network label text box and click
Next.
8. On the Ready to complete page, verify that the information is accurate and click Finish.
The screenshot shows the new standard switch and the network label.
7. Verify that the Connected and the Connect at power on check boxes are selected.
8. Click OK to close the Edit Settings window.
9. Renew the virtual machine’s IP address.
a. In the left pane, select your virtual machine, Power ON it.
NOTE
Your Web browser must be configured to allow pop-ups.
c. Click Send Ctrl+Alt+Del in the top-right corner of the virtual machine console.
4. Right-click Training and select Distributed Switch > New Distributed Switch.
5. On the Name and location page, enter your_name-dvs in the Name text box and click Next.
6. On the Select version page, leave Distributed switch as default selected and click Next.
Option Action
Number of uplinks Enter 1.
8. Click Next.
9. On the Ready to complete page, review the configuration settings and click Finish.
2. On the Select task page, leave Add hosts clicked and click Next.
3. On the Select hosts page, click New Hosts (the green plus sign).
4. Select your assigned ESXi host check box and click OK.
5. Click Next.
6. On the Manage physical network adapters page, select the vmnic2 specified in the class
configuration handout for the distributed switch and click Assign uplink.
8
7. Select Uplink 1 and click OK.
4. Verify that your ESXi host’s vmnic interface for the distributed switch is attached.
5. In the middle pane, click the Properties link on the left and verify the settings.
c. Click Next.
d. On the Select VMs to migrate page, select your virtual machine check box and click Next.
e. On the Ready to complete page, review the settings and click Finish.
3. In the Recent Tasks pane, monitor the status of the migration task to completion.
6. Click the VMs tab and verify that your virtual machine is listed. This demonstrates that your
7. Click the Network tab, Distributed Port Groups tab and verify that your_name-pg-Production
is listed.
8. Click the Uplink Port Groups tab and verify that an uplink port group is created for the
distributed virtual switch.
9. Verify that the virtual machine has full network connectivity.
a. If your virtual machine’s console is not already open, log in to it and open a Command
Prompt window.
b. At the virtual machine’s command prompt, ping the ControlCenter’s IP address to verify
the virtual machine’s network connectivity.
Your ping should be successful.
10. If the ping is not successful, enter the ipconfig /release and ipconfig /renew
commands to ensure that your virtual machine has a valid DHCP-assigned IP address.
11. Close the Command Prompt window and close the virtual machine console.
b. For the Destination network, click Browse, select the Production port group, and click OK
and Next.
c. On the Select VMs to migrate page, select your virtual machine check box and click Next.
d. On the Ready to complete page, review the settings and click Finish.
3. In the Navigator pane, select Production and click the VMs tab.
4. Click Virtual Machines and verify that your virtual machine is listed.
Your virtual machine is migrated back to the standard switch on the Production network.
5. Leave the vSphere Client Web open for the next lab.
3. In the left pane, click the arrows to expand the data center and folders.
4. Select your_ESXi_host.
6. Select Virtual Switches and select vSwitch0 from the list of virtual switches.
9. On the Select target device page, click Select an existing standard switch and verify that
vSwitch0 appears in the text box. Click Next.
10. On the Port properties page, enter IP Storage in the Network Label text box and click Next.
11. On the IPv4 settings page, click Use static IPv4 settings and enter the VMkernel port IPv4
address and subnet mask.
12. Verify that the VMkernel default gateway for IPv4 matches the one in the class configuration
handout.
13. Click Next.
2. Select Storage Adapters and click the Add software adapter icon.
9
6. Verify that the adapter status is Enabled.
7. In the Adapter Details pane, click the Network Port Binding tab.
10. In the Adapter Details pane, click the Dynamic Discovery tab, click Add.
11. On the Add Send Target Server page, enter the 172.20.10.14 which is IP address of iSCSI
storage in the iSCSI Server text box and click OK.
12. Monitor the Recent Tasks pane and wait for the task to complete.
14. When the rescan storage message appears, accept the default settings, click OK, and wait for
the task to complete.
15. In the Adapter Details pane, click the Paths tab.
16. Verify that six LUNs are found and record the following values:
• Runtime Name
• Target
• LUN
• Status
The LUNs are hosted by an iSCSI provider and are used to create datastores in later labs.
17. Leave the vSphere Client Web open for the next lab.
Lab 10
Accessing NFS Storage
3. Righ-click on Training icon from the inventory, choose Storage, and New Datastore icon
10
The New Datastore wizard starts.
5. On the Select NFS version page, keep the default setting (NFS 3) and click Next.
6. On the Name and configuration page, configure the datastore name, the folder, and the
NFS server.
Option Action
Datastore name Enter your_name-NFS.
For example, Mike-NFS.
7. Click Next.
8. On the Host accessibility page, select your ESXi host check box and click Next.
9. On the Ready to complete page, review the information and click Finish.
10. Click the Refresh icon in the vSphere Client Web and verify that your NFS datastore is listed
in the inventory.
Task 2: View NFS Storage Information
You view the information about your NFS storage and the contents in the NFS datastore.
Students perform the steps in this task individually.
1. In the left pane, expand the view of the Training data center and select the your_name-NFS
datastore.
2. Click the Configure tab. In the center pane, select General and click Refresh.
5. Verify that your ESXi host name is listed, datastore connectivity is connected, and
access mode is read-write.
6. Leave the vSphere Client Web open for the next lab
10
Lab 11
Managing VMFS Datastores
3. In the left pane, expand the vCenter Server instance and the Training data center.
4. In the left pane, right-click local datastore of your ESXi host and select Rename.
2. In the left pane, click the arrows to expand the data center and folders.
3. In the left pane, select your ESXi host name.
4. Right-click the ESXi host and select Storage > New Datastore.
The New Datastore wizard starts.
5. On the Type page, click VMFS and click Next.
10
6. On the Name and device selection page, enter PrivateVMFS-## in the
Datastore name text box.
## is your first assigned iSCSI LUN ID.
If you’re student A, your first assigned LUN is LUN 0, the datastore name is PrivateVMFS-
00.
If you’re student B, your first assigned LUN is LUN 2, the datastore name is PrivateVMFS-
02.
7. From the list, select the iSCSI disk with your first assigned LUN ID and click Next.
9. On the Partition configuration page, adjust the Datastore Size slider to reduce the
LUN size by about 3 GB and click Next.
For example, if the current disk size is 29 GB, change the size to about 26 GB.
NOTE
This setting is in preparation for task 3, in which you expand the VMFS datastore to its full size.
10. On the Ready to complete page, review the information and click Finish.
11. Right-click your ESXi host in the inventory and select Storage > New Datastore.
12. On the Type page, leave VMFS clicked and click Next.
13. On the Name and device selection page, enter PrivateVMFS-## in the
Datastore name text box.
## is your second assigned iSCSI LUN ID.
14. Select the iSCSI disk with your second assigned LUN ID from the list and click Next.
16. On the Partition configuration page, keep the default settings (full capacity) and click Next.
17. On the Ready to complete page, review the information and click Finish.
18. Monitor the progress in the Recent Tasks pane and wait for the task to complete.
19. Select Training, click the Datastores tab.
20. Verify that your two PrivateVMFS-## datastores are listed in the datastore inventory.
22. Click the Summary tab and record the value for storage capacity.
The Expandable column of your first assigned LUN should show Yes.
4. Click Next.
5. On the Specify Configuration page, select Use Free Space 3 GB to expand the datastore from
the Partition configuration drop-down menu and click Next.
The free space listed in the drop-down menu might be different in your lab environment.
6. On the Ready to Complete page, review the information and click Finish.
7. When the task is completed, select the PrivateVMFS-## datastore in the left pane.
9. Verify that the datastore size is increased to the maximum capacity, minus space for system
overhead.
Task 4: Remove a VMFS Datastore
11
You can delete any type of VMFS datastore, including copies that you mounted without
resignaturing. When you delete a datastore, it is destroyed and is removed from all
hosts.
Students perform the steps in this task individually.
Use the following information from the class configuration handout:
• Second assigned LUN ID
1. In the left pane, click the Storage tab and expand the vCenter Server instance and the Training
data center.
2. Right-click the PrivateVMFS-## datastore and select Delete Datastore.
3. When the Confirm Delete Datastore message appears, click Yes and wait for the task
to complete.
4. Click the Refresh icon in the vSphere Client Web and verify that the datastore was
removed from the inventory.
56
Use the following information from the class configuration handout:
• First assigned LUN ID
• Second assigned LUN ID
1. Right-click the PrivateVMFS-## datastore and click Increase Datastore Capacity. The Increase Datastore
Capacity wizard starts.
On the Select Device page, select your second assigned LUN.
2. On the Select Device page, select your second assigned LUN and click Next.
3. On the Specify Configuration page, select Use all available partitions from the
Partition Configuration drop-down menu and click Next.
4. On the Ready to Complete page, review the information and click Finish.
5. When the task completes, select Device Backing and verify that two extents appear in the Extent Name
pane.
The Extent Name pane should show both of your assigned LUN IDs.
You might need to adjust the size of the Extend Name pane for the full view of all extent names.
The screenshot shows the two extents listed in the Extent Name pane and the slider to adjust the size of the
pane.
56
7. Record the new value for Total Capacity on the Summary tab. The value
should differ from the value recorded in task 2, step 21.
8. Right-click your first PrivateVMFS-## datastore in the inventory and select Rename.
9. In the Enter the new name text box, enter VMFS-##.
## is your assigned ESXi host number.
10. Click OK.
11. Leave the vSphere Client Web open for the next lab.
56
11
Lab 12
Using Templates and Clones
56
Task 1: Create a Virtual Machine Template
You can create a template to securely preserve a virtual machine configuration and easily deploy
new virtual machines from the template.
Students perform the steps in this task individually.
Use the following information from the class configuration handout:
• vCenter Server Appliance name
• vCenter Single Sign-On user name
• vCenter Single Sign-On password
1. open a Web browser and connect to the VSphere Client web of vCenter at
https://vcva01.vclass.local or https://172.20.10.94.
2. On the vSphere Client Web Home page, click VMs and Templates.
4. Right-click the your_name##-1 virtual machine and select Power > Shut Down Guest OS.
5. Click Yes to confirm and wait for the virtual machine to power off.
6. Right-click the your_name##-1 virtual machine and select Template > Convert to Template.
8. Right-click the your_name##-1 virtual machine template and select Move To.
11
Use the following information from the class configuration handout:
• Virtual machine administrator password
• Time zone
1. Go to the vSphere Client Web Home page.
6. On the Set Registration Information page, enter VMware Student in the Name
text box and enter VMware in the Organization text box.
7. Click Next.
8. On the Set Computer Name page, click Use the virtual machine name and click Next.
9. On the Enter Windows License page, leave the product key text box blank, leave
other settings at their defaults, and click Next.
10. On the Set Administrator Password page, enter the virtual machine administrator
password and confirm it.
11. Leave the Automatically logon as Administrator check box deselected and click Next.
12. On the Time Zone page, select the time zone from the Time Zone: UTC+7 drop-down menu and
click
Next.
13. On the Run Once page, leave default, click Next.
14. On the Configure Network page, verify that Use standard network settings for the guest
operating system, including enabling DHCP on all network interfaces is clicked and click
Next.
15. On the Set Workgroup or Domain page, verify that Workgroup is clicked and that the text box
shows WORKGROUP, click Next
16. On the Ready to complete page, review the information and click Finish.
17. In the Customization Specification Manager pane, verify that your_name-CustomSpec is listed.
5. On the Select a compute resource page, expand the view of the Lab servers folder and select
your ESXi host.
The Compatibility pane should read “Compatibility checks succeeded.”
6. Click Next.
7. On the Select storage page, select your local VMFS datastore (VMFS-##) and
select virtual disk format: Thin Provision, click Next.
8. On the Select clone options page, select the Customize the operating system
11
and the Power on virtual machine after creation check boxes and click Next.
9. On the Customize guest OS page, select your_name-CustomSpec and click Next.
10. On the Ready to complete page, review the information and click Finish.
11. Waiting the creating VM process completed, and the VM power ON, then repeat steps 3
through 12 to create another virtual machine and name it your_name##-3.
## is your assigned ESXi host number.
12. In the Recent Tasks pane, monitor the progress of the template deployment task
and wait for completion.
13. Open a remote console for each of your virtual machines.
a. In the left pane, select a virtual machine.
14. Wait until the virtual machine has completed its system preparation
15. Click the Ctrl+Alt+Del icon and log in with the virtual machine administrator password.
16. Verify that VMware Tools™ is installed and that the cpubusy and iometer files
are in the root of the C: drive on each virtual machine.
17. Close the virtual machine consoles.
4. On the Select a compute resource page, select Training > Lab Servers > your_ESXi_host and
click Next.
5. On the Select storage page, select the local datastore for this virtual machine and click Next.
6. On the Select clone options page, select the Customize the operating system and the Power
on virtual machine after creation check boxes.
7. Click Next.
11. Leave the vSphere Client Web open for the next lab.
Lab 13
13
Modifying Virtual Machines
4. Right-click your Hot-Clone## virtual machine in the inventory and select Edit Settings.
5. On the Virtual Hardware tab, record the size (GB) of hard disk 1.
6. In the Hard disk 1 text box, enter 15 (15 GB) to increase the disk size and click OK.
7. Configure the Hot-Clone## virtual machine’s guest operating system to detect and extend the
increased disk space.
a. In the left pane, select your Hot-Clone## virtual machine.
b. In the center pane, click Launch Remote Console and log in.
c. Click the Server Manager icon on the task bar.
d. In the left pane, select Storage and click the plus sign to expand the view.
12
i. Click Next.
j. On the Select Disks page, verify that Disk 0 is selected in the Selected pane and click Next.
k. On the Completing the Extend Volume Wizard page, review the information and click Finish.
8. In the Server Manager Disk Management window, verify that the local C: drive (Disk 0) is
extended and close the Server Manager window.
9. On the Hot-Clone## virtual machine’s desktop, click the Start menu and select Computer to
verify that the C: drive is extended.
a. Record the value for the total size of the C: drive.
Q1. Has the size of the local hard disk (C: drive) increased?
3. After the Hot-Clone## virtual machine is shut down, right-click it and select Edit Settings.
4. On the Virtual Hardware tab, enter 2 in the Memory text box and verify that GB is
selected from the drop-down menu.
5. Click OK.
6. Click the virtual machine’s Summary tab and expand the view of the VM Hardware pane to
verify that the memory has been increased.
7. Power ON the VM and verify memory has been increased inside OS.
4. Select the your_name##-4 virtual machine from the inventory, click the Datastores tab.
5. Right-click the your_name##-4 virtual machine’s local datastore and select Browse Files.
13
NOTE
When you change the name of a virtual machine, you change the name used to identify the
virtual machine in the vSphere Client Web inventory, not the name of the virtual machine’s
folder or files on the datastore.
The screenshot shows the name of the virtual machine’s folder.
4. In the Select Target LUN dialog box, select the your raw LUN ID and click OK.
5. Click the arrow next to New Hard disk to expand the view.
6. From the Location drop-down menu, select Store with the virtual machine.
7. From the Compatibility Mode drop-down menu, select Virtual and click OK.
8. Verify that the guest operating system can see the new disk.
a. In the left pane, select the your_name##-2 virtual machine.
b. In the center pane, click Launch Remote Console and log in.
c. Click Start and select Administrative Tools > Computer Management.
e. Click the x button that appears at the right side of the row for Hard disk 2.
f. Select the Delete files from datastore check box to remove the disk and click OK.
13
Objective: Use vSphere vMotion and vSphere Storage
vMotion to migrate virtual machines
In this lab, you will perform the following tasks:
1. Migrate Virtual Machine Files from the Local Storage to the Shared Storage
2. Create a Virtual Switch and a VMkernel Port Group for vSphere vMotion Migration
NOTE
Both students log in to the VMware vCenter Server™ Appliance™ simultaneously because some of
these tasks require cooperation. Communicate with your lab partner.
Use the following information from the class configuration handout:
• vCenter Server Appliance name
• vCenter Single Sign-On user name
• vCenter Single Sign-On password
• Shared datastore
1. Open a Web browser and connect to the vCenter Server Appliance home page at
https://vcva01.vclass.local/ and log in.
2. On the vSphere Client Web Home page, click VMs and Templates and expand the view of
the inventory.
3. Right-click the your_name##-4 virtual machine and select Power > Power On.
4. Select the your_name##-4 virtual machine in the inventory and click the Summary tab.
5. Expand the VM Hardware pane and record the name of the storage on which the virtual machine
reside_____________
6. In the inventory, right-click the your_name##-4 virtual machine and select Migrate.
The Migrate wizard starts.
7. On the Select the migration type page, click Change storage only and click Next.
8. On the Select storage page, select the your shared VMFS datastore as the
destination storage for the virtual machine files, and choose virtual disk format is
Thin Provision
Your Compatibility pane should show “Compatibility checks succeeded.”
11. Monitor the Recent Tasks pane and wait for the virtual machine relocation process
13
is on the new datastore (the shared datastore).
Task 2: Create a Virtual Switch and a VMkernel Port Group for
vSphere vMotion Migration
You create a VMkernel port group virtual switch to move virtual machines from one
host to another while maintaining continuous service availability.
Students perform the steps in this task individually.
Use the following information from the class configuration handout:
• vmnic for the vSphere vMotion network
• vSphere vMotion IP IPv4 address/subnet mask
1. In the left pane, click the Hosts and Clusters tab.
2. Select your VMware ESXi™ host in the inventory, click the Configure tab, and click the
Networking tab.
3. Select Virtual switches and click the Add
5. On the Select target device page, click New standard switch and click Next.
6. On the Create a Standard Switch page, click the green + sign to add a physical
adapter to the switch.
7. Select the vmnic3 for the vSphere vMotion network and click OK.
8. Review the information shown and click Next.
9. On the Port properties page for connection settings, enter vMotion in the Network label text
box, select the vMotion traffic check box, and click Next.
10. On the IPv4 settings page, click Use static IPv4 settings.
11. Enter the IPv4 address and the subnet mask information and click Next.
12. On the Ready to complete page, review the information and click Finish.
13. In the Virtual switches pane, verify that the new virtual switch for VMware vSphere®
vMotion® migration is listed.
Task 3: Perform a vSphere vMotion Migration of a Virtual Machine on a
Shared Datastore
You perform the live migration of virtual machines that reside on a shared storage that is accessible
to both the source and the target ESXi hosts.
Students perform the steps in this task individually.
Use the following information from the class configuration handout:
• Virtual machine administrator password
• Your partner’s ESXi host
1. In the vSphere Client Web Navigator pane, click the Hosts and Clusters tab and expand the
view of the inventory.
2. Click the arrow next to your ESXi host to expand the view.
13
4. If any virtual machines are powered off, power them on.
8. Verify that Production is selected from the drop-down menu and that the Connected and
Connect At Power On check boxes are selected.
9. Click OK.
10. Repeat steps 5 through 9 for your two other virtual machines.
11. In the left pane, select the your_name##-3 virtual machine.
12. In the center pane, click Launch Remote Console and log in.
14. In the Open text box, enter cmd and click OK.
15. In the Command Prompt window, enter the ipconfig command and
record the virtual machine’s default gateway IP address.
16. Enter the ping -t default_gateway command to start a continuous ping.
17. Leave the virtual machine console open and return to the vSphere Client Web.
18. Migrate the your_name##-3 virtual machine to your partner’s ESXi host.
a. In the vSphere Client Web inventory, right-click the your_name##-3 virtual machine and
select Migrate.
b. On the Select the migration type page, click Change compute resource only and click
Next.
c. On the Select a compute resource page, click the button for your partner’s ESXi host.
Your partner’s host is the destination host to which you migrate the your_name##-3 virtual
machine. The migration requirements are validated. If the validation does not succeed, you
receive warning or error messages. You cannot continue with the migration until the errors
are resolved.
d. Click Next.
e. On the Select network page, select Production from the list and click Next.
f. On the Select vMotion priority page, leave Schedule vMotion with high priority
(recommended) clicked and click Next.
g. On the Ready to complete page, review the information and click Finish.
19. Return to the your_name##-3 virtual machine console and monitor that no pings are dropped
during the migration.
20. Press Ctrl+C to stop the ping and close the your_name##-3 virtual machine console.
21. In the left pane, continue to migrate your_name##-4 virtual machine to your partner’s ESXi
host.
22. When the migration tasks complete, view the inventory pane to verify that the your_name##-3
and the your_name##-4 virtual machines are on your partner’s host and that the your_name##-2
virtual machine is on your host.
Task 4: Perform a Cross-Host vSphere Storage vMotion Migration to a
Local Datastore
You can migrate virtual machines not only to a different host but also to a different datastore across
storage accessibility boundaries.
Students perform the steps in this task individually.
Use the following information from the class configuration handout:
• Your partner’s ESXi host
• Local datastore of your partner’s ESXi host
1. In the inventory, right-click the your_name##-2 virtual machine and select Migrate.
2. On the Select the migration type page, click Change both compute resource and storage and
click Next.
14
3. On the Select compute resource page, select Training > Lab Servers >
your_partner’s_ESXi_host.
Your partner’s ESXi host is the destination host to which you migrate the your_name##-2
virtual machine.
4. Click Next.
5. On the Select storage page, select the local datastore of your partner’s ESXi host and click
Next.
6. On the Select network page, select Production and click Next.
7. On the Select vMotion priority page, leave Schedule vMotion with high priority
(recommended) clicked and click Next.
8. On the Ready to complete page, review the information and click Finish.
9. In the Recent Tasks pane, monitor the progress of the virtual machine migration.
10. When the migration task completes, view the inventory pane to verify that the your_name##-2
virtual machine is listed under your partner’s ESXi host in the inventory.
a. In the inventory, right-click one of your virtual machines and select Migrate.
b. On the Select the migration type page, click Change both compute resource and storage
and click Next.
c. On the Select compute resource page, select Training > Lab Servers > your ESXi host
and click Next.
d. On the Select storage page, select your shared storage and click Next.
f. On the Select vMotion priority page, leave Schedule vMotion with high priority
(recommended) clicked and click Next.
g. On the Ready to complete page, review the information and click Finish.
2. In the Recent Tasks pane, monitor the progress of the virtual machine migration and wait for the
completion.
3. In the inventory, verify that all your virtual machines appear under your ESXi host.
4. Leave the vSphere Client Web open for the next lab.
14
1. Unregister a Virtual Machine from the vCenter Server Appliance Inventory
5. Revert to a Snapshot
4. Record the VMware vSphere® VMFS datastore name and folder of the virtual machine resides.
5. Right-click the your_name##-4 virtual machine and select Power > Shut Down Guest OS.
7. After the your_name##-4 virtual machine is shut down, right-click it and select Remove from
Inventory.
CAUTION
Do not select Delete from Disk. This operation is not recoverable.
8. Click Yes to confirm the removal.
10. Verify that the your_name##-4 virtual machine no longer appears in the inventory.
11. In the Navigator pane, click the Storage tab and expand the view.
12. Right-click the your_name##-4 virtual machine’s VMFS datastore and select Browse Files. You
14. Open the your_name##-4 folder to view the virtual machine files.
4. On the Host/Cluster page, select your ESXi host and click Next.
5. On the Ready to Complete page, review the information and click Finish.
6. In the Navigator pane, click the VMs and Templates tab and verify that the your_name##-5
virtual machine is in the LabVMs folder.
3. Record the VMFS datastore name on which the virtual machine resides.
4. Right-click the your_name##-5 virtual machine, select Delete from Disk, and click Yes to confirm
the deletion.
5. Verify that the your_name##-5 virtual machine no longer appears in the inventory.
6. In the Navigator pane, click the Storage tab and expand the inventory view.
7. Right-click the VMFS datastore name and select Browse Files. You
recorded the VMFS datastore name in step 3.
8. Verify that the folder and files from which the your_name##-5 virtual machine was registered no longer
exist.
The folder has the original virtual machine name: your_name##-4.
Option Value
14
Name Enter Without iometer.
Quiesce guest file system (Needs VMware Tools Leave the check box deselected.
installed)
12. Click OK and monitor the task in the Recent Tasks pane.
13. Return to the virtual machine console and drag the cpubusy file to the Recycle Bin.
14. To completely remove the cpubusy file, right-click the Recycle Bin icon and select Empty
Recycle Bin.
15. Click Yes to confirm the file deletion and leave the virtual machine console open.
16. Return to the vSphere Client Web.
17. In the inventory pane, right-click the your_name##-3 virtual machine and select Snapshots >
Take Snapshot take another snapshot.
18. Configure the snapshot.
Option Value
Name Enter Without iometer or cpubusy.
Quiesce guest file system (Needs VMware Leave the check box deselected.
Tools installed)
19. Click OK and monitor the task in the Recent Tasks pane.
20. Connect the ClassFiles-vSphere.iso file on the CD/DVD drive to the your_name##-3
virtual machine.
a. Right-click the your_name##-3 virtual machine and select Edit Settings.
b. On the Virtual Hardware tab, select Datastore ISO File from the CD/DVD drive 1 drop-
down menu.
c. Select the Classfiles-vSphere.iso file and click OK.
22. If the CD Drive does not open automatically, open Windows Explorer and go to the CD Drive
23. Copy the cpubusy file from the CD Drive to the virtual machine’s desktop.
24. Disconnect the CD/DVD drive from your_name##-3 virtual machine.
a. From the vSphere Client Web, right-click the your_name##-3 virtual machine and select
Edit Settings.
b. On the Virtual Hardware tab, click the arrow next to CD/DVD drive 1 to expand the
view.
c. Select Client Device from the drop-down menu and click OK.
25. Right-click the your_name##-3 virtual machine and take another snapshot by select Snapshots
> Take Snapshot to take another snapshot.
26. Configure the snapshot.
Option Action
Name Enter With cpubusy.
Snapshot the virtual machine’s memory Leave the check box selected.
Quiesce guest file system (Needs VMware Tools Leave the check box deselected.
installed).
28. Monitor the task in the Recent Tasks pane and wait for completion.
29. Right-click the your_name##-3 virtual machine and select Snapshots > Manage Snapshots.
You should see three snapshots. The difference in icons is due to whether the
14
Snapshot the virtual machine’s memory check box was selected when the
snapshot was taken.
Q1. Did the virtual machine power off, and what is the reason?
5. Right-click the your_name##-3 virtual machine in the inventory and select Power > Power On.
6. Launch a remote console to the your_name##-3 virtual machine and wait for the boot process to
finish.
7. If necessary, log in as the administrator with the password.
Q3. Did the virtual machine power off, and what is the reason?
14
You can remove a snapshot from the Snapshot Manager. The snapshot files are consolidated and
written to the parent snapshot disk.
Students perform the steps in this task individually.
1. Right-click the your_name##-3 virtual machine and select Snapshots > Manage Snapshots.
The You Are Here pointer should be below the snapshot named With cpubusy.
2. In the Snapshot Manager, select the Without iometer or cpubusy snapshot and click Delete.
3. Click Yes to confirm the deletion.
4. Click Close to close the Snapshot Manager.
The You Are Here pointer should be below the your_name##-3 virtual machine.
Q1. Were all the remaining snapshots deleted from the Snapshot Manager?
6. Leave the vSphere Client Web open for the next lab.
1. Create a vApp
2. Power On a vApp
3. Remove a vApp
15
7. Go to the vSphere Client Web Home page and select your ESXi host, right-click and choose
New vApp
8. Click the Create a New vApp icon.
12. On the Ready to complete page, review the information and click Finish.
13. Go to the vSphere Client Web Home page and click the Hosts and Clusters icon.
14. Expand the inventory view and verify that your_name-vApp is listed under your ESXi host.
15. Create four blank payload virtual machines to use in this lab.
e. On the Select compatibility page, accept the defaults and click Next.
f. On the Select a guest OS page, choose Guest OS: Windows, Windows Server 2008
(32bit) and click Next.
16
• CPU 1
• Memory 256 MB
• New hard disk 100 MB
h. Click Next.
i. Click Finish.
16. After the virtual machine completes deployment, create three clones of the
virtual machine named your_name-App02 through your_name-App04.
a. In the left pane, click the arrow to expand the your_name-vApp.
b. Right-click the your_name-App02 virtual machine and select Clone >
Clone to Virtual machine.
c. On the Select a name and folder page, enter your_name-App## in the
name text box, select the LabVMs folder, and click Next.
The ## represents the numbers 02, 03, or 04, depending on which iteration of
the clone sequence you are performing.
d. On the Select a compute resource page, select the your_name-vApp and click Next.
e. On the Select storage page, select your shared storage and click Next.
f. On the Select clone option page, accept the defaults and click Next.
h. Repeat steps a through g until you have a total of four virtual machines named
your_name- App-01 through your_name-App04.
17. In the inventory, select your_name-vApp
Q1. Do you see four virtual machines in the Virtual Machines list in the content pane?
19. Click the arrow next to Start Order to expand the view.
20. Select the your_name-App04 virtual machine and click the up arrow once to place the virtual
machine in group 3.
The your_name-App03 and your_name-App04 virtual machines are now in group 3.
21. Select the your_name-App02 virtual machine and change the value in the Startup sequence
proceeds when text box from 120 to 20 (seconds) and press Enter.
22. Select the your_name-App01 virtual machine and change the value in the Startup sequence
proceeds when text box from 120 to 20 (seconds) and press Enter.
You must press Enter each time that you change the time delay for each virtual machine.
Otherwise, the time resets to its previous value.
23. Click OK.
2. Right-click your_name-vApp in the inventory and select Power > Shut Down.
16
3. Click Yes to confirm the shutdown.
5. After all four virtual machines are no longer powered on, right-click
your_name-vApp and select Delete from Disk.
6. Click Yes to confirm the deletion.
7. Leave the vSphere Client Web open for the next lab.
Lab 17
Managing Resource Pools
17
machines to compete for and share the limited logical CPU resources on the VMware ESXi™ host,
which might lead to performance degradation.
Students perform the steps in this task individually.
Use the following information from the class configuration handout:
• vCenter Server Appliance name
• vCenter Single Sign-On user name
• vCenter Single Sign-On password
• Virtual machine administrator password
4. Right-click the your_name##-2 virtual machine in the inventory and select Edit Settings.
5. On the Virtual Hardware tab, click the arrow next to CPU to expand the view.
7. Click OK.
CAUTION
CPU affinity is used mainly to create CPU contention for training purposes. Use of this
feature in a production environment is strongly discouraged.
8. Right-click the your_name##-3 virtual machine in the inventory and select Edit Settings.
b. Open My Computer
c. Browse to C:\, right-click the cpubusy.vbs script and select Open with Command Prompt.
This script runs continuously. It will stabilize in 1 to 2 minutes. This script repeatedly does floating-
point computations. The script displays the duration (wall-clock time) of a computation. For example:
“I did three million sines in 2 seconds.”
You can use the number of seconds reported as a performance estimate. The program should run at
about the same rate in each virtual machine.
d. Repeat steps a through c on the your_name##-3 virtual machine.
Option Action
Name Enter Fin-Test.
CPU Shares Select Low from the drop-down menu.
All other settings Leave the default settings.
17
3. Click OK.
4. Right-click your ESXi host in the inventory and select New Resource Pool.
Option Action
Name Enter Fin-Prod.
CPU Shares Select High from the drop-down menu.
All other settings Leave the default settings.
6. Click OK.
Task 3: Verify Resource Pool Functionality
You assign virtual machines to resource pools with different resource settings to monitor and
compare the performance differences.
Students perform the steps in this task individually.
1. In the vSphere Client Web, select the Fin-Test resource pool in the inventory and click the
Summary tab.
2. In the Resource Settings pane, click the arrow next to CPU to expand the view.
Q3. What is the difference in performance between the two virtual machines?
8. Change the CPU shares of the Fin-Test resource pool from Low to Normal.
a. In the vSphere Client Web, right-click the Fin-Test resource pool in the inventory and click
Settings.
b. Verify that CPU Resources is selected and click Edit.
c. Select Normal from the Shares drop-down menu and click OK.
9. In each virtual machine console, allow the script to run for a few seconds and compare the
performance of the cpubusy script on each virtual machine.
When contention occurs, you see a difference in performance between the virtual machines.
10. In both virtual machine consoles, press Ctrl+C to stop the cpubusy.vbs script.
11. Repeat step 8 to change CPU shares for the Fin-Prod resource pool from High to Normal.
12. Leave the vSphere Client Web open for the next lab.
Lab 18
Monitoring Virtual Machine Performance
18
• vCenter Server Appliance name
• vCenter Single Sign-On user name
• vCenter Single Sign-On password
• Virtual machine administrator password
3. Open remote consoles and, if necessary, log in to the your_name##-2 and your_name##-3 virtual
machines.
4. On each virtual machine, right-click the cpubusy script file and select Open with Command Prompt.
3. Select Advanced.
8. In the Select counters for this chart pane, click None to deselect all counters.
9. In the same pane, select the Ready and Used check boxes and click OK.
13. Repeat steps 2 through 9 to configure the CPU Performance graph for the your_name##-3
virtual machine.
14. In the Web browser window for each virtual machine, point to the end of the line graph to view
the current CPU ready value.
15. Record the current CPU ready value for each virtual machine.
18
• your_name##-2
• your_name##-3
CAUTION
This script must be stopped in each virtual machine. If the script is left running, it affects
the next lab.
17. In the Web browser window for each virtual machine, point to the end of the line graph to view
the current CPU ready value.
18. Wait for the chart to be updated.
Q1. Did the CPU ready value change and, if it did, what is the reason for the
change?
a. Right-click the your_name##-2 virtual machine in the inventory and select Edit Settings.
b. On the Virtual Hardware tab, click the arrow next to CPU to expand the view.
c. In the Scheduling Affinity text box, delete the value 1 and click OK.
4. Repeat step 2 to remove the scheduling affinity value on the your_name##-3 virtual machine.
5. Leave the vSphere Client Web open for the next lab.
3. Right-click the your_name##-2 virtual machine in the inventory and select Alarms > New Alarm
Definition.
NOTE
Because you are creating an alarm for the your_name##-2 virtual machine, this alarm monitors only that
virtual machine. If you set the alarm on an object higher in the VMware vCenter Server™ inventory, the
alarm applies to multiple virtual machines. For example, if you create an alarm on the vCenter Server
Appliance object itself, the alarm applies to all virtual machines.
4. On the General page, enter VM CPU Usage - your_name in the Alarm name text box and click
Next.
5. On the Alarm Rule 1 page, define the trigger condition.
If VM CPU Usage is above 50% for 30 seconds, then trigger the alarm and show the alarm as Warning.
a. From the first drop-down menu, select VM CPU Usage.
6. On the Reset Rule 1 page, read the rule and do not change anything.
The reset rule is to reset the alarm to Normal if the warning condition is no longer met.
7. Click NEXT.
8. Select the your_name##-2 virtual machine in the inventory and click the Monitor tab.
9. Under the Configure tab, click the Setting tab and select Alarm Definitions.
10. Verify that the VM CPU Usage - your_name alarm appears in the alarm list for the your_name##-2
virtual machine.
h. Verify that the VM CPU Usage alarm appears in the alarm list.
i. If you cannot easily find the alarm, use the filter in the Alarm Name column and search for some or all of
the alarm name.
1. Generate CPU activity in Your_name## to trigger the Your_name## CPU Usage alarm.
a. In Your_name##-2's Summary tab, click the Launch Web Console link to open the VM web console.
b. Browse to C:\ Drive, right-click CPUBUSY.VBS and select Open with Command Prompt.
The CPUBUSY script should generate enough activity to reach more 50 percent CPU usage.
2. Return to the vSphere Client.
a. Click Your_name##-2's Monitor tab, and select Triggered Alarms under Issues and Alarms.
b. Wait for at least 30 seconds and refresh the Triggered Alarms pane.
c. Verify that the VM CPU Usage - your_name alarm appears in the Triggered Alarms list.
An entry states that the VM CPU Usage - your_name alarm changed from green to yellow.
Acknowledge the triggered alarm.
a. In the right pane under Issues and Alarms, click Triggered Alarms.
c. Click ACKNOWLEDGE.
The Triggered Alarms pane shows the time that the alarm was acknowledged and the user that
acknowledged the alarm.
Lab 19 Using Alarms 107
6. Stop the CPUBUSY script.
b. Refresh the Triggered Alarms pane and verify that the VM CPU Usage - your_name alarm no longer
appears.
You might have to wait a minute for CPU usage to decrease.
c. In the navigation pane, verify that Your_name##-2's icon does not show the warning symbol.
An entry states that the VM CPU Usage - your_name alarm changed from yellow to green.
1. In the navigation pane, select your Datacenter and click the Configure tab in the right pane.
The VM suspended event appears under the Power and Connection State category.
Lab 19 Using Alarms 107
b. From the select severity drop-down menu, select Show as Warning.
c. Click NEXT.
b. Click the first drop-down menu and enter powered in the Search box.
a. If you cannot easily find the alarm, use the filter in the Alarm Name column and search for some or all of
the alarm name.
b. In the right pane, click the Monitor tab and under Issues and Alarms, select Triggered Alarms.
c. Monitor the Recent Tasks pane and wait for the Suspend virtual machine task to complete.
3. Power on Your_name##-2.
a. In the navigation pane, right-click Your_name##-2 and select Power > Power On.
Lab 19 Using Alarms 107
4. Verify that Your_name##-2 has returned to a normal state.
a. In the navigation pane, verify that Your_name##-2's icon does not show the warning symbol.
b. Refresh the Triggered Alarms pane.
You should see an entry stating that the VM Suspended alarm changed from yellow to green.
If necessary, use the filter in the Alarm Name column to search for the alarm.
Perform this step on the Datacenter object because the alarm is defined on this object.
Option Action
Name Enter Lab Cluster.
5. Leave the default settings for the other options and click OK.
6. In the Recent Tasks pane, monitor the progress as the cluster is created.
21
You plan the resources and networking architecture of your cluster, add hosts to it, and specify the
vSphere HA settings.
Students perform the steps in this task individually.
1. On the vSphere Client Web Home page, click Hosts and Clusters and expand the view of
the inventory.
2. Select Lab Servers > your_ESXi_host.
Your existing resource pools are collapsed into the cluster root resource pool.
4. Monitor the Recent Tasks pane and wait for the Configuring vSphere HA task to complete.
If the tasks do not appear in the Recent tasks pane, you can find them in the Task Console.
5. Select Lab Cluster in the inventory, click the Monitor tab, and click the vSphere HA tab.
It might take a few minutes for the vSphere Client Web to fully update.
Q1. Does the number of protected virtual machines match the number of virtual
machines in the cluster?
8. Select Heartbeat.
At this point, each ESXi host has a single management network port for redundancy. 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.
10. Select your ESXi host in the inventory, click the Configure tab, and click the Networking tab.
11. Select VMKernel Adapters and select the vMotion VMkernel adapter.
13. On the Port properties page, select the Management Traffic check box and click OK.
14. Right-click your ESXi host and select Reconfigure for vSphere HA.
3. Record the name of one or more powered-on virtual machines on the master host.
21
You must reboot the system, not shut down the system.
a. Right-click the master ESXi host and select Power > Reboot.
A warning message appears stating that you chose to reboot the host, which is not in
maintenance mode.
b. Enter Testing vSphere HA as the reason for rebooting and click OK.
5. In the inventory, select Lab Cluster, click the Monitor tab, click the Tasks & Events and select Events in
the middle pane
The cluster entries are sorted by time. Notice the entries that appear when the host failure was
detected.
The initial messages from the hosts might show failures. These messages indicate that the
virtual machines on the downed host have failed. The virtual machines take 1 to 2 minutes to
successfully migrate to the new host.
The screenshot shows a list of recent events in the cluster.
Q1. Do you see the virtual machines that were running on the original master ESXi
host, which you recorded in task 3, step 3?
8. Select Lab Cluster in the inventory, click the Monitor tab, and click the Sphere HA tab.
9. Monitor the original master ESXi host inventory until it is fully running again.
10. Select Summary in the middle pane.
20
You configure admission control to ensure that sufficient resources are available in a cluster to
provide failover protection and to ensure that the virtual machine resource reservations are
respected.
Perform this task as a team. Student A should perform the steps in this task.
1. On the vSphere Client Web Home page, click Hosts and Clusters and expand the view of
the inventory.
2. Right-click Lab Cluster and select Settings.
3. In the middle pane, select vSphere Availability under Services and click Edit.
5. In the Define host failover capacity by pane, select Slot Policy (powered-on VMs) and click OK.
6. Select Lab Cluster in the inventory, click the Monitor tab, and click the vSphere HA tab.
a. In the Advanced Runtime Info pane, record the slot information for this cluster.
9. In the Navigator pane, click the VMs and Templates tab and expand the view.
c. In the Reservation text box, enter 512 (MHz) and click OK.
11. In the Navigator pane, click the Hosts and Clusters tab.
12. Select Lab Cluster in the inventory, click the Monitor tab, and click the vSphere HA tab.
13. Select Summary in the middle pane, and click Refresh vSphere Web Client
a. In the Advanced Runtime Info pane, verify that the slot size for CPU changed from the value
recorded in step 8.
b. Record the information shown in the Slot size text box.
a. Select Lab Cluster in the inventory and click the Configure tab..
d. Under Define failover capacity by static number of hosts, click Fixed slot size for the slot size policy.
g. Record the Required Slots value for the your_name##-3 virtual machine.
Because the CPU slot size has a fixed value of 300 MHz, the your_name##-3 virtual machine with
the 512 MHz CPU reservation will use two slots to power on.
h. Click OK and click OK to exit the Edit Cluster Settings window.
16. View the slot information for this cluster.
21
a. Select Lab Cluster in the inventory, click the Monitor tab, and click the vSphere HA tab.
a. Select Lab Cluster in the inventory and click the Configure tab..
d. Under Define failover capacity by static number of hosts, click Cover all powered-on
virtual machines for the slot size policy.
e. Click OK.
a. Right-click the your_name##-3 virtual machine in the inventory and select Edit Settings.
Q1. Why is the free memory value for the cluster less than the total memory
capacity value?
5. Click the Monitor tab, click the Resource Allocation tab, and select Memory to view
information now.
6. Assign a 768 MB memory reservation to each of the your_name##-2 virtual machines.
c. Enter 768 (MB) in the Reservation text box and click OK.
d. Repeat steps a through c to set the memory reservation on the student_B_name##-2 virtual
machine.
7. Select Lab Cluster in the inventory, click the Monitor tab, and click the vSphere HA tab.
21
pane.
Q2. Why does the vSphere Client Web report that value?
10. Right-click the student_A_name##-2 virtual machine and select Power > Power On.
11. Return to the Advanced Runtime Info pane of Lab Cluster and click Refresh in the lower-right
corner of the pane.
12. View the effect that powering on this virtual machine has on your cluster.
Q3. How many total slots in the cluster, used slots, available slots, and failover
slots do you see?
Q4. Why is the value for failover slots half the number of total slots?
14. In the inventory, right-click each of StudentA-name##-3 virtual machines and select Power
On.
15. Return to the Advanced Runtime Info pane of Lab Cluster and click Refresh.
Q6. How many slots are available and what is the reason?
Q7. Is your virtual machine allowed to power on, and what is the reason?
Q8. If a cluster has N total slots, can you power on N virtual machines?
a. Right-click the student_A_name##-2 virtual machine and select Edit Resource Settings.
b. In the Memory section, enter 0 (MB) in the Reservation text box and click OK.
c. Repeat steps a and b to remove the memory reservation on the student_B_name##-2 virtual
machine.
2. Right-click the Lab Servers folder in the inventory and select Remove from Inventory.
4. Edit the settings of the cluster to allow the number of running virtual machines to exceed the
failover capacity of the cluster.
a. In the inventory, right-click Lab Cluster and select Settings.
d. From the Define host failover capacity by drop-down menu, select Disabled.
e. Click OK to commit your changes.
5. Leave the vSphere Client Web open for the next lab.
b. In the center pane, click Launch Remote Console on the Summary tab.
d. Right-click the cpubusy.vbs script on each virtual machine’s desktop and select Open
with Command Prompt.
The number of running cpubusy.vbs instances necessary to cause vSphere DRS to
migrate virtual machines to another host will vary, depending on the resource capacity of
the lab infrastructure.
6. Click the arrow next to vSphere DRS Automation to expand the view and move the Migration
Threshold slider to Aggressive on the right.
7. Leave other settings at their defaults and click OK.
22
Perform this task as a team. Student B should perform the steps in this task.
1. Select Lab Cluster from the inventory, click the Monitor tab, and click the vSphere DRS tab.
Clicking the button forces vSphere DRS to immediately evaluate the cluster and provide
recommendations instead of waiting the standard 5 minutes before generating
recommendations.
3. Click the Summary tab and click the arrow next to vSphere DRS to expand the pane.
The screenshot shows the expanded view of the vSphere DRS pane.
4. Click the Monitor tab, click the vSphere DRS tab, and select CPU Utilization.
6. Select Recommendations in the middle pane and view the vSphere DRS recommendations.
The screenshot shows a recommendation made by vSphere DRS to migrate a virtual machine
from one host to another host.
8. If your recommendations have expired, click Run DRS Now to generate new recommendations
and apply them.
9. If new recommendations do not appear, click Run DRS Now again.
10. Click the Monitor tab and click the Tasks tab.
22
13. Click the vSphere DRS tab and click the Run vSphere DRS Now tab to force vSphere DRS to
evaluate the cluster status.
14. Click the Summary tab and view the vSphere DRS pane.
15. Click the Monitor tab and click the vSphere DRS tab.
The virtual machines should spread across the two ESXi hosts. You can refresh the screen to see
the result.
17. In each virtual machine console, press Ctrl+C to stop the cpubusy.vbs script and close the
console.
4. Based on the information in the Name and Host columns, verify that the two
22
virtual machines that you own are running on different ESXi hosts.
6. Select Lab Cluster in the inventory and click the Configure tab..
c. From the Type drop-down menu, select Keep Virtual Machines Together.
11. Click the Monitor tab and click the vSphere DRS tab.
13. If you are ahead of your lab partner, wait for your partner to reach this point of the lab.
14. (Student A) Click Apply Recommendations and wait for the virtual machine migration to
complete.
The virtual machines associated with your affinity rule should be migrated to one of the two
hosts in the vSphere DRS cluster.
15. Click the Monitor tab and click Tasks & Events to view the progress of the virtual
machine migration and wait for its completion.
16. Click the VMs tab.Click the Host column heading to sort the virtual machines
by the ESXi host on which they reside.
The virtual machines that you own should be running on the same ESXi
host.
22
17. Right-click Lab Cluster in the inventory and click the Configure tab.
19. In the VM/Host Rules pane, select your affinity rule and click Edit above the rule.
20. Deselect the Enable rule check box and click OK.
d. Click Add.
e. Select the check boxes for the virtual machines that you own and click OK.
6. Click the Monitor tab and click the vSphere DRS tab.
7. If you receive a message stating that a vSphere DRS rule will be disabled due to a conflict, click
OK.
8. Select Recommendations and click Run vSphere DRS Now.
9. If you are ahead of your lab partner, wait for your partner to reach this point in the lab.
10. (Student B) Click Apply Recommendations and wait for the virtual machine migration
to complete.
11. Click the VMs tab.
12. View the information shown in the Host column.
As a result of your anti-affinity rule, you should see that the virtual machines
associated with your anti-affinity rule are placed on two different ESXi hosts.
22
13. Select Lab Cluster in the Navigator pane and click the Configure tab.
148 Lab 21 Implementing a vSphere DRS Cluster
14. Select VM/Host Rules in the left pane.
c. Click Add.
d. Select the check boxes for both of your named virtual machines.
e. Click OK.
5. When the Create VM/Host Group dialog box appears, configure the options.
a. In the Name text box, enter your_name-Host.
b. From the Type drop-down menu, select Host Group.
c. Click Add.
d. Select the check box for your own ESXi host and click OK.
e. Click OK to close the dialog box.
8. When the Create VM/Host Rules dialog box appears, configure the options.
9. Click the Monitor tab and click the vSphere DRS tab.
10. Select Recommendations and click Run DRS Now.
13. Click the Monitor tab and click the Tasks tab to view the progress of the
virtual machine migration and wait for completion.
22
The virtual machines with VM/Host affinity rules applied to them are migrated to
another ESXi host in the cluster.
14. Click the VMs tab.
15. Click the Host column heading to sort the virtual machines by the ESXi host on
which they reside.
Your virtual machines that were running on your partner’s ESXi host are migrated
to your own ESXi host.
16. Right-click one of your virtual machines in the inventory and
18. On the Select a compute resource page, click Clusters and click Lab Cluster.
20. Select Lab Cluster in the inventory and click the Configure tab..
22. In the VM/Host Rules pane, select your Run-only-on-host## rule and click
Edit above the rule.
23. Deselect the Enable rule check box and click OK.
Task 6: Configure a vSphere HA Cluster with Strict Admission Control ............................ 133
1. Less memory is available because of the 5. Unlike the CPU slot size calculation, which is
overhead needed to run the VMkernel. The based solely on the largest CPU reservation,
VMkernel is holding back memory for its own the calculation for memory slot size is based
use. on the largest memory reservation, plus
2. The vSphere Client Web reports N/A for the memory overhead.
total number of slots because no virtual 6. Zero slots are available because you have
machines are powered on yet. The slot size used all the available slots. Of all of the slots
calculation considers only virtual machines that were originally available, half are
that are powered on. reserved for failover.
3. You should see six total slots in the cluster: 7. The virtual machine is not allowed to power
one used slot, two available slots, and three on, because the cluster has no available slots.
failover slots. If this is not what you see, The error message in the Recent Tasks pane
refresh the vSphere Client Web after 2 shows “Insufficient resource to satisfy
minutes, and the numbers should update. configured failover level for vSphere HA.”
4. The value is half the number of total slots 8. No. Of those N total slots, some will be failover
because you must reserve half of the slots to slots. The number of virtual machines that you
be able to tolerate the failure of one host in the can run is necessarily less than the number of
cluster. slots. For example, in a two-host cluster that
Task 4: Create, Test, and Disable a VM-VM Affinity Rule ................................................. 142
1. Yes. vSphere DRS recommends that one of DRS affinity rule that you created.
your virtual machine be migrated to the other
host, so that both of your virtual machines can
be kept together on the same host. This
recommendation is based on the vSphere
Task 6: Create, Test, and Disable a VM-Host Affinity Rule ............................................... 147
1. vSphere DRS recommends that you virtual 2. You receive the error message “Virtual
machine be migrated to a different host due to machine 'your_name##-#' on host
the violation of your VM/Host affinity rule. If no 'host_name' would violate a virtual machines -
recommendations are made, the virtual host affinity rule
machine might already be on the correct host.
154