VSphere OnSv67 Lab 08
VSphere OnSv67 Lab 08
NETLAB Academy Edition, NETLAB Professional Edition, and NETLAB+ are registered trademarks of Network Development Group, Inc.
Contents
Introduction ........................................................................................................................ 3
Objectives............................................................................................................................ 3
Lab Topology....................................................................................................................... 4
Lab Settings ......................................................................................................................... 5
1 Run a Single-Threaded Program in a Single-vCPU Virtual Machine ........................... 6
2 Start esxtop and View Statistics................................................................................ 10
3 Record Statistics for Case 1: Single Thread and Single CPU ..................................... 14
4 Run a Single-Threaded Program in a Dual-vCPU Virtual Machine ........................... 16
5 Record Statistics for Case 2: One Thread and Two vCPUs........................................ 20
6 Run a Dual-Threaded Program in a Dual-vCPU Virtual Machine.............................. 23
7 Record Statistics for Case 3: Two Threads and Two vCPUs ...................................... 24
8 Analyze the Test Results ........................................................................................... 25
Introduction
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 run a test program to generate continuous database activity on the
test virtual machine for statistical analysis. The test virtual machine is configured with
one vCPU.
1. Launch the sa-student virtual machine to access the graphical login screen.
2. Log in as sysadmin using the password vmware123.
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 Web Client (HTML5) button to launch the HTML5-based vSphere client.
5. In the User name text field, type [email protected] and in the Password text
field, type vmware123. Click on Login.
6. In the left pane, click on Hosts and Clusters and expand the Datacenter inventory
object.
7. Expand sa-esxi-01.vclass.local, right-click on Linux01 and select Power > Power On.
It is strongly advised to only utilize the remote console option and not
the web console as problems may arise when attempting to open a
virtual machine’s console through the web console.
9. When Linux01 has completely booted, log in as root with the VMware1! Password.
10. Type /root/starttest1, this script will generate database operations to a medium-
size database, and write the output to the screen. Allow the program to run
uninterrupted.
You will need to press Ctrl + Alt to release your mouse from the VM
Remote Console.
11. Leave vSphere Web Client open to continue with the next task.
In this task, you will use the esxtop command to observe performance statistics for
supported objects.
2. In the left pane, select sa-esxi-01.vclass.local and click on the Configure tab.
6. Start esxtop by typing esxtop and press Enter. (By default, esxtop starts with the
CPU screen.)
8. To filter the CPU screen output only to the virtual machines, enter uppercase V. (By
default, the CPU screen shows statistics for virtual machine processes and active
ESXi host processes). In the output table, find the Linux01 virtual machine statistics.
In this task, you will record statistics for the first case.
1. After 30 seconds of running esxtop with Linux01 displayed, record the following
statistics:
a. %USED
b. %RDY
c. %IDLE
3. If the screen is blank, click inside the console to wake it up. Record the operations
per minute (opm) value in the test script.
4. Press Ctrl+C to stop the script.
You will need to press Ctrl + Alt to release your mouse from the VM
Remote Console.
In this task, you will modify a virtual machine to have two vCPUs and restart the test
script.
1. Right-click on Linux01 and select Power > Shut Down Guest OS.
3. Wait for Linux01 to shut down completely and add a second vCPU to it.
a. Right-click Linux01 and select Edit Settings.
b. On the Virtual Hardware tab, change the drop-down beside CPU to 2 and click
OK.
It is strongly advised to only utilize the remote console option and not
the web console as problems may arise when attempting to open a
virtual machine’s console through the web console.
8. Leave the vSphere Client open and continue to the next task.
In this task, you will record statistics for the second test case.
1. Switch back over to the ssh session you had earlier with sa-esxi-01.vclass.local.
You will need to press Ctrl + Alt to release your mouse from the VM
Remote Console.
3. In esxtop, type e and enter the GID recorded from the previous step.
4. Notice the two vmx-vcpu processes; these are the vCPU’s activity in the virtual
machine.
5. After 30 seconds of statistics collection, record the following values for vmx-vcpu-0
and vmx-vcpu-1:
a. %USED
b. %RDY
c. %IDLE
7. If the screen is blank, click on the inside of the console, record the operations per
minute (opm) from the script.
9. Leave the vSphere Client open and continue to the next task.
In this task, you will configure the third case parameters by running a two-threaded test
program on a virtual machine with two vCPUs.
2. Leave the vSphere Client open and continue to the next task.
2. Examine the two lines that start with vmx-vcpu. After 30 seconds of collection,
record the following values for vmx-vcpu-0 and vmx-vcpu-1:
a. %USED
b. %RDY
c. %IDLE
5. Leave the vSphere Client open and continue to the next task.