Vsphere ICM7 Lab 23
Vsphere ICM7 Lab 23
0:
INSTALL, CONFIGURE, MANAGE
Contents
Introduction ........................................................................................................................ 3
Objectives............................................................................................................................ 3
Lab Topology....................................................................................................................... 4
Lab Settings ......................................................................................................................... 5
1 Prepare the Lab Environment..................................................................................... 6
2 Enable vSphere HA in a Cluster................................................................................. 13
3 Add your ESXi Host to the Cluster............................................................................. 15
4 View Information About the vSphere HA Cluster..................................................... 17
5 Configure Network Management Redundancy ........................................................ 19
6 Test the vSphere HA Functionality ........................................................................... 29
7 View the vSphere HA Cluster Resource Usage ......................................................... 36
8 Configure the Percentage of Resource Degradation to Tolerate ............................. 38
Introduction
In this lab, you will become familiar with the vSphere Client.
Objectives
Lab Topology
Lab Settings
The information in the table below will be needed in order to complete the lab. The
task sections below provide details on the use of this information.
In this task, you will migrate virtual machine storage for Linux-01 and Linux-02 to the
iSCSI-LUN0 datastore.
1. Launch the sa-student virtual machine to access the graphical login screen.
To launch the console window for a virtual machine, you may access by
either clicking on the machine’s graphic image from the topology page
or by clicking on the machine’s respective tab from the navigation bar.
3. Launch the Mozilla Firefox web browser by either clicking on the icon shortcut
found on the bottom toolbar or by navigating to Start Menu > Internet > Firefox
Web Browser.
4. Notice the homepage is automatically configured to load the URL address of the
VMware vCenter Server Appliance (sa-vcsa virtual machine). Click on the LAUNCH
VSPHERE CLIENT (HTML5) button to launch the vSphere Client.
5. In the Username text field, type [email protected] and in the Password text
field, type vmware123. Click on LOGIN.
6. Click on the VMs and Templates tab. Expand the Datacenter object and right-click
Linux-01. Click Migrate.
7. In the Migrate window, on the Select the migration type step, choose Change
storage only. Click Next.
8. On the Select storage step, select iSCSI-LUN0 and select Thin Provision as the virtual
disk format. Click Next.
9. On the Ready to complete step, review the information and click Finish.
11. In the Migrate window, on the Select the migration type step, choose Change
storage only. Click Next.
12. On the Select storage step, select iSCSI-LUN0 and select Thin Provision as the virtual
disk format. Click Next.
13. On the Ready to complete step, review the information and click Finish.
14. Monitor the Recent Tasks pane and verify Linux-01 and Linux-02 have migrated
successfully before continuing to the next step.
15. Leave the vSphere Web Client open and continue to the next task.
In this task, you will enable vSphere HA on the Lab Cluster to achieve higher levels of
virtual machine availability than each ESXi host can provide individually.
2. Expand the Datacenter object, select Lab Cluster and click the Configure tab. Under
Services, select vSphere Availability.
4. In the Edit Cluster Settings window, toggle the vSphere HA button to on and click
OK.
5. Monitor the Recent Tasks pane and wait for the vSphere HA configuration tasks to
complete.
7. Leave the vSphere Web Client open and continue to the next task.
In this task, you will add sa-esxi-01 and sa-esxi-02 to the Lab Cluster.
3. In the Recent Tasks pane, monitor the progress of moving the ESXi host to the Lab
Cluster.
4. Expand the Lab Cluster object and verify that sa-esxi-01.vclass.local and sa-esxi-
02.vclass.local appear.
5. Monitor the Recent Tasks pane and wait for vSphere HA configuration tasks to
complete.
6. Leave the vSphere Web Client open and continue to the next task.
In this task, you view status and configuration information about the Lab Cluster. You
notice that the ESXi hosts in the cluster have only one management network port.
2. Under vSphere HA, select Summary. Verify the Master host is sa-esxi-01.vclass.local.
3. Under vSphere HA, select Heartbeat. Verify that NFS-1 and iSCSI-LUN0 are showing
as the datastores.
4. Under vSphere HA, select Configuration Issues and review the errors or warnings
that are displayed. Hover over either of the ESXi hosts and notice the message. The
message is identical for each host.
You should see warning messages that each ESXi host has no
management network redundancy. Currently, each ESXi host has a
single management network port. vSphere HA still works if an ESXi
host is configured with one management network port, but a second
management network port is necessary for management network
port redundancy. Configuring management network port redundancy
is also a best practice.
5. Leave the vSphere Web Client open and continue to the next task.
1. On the Hosts and Clusters tab, select sa-esxi-01.vclass.local. In the right pane, click
Configure.
4. In the Add Networking window, on the Select connection type step, select VMkernel
Network Adapter. Click Next.
5. On the Select target device step, click New standard switch. Click Next.
6. On the Create a Standard Switch step, click the green + sign to add a physical
adapter to the switch.
7. Select vmnic1 for the vSphere vMotion network and click OK.
8. Back on the Add Networking window, review the information shown. Ensure that
vmnic1 appears underneath Active adapters and click Next.
9. On the Port properties step, enter vMotion in the Network label text box. Select the
vMotion and Management checkbox and click Next.
10. On the IPv4 settings step, select to Use static IPv4 settings and use the information
below to make configurations:
a. IPv4 address: 172.20.11.51
b. Subnet mask: 255.255.255.0
c. Default Gateway: Check the Override default gateway for this adapter
checkbox and enter 172.20.11.10.
d. Click Next.
11. On the Ready to complete step, review the information and click Finish.
12. In the Virtual switches pane, verify that the new virtual switch for vSphere vMotion
migration is listed.
13. In the navigation pane, right-click sa-esxi-01.vclass.local and select Reconfigure for
vSphere HA.
14. Monitor the Recent Tasks pane and wait for the reconfiguration task to complete.
15. Repeat steps 1 – 14 for sa-esxi-02.vclass.local using the vMotion VMkernel port IPv4
address for sa-esxi-02 as 172.20.11.52. All other steps remain the same.
16. In the navigation pane, select the Lab Cluster and click the Monitor tab.
17. In the Lab Cluster pane under vSphere HA, select Configuration Issues.
18. Notice the previous management Configuration Issues are no longer displayed.
19. Leave the vSphere Web Client open and continue to the next task.
In this task, set up vSphere HA to monitor the cluster environment and detect hardware
failures.
1. While in the Lab Cluster pane, click on the Monitor tab. Under vSphere HA, select
Summary and verify the name of the master host as sa-esxi-01.vclass.local.
2. In the navigation pane under Lab Cluster, right-click Linux-01 and select Power >
Power On.
3. In the navigation pane under Lab Cluster, right-click Linux-02 and select Power >
Power On.
4. In the navigation pane, select Lab Cluster and click the Monitor tab. Under vSphere
HA, select Summary. Click Refresh and verify the Protected field matches the
number of powered-on VMs within the cluster and that the Unprotected field is 0.
5. On the Hosts and Clusters tab, select sa-esxi-01.vclass.local. Click on the VMs tab
and verify that Linux-01 appears under sa-esxi-01.
6. Simulate a host failure by rebooting the master ESXi host. In the navigation pane,
right-click sa-esxi-01.vclass.local and select Power > Reboot.
7. In the Reboot Host window, enter Testing vSphere HA as the reason and click OK.
8. In the navigator pane, select Lab Cluster and click the Monitor tab. Click Tasks &
Events and select Events in the middle pane.
9. Notice the cluster entries are sorted by time and that the entries appeared 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 restart successfully on the new host. You
may need to refresh the vSphere Web Client to view these events.
10. In the navigator pane, select the slave ESXi host; in this case, it is sa-esxi-
02.vclass.local. Click the VMs tab and ensure that the Virtual Machines button is
selected.
11. Notice that Linux-01 has successfully migrated over to the slave ESXi host and
powered on properly.
12. Select Lab Cluster in the inventory and click the Monitor tab. Under vSphere HA,
select Summary from the middle pane. Notice the master ESXi host changed to sa-
esxi-02.vclass.local.
13. Monitor the original master ESXi host in the navigator pane until it is fully running
again.
14. Leave vSphere Web Client open to continue with the next task.
In this task, you examine the CPU and memory resource usage information of the Lab
Cluster.
1. While in the vSphere Web Client, select Lab Cluster in the navigation pane. Click the
Monitor tab in the Lab Cluster pane. Under Resource Allocation, select CPU.
2. On the CPU Reservation Details pane, review the information such as Total
Reservation Capacity, Used Reservation, and Available Reservation. In the virtual
machines pane, verify that the CPU reservation is not set on the virtual machines.
The Reservation column should show 0 (MHz).
5. Leave the vSphere Web Client open and continue to the next task.
In this task, you will specify the percentage of resource degradation to tolerate, and you
will verify that a message appears when the reduction threshold is met. You will also
enable DRS to use this admission control option.
2. In the right pane under Services, select vSphere DRS and click Edit.
3. Toggle the vSphere DRS button on and from the Automation Level dropdown, select
Manual. Slide the Migration Threshold to Aggressive (More Frequent vMotions) and
uncheck Enable for Virtual Machine Automation. Click OK.
4. Under Services, select vSphere Availability and click Edit beside vSphere HA is
Turned ON.
5. Select the Admission Control tab. Enter 0 for the Performance degradation VMs
tolerate text box.
6. In the Define host failover capacity by dropdown menu, select Dedicated failover
hosts. Click Add.
8. On the Edit Cluster Settings window, verify the settings are correct. Click OK.
9. In the navigation pane, select Linux-01. In the Guest OS pane, click Launch Web
Console from the Summary tab. You may need to scroll down in the Linux-01
window to view the Guest OS pane.
10. In the Linux-01 Web Console, log in as sysadmin and type vmware123 for the
password. Click Log In.
11. Open a terminal window by clicking on the Terminal Emulator icon located in the
center of the Linux-01 desktop.
Linux01:/home/sysadmin# cd tools
14. Repeat steps 8 – 11 for Linux-02 and then continue to the next step.
For this task to complete, you must start two cpubusy scripts on
Linux-01 and Linux-02 to trigger a message about the configured
failover resources in the Lab Cluster.
15. Select Lab Cluster and click the Monitor tab. Under vSphere DRS, select
Recommendations. On the DRS Recommendations window, click RUN DRS NOW.
17. You should see one of two messages confirming that you have successfully
configured the VMs to meet the reduction threshold. You may need to wait 4 to 6
minutes for either message to appear.
The errors presented mean there are not enough resources available
to satisfy the failover of the VMs.
18. The lab is now complete; you may end your reservation.