EDU EN VS Optimize Scale 7 LAB IE PDF
EDU EN VS Optimize Scale 7 LAB IE PDF
www.vmware.com/education
Typographical Conventions
www.vmware.com/education
www.vmware.com/education
Contents
v
Lab 5 Using Policy-Based Storage ............................................................ 21
Task 1: Add Datastores for Use by Policy-Based Storage ...................................................... 21
Task 2: Use vSphere Storage vMotion to Migrate a VM's Storage......................................... 23
Task 3: Configure Storage Tags ......................................................................................... 23
Task 4: Create VM Storage Policies.................................................................................... 24
Task 5: Assign Storage Policies to VMs .............................................................................. 25
Lab 6 Creating vSAN Storage Policies ...................................................... 29
Task 1: Examine the Default Storage Policy......................................................................... 29
Task 2: Create a Custom Policy with No Failure Tolerance ................................................... 30
Task 3: Assign the Custom Policy to a VM ........................................................................... 31
Task 4: Make the VM Compliant ........................................................................................ 32
Task 5: Create an Invalid Storage Policy............................................................................. 33
Lab 7 Working with Certificates ............................................................... 35
Task 1: Examine the Machine SSL Certificate ....................................................................... 35
Task 2: Generate a CSR for the Custom Certificate .............................................................. 37
Task 3: Request a Custom Certificate ................................................................................. 39
Task 4: Replace the Current Certificate with a Custom Certificate .......................................... 41
Lab 8 Configuring Identity Federation to Use Microsoft ADFS ................... 45
Task 1: Configure vCenter Server Identity Provider Federation ............................................. 45
Task 2: Add Permissions to vCenter Server for an AD Account ............................................ 48
Task 3: Log In to vCenter Server Using an AD Account ....................................................... 49
Lab 9 Assigning a vSphere Trust Authority Administrator ........................... 51
Task 1: Assign a vSphere Trust Authority Administrator ........................................................ 51
Lab 10 Enabling and Configuring vSphere Trust Authority ......................... 52
Task 1: Preconfigure the Environment ................................................................................ 52
Task 2: Export the TPM Certificate and ESXi Image Metadata .............................................. 53
Task 3: Export the Trusted User Principal ........................................................................... 55
Task 4: Enable vSphere Trust Authority Services ................................................................. 55
Task 5: Import the Trusted Host Information to the Trust Authority Cluster ........................... 56
Task 6: Create a Trusted Key Provider on the Trust Authority Cluster ................................... 57
Task 7: Export the Trust Authority Cluster Settings .............................................................. 59
Task 8: Import the Trust Authority Cluster Settings into the Trusted Hosts Cluster ................. 59
Task 9: Configure the Trusted Key Provider for the Trusted Hosts Cluster ............................ 60
vi
Lab 11 Encrypting a VM with a Trusted Key Provider.................................. 62
Task 1: Encrypt a VM with a Trusted Key Provider ............................................................... 62
Lab 12 Using Host Profiles ....................................................................... 65
Task 1: Preconfigure ESXi Hosts......................................................................................... 65
Task 2: Create and Export a Host Profile ............................................................................ 68
Task 3: Import a Host Profile ............................................................................................. 69
Task 4: Duplicate and Edit a Host Profile ............................................................................ 70
Task 5: Attach an ESXi Host to a Host Profile ....................................................................... 71
Task 6: Run an Initial Compliance Check ............................................................................. 72
Task 7: Introduce a Configuration Drift ............................................................................... 73
Task 8: Run a Compliance Check and Remediate the Configuration Drift .............................. 74
Task 9: Detach the Host Profile ......................................................................................... 76
Lab 13 Creating Content Libraries ............................................................ 77
Task 1: Create a Local Content Library................................................................................. 77
Task 2: Upload Data to the Content Library ........................................................................ 78
Task 3: Create a Subscribed Content Library ...................................................................... 79
Task 4: Create a Subscription for VM Templates .................................................................. 81
Task 5: Clone a Template to the Local Library...................................................................... 81
Task 6: Synchronize the Content Libraries .......................................................................... 82
Task 7: Deploy a VM from the Subscribed Content Library .................................................. 83
Task 8: Clean Up for the Next Lab ..................................................................................... 84
Lab 14 Managing Resource Pools ............................................................. 85
Task 1: Maintain VMs......................................................................................................... 85
Task 2: Create CPU Contention ......................................................................................... 87
Task 3: Create Resource Pools .......................................................................................... 88
Task 4: Verify Resource Pool Functionality ......................................................................... 89
Lab 15 Monitoring CPU Performance........................................................ 91
Task 1: Run a Single-Threaded Program in a Single-vCPU VM .............................................. 91
Task 2: Start esxtop and View Statistics .............................................................................. 92
Task 3: Record Statistics for Case 1: Single Thread and Single vCPU ..................................... 93
Task 4: Run a Single-Threaded Program in a Dual-vCPU VM ............................................... 94
Task 5: Record Statistics for Case 2: One Thread and Two vCPUs ........................................ 95
Task 6: Run a Dual-Threaded Program in a Dual-vCPU VM ................................................. 95
vii
Task 7: Record Statistics for Case 3: Two Threads and Two vCPUs ....................................... 96
Task 8: Analyze the Test Results ........................................................................................ 96
Lab 16 Monitoring Memory Performance .................................................. 97
Task 1: Generate Database Activity in the Test VM .............................................................. 97
Task 2: Check for Overcommitment of VM Memory............................................................. 98
Task 3: Configure esxtop to Report VM Memory Statistics ................................................... 98
Task 4: Observe Memory Statistics..................................................................................... 99
Task 5: Start a Memory Test on ResourceHog01 and ResourceHog02 ................................ 100
Task 6: Record Memory Statistics ...................................................................................... 101
Task 7: Clean Up for the Next Lab ..................................................................................... 102
Lab 17 Monitoring Storage Performance ................................................. 103
Task 1: Prepare to Run Tests ............................................................................................ 103
Task 2: Measure Continuous Sequential Write Activity to a Virtual Disk on a Remote Datastore
.......................................................................................................................... 104
Task 3: Measure Continuous Random Write Activity to a Virtual Disk on a Remote Datastore105
Task 4: Measure Continuous Random Read Activity to a Virtual Disk on a Remote Datastore 106
Task 5: Measure Continuous Random Read Activity to a Virtual Disk on a Local Datastore ... 106
Task 6: Analyze the Test Results ....................................................................................... 107
Lab 18 Monitoring Network Performance ............................................... 108
Task 1: Prepare to Monitor Network Performance .............................................................. 108
Task 2: Prepare the Client and the Server VMs .................................................................. 109
Task 3: Measure Network Activity on an ESXi Physical Network Interface .............................. 111
Task 4: Use Traffic Shaping to Simulate Network Congestion ................................................ 111
Task 5: Position the Client and the Server on the Same Port Group ...................................... 112
Task 6: Restart the Test and Measure Network Activity ....................................................... 114
Task 7: Stop the Test and Analyze Results .......................................................................... 115
Task 8: Clean Up .............................................................................................................. 115
Answer Key........................................................................................... 116
viii
Lab 1 Accessing the Lab
Environment
1. Use the information that is provided by your instructor to log in to your lab environment.
a. Open the Firefox web browser, click vSphere Site-A on the bookmarks toolbar.
1
3. Log in to the vSphere Client on Site B.
a. In a new Firefox web browser tab, click vSphere Site-B on the bookmarks toolbar.
You can keep this tab open for future use in this lab.
1. Verify that the licenses for the vCenter Server systems (Site A and Site B) are not expired.
b. Select sa-vcsa-01.vclass.local.
c. In the right pane, click the Configure tab and click Licensing under System Settings.
d. Verify that the license expiration date for the vCenter Server instance is not expired.
2. Verify that the licenses for the ESXi hosts are valid (both Site A and Site B).
a. In the left pane, expand the inventory until you see the ESXi hosts.
b. Select sa-esxi-04.vclass.local.
c. In the right pane, click the Configure tab and click Licensing under System Settings.
e. Repeat this step for the remaining ESXi hosts in the inventory (both Site A and Site B).
3. If the licenses are valid, jump to task 4. If any license has expired, see your instructor.
2
Task 3: (Optional) Assign Valid vSphere Licenses
You assign valid licenses to these vSphere components if the vCenter Server and ESXi host
licenses are expired.
d. On the Enter license keys page, enter the vCenter Server and vSphere Enterprise
Plus license keys provided by your instructor in the License keys text box.
e. Verify that both licenses are listed correctly in the text box and click Next.
f. On the Edit license names page, enter VMware vCenter Server and VMware
vSphere ESXi in the appropriate License name text boxes and click Next.
g. On the Ready to complete page, click Finish.
i. Select the vCenter Server sa-vcsa-01.vclass.local check box and click Assign
License.
k. Repeat this step to apply the proper license for vCenter Server sb-vcsa-
01.vclass.local.
3. Assign the vSphere Enterprise Plus license key to the ESXi hosts for Site A and Site B.
b. Select all hosts by selecting the check box to the left of the Asset column header.
c. Click Assign License and click Yes to perform the action on host objects.
d. In the Assign License dialog box, select the vSphere Enterprise Plus license key and
click OK.
e. Repeat this step and ensure that licensing is applied to any other ESXi hosts (in Site A
or Site B).
3
4. Reconnect the ESXi hosts.
c. On the Connection settings page, enter user name root and password VMware1!,
and click NEXT.
d. On the Host summary page, review the summary information and click NEXT.
e. On the Assign license page, accept the default settings and click NEXT.
f. On the Lockdown mode page, accept the default settings and click NEXT.
g. On the VM location page, accept the default settings and click NEXT.
h. On the Ready to complete page, review the information summary to add the host and
click FINISH.
4
3. Configure NTP on the newly added ESXi host.
c. Select Configure > System > Time Configuration in the right pane.
e. Select Enable.
h. For the NTP Service Startup Policy, use the drop-down menu and select Start and
stop with host.
i. Click OK.
5
Lab 2 Configuring vSphere
Distributed Switch
1. Open the Firefox web browser, click vSphere Site-A on the bookmarks toolbar, and
select vSphere Client (SA-VCSA-01).
If you are not logged in from a previous activity, log in using the vCenter Server lab
credentials:
3. Right-click SA-Datacenter and select Distributed Switch > New Distributed Switch.
6
4. Create a distributed switch.
a. On the Name and location page, enter dvs-Lab in the Name blank and click NEXT.
b. On the Select version page, leave 7.0.0 - ESXi 7.0 and later selected and click
NEXT.
d. On the Ready to complete page, review the configuration settings and click FINISH.
5. In the left pane, expand SA-Datacenter and verify that the dvs-Lab distributed switch
appears.
d. Under the Failover Order section, move Uplink 2, Uplink 3 and Uplink 4 down until
they appear under the Unused uplinks section.
7
Task 2: Add ESXi Hosts to the Distributed Switch
You add ESXi hosts and physical adapters to the new distributed switch.
1. In the left pane, right-click dvs-Lab and select Add and Manage Hosts...
2. On the Select task page, leave Add hosts selected and click NEXT.
3. On the Select hosts page, click New hosts (the green plus sign).
4. Select check boxes for the hosts listed here and click OK.
sa-esxi-01.vclass.local
sa-esxi-02.vclass.local
sa-esxi-04.vclass.local
sa-esxi-05.vclass.local
sa-esxi-06.vclass.local
5. Click NEXT.
6. On the Manage physical adapters page, assign vmnic2 to Uplink 1 on sa-esxi-01, sa-esxi-
02, sa-esxi-04, sa-esxi-05, and sa-esxi-06.
b. Select Uplink 1.
c. To apply this adapter assignment to all selected hosts, select Apply this uplink
assignment to the rest of the hosts and click OK.
Selecting this check box applies your physical adapter assignments to each host
selected earlier through this wizard.
8
Task 3: Examine Your Distributed Switch Configuration
You examine distributed switch features, including the maximum transmission unit (MTU)
value, VLAN capabilities, NetFlow, and Network I/O Control.
2. In the right pane, click the Configure tab and select Settings > Topology.
4. Verify that the vmnic2 is attached and appears under Uplink 1 for ESXi hosts sa-esxi-01,
sa-esxi-02, sa-esxi-04, sa-esxi-05, and sa-esxi-06.
• Number of uplinks is 4.
• The Discover Protocol Type is set to Cisco Discovery Protocol and operation is set to
Listen.
6. Click each remaining configuration link on the left under Settings to verify the current
configuration.
• Health Check: All items are set to Disabled in the main window.
8. In the right pane, click the Configure tab and select Properties on the left.
9
Task 4: Migrate VMs to Another Distributed Switch Port Group
You move VMs from their current port groups on the dvs-SA-Datacenter distributed switch to
the pg-SA-Production port group on the dvs-Lab distributed switch.
1. In the left pane, expand the SA-Datacenter and dvs-SA-Datacenter distributed switch.
a. In the Migrate VMs to Another Network page, for the Destination network click
BROWSE....
d. On the Select VMs to migrate page, select VMs Linux01 & Linux02 and click NEXT.
a. In the left pane, select dvs-Lab and click Hosts in the right pane.
c. Click VMs and verify that the Linux01 and Linux02 VMs are listed.
If the VMs are listed, they reside on the new distributed switch.
d. Click Ports and verify that pg-SA-Production is listed in the Port Group column. Also
verify that an uplink port group is listed which you previously mapped between
vmnic2 and Uplink1.
You can expand the Port Group column to view the full name of the uplink port
group.
10
6. Power on Linux01 and log in to its console.
7. At the command prompt, ping 172.20.10.10 (the domain controller’s IP address) to verify
that the VM has full network connectivity.
ping -c 3 172.20.10.10
8. If the ping command is successful, continue to Step 10.
a. Enter the command to ensure that your VM has a valid DHCP-assigned IP address.
11. In the vSphere Client, select Menu > VMs and Templates.
11
Lab 3 Managing vSphere Distributed
Switches
a. Open the Firefox web browser, click vSphere Site-A on the bookmarks toolbar.
4. Right-click dvs-Lab and select Distributed Port Group > New Distributed Port Group.
12
5. On the Name and location page, enter pg-SA-Testing in the Name text box and click
NEXT.
6. On the Configure settings page, select VLAN under VLAN type from the drop-down
menu, enter 10 for the VLAN number, and click NEXT.
7. On the Ready to complete page, review the information about your new DVS port group
and click FINISH.
3. In the right pane, click Configure > Health Check on the left.
5. Under VLAN and MTU, select Enabled from the State drop-down menu.
6. Under Teaming and failover, select Enabled from the State drop-down menu.
7. Click OK.
NOTE
After the health check is enabled, the VDS health check begins testing for selected
configuration options (VLAN and MTU, Teaming and Failover, or both) by creating many
fictitious MAC addresses. These MAC addresses continue to be created and sent through
the vSphere and physical networks as long as the VDS health check is enabled.
13
Task 3: Investigate the VDS Health Check Status
You check for results from the VDS health check service.
This list should comprise all hosts that were added to vSphere Distributed Switch.
This list continuously updates with health check results while the health check service is
enabled.
4. Highlight a host listing, where a warning appears, to view the additional information
displayed below it.
VLAN is the default tab under Health status details. To check MTU or other settings, you
must click the individual tabs.
When you set a VLAN in task 1, it was a bad VLAN because it is a mismatch to the
physical environment.
3. On the VLAN page, select None for the setting VLAN type.
Selecting None for this value removes any previously applied VLAN tags on the pg-SA-
Testing port group.
NOTE
a. Select Monitor > Health and verify that VLAN Health Status has changed and now
indicates Normal.
14
Task 5: Disable the VDS Health Check Service
You disable the VDS health check service on the dvs-Lab vSphere distributed switch.
Disabling the VDS health check service is important because of the many fictitious MAC
addresses generated at one-minute intervals to facilitate troubleshooting efforts in the
network infrastructure. The environment will need time for those MAC addresses to time out
of the infrastructure, according to the network policy after the VDS health check is disabled.
3. In the right pane, click Configure > Health Check on the left.
4. Click Edit.
5. Under VLAN and MTU, select Disabled from the State drop-down menu.
6. Under Teaming and failover, select Disabled from the State drop-down menu.
7. Click OK.
1. In the left pane, right-click dvs-Lab and select Settings > Export Configuration.
2. In the Export Configuration dialog box, leave Distributed switch and all port groups
selected and click OK.
3. Save the distributed switch configuration to the desktop with the filename dvs-Lab-
backup.zip.
4. In the vSphere Client, select Menu > Global Inventory Lists.
15
Lab 4 Using Port Mirroring
a. Open the Firefox web browser, click vSphere Site-A on the bookmarks toolbar.
5. In the right pane, click Summary and click Launch Web Console.
16
6. In the Linux01 web console, enter the tcpdump command at the command prompt.
7. Monitor the command output for a few seconds and verify that ICMP traffic is not being
captured.
The tcpdump output does not have any information to display until ICMP traffic is
detected on the network.
8. Leave the console window open with the tcpdump command running uninterrupted.
c. In the right pane, click Summary and click Launch Web Console.
d. Click the Linux02 Web Console tab in the browser and click in the window to capture
keyboard input.
ping 172.20.10.10
This command pings the default router IP address.
12. If the ping command does not work, enter the following command to restart network
services and then repeat step 11.
14. In the Linux01 console window, verify that the running tcpdump command output
remains silent and did not capture any ICMP traffic.
17
Task 2: Configure Port Mirroring on the Distributed Switch
You configure port mirroring so that the port connected to the Linux02 VM is the mirror
source and the port connected to the Linux01 VM is the mirror destination.
All the traffic present on the Linux02 port is forwarded to the Linux01 port for examination.
3. In the right pane, click Configure and select Port Mirroring on the left.
When you select this session type, distributed ports can only be local. If the source
and destination ports are on different hosts, port mirroring does not work between
them.
Ensure that the Linux01 and Linux02 VMs both reside on sa-esxi-04.vclass.local.
ii. From the Normal I/O on destination ports drop-down menu, select Allowed
and click NEXT.
i. Click the Select distributed ports to add to this port mirroring session icon.
ii. In the Select Ports dialog box, select Linux02 and click OK.
i. Click the Select distributed ports to add to this port mirroring session icon.
ii. In the Select Ports dialog box, select Linux01 and click OK.
18
f. On the Ready to complete page, review settings and click FINISH.
2. Verify that the ping command is still reaching the default router IP address.
4. In the Linux01 console, examine the tcpdump output in the terminal window.
_________________
6. In the Linux01 console window, press Ctrl+C to stop the tcpdump command.
a. If pressing Ctrl+C does not work, click anywhere inside the tab screen and repeat.
8. In the Linux02 console window, press Ctrl+C to stop the ping command.
ifconfig
19
10. Use the command output to verify that the Linux02 IP address matches the address that
you recorded in step 5.
b. In the left pane, right-click Linux01 and select Power > Shut Down Guest OS.
2. In the left pane, right-click VDS dvs-Lab and select Settings > Restore Configuration.
3. On the Restore switch configuration page, click BROWSE, select the file dvs-Lab-
backup.zip, and click Open.
4. Leave Restore distributed switch and all port groups selected and click NEXT.
5. On the Ready to complete page, review the settings and click FINISH.
a. If the switch configuration did not restore properly, repeat steps 1 through 5.
b. View the port mirroring configuration and verify that the VDS dvs-Lab has no
sessions configured.
The port mirroring configuration was removed by the VDS restore operation.
20
Lab 5 Using Policy-Based Storage
a. Open the Firefox web browser, click vSphere Site-A on the bookmarks toolbar.
21
3. Create a datastore named ds-gold.
a. In the left pane, right-click SA-Datacenter and select Storage > New Datastore.
c. On the Name and device selection page, enter ds-gold in the Datastore name
text box.
d. From the Select a host... drop-down menu, select ESXi host sa-esxi-04.vclass.local.
e. From the LUN list, select the entry description FreeNAS ISCSI Disk (naa..) with
capacity 8.00 GB, and click NEXT.
Local drives are labeled as Local VMware Disk. Do not select these drives.
If iSCSI devices are not present, ask the instructor for instructions to add them.
f. On the VMFS version page, leave VMFS 6 selected and click NEXT.
g. On the Partition configuration page, keep the default values and click NEXT.
i. In the left pane, expand SA-Datacenter and verify that the datastore ds-gold
appears.
a. In the left pane, right-click SA-Datacenter and select Storage > New Datastore.
c. On the Name and device selection page, enter ds-silver in the Datastore name
text box.
d. From the Select a host... drop-down menu, select ESXi host sa-esxi-04.vclass.local.
e. From the LUN list, select the entry description FreeNAS ISCSI Disk (naa..) with
capacity 12.00 GB, and click NEXT.
Local drives are labeled as Local VMware Disk. Do not select these drives.
f. On the VMFS version page, leave VMFS 6 selected and click NEXT.
g. On the Partition configuration page, keep the default values and click NEXT.
22
Task 2: Use vSphere Storage vMotion to Migrate a VM's Storage
You use vSphere Storage vMotion to migrate the Photon-01 VM to the ds-gold datastore.
3. On the Select a migration type page, click Change storage only and click NEXT.
4. On the Select storage page, select the datastore ds-gold, leave all other settings with
their default values, and click NEXT.
You might need to refresh the vSphere Client to see that the migration is complete.
b. In the right pane, click the Datastores tab and verify that the ds-gold datastore is
listed.
The Storage Tiers tag category contains the Gold and Silver identifier tags associated with
individual datastores.
3. Configure a new tag category and the Gold Tier identifier tag.
c. Click the Create New Category link next to the Category drop-down menu.
A dialog box appears that includes tag and category configuration options.
Categories can be created only as part of the identifier tag creation process.
d. In the Category Name text box, enter Storage Tiers.
e. Keep the default values for the remaining settings and click CREATE.
23
4. Create a Silver Tier identifier tag.
c. Select Storage Tiers from the Category drop-down menu and click CREATE.
b. In the left pane, right-click ds-gold and select Tags & Custom Attributes > Assign
Tag.
e. In the Tags panel on the Summary tab, verify that the Gold Tier tag is associated with
the ds-gold datastore.
a. In the left pane, right-click the ds-silver datastore and select Tags & Custom
Attributes > Assign Tag.
d. In the Tags panel on the Summary tab, verify that the Silver Tier tag is associated with
the ds-silver datastore.
b. On the Name and description page, enter Gold Tier Policy in the Name text
box and click NEXT.
c. On the Policy structure page, select Enable tag based placement rules and click
NEXT.
24
d. On the Tag based placement page, select Storage Tiers from the Tag category drop-
down menu.
e. Click BROWSE TAGS, select Gold Tier, click OK, and click NEXT.
f. On the Storage compatibility page, verify that the datastore ds-gold is listed under
Compatible storage and click NEXT.
4. Repeat step 3 to create Silver Tier Policy by using the Silver Tier tag.
5. Verify that Gold Tier Policy and Silver Tier Policy are entries in the Name column.
a. If the entries cannot be found, repeat any steps needed to add the entries.
b. On the Edit VM Storage Policies page, select Gold Tier Policy from the VM storage
policy drop-down menu and click OK.
25
e. Scroll down and expand the Storage Policies panel, if necessary.
f. Verify that Gold Tier Policy appears and that Photon-01 is compliant.
a. In the left pane, right-click Photon-02 and select VM Policies > Edit VM Storage
Policies.
b. On the Edit VM Storage Policies page, select Silver Tier Policy from the VM storage
policy drop-down menu and click OK.
26
d. In the right pane, click the Summary tab.
e. View the VM Storage Policies panel, verify that Silver Tier Policy appears and that
Photon-02 is noncompliant.
b. On the Select a migration type page, click Change storage only and click NEXT.
c. On the Select storage page, select datastore ds-silver and click NEXT.
With a VM storage policy assigned to the Photon-02 VM, datastores are listed as
either Compatible or Incompatible.
d. On the Ready to complete page, review the migration details and click FINISH.
27
6. Verify that Photon-02 is reported as compliant.
a. In the right pane, verify that the status in the VM Storage Policies panel is Compliant.
b. If the status is not Compliant, click the Check Compliance link in the VM Storage
Policies panel.
c. Verify that the status changes to Compliant.
28
Lab 6 Creating vSAN Storage
Policies
1. Open the Firefox web browser, click vSphere Site-A on the bookmarks toolbar, and
select vSphere Client (SA-VCSA-01).
a. If you are not logged in from a previous activity, log in using the vCenter Server lab
credentials.
29
4. In the right pane, select vSAN Default Storage Policy and click Edit Settings.
6. On the vSAN page, examine the rules under the Availability, Advanced Policy Rules,
and Tags tabs.
Q1. How many failures can be tolerated?
A1. One.
7. Click CANCEL.
3. On the Policy structure page, select the Enable rules for “vSAN” storage check box and
click NEXT.
4. On the vSAN page Availability tab under Failures to tolerate, select No data redundancy
from the drop-down menu.
View the consumed storage space information below the drop-down menu.
30
Task 3: Assign the Custom Policy to a VM
You create a second VM and apply your new vSAN storage policy.
a. In the left pane, right-click Photon-01 and select Clone > Clone to Virtual Machine.
b. On the Select a name and folder page, enter Payload-02 in the Virtual machine
name text box and click NEXT.
d. On the Select storage page, select Datastore Default from the VM Storage Policy
drop-down menu.
f. On the Select clone options page, select only Power on virtual machine after
creation and click NEXT.
h. Monitor the Recent Tasks pane to verify that the Clone virtual machine task completes
successfully.
3. Verify that your new VM is listed in the left pane and is powered on.
If you do not see the VM listed and powered on, click the Refresh icon.
31
4. Assign the vSAN-VM-Custom-Policy-FTT0 storage policy to Payload-02.
a. In the left pane, right-click Payload-02 and select VM Policies > Edit VM Storage
Policies.
Q1. Why do the VM home and Hard disk 1 objects have warning icons?
A1. The selected storage policy is only compatible with vSAN datastores and the VM is currently on a VMFS datastore.
c. Click OK.
d. Monitor the Recent Tasks pane to verify that the Reconfigure virtual machine task
completes successfully.
6. On the Summary tab, review the Related Objects panel and the VM Storage Policies
panel.
You might need to scroll down in the right pane to see these panels.
b. On the Select a migration type page, click Change storage only and click NEXT.
c. On the Select Storage page, leave Keep existing VM storage policies selected in the
VM Storage Policy drop-down menu.
f. Monitor the Recent Tasks pane until the task completes successfully.
32
2. In the right pane, view the VM Storage Policies panel and click Check Compliance.
The compliance status might have been refreshed automatically by the vSphere Client. If
so, clicking Check Compliance is not required.
The purpose of this task is to provide another example of the warning messages that appear
when an invalid storage policy is created.
b. On the Name and description page, enter RAID5 in the Name text box and click
NEXT.
c. On the Policy structure page, select the Enable rules for “vSAN” storage check box
and click NEXT.
d. On the vSAN page under the Availability tab, select 1 failure - RAID-5 (Erasure
Coding) from the Failures to tolerate drop-down menu and click NEXT.
b. In the left pane, right-click Payload-02 and select VM Policies > Edit VM Storage
Policies.
Q1. Why do the VM home and Hard disk 1 objects have warning icons?
A1. The storage policy requires at least four fault domains contributing all-flash storage but only three were found.
5. Click CANCEL.
33
6. Select Menu > Policies and Profiles.
34
Lab 7 Working with Certificates
a. Open the Firefox web browser, click vSphere Site-A on the bookmarks toolbar.
35
5. Click VIEW DETAILS to see details for the machine SSL certificate.
NOTE
36
6. Record the following certificate information for future comparison.
Valid from: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Valid until: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Thumbprint: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Each time a certificate is renewed, the current time is set as the Valid from time and the
Valid to time is set as 2 years from that moment.
The certificate thumbprint, also called a cert hash, is unique and changes with each
certificate generated.
7. When you have finished reviewing the Machine SSL certificate details, click < BACK TO
CERTIFICATE MANAGEMENT at the top of the page.
8. Scroll down and click VIEW DETAILS for the first certificate under Trusted Root
Certificates.
9. When you have finished reviewing the Trusted Root certificate details, click < BACK TO
CERTIFICATE MANAGEMENT to return to Certificate Management.
a. Under Machine SSL Certificate, click Actions > Generate Certificate Signing Request
(CSR).
Organization : VMware
Organizational Unit: Education
State/Province: California
Locality: Palo Alto
Email Address: cert.admin@vmware.com
37
c. When finished, click NEXT.
2. Click DOWNLOAD on the Generate CSR screen to capture the CSR into a sa-vcsa-
01.vclass.local.csr file and save the file to the C:\Materials\Downloads
folder.
After creating the certificate signing request, you must provide it to your Certificate
Authority to receive a CA-signed custom certificate. You will do this in the next task.
38
Task 3: Request a Custom Certificate
You request a custom certificate from the vclass.local domain.
a. On your student desktop, open a new Firefox tab and select Infrastructure >
Certificate Services (vClass.local) from the bookmark bar or go to
http://dc.vclass.local/certsrv.
b. Log in by entering user name administrator and password VMware1! .
e. Under Saved Request, paste the CSR text from step 1 into the Base-64-encoded
certificate request text box.
g. Click Submit.
39
3. Download the certificate chain.
d. Close Notepad++.
c. In the left pane, expand the inventory tree until you see the folder Certificates.
d. Select Certificates.
You should see two certificates in the right pane: the root certificate for your domain
controller (vclass-DC-CA) and the custom certificate for your vCenter Server
Appliance instance (sa-vcsa-01.vclass.local).
e. To export the root certificate, right-click the root certificate vclass-DC-CA, and select
All Tasks > Export.
f. Click Next.
g. On the Export File Format page, select Base-64 encoded X.509 (.CER) and click
Next.
k. Click Save.
40
l. On the File to Export page, click Next.
a. Under the Machine SSL Certificate card, select Actions > Import and Replace
Certificate.
c. Click NEXT.
d. Under the Machine SSL Certificate text box, click BROWSE FILE.
After selecting this file, the text box will be populated with the CA-signed certificate
information.
f. Under the Chain of trusted root certificates box, select BROWSE FILE.
After selecting this file, the text box will be populated with the root and chain
certificate information.
41
h. On the Replace with external CA certificate page, click REPLACE.
Shortly after the new CA-signed certificate import process successfully begins (in
seconds), a message box indicating a connection timeout in the vSphere Client
should display. This happens because replacing a security certificate causes vCenter
Server services to restart including the vSphere Client UI.
You will need to restart the web browser to reconnect to the vSphere Client. You will
do this at the end of the next step.
a. In a new Firefox tab, open the Firefox menu and select Options.
Alternatively, you can open a new Firefox browser tab and enter
about:preferences in the Address box.
42
b. In the highlighted search box, search for cache.
d. In the Clear Data dialog box, deselect Cookies and Site Data and click Clear.
This action will clear the web cache of your Firefox browser.
After a longer wait (of at least 10 minutes), you must log back in to the vCenter Server
instance because restarting the services ends the UI session.
a. Using the vSphere Client, log in to the vCenter Server sa-vcsa-01.vclass.local using
your vCenter Server lab credentials.
If you experience difficulties when attempting to log in to the vCenter Server instance
in Site A, clear both Cached Web Content and Cookies and Site Data in the Firefox
browser, then retry from step 4a.
If you cannot log in to vCenter Server after services have restarted, attempt to log in
using a new private Firefox window.
c. Select Menu > Administration and select Certificates > Certificate Management.
43
e. Click View Details under Machine SSL Certificate.
f. Compare the valid dates and thumbprint information with the certificate information
collected in task 1, step 6.
Valid from: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Valid until: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Thumbprint: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
IMPORTANT
The valid dates and thumbprint of the current certificate should be different from the
previous certificate.
44
Lab 8 Configuring Identity
Federation to Use Microsoft ADFS
1. Open the Firefox web browser, click vSphere Site-A on the bookmarks toolbar, and
select vSphere Client (SA-VCSA-01).
a. If you are not logged in from a previous activity, log in using the vCenter Server lab
credentials.
45
4. Obtain the redirect URI (Uniform Resource Identifier) links.
a. In the Identity Provider tab, click the informational ("i") icon next to the CHANGE
IDENTIFY PROVIDER link.
6. On the Identity Provider page, leave Microsoft ADFS selected and click NEXT.
a. On the student desktop, open the file ADFS-Settings.txt and review the ADFS
configuration information.
b. Return to the vSphere Client and the Configure Main Identity Provider wizard page.
c. On the ADFS page, in the Client Identifier text box, enter the value for Client
Identifier UID provided in the ADFS-Settings.txt file.
Do not include any additional characters or spaces when you copy and paste the
Client Identifier from the ADFS-Settings.txt file.
d. In the Shared secret text box, enter the value for Client Secret provided in the
ADFS-Settings.txt file.
Do not include any additional characters or spaces when you copy and paste the
Shared secret from the ADFS-Settings.txt file.
46
e. In the OpenID Address text box, enter the value for OpenID Address provided in the
ADFS-Settings.txt file.
Do not include any additional characters or spaces when you copy and paste the
Shared secret from file ADFS-Settings.txt.
f. Click NEXT.
8. On the Users and Groups page, configure Active Directory (AD) over an LDAP
connection.
Avoid using any additional spaces in the entries for the AD LDAP configuration. These
entry items are without spaces.
h. Click NEXT.
47
Task 2: Add Permissions to vCenter Server for an AD Account
You add permissions to vCenter Server for a user from the ADFS identity source.
h. To finish adding the permissions for the ADFS user, click OK.
You can monitor the task to completion in the Recent Tasks pane.
If you are able to find this entry, you are now ready to log in through the vSphere
Client using Microsoft ADFS.
48
Task 3: Log In to vCenter Server Using an AD Account
You log in to vCenter Server as administrator@vclass.local, authenticated from your external
identity provider Microsoft ADFS.
1. Open the Firefox web browser, click vSphere Site-A on the bookmarks toolbar, and
select vSphere Client (SA-VCSA-01).
49
2. On the vSphere Client login page, enter administrator@vclass.local and click
NEXT.
After entering the Microsoft AD user name, you are automatically redirected to the
identity provider login page.
3. On the identity provider login page, complete your login with Microsoft ADFS by entering
user name administrator@vclass.local and password VMware1!.
With permissions added to vCenter Server, you are allowed to log in.
NOTE
For Microsoft AD accounts which do not have permissions added to vCenter Server, login
is not permitted even with correct AD credentials.
4. After successful login, log out of the vSphere Client and close Firefox.
50
Lab 9 Assigning a vSphere Trust
Authority Administrator
a. Open the Firefox web browser, click vSphere Site-A on the bookmarks toolbar.
6. In the search field, enter trustedadmin and select this user from the search results
and click SAVE.
51
Lab 10 Enabling and Configuring
vSphere Trust Authority
8. Import the Trust Authority Cluster Settings into the Trusted Hosts Cluster
9. Configure the Trusted Key Provider for the Trusted Hosts Cluster
a. Open the Firefox web browser, click vSphere Site-A on the bookmarks toolbar.
52
2. Rename the trusted (attested) cluster in Site A.
The cluster where vSphere Trust Authority services will run is named and in Site B.
IMPORTANT
This lab is different. Almost all other labs take place using the vSphere Client whereas this
lab and its tasks mostly take place at the PowerCLI command line.
• Connecting to the resource (Ensure that you use the correct user account to connect.)
Though you can type these commands out, using autocomplete for cmdlets at the
PowerCLI command prompt, you can also copy and paste the PowerCLI commands in the
vta.txt file.
53
1. On the Desktop, open the shortcut Class Materials and Licenses and open the
Downloads folder.
2. Open the file vta.txt from this folder and resize the window for your use, as needed.
This file contains all the PowerCLI commands which are required for the rest of this
vSphere Trust Authority lab. You can copy and paste from this file instead of typing these
commands by hand.
$vmhost = Get-VMHost
6. Inspect the TPM endorsement key of the ESXi host.
54
Task 3: Export the Trusted User Principal
You export the trusted user principal from the vCenter Server system that manages the
trusted (attested) cluster.
1. In PowerCLI, connect to the vCenter Server system that manages the trusted (attested)
cluster by using the Trust Authority Administrator credentials.
Get-TrustAuthorityCluster "SB-VTA-Cluster-01"
NOTE
3. Assign the current Trusted Services state of the Trust Authority cluster to a variable.
55
4. Enable Trusted Services on the Trust Authority cluster.
NOTE
Get-TrustAuthorityCluster "SB-VTA-Cluster-01"
When the cluster is enabled, the State column with show Enabled.
New-TrustAuthorityPrincipal -TrustAuthorityCluster
$TAcluster -FilePath C:\vta\principal.json
3. To verify that the previous import was successful, return the trusted user principal from
the trusted cluster.
Get-TrustAuthorityPrincipal -TrustAuthorityCluster
$TAcluster
56
4. Import the TPM CA certificate from the trusted cluster into the Trust Authority cluster.
NOTE
This step dictates which TPM devices are trusted by the Trust Authority cluster.
5. Import the ESXi image metadata from the trusted cluster into the Trust Authority cluster.
New-TrustAuthorityVMHostBaseImage -TrustAuthorityCluster
$TAcluster -FilePath C:\vta\image.tgz
NOTE
This step dictates which versions of ESXi are trusted by the Trust Authority cluster.
57
2. Add the key management server (KMS), called SB-KMS-01, as a Trust Authority key
provider.
New-TrustAuthorityKeyProvider -TrustAuthorityCluster
$TAcluster -MasterKeyId 1 -Name SB-KMS-01 -KmipServerAddress
172.20.110.193
NOTE
The MasterKeyId is typically in the form of a longer UUID. In this lab, you use an internal
PyKMIP KMS. This value differs depending on the KMS that is used. For more
information, refer to the KMS vendor documentation.
New-TrustAuthorityKeyProviderClientCertificate -KeyProvider
$kp
5. Return the KMS certificate.
Get-TrustAuthorityKeyProviderServerCertificate -
KeyProviderServer $kp.KeyProviderServers
6. Assign the KMS certificate to a variable.
$cert = Get-TrustAuthorityKeyProviderServerCertificate -
KeyProviderServer $kp.KeyProviderServers
7. Add the KMS certificate to the trusted key provider in a trusted state.
Add-TrustAuthorityKeyProviderServerCertificate -
ServerCertificate $cert
8. Disconnect the existing PowerCLI sessions.
58
Task 7: Export the Trust Authority Cluster Settings
You export the settings for the Trust Authority cluster.
Export-TrustAuthorityServicesInfo -TrustAuthorityCluster
$TAcluster -FilePath C:\vta\cluster_settings.json
NOTE
This file contains information about the Trust Authority attestation services and key
provider services.
Task 8: Import the Trust Authority Cluster Settings into the Trusted
Hosts Cluster
You import the Trust Authority cluster settings into the trusted hosts cluster to establish a
connection to the Trust Authority cluster.
1. Using PowerCLI, connect to the vCenter Server system that manages the trusted
(attested) cluster.
59
3. Import the Trust Authority cluster information.
Import-TrustAuthorityServicesInfo -FilePath
C:\vta\cluster_settings.json
a. At the confirmation prompt, press Enter to accept the default (Y).
Task 9: Configure the Trusted Key Provider for the Trusted Hosts
Cluster
You configure the trusted key provider for the trusted (attested) cluster so that encryption
keys can be received from the Trust Authority cluster.
a. Open a new tab in the Firefox web browser and navigate to https://sa-vcsa-
01.vclass.local/ui.
b. For the user name, enter trustedadmin@vsphere.local.
4. Click the Configure tab and select Security > Key Providers.
The trusted key providers that are available are shown with a Connected status.
60
6. Select SB-KMS-01 and click ADD KEY PROVIDERS.
The trusted key provider shows as Trusted and Connected. Because this is the first
trusted key provider that you added, it is marked as the default.
NOTE
The trusted key provider becomes the default key provider for the entire vCenter Server
system.
If the Key Providers display does not indicate your Trusted Key Provider entry SB-KMS-01
and Connected status, stop and request assistance from your instructor.
61
Lab 11 Encrypting a VM with a
Trusted Key Provider
1. Using the vSphere Client, connect to the vCenter Server instance sa-vcsa-01.vclass.local.
2. Select Menu > Host and Clusters to locate the VM Photon-ENC on the ESXi host sa-esxi-
08.vclass.local.
a. If the VM is powered on, shut it down by right-clicking the VM and selecting Power >
Shut Down Guest OS.
62
5. Click OK.
63
Lab 12 Using Host Profiles
a. Open the Firefox web browser, click vSphere Site-A on the bookmarks toolbar.
65
2. Remove iSCSI network port binding from the sa-esxi-01.vclass.local host.
d. In the right pane under Model: iSCSI Software Adapter, select vmhba65.
f. Select all items using the select all check box and click Remove.
g. In the Remove All Active Paths dialog box, review the warning and click OK.
i. In the Rescan Storage dialog box, accept the defaults and click OK.
d. In the Remove VMkernel Adapter dialog box, review the information and click
REMOVE.
66
4. Configure NTP on an ESXi host.
d. In the right pane under Network Time Protocol settings, click EDIT.
IMPORTANT
The NTP server for this host is being intentionally configured to an incorrect value for
this lab exercise and will be corrected later on.
a. Select Menu > Host and Clusters and click sa-esxi-02.vclass.local in the left pane.
b. In the right pane, select Configure > Storage Adapters > +Add Software Adapter.
c. On the Add Software Adapter page, select Add Software iSCSI adapter and click
OK.
After the addition is complete, a new entry appears in the list of adapters in the right
pane. You might need to scroll to locate vmhba65.
d. In the right pane, click the vmhba65 iSCSI software adapter and view the lower
section of this pane update to display the software iSCSI adapter configuration.
67
g. On the Add Send Target Server page, enter 172.20.10.15 and click OK.
h. Select vmhba65 under iSCSI Storage Adapter, click Rescan Storage, and click OK.
2. Select Host Profiles in the left pane and click EXTRACT HOST PROFILE in the right pane.
68
b. In the Export Host Profile page, click SAVE.
Because host profiles do not store the reference host, host profiles can easily be imported
and exported.
2. In the Import Host Profile dialog box, import the host profile that you previously saved.
a. On the Profile location line, click Browse..., select the file Extracted-Profile-
saesxi01_host_profile.vpf, and click Open.
b. In the Name text box, enter Imported-Profile-saesxi01 and click OK.
69
Task 4: Duplicate and Edit a Host Profile
You duplicate and edit the host profile that you imported in the previous task.
This editing process reduces the number of items checked for compliance through the profile
on the ESXi host. This process also streamlines host configuration individually or in a cluster.
The profile currently contains all items/fields exported from the sa-esxi-01 host, by
default.
Because the host responsibilities and cluster membership might not be determined,
some configuration items will be deselected from the host profile for compliance
checking.
b. Click Configure and click EDIT HOST PROFILE... on the right side.
e. Click SAVE.
Deselecting these items reduces the number of individual profile compliance checks
for any attached host.
70
Task 5: Attach an ESXi Host to a Host Profile
You attach an ESXi host or cluster to a host profile.
This profile has been edited and is based on the host profile that you previously imported.
Individual ESXi hosts and clusters can be attached or detached from a host profile in the Host
Profile or the Host and Clusters view.
You can review and edit the comprehensive list of configuration settings that define the
host profile.
5. From the Actions drop-down menu, select Attach/Detach Hosts and Clusters.
71
Task 6: Run an Initial Compliance Check
You run a compliance check to verify the attached host configuration against all the settings
that are specified by the host profile.
1. In the right pane, click the Monitor tab for the host profile.
3. Under the Host Profile Compliance column, click Not Compliant and view the compliance
information near the middle of the screen.
The sa-esxi-02.vclass.local host is not compliant because the date and time configuration
does not match the information in the host profile. The NTP server information is
incorrect.
4. Resolve the date and time configuration issue occurring on the ESXi host.
a. Click the sa-esxi-02.vclass.local host to transfer to the Host and Clusters view.
b. In the right pane, select Configure > System > Time Configuration and click EDIT
across from Network Time Protocol.
Because this is the correct entry for the ESXi host configuration, it will match the host
profile information.
Now that you have corrected the erroneous NTP Servers entry, it is time to check
compliance.
72
Task 7: Introduce a Configuration Drift
You test host profile compliance verification and remediation by introducing a noncompliant
change on the host.
The noncompliant change is that you remove the vmnic2 adapter from the VDS dvs-Lab.
2. In the left pane, expand SA-Datacenter, right-click distributed switch dvs-Lab, and select
Add and Manage Hosts.
3. On the Select task page, select Manage host networking and click NEXT.
5. In the Select member hosts window, select the sa-esxi-02.vclass.local, click OK, and click
NEXT.
6. On the Manage physical network adapters page, unassign the vmnic2 adapter.
a. Under the sa-esxi-02.vclass.local host entry, expand this switch, select vmnic2, and
record the attached uplink. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
c. In the Warning dialog box, review the information and click OK.
9. On the Ready to complete page, review the selections and click FINISH.
73
Task 8: Run a Compliance Check and Remediate the Configuration
Drift
You run a compliance check to detect noncompliant configuration changes that were made to
hosts attached to a host profile. You then remediate the host.
6. Click the Not Compliant entry for sa-esxi-02.vclass.local under the Host Profile
Compliance column for additional details.
Q1. How do the results of the compliance check differ from the compliance check
performed in task 6?
A1. The Date and Time configuration did not match. If the category was previously reported, a new issue is added relating to the uplink reconfiguration.
Q2. In the new category Virtual Network Setting, does the specific issue reported
relate to the configuration change made in task 7?
A2. Yes. The uplink is not connected to the expected physical NIC on VDS dvs-Lab.
With this customization step, you can review and edit information specific to the
attached host.
This remediation action updates host settings to match those of the host profile that it
is attached to.
For the host to enter maintenance mode, the VMs on this host must be powered off
or moved to another host.
74
d. Right-click the sa-esxi-02.vclass.local host and select Maintenance Mode > Enter
Maintenance Mode.
h. In the Recent Tasks pane, monitor the remediation and subsequent compliance
check tasks to completion.
i. If the first host remediation attempt is unsuccessful, verify that the host is selected
and attempt remediation again.
b. In the left pane, select the distributed switch dvs-Lab under SA-Datacenter.
d. From the left side of the topology diagram, click pg-SA-Production and expand
Uplink1 on the right side.
75
Task 9: Detach the Host Profile
Detach the host profile from the sa-esxi-02.vclass.local host.
4. In the right pane, select Actions > Attach/Detach Hosts and Clusters.
76
Lab 13 Creating Content Libraries
1. Open the Firefox web browser, click vSphere Site-A on the bookmarks toolbar, and
select vSphere Client (SA-VCSA-01).
a. If you are not logged in from a previous activity, log in using the vCenter Server lab
credentials.
77
b. On the Name and location page, with vCenter Server sa-vcsa-01.vclass.local selected,
enter SA-Local-Library in the Name text box and click NEXT.
f. In the Password and Confirm password text boxes, enter VMware1! and click
NEXT.
h. On the Ready to complete page, confirm the information and click FINISH.
4. Monitor this task to completion in the Recent Tasks pane and verify that the SA-Local-
Library content library appears in the list.
a. If you do not see the new content library in the list, refresh the vSphere Client.
1. In the right pane, right-click the SA-Local-Library library and select Import Item.
2. In the Import Library Item window, click Local file and click UPLOAD FILES.
3. In the File Upload window, click the Desktop icon in the left navigation panel.
4. Double-click the Class Materials and Licenses folder in the right pane and double-click
the Downloads folder.
6. Double-click SampleVM.ovf.
SampleVM.ovf is added to the Import Library Item dialog box. However, you must also
upload SampleVM-1.vmdk, SampleVM-2.iso, and SampleVM-3.nvram.
8. In the File Upload window, select SampleVM-1.vmdk, press and hold the Ctrl key while
selecting SampleVM-2.iso and SampleVM-3.nvram.
You can use the Ctrl key to select multiple files in this window.
78
10. Click IMPORT.
11. View the Recent Tasks pane to monitor the task to completion.
13. In the right pane, click Templates > OVF & OVA Templates.
1. In the vSphere Client, select Content Libraries from the Menu drop-down menu.
2. Click the SA-Local-Library library in the left pane and click the Summary tab in the right
window pane.
3. Copy the Subscription URL link for the SA-Local-Library content library to the clipboard.
a. Scroll down until the Publication panel appears, and expand the panel if needed.
b. Click COPY LINK to copy the Subscription URL in the Publication panel to the
clipboard.
5. In the right pane, click the Create a new content library (+) icon.
6. On the Name and location page, name the content library and verify the vCenter Server
location.
c. Click NEXT.
If copy and pasting does not work, you must enter the URL manually.
79
d. In the Password text box, enter VMware1!.
e. In the Download content line, click when needed and click NEXT.
g. On the Ready to complete page, verify the selections and click FINISH.
c. Under Templates > OVF & OVA Templates, verify that the SampleVM ovf template is
present.
This VM template is the same template that is in the source content library.
d. Verify that the Stored Locally column indicates No and that the Size column indicates
0 bytes.
b. In the Subscription panel, click the Edit Settings link in the bottom-left panel corner.
d. Under the Password entry, enter the password that was used when creating the SB-
Subscribed-Library library in the text box.
f. Leave all other selections with their default settings and click OK.
g. In the Subscription panel, verify that Automatic synchronization is now set to off.
80
Task 4: Create a Subscription for VM Templates
You create a subscription for VM Templates in the Local (Publisher) content library so that VM
templates synchronize in the Subscriber library.
e. On the Select compute resource page, select sb-esxi-01.vclass.local and click NEXT.
g. On the Review page, verify your desired settings and click FINISH.
h. Monitor the creation of the subscription under the Recent Tasks pane.
If you do not see the subscription that you recently created in the list, repeat the
steps in this task to completion.
a. In the left pane, right-click the Photon-01 VM and select Clone > Clone as Template
to Library.
b. On the Basic Information page, append -Library to the VM name in the Name
text box and click NEXT.
81
e. On the Select storage page, select VM Storage Policy > Datastore Default, select
datastore OPSCALE-Datastore, and click NEXT.
g. In the Recent Tasks pane, view the tasks that start up and monitor them to
completion.
This value can be found under the Storage Used column on the Content Libraries list
page.
A1. Approximately 2.5 GB in publisher library SA-Local-Library, approximately 0 B in subscriber library SB-Subscribed-Library
Q2. How was the amount of storage used not the same between the libraries?
The local (publisher) and subscriber content libraries should have the same content.
A2. The subscriber content library gets its metadata from the local content library. The storage used is only updated when a deployment is attempted from the subscriber library, which forces the download of the VM template from the local content library. The when needed configuration was applied to save disk space on the subscriber library side.
This action synchronizes the metadata between the libraries for the VM templates.
82
2. Verify that the metadata between the libraries is synchronized.
b. Observe both the templates column and the number of VM templates in each content
library to verify that the metadata is synced.
You might need to refresh the vSphere Client to see these numbers match.
To deploy a new VM from the subscriber library, you must first sync the VM template content
from the published content library to the subscribed content library.
1. From the Content Libraries main page in the left pane, click SA-Local-Library.
You should now be able to see the Photon-01-Library VM template that you previously
cloned into the local library.
This step initiates a storage sync for this VM template from the local (publisher) library to
the subscribed library.
5. To verify the result, return to the Content Libraries main page (Menu > Content Libraries)
and inspect the Storage Used column for the subscriber library.
After syncing the subscribed with the local library, you can now deploy a VM from the
subscribed library.
6. From the Content Libraries main page in the left pane, select SB-Subscribed-Library.
83
8. Deploy a VM from this VM template.
b. On the Deploy From VM template page, enter Photon-04 in the Specify a unique
name and target location text box and click NEXT.
c. On the Select a compute resource page, under SB-Datacenter, select the sb-esxi-
01.vclass.local host and click NEXT.
e. On the Select deploy options page, ensure that all check boxes are deselected and
click NEXT.
f. On the Ready to complete page, review your selections and click FINISH.
g. In the Recent Tasks pane, view the tasks that started and monitor them to
completion.
b. In the left pane, verify that the Photon-04 VM appears in the inventory.
1. Ensure that all VMs in the SA-Compute-01 cluster are shut down.
84
Lab 14 Managing Resource Pools
1. Maintain VMs
a. Open the Firefox web browser, click vSphere Site-A on the bookmarks toolbar.
3. Rename a VM.
85
4. Configure the VM.
a. In the Navigator pane, right-click the Win10-02 virtual machine and select Edit
Settings.
This affinity setting forces the Win10-02 VM to run only on logical CPU 1.
CAUTION
CPU affinity is primarily used to create CPU contention for training purposes. VMware
strongly discourages the use of this feature in a production environment.
b. On the Virtual Hardware tab, locate Network Adapter 1 and select Browse... from
the drop-down menu.
d. Quickly verify your selection and, when ready, click OK to apply this networking
change.
86
Task 2: Create CPU Contention
You use a tool to create CPU contention in your lab environment for testing. You force the
VMs to compete for and share the limited logical CPU resources on the ESXi host, which
might lead to performance degradation.
2. Expand SA-Datacenter.
3. Verify that the WIN10-02 and WIN10-03 VMs are powered on and running on sa-esxi-
01.vclass.local.
If you are asked to choose between VMRC and Web Console, choose the web
console.
c. On the desktop, right-click CPUBUSY and select Open with Command Prompt.
This script runs continuously. It stabilizes 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 ten million sines in # seconds.
You use the number of seconds reported as a performance estimate. The script
CPUBUSY should run at approximately the same rate in each VM.
5. Leave the CPUBUSY script to run for 2 or more minutes to see contention.
87
Task 3: Create Resource Pools
You create resource pools to delegate control of a host's or a cluster's resources, and to
compartmentalize all resources in a cluster.
2. Right-click sa-esxi-01.vclass.local in the Navigator pane and select New Resource Pool.
Option Action
4. Click OK.
5. In the Navigator pane, right-click sa-esxi-01.vclass.local and select New Resource Pool.
Option Action
7. Click OK.
88
Task 4: Verify Resource Pool Functionality
You assign VMs to resource pools with different resource settings to monitor and compare the
performance differences.
1. Select the RP-Test resource pool in the Navigator pane and click the Summary tab.
2. Right-click RP-Test > Edit Resource Settings to inspect the number of shares in the RP-
Test resource pool.
Q1. What is the number of shares for this RP-Test (Low) resource pool?
A1. 2,000.
3. Click CANCEL.
4. Select RP-Production in the Navigator pane and click the Summary tab.
5. Right-click RP-Production > Edit Resource Settings to inspect the number of shares in
the RP-Production resource pool.
Q2. What is the number of shares for this RP-Production (High) resource pool?
A2. 8,000.
6. Click CANCEL.
Q3. What is the difference in performance between the two virtual machines?
A3. The RP-Test resource pool and the virtual machine in it have only one-fourth of the CPU shares that the RP-Production resource pool has. Therefore, the virtual machine in the RP-Test resource pool receives only one-fourth of the CPU cycles of the logical CPU to which the virtual machines are pinned.
10. In the vSphere Client, change the CPU shares of the RP-Test resource pool to Normal.
a. Right-click the resource pool RP-Test in the Navigator pane and click Edit Resource
Settings.
b. From the CPU > Shares drop-down menu, select Normal and click OK.
c. In each VM console, leave the script to run for a few minutes and compare the
performance of the CPUBUSY script on each VM.
89
12. Press Ctrl+C in each Web Console window for VMs WIN10-02 and WIN10-03 to stop the
CPUBUSY script.
13. Close the WIN10-02 and WIN10-03 web consoles.
a. In the navigation pane, right-click WIN10-02 and select Power> Shut Down Guest
OS selecting YES to confirm graceful Guest OS shutdown.
b. In the navigation pane, right-click WIN10-03 and select Power> Shut Down Guest
OS selecting YES to confirm graceful Guest OS shutdown.
15. Click the VM graphic in the top-left corner of the vSphere Client.
90
Lab 15 Monitoring CPU Performance
1. Open the Firefox web browser, click vSphere Site-A on the bookmarks toolbar, and
select vSphere Client (SA-VCSA-01).
a. If you are not logged in from a previous activity, log in using the vCenter Server lab
credentials.
3. In the left pane, expand SA-Datacenter and expand the SA-Compute-01 cluster.
91
4. Verify that the Linux01 VM is hosted on sa-esxi-04.vclass.local.
b. In the right pane, view the Summary tab and verify that the host on which Linux01
resides is sa-esxi-04.vclass.local.
5. Power on the virtual machine Linux01 VM.
pwd
8. If you are not in the /root directory, change to the root directory.
cd /root
9. Start the test program on Linux01.
./starttest1
The test program generates database operations to a medium-size database and writes
output to the screen. The program must run uninterrupted.
esxtop
By default, esxtop starts with the CPU screen.
92
3. Change the update delay from the default 5 seconds to 10 seconds.
a. Enter s.
b. Enter 10.
4. Filter the CPU screen output to display only VMs by pressing Shift+v.
By default, the CPU screen shows statistics for VM processes and active ESXi host
processes.
Task 3: Record Statistics for Case 1: Single Thread and Single vCPU
You record statistics for the first test case.
1. After 30 seconds of statistics collection, record the values for the Linux01 VM in the Case 1
column in the class configuration handout.
• %USED
• %RDY
• %IDLE
2. Record the operations per minute (OPM) value in the test script.
b. Record the OPM value reported by the test script in the Case 1 column in the class
configuration handout.
The counter value is reported with each iteration that the test script performs. Use the
counter reported in the last iteration.
93
Task 4: Run a Single-Threaded Program in a Dual-vCPU VM
You modify the Linux01 VM to have two vCPUs and you restart the test script.
2. Wait for the running indicator to be removed from the Linux01 VM icon in the inventory
tree.
b. On the Virtual Hardware tab in the Edit Settings dialog box, select 2 from the CPU
drop-down menu and click OK.
8. On the Linux01 console tab, restart the test program from the directory /root.
./starttest1
This script generates database operations to a medium-size database. The number of
threads is set to 1. The script must run uninterrupted.
94
Task 5: Record Statistics for Case 2: One Thread and Two vCPUs
You record statistics for the second test case.
b. Enter e.
c. Enter the GID for Linux01.
d. Examine the two lines in the NAME column that start with vmx-vcpu.
These two lines show the activity of each of the vCPUs in the Linux01 VM.
e. After 30 seconds of statistics collection, record the values for vCPU0 and vCPU1 in
the Case 2 column in the class configuration handout.
• %USED
• %RDY
• %IDLE
b. Record the OPM value reported by the test script in the Case 2 column in the class
configuration handout.
The counter value is reported with each iteration that the test script performs. Use the
counter reported in the last iteration.
3. Press Ctrl+C to stop the test script in the Web Console session to Linux01.
./starttest2
This script generates database operations to a medium-size database. The number of
threads is set to 2. The script must run uninterrupted.
95
Task 7: Record Statistics for Case 3: Two Threads and Two vCPUs
You record statistics for the final test case.
b. Examine the two lines in the NAME column that start with vmx-vcpu.
These two lines show the activity of each of the vCPUs in the Linux01 VM.
c. After 30 seconds of statistics collection, record the values for vCPU0 and vCPU1 in
the Case 3 column in the class configuration handout.
• %USED
• %RDY
• %IDLE
2. Record the OPM value in the test script.
b. Record the OPM value reported by the test script in the Case 3 column in the class
configuration handout.
3. Press Ctrl+C to stop the test script in the Web Console session to Linux01.
5. Keep the SA-ESXi-04 MTPuTTY session open for the next lab.
6. Keep the Linux01 console tab open for the next lab.
1. Review the statistics that you recorded in the class configuration handout in tasks 3, 5,
and 7.
2. Record conclusions that you can draw from the data in the class configuration handout.
96
Lab 16 Monitoring Memory
Performance
a. Open the Firefox web browser, click vSphere Site-A on the bookmarks toolbar.
97
4. If necessary, log in to the Linux01 VM as user root and the standard lab password.
5. In the Linux01 console, start the test script starttest2 from the folder /root in
Linux01 VM.
./starttest2
This test program performs continuous database operations to a medium-size database.
The number of threads is set to 2. The script must run uninterrupted.
1. Using the vSphere Client, select Menu > Hosts and Clusters.
3. In the right pane, click the Monitor tab and click Utilization on the left.
6. Find the Guest Memory panel in the lower-left corner of the right pane.
Q1. Is the consumed host memory greater than the active guest memory?
A1. Answers vary depending on the current workload.
If the consumed host memory is greater than the active guest memory, memory is not
overcommitted. If the consumed host memory is less than active guest memory, then
overcommitment is occurring and might cause degraded performance.
1. Open the MTPuTTY window to monitor statistics for the VM on the host.
a. From the student desktop, click the MTPuTTY shortcut on the taskbar.
2. Start esxtop.
98
4. Set a 10-second update delay.
6. Remove all statistics columns from the output table, except D, H, J, and K.
Removing counters that are not monitored during the test can make isolation of the
desired counters easier.
b. If an asterisk appears to the left of the field name, for fields other than D, H, J, and K,
press the corresponding letter to remove the asterisk.
c. If an asterisk does not appear to the left of the field name, for the D, H, J, and K
fields, press the corresponding letter to add an asterisk.
c. Verify that the MCTLSZ, MCTLTGT, SWCUR, SWTGT, SWR/s, and SWW/s values are
at or near zero.
d. If you cannot see all values listed in step b, close the left pane in the MTPuTTY
application - collapsing the Servers list in MTPuTTY.
2. Record the operations per minute (OPM) value in the test script.
The counter value is reported with each iteration that the test script performs. Use the
counter reported in the last iteration.
The counter value is reported with each iteration that the test script performs. Use the
counter reported in the last iteration.
99
Task 5: Start a Memory Test on ResourceHog01 and
ResourceHog02
You start a memory test on the ResourceHog01 and ResourceHog02 VMs.
NOTE
e. Click the Summary tab of ResourceHog01 and click the Launch Web Console link.
h. At the boot: prompt, press Enter to load the Ultimate Boot CD menu.
If you see a Booting... prompt, you did not enter the console within 30 seconds.
You must restart the process from substep a and enter the console to the VM within
30 seconds. Repeat this process until the Ultimate Boot CD menu appears.
i. Use the arrow keys and the Enter/Return key to select Mainboard Tools > Memory
Tests > Memtest86+ V1.70.
The exact keystroke sequence is Enter, down arrow, down arrow, Enter, down arrow,
down arrow, Enter.
j. After the memory test utility is running, press Ctrl+Alt to release the pointer focus.
100
Task 6: Record Memory Statistics
You record and evaluate memory statistics with a significant load consuming ESXi host
memory.
2. After at least one minute of statistics collection, record the values for the ResourceHog02,
ResourceHog01, and Linux01 VMs in the class configuration handout.
• MCTL?
• MCTLSZ
• MCTLTGT
• SWCUR
• SWTGT
• SWR/s
• SWW/s
• %SWPWT
Q1. For Linux01, does the value of MCTLSZ converge with the value of
MCTLTGT?
A1. Yes, the values should converge over time.
Q2. For Linux01, does the value of SWCUR converge with the value of SWTGT?
A2. Depending on many factors, the values might converge over time.
3. Monitor the statistics output until the host reaches a steady state where the counters in
each set are close in value to each other.
If the counters in each set are close in value to each other, the host has reached a steady
state.
4. To determine which VMs do not have the balloon driver installed, examine the MCTL?
value for each VM.
The MCTL? field indicates the presence of the balloon driver. If the MCTL? value is Y, then
that VM has a balloon driver installed. Otherwise, the VM lacks a balloon driver.
5. To determine whether the VMs are swapping, examine the values for SWR/s and SWW/s
for each VM.
101
c. Examine the %SWPWT value for each VM identified as actively swapping.
%SWPWT is the percentage of time the world is waiting for the ESX VMkernel
swapping memory. As %SWPWT exceeds 5 percent, the performance of the VM
degrades significantly. If you do not see the %SWPWT field, expand your console
window.
Q5. What are the %SWPWT values for each of the VMs?
A5. ResourceHog01 and ResourceHog02 should experience high %SWPWT values because their memory is being swapped out and they must wait whenever those pages are accessed. Linux01 should experience low %SWPWT values, possibly zero.
The memory state can be found at the end of the third row from the top of the esxtop
output.
Q6. What is the memory state: high, clear, soft, hard, or low?
A6. Answers vary.
c. Compare this OPM value with the value that you recorded in task 4 (step 2, substep
b).
1. In the MTPuTTY window, select View > Servers to display the Servers pane on the left.
3. Change to the Linux01 web console tab and press Ctrl+C to stop the test script.
102
Lab 17 Monitoring Storage
Performance
The Linux01 VM is on sa-esxi-04.vclass.local and is configured with two hard drives to serve as
local and remote I/O targets. One SCSI drive is stored on the 11GBLocal local datastore and
the other SCSI drive is stored on the 11GBRemote remote datastore.
a. Open the Firefox web browser, click vSphere Site-A on the bookmarks toolbar.
103
2. In Firefox, click the Linux01 web console tab.
3. Run a script from the /root directory on the Linux01 VM to configure storage.
./storageconfig.sh
The storage preparation might take a few minutes to finish. The script must run
uninterrupted to completion.
cd aio-stress
./logwrite.sh
2. View the MTPuTTY session to the sa-esxi-04 host.
3. If you are not logged in to MTPuTTY and esxtop is not running, start a new MTPuTTY
session to the SA-ESXi-04 host.
c. Set the screen refresh to 10 seconds by entering s and then entering 10.
4. Enter d to display device adapter output and examine the reads and writes to the adapter
paths.
5. Enter u to display individual device output and examine the reads and writes to the
devices.
One of the remote devices has more disk I/O activity than the others.
104
6. Enter v to display the VM output.
7. After 30 seconds of statistics collection, record the values for the Linux01 VM.
The values can be recorded in the Sequential Writes/Remote Datastore column in the
class configuration handout.
• READS/s
• WRITES/s
1. In the Linux01 web console, start the test script and let it run uninterrupted.
./datawrite.sh
2. Return to the MTPuTTY window.
3. Enter d to display device adapter output and examine the reads and writes to the adapter
paths.
4. Enter u to display individual device output and examine the reads and writes to the
devices.
6. After 30 seconds of statistics collection, record the values for the Linux01 VM.
The values can be recorded in the Random Writes/Remote Datastore column in the class
configuration handout.
• READS/s
• WRITES/s
105
Task 4: Measure Continuous Random Read Activity to a Virtual Disk
on a Remote Datastore
You run the fileserver2.sh test script to generate continuous random read activity from
the hard disk on the remote datastore.
1. In the Linux01 web console, start the test script and let it run uninterrupted.
./fileserver2.sh
2. Return to the MTPuTTY window.
3. Enter d to display device adapter output and examine the reads and writes to the adapter
paths.
4. Enter u to display individual device output and examine the reads and writes to the
devices.
6. After 30 seconds of statistics collection, record the values for Linux01 VM.
The values can be recorded in the Random Reads/Remote Datastore column in the class
configuration handout.
• READS/s
• WRITES/s
1. In the Linux01 web console, start the test script and let it run uninterrupted.
./fileserver1.sh
This test script first creates the file to be read, which can take 5 minutes or more.
106
3. After the Starting with random read message appears, view information in
esxtop.
a. Enter d to display the device adapter output.
One of the local devices, rather than a remote device, is used for this test.
4. After 30 seconds of statistics collection, record the values for the Linux01 VM.
The values can be recorded in the Random Reads/Local Datastore column in the class
configuration handout.
• READS/s
• WRITES/s
1. Record the conclusions that you draw from the test data collected in tasks 2 through 5.
__________
2. Keep the Linux01 web console and the vSphere Client open for the next lab.
107
Lab 18 Monitoring Network
Performance
5. Position the Client and the Server on the Same Port Group
8. Clean Up
1. From the student desktop, view the MTPuTTY session to the sa-esxi-04 host.
MTPuTTY should be logged in to the SA-ESXi-04 host and esxtop should be running.
108
4. Remove unused counters to make the esxtop network screen easier to monitor.
b. In the Current Field Order table, enter g and j to remove PKTRX/s and PKTTX/s from
the esxtop display.
The Linux01 VM acts as a client and the Linux02 VM acts as a server. The Linux01 VM is
connected to the pg-SA Production port group.
a. Open the Firefox web browser and click vSphere Site-A on the bookmarks toolbar.
f. Click NEXT.
g. On the Select VMs to migrate page, select the Linux02 check box and click NEXT.
This migration forces the traffic between the VMs to traverse the physical network.
109
3. View the IP address of the Linux02 VM.
d. From the Summary tab in the right pane, wait a couple of minutes and, after it
appears, record the Linux02 IP address. _ _ _ _ _ _ _ _ _ _
The Linux02 IP address begins with 172.20.10 (the management network DHCP
range).
The Linux01 IP address begins with 172.20.11 (the production network DHCP range).
b. In the right pane, click Launch Web Console on the Summary tab.
c. In the Linux02 console window, log in by entering user name root and password
VMware1!.
d. Navigate to the network scripts folder.
cd netperf
e. Start the server program.
./netserver
The server program runs as a background process.
00:00:00 ./netserver
00:00:00 grep netserver
110
Task 3: Measure Network Activity on an ESXi Physical Network
Interface
You measure the network performance of the ESXi host network interface with the Linux01 and
Linux02 VMs positioned on different physical network segments across a router.
Requests sent from the Linux01 client enter the physical network through the ESXi network
interface vmnic2, which is bound to a dvs-Lab distributed switch uplink. Using the pg-SA-
Management port group on the dvs-SA-Datacenter distributed switch, the client requests are
routed to the management network where the Linux02 server is.
cd /root/netperf
b. Start the client test script.
./nptest1.sh server_IP_address
server_ IP_ address is the Linux02 IP address that you recorded in task 2.
c. After 30 seconds of statistics collection, record the values for vmnic2 in the class
configuration handout.
• MbTX/s
• MbRX/s
3. In the left pane, right-click the pg-SA-Production port group and select Edit Settings.
4. In the Edit Settings dialog box, click Traffic shaping on the left.
111
5. Select Enabled from the Status drop-down menus for ingress traffic shaping and egress
traffic shaping.
Option Action
7. Verify that you configured both ingress and egress traffic shaping and click OK.
c. After 30 seconds of statistics collection, record the values for vmnic2 in the vmnic2 10
Mb/s column in the class configuration handout.
• MbTX/s
• MbRX/s
e. Click OK.
Task 5: Position the Client and the Server on the Same Port Group
You migrate the Linux02 VM back to the pg-SA-Production port group to show that VMs
communicating on the same ESXi host and virtual switch port group can communicate at a
faster rate than the rate dictated by the physical network hardware.
112
b. In the Linux01 console, stop the test script by pressing Ctrl+C.
e. Click NEXT.
f. On the Select VMs to migrate page, select Linux02 and click NEXT.
4. Restart the network service and verify that the IP address is within the production network
DHCP range.
ifconfig
113
d. In the ifconfig command output, verify that the IP address begins with 172.20.11
(the production network DHCP range).
./netserver
2. Return to the Linux01 console tab.
./nptest1.sh server_IP_address
server_IP_address is the postmigration Linux02 IP address that you recorded in task 5.
b. In the esxtop output, find the vmnic2 row and verify that the traffic is no longer
traversing the physical interface.
d. After 30 seconds of statistics collection, record the values for the Linux01.eth0
interface in the class configuration handout.
• MbTX/s
• MbRX/s
114
Task 7: Stop the Test and Analyze Results
You use the data samples recorded earlier to determine if the simulated congestion affected
the network performance and to determine the fastest network configuration.
d. In the Linux02 console, stop the server process to end the server program.
Q1. Do you see an obvious difference in network throughput for each test?
A1. Yes. Network throughput values vary.
Task 8: Clean Up
You end the esxtop program and you close the Linux01 and Linux02 console tabs.
4. Using the vSphere Client, power off VMs Linux01 and Linux02.
115
Answer Key
116
A1. Under Issuer Information, the Issuer Name field contains CA, which indicates that
VMware CA issued the certificate.
Lab 12 Using Host Profiles
Task 8: Run a Compliance Check and Remediate the Configuration Drift..... 74
Q1. How do the results of the compliance check differ from the compliance check
performed in task 6?
A1. The Date and Time configuration did not match. If the category was previously
reported, a new issue is added relating to the uplink reconfiguration.
Q2. In the new category Virtual Network Setting, does the specific issue reported relate to
the configuration change made in task 7?
A2. Yes. The uplink is not connected to the expected physical NIC on VDS dvs-Lab.
Q3. Will the host need to be put in maintenance mode?
A3. Yes.
Lab 13 Creating Content Libraries
Task 5: Clone a Template to the Local Library ............................................. 81
Q1. How much storage space is being consumed in each library?
This value can be found under the Storage Used column on the Content Libraries list page.
A1. Approximately 2.5 GB in publisher library SA-Local-Library, approximately 0 B in
subscriber library SB-Subscribed-Library
Q2. How was the amount of storage used not the same between the libraries?
The local (publisher) and subscriber content libraries should have the same content.
A2. The subscriber content library gets its metadata from the local content library. The
storage used is only updated when a deployment is attempted from the subscriber
library, which forces the download of the VM template from the local content library.
The when needed configuration was applied to save disk space on the subscriber
library side.
Task 6: Synchronize the Content Libraries ................................................. 82
Q1. How many VM templates now appear in the SB-Subscribed-Library content library?
A1. Two. SampleVM under OVF & OVA Templates and Photon-01-Library under the VM
Templates.
Lab 14 Managing Resource Pools
Task 4: Verify Resource Pool Functionality ................................................ 89
Q1. What is the number of shares for this RP-Test (Low) resource pool?
117
A1. 2,000.
Q2. What is the number of shares for this RP-Production (High) resource pool?
A2. 8,000.
Q3. What is the difference in performance between the two virtual machines?
A3. The RP-Test resource pool and the virtual machine in it have only one-fourth of the
CPU shares that the RP-Production resource pool has. Therefore, the virtual machine
in the RP-Test resource pool receives only one-fourth of the CPU cycles of the logical
CPU to which the virtual machines are pinned.
Lab 16 Monitoring Memory Performance
Task 2: Check for Overcommitment of VM Memory.................................... 98
Q1. Is the consumed host memory greater than the active guest memory?
A1. Answers vary depending on the current workload.
Task 6: Record Memory Statistics............................................................. 101
Q1. For Linux01, does the value of MCTLSZ converge with the value of MCTLTGT?
A1. Yes, the values should converge over time.
Q2. For Linux01, does the value of SWCUR converge with the value of SWTGT?
A2. Depending on many factors, the values might converge over time.
Q3. Which VMs do not have the balloon driver installed?
A3. ResourceHog02 and ResourceHog01.
Q4. Which VMs are swapping?
A4. Although all three VMs might be swapping, the levels of swapping on ResourceHog01
and ResourceHog02 will be much larger than the level of swapping on Linux01.
Q5. What are the %SWPWT values for each of the VMs?
A5. ResourceHog01 and ResourceHog02 should experience high %SWPWT values
because their memory is being swapped out and they must wait whenever those
pages are accessed. Linux01 should experience low %SWPWT values, possibly zero.
Q6. What is the memory state: high, clear, soft, hard, or low?
A6. Answers vary.
Q7. Has the performance of the test script degraded?
A7. Answers vary.
Lab 17 Monitoring Storage Performance
118
Task 2: Measure Continuous Sequential Write Activity to a Virtual Disk on a
Remote Datastore ................................................................................... 104
Q1. Which adapter has the most disk I/O activity?
A1. vmhba65, the software iSCSI adapter.
Task 5: Measure Continuous Random Read Activity to a Virtual Disk on a
Local Datastore....................................................................................... 106
Q1. Which adapter has the most disk I/O activity?
A1. vmhba0, a local host bus adapter.
Lab 18 Monitoring Network Performance
Task 7: Stop the Test and Analyze Results ................................................. 115
Q1. Do you see an obvious difference in network throughput for each test?
A1. Yes. Network throughput values vary.
Q2. Which test resulted in the fastest throughput (highest values)?
A2. The test with the client and server on the same port group.
Q3. Why was this test the fastest?
A3. Because network I/O did not pass through the physical network hardware.
119