Vsphere ICM7 Lab 20
Vsphere ICM7 Lab 20
Vsphere ICM7 Lab 20
0:
INSTALL, CONFIGURE, MANAGE
Contents
Introduction ........................................................................................................................ 3
Objectives............................................................................................................................ 3
Lab Topology....................................................................................................................... 4
Lab Settings ......................................................................................................................... 5
1 Create a CPU Workload .............................................................................................. 6
2 Use Performance Charts to Monitor CPU Use.......................................................... 14
3 Remove CPU Affinity and Change CPU Shares to Normal ........................................ 21
Introduction
In this lab, you will use the system monitoring tools to review the CPU workload.
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 configure the Scheduling Affinity and adjust the Shares of Linux-01
and Linux-02. You run the CPUBUSY script in each virtual machine to create a heavy CPU
workload in your lab environment.
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 sysadmin@vclass.local and in the Password text
field, type vmware123. Click on LOGIN.
7. Expand the Datacenter inventory object in the navigator pane, right-click Linux-01
and select Edit Settings.
8. In the Edit Settings window, expand CPU. In the Shares dropdown, select High. In the
Scheduling Affinity text box, enter 1. Click OK.
11. In the Edit Settings window, expand CPU. In the Shares dropdown, select Low. In the
Scheduling Affinity text box, enter 1. Click OK.
13. In the navigation pane, click Linux-01 and select LAUNCH WEB CONSOLE.
14. In the Linux-01 Console on the login window, type vmware123 for the password and
click Log In.
15. Click on Applications and select Terminal Emulator to open a terminal window.
16. In the terminal, elevate your privileges by becoming the superuser of the system.
When prompted for the root password, enter vmware123 and press Enter.
Linux01:~$ sudo su
Linux01:/home/sysadmin# cd tools
Linux01:/home/sysadmin/tools# ls
Notice the perl script cpubusy.pl. You will run this script to generate
CPU activity on Linux-01.
1. While in the vSphere Client, select Linux-01 from the navigator pane and select the
Monitor tab in the main workspace.
3. Notice the real-time CPU usage graph appears. Click the Chart Options link.
4. In the Chart Options window, ensure that CPU is selected from the Chart Metrics
pane. In the Timespan dropdown menu, verify that Real-time is selected.
5. In the Select counters for this chart pane, ensure that Readiness and Usage are the
only boxes that are checked. You may need to scroll down in the pane to verify the
settings.
6. In the Select object for this chart pane on the right, deselect the 0 checkbox.
8. Notice the CPU/Real-time chart for the Linux-01 virtual machine appears.
10. On the new tab, in the navigator pane, click the VMs and Templates tab and expand
the Datacenter object. Select the Linux-02 virtual machine and ensure that the
Monitor tab is selected.
11. Repeat steps 2 - 8 to configure the CPU Performance graph for the Linux-02 virtual
machine.
12. On the Linux-02 Firefox tab, use the mouse pointer to point to the end of the line
graph and view the current CPU Ready value in milliseconds.
13. Change focus back to the vSphere-Linux-01 tab. Verify that CPU usage in % is
selected and use the mouse pointer to point to the end of the line graph and view
the Percentage of time that the virtual machine was ready, but could not get
scheduled to run on the physical CPU.
14. In the Linux-01 main workspace window, from the View dropdown window, select
CPU usage in MHz. View the CPU usage in megahertz during the interval.
15. In the Linux-01 main workspace window, from the View dropdown window, select
Memory. View different points of the Amount of guest physical memory that is
being actively read or written by guest. Activeness is estimated by ESXi. You can also
view the Active, Ballooned, Consumed, and Granted memory.
16. Repeat steps 13 -15 to configure the CPU Performance graph for the Linux-02 virtual
machine.
17. There are metrics available to view that include Datastore, Disk, CPU Ready,
Network, Power, and Virtual Disk. For the purpose of this task, we chose to use
custom performance chart options and the views of CPU Usage in %, MHZ, and
Memory.
In this task, you shut down the Linux-01 and Linux-02 virtual machines, remove CPU
affinity from both virtual machines, and change the CPU shares of both virtual machines
to Normal.
1. In the navigation pane, right-click Linux-01 and select Power > Shut Down Guest OS.
Click YES to confirm the shutdown.
2. Right-click on Linux-02 and select Power > Shut Down Guest OS. Click YES to
confirm the shutdown.
4. In the Edit Settings window, expand the CPU Pane. From the Shares dropdown,
select Normal. In the Scheduling Affinity text box, delete the value 1. Click OK.
Entering 0 for Scheduling Affinity is not the same as deleting the value.
The text box must be blank.
6. In the Edit Settings window, expand the CPU Pane. From the Shares dropdown,
select Normal. In the Scheduling Affinity text box, delete the value 1. Click OK.
Entering 0 for Scheduling Affinity is not the same as deleting the value.
The text box must be blank.