Professional Documents
Culture Documents
EDU-EN-VSAA8-LAB-IE
EDU-EN-VSAA8-LAB-IE
and warranties, including any implied warranty of merchantability, fitness for a particular
purpose or noninfringement, are disclaimed, even if VMware, Inc., has been advised of the
possibility of such claims. This material is designed to be used for reference purposes in
conjunction with a training course.
The training material is not a standalone training tool. Use of the training material for self-
study without class attendance is not recommended. These materials and the computer
programs to which it relates are the property of, and embody trade secrets and confidential
information proprietary to, VMware, Inc., and may not be reproduced, copied, disclosed,
transferred, adapted, or modified without the express written approval of VMware, Inc.
www.vmware.com/education
Typographical Conventions
The following typographical conventions are used in this course.
• <ESXi_host_name>
www.vmware.com/education
Contents
iii
Task 1: Enable Enhanced vMotion Compatibility on a Cluster ....................................................................... 24
Task 2: Configure Per-VM Enhanced vMotion Compatibility ......................................................................... 24
Lab 11 Migrating Virtual Machines ......................................................................................... 25
Task 1: Test Connectivity ............................................................................................................................................ 26
Task 2: Migrate Virtual Machines .............................................................................................................................. 26
Lab 12 Working with Content Libraries.............................................................................. 27
Task 1: Create a Subscribed Content Library ...................................................................................................... 28
Task 2: Create a Subscription for VM Templates .............................................................................................. 29
Task 3: Clone a VM to the Local Library ............................................................................................................... 30
Task 4: Deploy a VM from the Subscribed Content Library ........................................................................... 31
Task 5: Update a VM Template in the Content Library ................................................................................... 32
Lab 13 Configuring DRS Resource Pools and Rules ...................................................... 33
Task 1: Create Two Resource Pools ....................................................................................................................... 34
Task 2: Configure DRS Virtual Machine Distribution.......................................................................................... 35
Task 3: Configure Scalable Shares ........................................................................................................................... 36
Lab 14 Generating Log Bundles ............................................................................................ 37
Task 1: Use the vSphere Client to Generate a vCenter Log Bundle ........................................................... 38
Task 2: Generate an ESXi Host Log Bundle from the Command Line ....................................................... 39
Lab 15 Troubleshooting a Host That Is Not Responding .............................................40
Task 1: Identify the Solution to the Host Problem .............................................................................................. 41
Lab 16 Troubleshooting a Storage Problem..................................................................... 42
Task 1: Determine the Solution to the Storage Problem ................................................................................. 43
Lab 17 Modifying the vSphere HA Configuration ........................................................... 44
Task 1: Update the Configuration Settings for vSphere HA .......................................................................... 45
Lab 18 Troubleshooting Virtual Machine Resource Issues........................................... 46
Task 1: Change the Resource Settings in the Sales Resource Pool ............................................................ 47
Lab 19 Troubleshooting PowerCLI Scripts ....................................................................... 48
Task 1: Identify and Resolve Issues with the vm-report.ps1 Script .............................................................. 49
Task 2: Identify and Resolve Issues with the vm-powercycle.ps1 Script .................................................. 50
Lab 20 Generating a vCenter Profile ................................................................................... 51
Task 1: Generate a vCenter Profile .......................................................................................................................... 52
Lab 21 Creating a vCenter File-Based Backup ................................................................ 53
iv
Task 1: Create a Backup Schedule ........................................................................................................................... 54
Task 2: Perform a Manual File-Based Backup ..................................................................................................... 55
Lab 22 Troubleshooting vCenter Resource Issues ........................................................ 56
Task 1: Investigate and Resolve a Problem with Space Consumption ........................................................57
Lab 23 Configuring vCenter Settings ................................................................................. 58
Task 1: Set a Message of the Day ............................................................................................................................ 59
Task 2: Configure Statistic Collection and Logging Levels............................................................................. 60
Task 3: Configure a Syslog Server ........................................................................................................................... 61
Lab 24 Configuring a VMware Tools Repository ........................................................... 62
Task 1: Configure the Product Locker on the ESXi Hosts .............................................................................. 63
Lab 25 Troubleshooting a VM Power-On Issue .............................................................. 64
Task 1: Troubleshoot the VM and Power It On ................................................................................................... 65
Lab 26 Updating vSphere Components in Site-A .......................................................... 66
Task 1: Use a Custom Repository to Update vCenter in Site-A ................................................................... 67
Task 2: Use vSphere Lifecycle Manager to Update ESXi Hosts .................................................................. 68
Task 3: Update VM Hardware ................................................................................................................................... 69
Lab 27 Configuring a Default Key Provider...................................................................... 70
Task 1: Configure the Native Key Provider ............................................................................................................71
Task 2: Encrypt a Virtual Machine Using the Default Key Provider..............................................................72
Lab 28 Working with Encrypted Virtual Machines ........................................................ 73
Task 1: Clone an Encrypted Virtual Machine ......................................................................................................... 74
Task 2: Migrate an Encrypted Virtual Machine .....................................................................................................75
Lab 29 Modifying the ESXi Host CPU Scheduler ........................................................... 76
Task 1: Modify the CPU Scheduler to Meet Security Requirements ............................................................77
Lab 30 Implementing Security Hardening......................................................................... 78
Task 1: Configure Host Settings to Implement Security Hardening ............................................................. 79
Lab 31 Updating a vCenter Certificate ............................................................................... 80
Task 1: Replace a Machine SSL Certificate with a Pre-Generated CA Certificate.................................. 81
Task 2: Generate a Certificate Signing Request ................................................................................................. 82
Lab 32 Reconfiguring the Primary Network Identifier .................................................. 83
Task 1: Reconfigure the Primary Network Identifier.......................................................................................... 84
v
Lab 1 Accessing the Lab Environment
Lab Scenario:
The labs in this course are based on a scenario about a fictitious coffee company called
VMBeans.
VMBeans is expanding its vSphere infrastructure and creates a second site, Site-B, to host the
new infrastructure. vCenter sb-vcsa-01 is installed and configured in Enhanced Linked Mode and
works at the new site like the existing vCenter instance (sa-vcsa-01) at Site-A.
The vSphere administration team installs ESXi hosts with vSphere 8.0 U1 and configures the
management network. As a vSphere administrator for VMBeans, you are assigned to complete
the required tasks for deploying and configuring the new vSphere infrastructure in Site-B.
1
Task 1: Access the Lab Environment
You access the vCenter instances and ESXi host.
1. To connect to the vCenter instances, select the bookmarks sa-vcsa-01 and sb-vcsa-01 in
the Firefox browser and enter the credentials to log in.
• Password: VMware1!
• Password: VMware1!
NOTE
When you log in to vCenter, you observe that several alarms are triggered, and the ESXi
host appears in a Not responding state. You must investigate and resolve these issues
in later labs.
3. Verify that you can access the other ESXi hosts by using the bookmarks in the Firefox
browser and entering the credentials provided.
4. Verify that the vCenter instances and ESXi hosts are licensed correctly.
2
Lab 2 Configuring a Management
Cluster
Lab Scenario:
You must distribute management workloads across both sites at VMBeans and ensure maximum
uptime for the virtual machines. You create a management cluster in Site-B to achieve the
following goals:
• Automate distribution of VMs across all the hosts in the management cluster for best
performance and utilization
• Protect VMs against host, network, and storage failures
3
Task 1: Configure a Cluster for Management Workloads
You create a management cluster and configure it with vSphere HA and vSphere DRS to meet
resource and availability requirements.
For information about configuring vSphere HA and DRS on a cluster, see the following references
in the vSphere product documentation. Use this information, as necessary, to perform the lab
steps:
4. Configure the cluster to meet the VMBeans resource and availability requirements as
outlined in the lab scenario goals.
6. When configuration is complete, take the ESXi hosts out of maintenance mode.
4
Lab 3 Configuring Standard Virtual
Switch Networks
Lab Scenario:
You configure the networking of the ESXi hosts in Site-B to meet VMBeans requirements and
VMware best practices for isolating network traffic. You must create separate standard virtual
switches for each type of traffic on the network (vMotion, VMs, management, and storage). The
network configurations are as follows:
• The ESXi host uses a standard virtual switch for management traffic.
• The ESXi hosts require a Production-VMs network for VM traffic.
• The ESXi host requires two VMkernel port groups for iSCSI traffic.
5
Task 1: Configure Standard Virtual Switches
You configure standard virtual switches on sb-esxi-01.vclass.local.
See the section on how to set up networking with vSphere standard switches in vSphere
Networking at https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-networking/GUID-
E198C88A-F82C-4FF3-96C9-E3DF0056AD0C.html. Use this information, if necessary, to help
you complete this task.
NOTE
In this lab, you configure only sb-esxi-01.vclass.local. In a later lab, you configure sb-esxi-
02.vclass.local.
6
a. Use the details in the table to create the vMotion network.
c. Test connectivity.
To get to the command line for sb-esxi-01.vclass.local, use the Remmina app in the Linux
taskbar. The Remmina app lets you open an SSH connection.
3. Configure an iSCSI network that allows two paths to the iSCSI target.
4. For VM traffic, create a standard virtual switch with a virtual machine port group called
Production-VMs.
7
Lab 4 Configuring vSphere Datastores
Lab Scenario:
At VMBeans, the new ESXi hosts in Site-B must be able to access the existing iSCSI and NFS
storage at Site-A. How do you configure datastores to achieve this goal?
8
Task 1: Configure Access to iSCSI Storage
You configure the sb-esxi-01.vclass.local ESXi host to mount existing shared datastores so that
the iSCSI storage can host the VMs in Site-B.
See the section on configuring iSCSI and iSER adapters and storage with ESXi in vSphere
Storage at https://docs.vmware.com/en/VMware-vSphere/index.html. Use this information, if
necessary, to help you complete this task.
NOTE
You configure sb-esxi-01.vclass.local in this lab. You configure the sb-esxi-02.vclass.local ESXi
host in a later lab.
3. Use the configured ESXi networks as the transport layer for the iSCSI SAN.
You use the standard virtual switch that you configured in an earlier lab.
9
Task 2: Create VMFS Datastores
You create a VMFS datastore on an iSCSI-based storage device to be used as a repository for
virtual machines.
When a new 12 GB LUN (8) is presented, you must claim the LUN and create a VMFS volume
that consumes 50% of the space.
See the chapter on working with datastores in a vSphere storage environment in vSphere
Storage at https://docs.vmware.com/en/VMware-vSphere/index.html. Use this information, if
necessary, to help you complete this task.
See the chapter on working with datastores in a vSphere storage environment in vSphere
Storage at https://docs.vmware.com/en/VMware-vSphere/index.html. Use this information, if
necessary, to help you complete this task.
10
Lab 5 Configuring ESXi Host Settings
Lab Scenario:
To simplify management and monitoring in the VMBeans environment, all logs are stored in a
central location. You must configure sb-esxi-01.vclass.local to send logs to the 172.20.10.171
Syslog server. You must also configure the host so that all logs have the correct time stamps.
The domain controller dc.vclass.local with a network address of 172.20.110.10 is used as the time
source.
Active Directory (AD) administrators log in to hosts using VMware Host Client. You must
configure the ESXi hosts to talk to AD so that AD administrators can access the hosts. The
domain is vclass.local, the user name is administrator@vclass.local, and VMware1! is the password.
At VMBeans, the security requirements state that the Authorized Access Only message
must display in the ESXi direct console user interface (DCUI), and an idle timeout of 300 seconds
must be set for the DCUI. To meet these requirements, you must limit SSH access to the ESXi
hosts by ensuring that SSH is available only when required and by setting a timer so that sessions
are not left open and insecure.
11
Task 1: Configure ESXi Host Settings
Using the vSphere Client, you configure the sb-esxi-01.vclass.local ESXi host.
For more information about host settings for security, see the section on securing ESXi hosts in
vSphere Security at https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-
security/GUID-A706C6C6-DF07-455B-99B9-5B8F8580F1EB.html.
12
Lab 6 Using vSphere Configuration
Profiles
2. Create a Draft Configuration and Include the Standard Virtual Switch Configurations
6. Run a Precheck on the Draft Configuration and Apply Changes to the Cluster
Lab Scenario:
Active Directory (AD) administrators log in to hosts using VMware Host Client. You must
configure the ESXi hosts to talk to AD so that AD administrators can access the hosts. The
domain is vclass.local, the user name is administrator@vclass.local, and VMware1! is the password.
With consistent host configurations, VM workloads can move seamlessly between hosts. At
VMBeans, you use vSphere configuration profiles to create consistent configurations that meet
company requirements. Using vSphere configuration profiles, you can apply the settings of one
host to other hosts.
You implement vSphere configuration profiles to configure the sb-esxi-02.vclass.local ESXi host.
Doing so saves you time by automating the configuration process.
13
Task 1: Use vSphere Configuration Profiles to Configure an ESXi Host
You use vSphere configuration profiles to define the reference host sb-esxi-01.vclass.local. The
reference host settings are used to configure sb-esxi-02.vclass.local.
For more information about vSphere Configuration Profiles, see the section on using vSphere
configuration profiles to manage host configuration at a cluster level in Managing Host and
Cluster Lifecycle at https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-lifecycle-
manager/GUID-F54C875A-E9EE-44E9-81BB-2E157B1C462A.html. Use this reference, as
necessary, to perform the lab steps.
2. Create a draft of the desired configuration and make host-specific changes for sb-esxi-
02.vclass.local
b. Modify the draft to include the standard virtual switch configurations to sb-esxi-
02.vclass.local.
c. Modify the draft to include the VMkernel port group configurations to sb-esxi-
02.vclass.local.
d. Because the vMotion VMkernel port uses the vMotion TCP/IP stack, modify the draft to
include the TCP/IP stack configuration to sb-esxi-02.vclass.local.
e. Configure vmk0, vmk1, vmk2, and vmk3 with the correct IP address and subnet mask
settings for sb-esxi-02.vclass.local.
f. Modify the draft to include the vMotion TCP/IP stack in the configuration for sb-esxi-
02.vclass.local.
g. Modify the draft to include the iSCSI software adapter configuration for sb-esxi-
02.vclass.local.
14
h. Modify the draft to include the NFS configuration for sb-esxi-02.vclass.local.
i. Modify the draft to include the NTP configuration, the syslog service configuration, and
the advanced options configuration.
15
Lab 7 Configuring a Production
Cluster
Lab Scenario:
VMBeans wants to distribute its production workloads across both Site-A and Site-B. You decide
to use the Cluster Quickstart feature to create and configure a production cluster in Site-B. The
new hosts contain SSD local devices, which you want to use in production:
• How do you ensure that VMs are automatically distributed across all the hosts in the cluster
to achieve the best performance and use of resources?
• How can you protect VMs against host, network, and storage failures?
16
Task 1: Configure a Cluster for Production Workloads
You configure a production cluster in Site-B that meets availability and mobility requirements.
For information about configuring a cluster, see the following references in the vSphere product
documentation:
• Using Quickstart to Configure and Expand a vSAN Cluster in vSAN Planning and
Deployment at https://docs.vmware.com/en/VMware-vSphere/8.0/vsan-planning/GUID-
CF9767B6-B3F5-4787-9AF3-D661987AE525.html
• Enable vSphere DRS and vSAN on the cluster. Do not configure a vSAN Express
Storage Architecture (ESA) cluster. You configure a vSAN Original Storage Architecture
(OSA) cluster.
• Manage all hosts in the cluster with a single image. Do not choose the image now. You
choose the image in a later lab.
• sb-esxi-04.vclass.local
• sb-esxi-05.vclass.local
• sb-esxi-06.vclass.local
3. Using Cluster Quickstart, create a vSphere distributed switch called SB-DVS-01 and assign
vmnic1, vmnic2, and vmnic6 to the uplink port group.
17
4. Configure the ESXi hosts for vSphere vMotion traffic and vSAN traffic.
NOTE
One or more vSAN warnings appear on the cluster. The warnings come from the virtualized
lab environment and can be ignored.
7. Verify that the Production-VM port group is automatically migrated and has the correct
VLAN settings.
8. Activate vSphere HA on the cluster and ensure it meets the availability requirements.
18
Lab 8 Configuring Advanced vSphere
HA Settings
1. Enable VM Monitoring
Lab Scenario:
In its production environment, VMBeans wants to avoid problems that lock or shut down
operating systems unexpectedly. VMBeans also wants to avoid intermittent network outages.
You decide to configure advanced high availability settings to help improve the resiliency of the
production cluster. The advanced vSphere HA features are deactivated by default.
19
Task 1: Enable VM Monitoring
You enable VM monitoring on the SB-Production-01 cluster.
With VM monitoring, VMs are restarted when they stop sending VMware Tools heartbeats
because this event indicates either a crashed or hung OS.
For information about VM monitoring, see the following references in vSphere Availability:
1. Enable VM Monitoring.
3. Use the Preset option and set the VM monitoring sensitivity to Low.
1. Using the VMware Photon OS server with the IP address 172.20.10.20 (Photon-01),
configure another isolation address for the SB-Production-01 cluster and set the isolation
delay to 60 seconds.
20
Lab 9 (Simulation) Configuring the
Identity Provider
Lab Scenario:
VMBeans decides to use federated authentication to increase its system security. With this type
of configuration, you do not provide credentials to vCenter directly. Instead, the credentials are
provided to the external identity provider. After configuring Active Directory Federation Services
(AD FS), you must assign permissions for team members who have Active Directory (AD)
accounts.
21
Task 1: Lab Simulation
You configure the AD FS identity source and add permissions to vCenter for a user from the AD
FS identity source. You then log in to vCenter as the user authenticated from AD FS.
4. After you complete the simulation, close the simulation browser tab.
22
Lab 10 Configuring Enhanced vMotion
Compatibility
Lab Scenario:
As a VMBeans administrator, you want to future-proof Site-B so that when you add hardware to
the SB-Management-01 cluster, administrators can perform live migrations of VMs between all
the hosts in the cluster.
In this lab, you must migrate the Photon-06 and Photon-07 VMs off-premises. The VMs are on
the SA-Management-01 cluster. Before you migrate the VMs, you configure the VMs to improve
mobility.
23
Task 1: Enable Enhanced vMotion Compatibility on a Cluster
You enable the highest compatible mode of Enhanced vMotion Compatibility on a cluster.
For more information, see the section on enabling Enhanced vMotion Compatibility on an existing
cluster in vCenter Server and Host Management at https://docs.vmware.com/en/VMware-
vSphere/7.0/com.vmware.vsphere.vcenterhost.doc/GUID-E3F5BAFE-EB14-408D-999A-
590D4337D59C.html.
For information about activating, deactivating, and changing the Enhanced vMotion Compatibility
mode, see the section on configuring the Enhanced vMotion Compatibility mode of a virtual
machine in vSphere Virtual Machine Administration at https://docs.vmware.com/en/VMware-
vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-A1C095EF-1B0F-4C10-9190-
CFDD07193B2B.html.
1. Enable per-VM Enhanced vMotion Compatibility on the Photon-06 and Photon-07 VMs.
2. Select the most suitable CPU mode for compatibility with the hosts.
24
Lab 11 Migrating Virtual Machines
1. Test Connectivity
Lab Scenario:
VMBeans wants to distribute the VM load more evenly across each of the vCenter instances. To
achieve this goal, you are asked to move some VMs from Site-A to Site-B. As you migrate the
VMs, you want to avoid VM downtime.
25
Task 1: Test Connectivity
Before performing a long-distance VM migration between vCenter instances, you test the
connectivity of the vMotion network and the management default gateway.
For information about testing network connectivity, see VMware knowledge base article
1003728 at https://kb.vmware.com/s/article/1003728. Use this information, as necessary, to
help you complete the task.
1. Test the connectivity of the vMotion network and the management default gateway from
the hosts in SA-Management-01 to the hosts in SB-Management-01.
For information that can help in completing this task, see the section on migrating virtual machines
between vCenter systems in vCenter Server and Host Management at
https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-vcenter-esxi-management/GUID-
59C7D7FF-D17E-45BC-9145-06B2993880A2.html.
1. Migrate the Photon-06 and Photon-07 VMs from vCenter sa-vcsa-01 to sb-esxi-01 in
vCenter sb-vcsa-01 and place them under SB-Datacenter.
26
Lab 12 Working with Content Libraries
Lab Scenario:
VMBeans wants to make extensive use of VM templates in the environment. However, it does
not want the overhead of managing separate VM templates for multiple sites because this
situation can lead to differences in VM templates and deployed VMs between the sites.
To help resolve this problem, you use content libraries to share a single VM template between
both vCenter instances. Sharing VM templates and files results in consistency and efficiency
across the two systems.
27
Task 1: Create a Subscribed Content Library
You create a subscribed content library in vCenter sb-vcsa-01 to consume the contents of a
published content library in vCenter sa-vcsa-01.
To help you with this task, see the section on creating a library in vSphere Virtual Machine
Administration at https://docs.vmware.com/en/VMware-
vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-2A0F1C13-7336-45CE-B211-
610D39A6E1F4.html.
28
Task 2: Create a Subscription for VM Templates
You create a subscription for the VMs in SB-ContentLibrary-01 so that they can be accessed and
used in sb-vcsa-01.vclass.local.
To help you with this task, see the section on creating a subscription for a local library in vSphere
Virtual Machine Administration at https://docs.vmware.com/en/VMware-
vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-1EBD511B-775B-4B94-9BB1-
70125F73E6E3.html.
29
Task 3: Clone a VM to the Local Library
You clone an existing VM to the Site-A content library.
For information that can help you with this task, see the section on cloning a VM or a VM
template to a template in a content library in vSphere Virtual Machine Administration at
https://docs.vmware.com/en/VMware-
vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-AC1545F0-F8BA-4CD2-96EB-
21B3DFAA1DC1.html.
30
Task 4: Deploy a VM from the Subscribed Content Library
You deploy a new VM from a template that is managed by SB-ContentLibrary-01.
To help you with this task, see the following references in vSphere Virtual Machine
Administration:
No customization is required. When you finish this step, you leave the VM powered off.
31
Task 5: Update a VM Template in the Content Library
You check out a template to update it.
For information that can help you with this task, see the section on checking out a VM from a
template in vSphere Virtual Machine Administration at https://docs.vmware.com/en/VMware-
vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-0F4D55EF-B45C-43D6-8C8F-
580D8B4B5009.html.
2. Increase the VM template CPU count to 2 and increase the memory amount to 4 GB.
32
Lab 13 Configuring DRS Resource
Pools and Rules
Lab Scenario:
As VMBeans expands, its data centers start to experience resource contention. During times of
peak use, the demand for CPU and memory resources is more than the current environment can
meet. The long-term goal is to add additional resources, but the budget is already assigned for
the quarter so your team cannot yet access these additional resources.
The agreed solution is to use resource pools to meet quality-of-service requirements. Your goal
is to configure the resource pools so that the back end gets twice as many resources as the front
end. In addition, you must configure affinity rules to keep VMs that work closely with one another
on the same host and to separate other VMs.
33
Task 1: Create Two Resource Pools
You create vSphere DRS resource pools to allocate resources in the SB-Production-01 cluster.
For information that can help you to complete this task, see the section on creating a resource
pool in vSphere Resource Management at https://docs.vmware.com/en/VMware-
vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-0F6C6709-A5DA-4D38-BE08-
6CB1002DD13D.html.
3. Deploy four new VMs from the Photon-CL template, with two in each of the resource pools.
34
Task 2: Configure DRS Virtual Machine Distribution
You create vSphere DRS affinity and anti-affinity rules and update the DRS setting to manage
virtual machine distribution in the SB-Production-01 cluster.
For information that can help you to complete this task, see the section on editing cluster settings
in vSphere Resource Management at https://docs.vmware.com/en/VMware-
vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-755AB944-F3D0-43DD-82CD-
8CDDDF8674E8.html.
3. Create a DRS rule to keep the two VMs in the Web resource pool together.
4. Create a DRS rule to separate the two VMs in the DB resource pool.
5. After the VMs are powered on, verify that the rules work as expected.
35
Task 3: Configure Scalable Shares
You configure shares on the resource pools in the SB-Production-01 cluster so that the DB
resource pool gets twice as many shares as the Web resource pool.
For information that can help you to complete this task, see the following references vSphere
Resource Management:
3. Deploy two additional VMs (Photon-21 and Photon-22) from the Photon-CL template into
the DB resource pool and power them on.
4. Review the worst case allocation for each VM in the DB and Web resource pools.
NOTE
Even as VMs are added to the DB resource pool, the worst case allocation for these VMs is
still twice that of the VMs in the Web resource pool. The VMs in the DB resource pool are
scaled correctly, according to the share assignments.
5. Power off all VMs in the Web and DB resource pools to conserve resources in the lab
environment.
36
Lab 14 Generating Log Bundles
Lab Scenario:
As part of the deployment process, you capture vCenter and ESXi host log bundles, which you
can use to perform health checks. One of the hosts in Site-A, sa-esxi-01, is occasionally reported
as not responding. You collect logs for host sa-esxi-01 using the vSphere Client.
Another host in Site-A, sa-esxi-02, is also reporting issues. You collect logs for host sa-esxi-02
using the vSphere ESXi Shell.
37
Task 1: Use the vSphere Client to Generate a vCenter Log Bundle
Using the vSphere Client, you generate a system diagnostic bundle from Site-A and store the
output to the VMBeans folder on the Console desktop.
For information about generating a log bundle in the vSphere Client, see the section on exporting
system log files in vSphere Monitoring and Performance at
https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-monitoring-performance/GUID-
29CD95DD-3652-4CEB-9E03-958CF2750A0A.html.
2. Export system logs from sa-vcsa-01.vclass.local, including the host logs from sa-esxi-
01.vclass.local.
NOTE
Log generation takes some time to complete. Check the Downloads folder
periodically for the presence of the log bundle file. You can continue with the lab while
this task runs in the background.
38
Task 2: Generate an ESXi Host Log Bundle from the Command Line
You use Remmina to establish an SSH connection to sa-esxi-02.vclass.local and generate a log
bundle.
For information about generating a log bundle from the command line, see VMware knowledge
base article 1010705 at https://kb.vmware.com/s/article/1010705.
The ESXi host log bundle is saved to the path that you indicate. The log bundle filename
ends in .tgz.
39
Lab 15 Troubleshooting a Host That Is
Not Responding
Lab Scenario:
You must review the logs from vCenter and the ESXi host, identify the root cause of the
problem, and then determine a solution. When you review the logs, you notice that missing
vCenter agent heartbeats are reported. How do you resolve this issue?
40
Task 1: Identify the Solution to the Host Problem
Using the vSphere Client, VMware Host Client, and Remmina, you determine a solution for ESXi
host sa-esxi-02, which is not responding in Site-A.
For information about network troubleshooting on an ESXi host, see the section on
troubleshooting vSphere networking in vSphere Networking at
https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-networking/GUID-217384C2-
B361-471D-90C8-BC2676A0ECA6.html.
2. Review the ESXi host configuration and update accordingly to resolve the problem.
41
Lab 16 Troubleshooting a Storage
Problem
Lab Scenario:
42
Task 1: Determine the Solution to the Storage Problem
You resolve the iSCSI configuration issues on sa-esxi-01.vclass.local.
For information about configuring vSphere HA and DRS on a cluster, see the section on
configuring iSCSI and iSER adapters and storage with ESXi in vSphere Storage at
https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-storage/GUID-C476065E-C02F-
47FA-A5F7-3B3F2FD40EA8.html.
4. Review the ESXi host networking configuration and fix any errors.
5. Review the ESXi host storage configuration and fix any errors.
7. Deploy a new VM called Photon-08 from the template Photon-CL and place it on one of the
shared datastores.
NOTE
43
Lab 17 Modifying the vSphere HA
Configuration
Lab Scenario:
The Photon-05 VM in the SA-Production-01 cluster does not power on. You discover that
admission control in the cluster prevents this VM from starting. You must investigate the issue
and adjust the cluster configuration so that the VM can power on. You must adhere to the
following guidelines:
44
Task 1: Update the Configuration Settings for vSphere HA
You update the vSphere HA admission control settings for the SA-Production-01 cluster.
For information that can help you in completing this lab, see the section on configuring admission
control in vSphere Availability at https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-
availability/GUID-C4059DB9-D673-45CB-918C-68C87FEB060A.html.
1. Verify that the VM called Photon-05 fails to power on and record the messages for the
failed task.
45
Lab 18 Troubleshooting Virtual
Machine Resource Issues
Lab Scenario:
At VMBeans, the VMs in the Sales resource pool must run without contention. An administrator
adjusts the resources of the Photon-03 and Photon-04 VMs to guarantee a fixed amount of
memory. The VMs are powered off during the adjustments.
When you try to power on the VMs again, one VM fails to start. What went wrong? As you
resolve the issue, you must follow these guidelines:
46
Task 1: Change the Resource Settings in the Sales Resource Pool
You configure the resource settings of the Sales resource pool in the SA-Production-01 cluster
so that both Photon-03 and Photon-04 VMs can power on successfully.
For information that can help you to complete this task, see the section on resource pool
admission control in vSphere Resource Management at https://docs.vmware.com/en/VMware-
vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-8D813BB8-CE07-40F2-B2CA-
269C1FB39475.html.
2. Modify the resource pool settings to fix the resource issue while also ensuring that memory is
reserved only when needed.
47
Lab 19 Troubleshooting PowerCLI
Scripts
Lab Scenario:
As an administrator at VMBeans, you run various scripts daily to support your environment:
• The vm-report.ps1 script lists all the virtual machines in the SA-Production-01 cluster.
This script also lists the resources assigned to the VMs, including the number of virtual CPUs
and the assigned memory.
The script generates a file with the resource information to the student desktop.
After updating the scripts, you notice that these two scripts are not working as expected. Your
goal is to resolve the issues with the scripts and verify that they run without errors.
48
Task 1: Identify and Resolve Issues with the vm-report.ps1 Script
You modify the vm-report.ps1 script so that it correctly generates the virtual machine
report.
2. From the command prompt, navigate to the folder containing the PowerCLI scripts.
6. Run the script and ensure that the report is stored in the
student01/Desktop/VMBeans-Operations/Reports folder.
49
Task 2: Identify and Resolve Issues with the vm-powercycle.ps1
Script
You modify the vm-powercycle.ps1 script to resolve the issues that prevent it from
running.
50
Lab 20 Generating a vCenter Profile
Lab Scenario:
You want all vCenter instances in the VMBeans environment to have a standard configuration. To
achieve this goal, you create a vCenter profile from sa-vcsa-01.vclass.local. A profile can help you
standardize the configuration for all vCenter instances and monitor those systems to protect
against configuration drift. The profile can also be applied to future deployments.
51
Task 1: Generate a vCenter Profile
You generate a vCenter profile and save the output to the student desktop.
For information about vCenter Server profiles, see Appliance REST APIs at
https://developer.vmware.com/docs/vsphere-automation/latest/appliance/. Use this
information, as necessary, to perform the lab steps.
52
Lab 21 Creating a vCenter File-Based
Backup
Lab Scenario:
According to VMBeans policy, you must create daily backups for vCenter. To achieve this goal,
you create a backup schedule for the vCenter instances in Site-A and Site-B.
For information about vCenter file-based backups, see the section on scheduling a file-based
backup in vCenter Server Installation and Setup at https://docs.vmware.com/en/VMware-
vSphere/index.html. Use this information, as necessary, to perform the lab tasks.
53
Task 1: Create a Backup Schedule
You create a file-based backup schedule for two vCenter instances. You decide that a nightly
backup of the vCenter instances must occur at 10:00 PM.
• Password: VMware1!
e. Ensure that vCenter tasks and events are backed up for auditing.
5. Repeat these steps for Site-B, using the FTP server on 172.20.110.10 as the backup location.
54
Task 2: Perform a Manual File-Based Backup
You perform a manual file-based backup of vCenter sa-vcsa-01.vclass.local to verify the settings
in the schedule.
2. Perform a manual backup of sa-vcsa-01.vclass.local using the details for the scheduled
backup.
55
Lab 22 Troubleshooting vCenter
Resource Issues
Lab Scenario:
In Site-A, vCenter is running low on disk space on one or more partitions. You are asked to
investigate the problem and resolve it before it impacts the upgrade of vCenter.
Hint: You use the vSphere Client, vCenter Server Management Interface, and Remmina to
identify and resolve the problem.
56
Task 1: Investigate and Resolve a Problem with Space Consumption
You identify the files on the vCenter Server Appliance that are consuming the disk space.
For information about monitoring vCenter Server disk space, see the section on using the
vCenter Server Management Interface to configure vCenter in vCenter Server Configuration at
https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-vcenter-configuration/GUID-
B259B969-3E5D-4576-8256-D3BED54B89AF.html.
1. Use the vCenter Server Management Interface to identify the disk that is almost full.
2. Connect to the Site-A vCenter instance using Remmina and identify the root cause of the
problem.
3. Resolve the space consumption problem and verify the free space.
57
Lab 23 Configuring vCenter Settings
Lab Scenario:
At VMBeans, vCenter sa-vcsa-01.vclass.local is scheduled for an upgrade. During the upgrade, sa-
vcsa-01.vclass.local will not be available. You want to remind users and administrators of this
upcoming downtime, so you decide to set a message of the day on the server.
You also want to gather information about an ongoing but intermittent networking issue in the
environment. To achieve this goal, you increase the logging levels on vCenter to capture log files
related to the issue as it happens. Having more detail in the logs can help you to resolve the issue.
58
Task 1: Set a Message of the Day
You set the message of the day on vCenter sa-vcsa-01.vclass.local to remind users and
administrators of upcoming maintenance and downtime.
For information that can help you complete this task, see the section on sending a message to
other logged in users in vCenter Server Configuration at https://docs.vmware.com/en/VMware-
vSphere/8.0/vsphere-vcenter-configuration/GUID-9E988389-5911-4F78-AEE4-
362E59958E67.html.
59
Task 2: Configure Statistic Collection and Logging Levels
You set the statistic collection and logging levels on sa-vcsa-01.vclass.local.
For information that can help you complete this task, see the following references in vCenter
Server Configuration:
5 minutes Level 2
30 minutes Level 2
2 hours Level 2
1 day Level 1
60
Task 3: Configure a Syslog Server
You configure a Syslog server on sa-vcsa-01.vclass.local to send logs to a remote server.
For information that can help in completing this task, see the section on forwarding vCenter log
files to remote Syslog servers in vCenter Server Configuration at
https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-vcenter-configuration/GUID-
9633A961-A5C3-4658-B099-B81E0512DC21.html.
61
Lab 24 Configuring a VMware Tools
Repository
Lab Scenario:
To prepare the VMBeans ESXi hosts for an upgrade, you want to create a central VMware Tools
location for the ESXi hosts in the SA-Management-01 cluster.
This centralized location helps to ensure that all VMs in the management cluster run the same
version. Having a central location for VMware Tools also reduces management overhead, and
VMware Tools can be updated independently of the host.
62
Task 1: Configure the Product Locker on the ESXi Hosts
You configure the product locker on the ESXi hosts in the SA-Management-01 cluster.
For information that can help you complete this lab, see "Configuring a VMware Tools Repository
in vSphere 6.7U1" at https://blogs.vmware.com/vsphere/2019/01/configure-a-vmware-tools-
repo-in-vsphere-6-7u1.html and VMware knowledge base article 2129825 at
https://kb.vmware.com/kb/2129825.
3. Copy the contents of the host's local product locker to the shared datastore.
4. Update the ESXi host configuration so that it uses the product locker location.
6. After reboot, verify the configuration using the vSphere Client and repeat the previous steps
on the remaining host in the SA-Management-01 cluster.
63
Lab 25 Troubleshooting a VM Power-
On Issue
Lab Scenario:
At VMBeans, a junior administrator migrated the Photon-20 VM, located in the SA-Production-01
cluster, from one datastore to another during a maintenance window. After the migration, the VM
fails to power on. Extending the maintenance window will cause further service disruption and
potential financial impact to the organization. You are asked to investigate the cause of the issue
and ensure that the VM is powered on successfully.
64
Task 1: Troubleshoot the VM and Power It On
You analyze the warning and error messages that are generated in the vSphere Client and log
files as a result of the VM power-on failure.
2. Find information that might help you to identify the cause of the Photon-20 VM's failure to
power on.
65
Lab 26 Updating vSphere
Components in Site-A
3. Update VM Hardware
Lab Scenario:
To enhance security in its data center, VMBeans uses a custom internal repository for vCenter
updates. VMBeans also wants to update ESXi hosts to the latest version to access new features
and bug fixes. The older vSphere 7.0 hosts must be upgraded using an image through vSphere
Lifecycle Manager. The virtual hardware of the Photon-01 VM must be upgraded to the latest
version.
66
Task 1: Use a Custom Repository to Update vCenter in Site-A
You update sa-vcsa-01.vclass.local to vSphere 8.0 Update 2 by using a custom repository. The
repository has been pre-populated with the vCenter update files for you to use.
For information that can help you complete the steps in this task, see the following references in
vCenter Server Upgrade:
The repository has already been populated with vCenter update files for you to use.
2. Using the vCenter Server Management Interface, stage and install the update and ensure
that you run the prechecks.
NOTE
67
Task 2: Use vSphere Lifecycle Manager to Update ESXi Hosts
You use vSphere Lifecycle Manager images to update the ESXi hosts in the SA-Production-01
cluster from vSphere 7 Update 1 to vSphere 8 Update 2.
For information that can help in completing this task, see the following references in Managing
Host and Cluster Lifecycle:
Option Action
68
Task 3: Update VM Hardware
You use the vSphere Client to update the hardware compatibility of the Photon-01 VM.
For help performing the steps in this task, see the section on upgrading the VM hardware
compatibility of virtual machines in Managing Host and Cluster Lifecycle at
https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere-lifecycle-
manager.doc/GUID-BE02FDB4-8C09-4EEF-93F0-E0519D19FE70.html.
2. After the VM Hardware compatibility is updated, power off the VM to conserve resources in
the lab environment.
69
Lab 27 Configuring a Default Key
Provider
Lab Scenario:
Because of the sensitive nature of some of the information stored in the Photon-E-01 VM, the
VMBeans security policy requires that this VM be encrypted. To help achieve this goal, you
configure the vSphere native key provider. You must configure a single vSphere Native Key
Provider that is shareable across vCenter instances in an Enhanced Linked Mode configuration.
That way, both vCenter instances can manage encrypted VMs.
70
Task 1: Configure the Native Key Provider
You configure a vSphere native key provider on sa-vcsa-01.vclass.local, back up the
configuration, then restore the native key provider configuration to sb-vcsa-01.vclass.local.
For information that can help you complete this task, see the section on configuring and
managing vSphere Native Key Provider in vSphere Security at
https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-security/GUID-2F18E7A0-707F-
4739-A0B4-9A363F1C3213.html.
1. Select sa-vcsa-01.vclass.local.
5. Make the native key provider the default key management server (KMS) on sb-vcsa-
01.vclass.local.
71
Task 2: Encrypt a Virtual Machine Using the Default Key Provider
You encrypt the virtual machine Photon-E-01 using the virtual machine encryption policy.
For information that can help you complete this task, see the section on encrypting an existing
VM or virtual disk in vSphere Security at https://docs.vmware.com/en/VMware-
vSphere/7.0/com.vmware.vsphere.security.doc/GUID-5E2C3F74-38C1-44C3-ABC5-
C2C9353B9DC4.html.
1. Update the configuration of Photon-E-01 to use the VM Encryption Policy to encrypt the
virtual machine files.
2. Verify that the VM is encrypted by the VM Encryption Policy by accessing the Summary tab
for Photon-E-01.
72
Lab 28 Working with Encrypted
Virtual Machines
Lab Scenario:
At VMBeans, you must clone and migrate the encrypted Photon-E-01 VM. You require an
identical copy of the VM to test changes before you place the VM into the production
environment.
You perform vSphere operations on encrypted VMs, just as you do on nonencrypted VMs.
Before performing any operations, you verify that the Photon-E-01 VM is powered on, and you
verify its encryption status.
For information that can help you to complete this lab, see the section on virtual machine
encryption in vSphere Security at https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-
security/GUID-E6C5CE29-CD1D-4555-859C-A0492E7CB45D.html.
73
Task 1: Clone an Encrypted Virtual Machine
You clone the virtual machine Photon-E-01 and create an identical copy called Photon-E-02.
74
Task 2: Migrate an Encrypted Virtual Machine
You perform a live migration of Photon-E-01, ensuring that the vSphere vMotion traffic is
encrypted.
1. In the settings for Photon-E-01, verify that Encrypted vMotion is set to Required.
75
Lab 29 Modifying the ESXi Host CPU
Scheduler
Lab Scenario:
The VMBeans security team requires the highest level of isolation between virtual machines. As a
result, you must implement more secure ESXi CPU schedulers on all the hosts in the SB-
Management-01 and SB-Production-01 clusters.
External contractors can access VMs running on the SB-Production-01 cluster. Several
contractors might be logged in to the same VMs at the same time. The VMs on the SB-
Management-01 cluster can be accessed only by VMBeans employees.
Your goal is to implement a CPU scheduler in the SB-Production-01 cluster that is the most
secure and a scheduler in the SB-Management-01 cluster that maintains the separation of VMs.
76
Task 1: Modify the CPU Scheduler to Meet Security Requirements
You change the default scheduler on hosts in the SB-Management-01 and SB-Production-01
clusters. You configure the ESXi host CPU scheduler for VM isolation and balanced performance
in the SB-Management-01 cluster. You configure the most secure ESXi host CPU scheduler in the
SB-Production-01 cluster.
For information about modifying the scheduler, see "Which vSphere CPU Scheduler to Choose"
at https://blogs.vmware.com/vsphere/2019/05/which-vsphere-cpu-scheduler-to-choose.html.
1. In the vSphere Client, configure advanced CPU scheduler settings for sb-esxi-01.vclass.local
to meet security requirements.
4. Set advanced CPU scheduler settings for the sb-esxi-04.vclass.local ESXi host to meet
security requirements.
5. Configure the same settings for the sb-esxi-05.vclass.local and sb-esxi-06.vclass.local ESXi
hosts.
77
Lab 30 Implementing Security
Hardening
Lab Scenario:
The VMBeans security team wants to implement security hardening in the SB-Production-01
cluster. How do you help to meet this security requirement?
• You restrict access to all ESXi hosts so that they can be managed only through vCenter or
the direct console user interface (DCUI).
• You configure the ESXi password policy to trigger a password change every 30 days.
78
Task 1: Configure Host Settings to Implement Security Hardening
You configure settings to implement security hardening on the ESXi hosts and virtual machines in
the SB-Production-01 cluster.
For information that can help you to complete this task, see the section on securing ESXi hosts in
vSphere Security at https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-
security/GUID-A706C6C6-DF07-455B-99B9-5B8F8580F1EB.html.
3. Repeat the steps for the other ESXi hosts in the SB-Production-01 cluster.
4. Change the ESXi host password policy on sb-esxi-04.vclass.local to meet the security
requirements.
5. Repeat the previous step for the other ESXi hosts in the SB-Production-01 cluster.
79
Lab 31 Updating a vCenter Certificate
Lab Scenario:
According to VMBeans policy, all SSL certificates must be generated from their own internal
certificate authority (CA).
VMBeans security administrators issue a new certificate for vCenter sa-vcsa-01.vclass.local. You
replace the existing certificate with the new one. You also change the certificate for vCenter sb-
vcsa-01.vclass.local. To do so, you generate a certificate-signing request (CSR) from vCenter.
The CSR is used by the CA.
80
Task 1: Replace a Machine SSL Certificate with a Pre-Generated CA
Certificate
After a VMBeans administrator provides a new CA-signed certificate for vCenter sa-vcsa-
01.vclass.local, you replace the old machine certificate with the pre-generated CA certificate.
For information about replacing vCenter certificates using the vSphere Client, see the section on
adding custom certificates in vSphere Authentication at https://docs.vmware.com/en/VMware-
vSphere/7.0/com.vmware.vsphere.authentication.doc/GUID-15A4FD99-37E2-41E5-8A35-
247B8FDB019D.html.
2. Replace the vCenter machine certificate with the files located in the
student01/Desktop/VMBeans-Operations/vCenter Certificates
folder.
Your vSphere session expires, and you must log back in to vCenter.
81
Task 2: Generate a Certificate Signing Request
You generate a CSR from vCenter sb-vcsa-01.vclass.local.
For information that can help you to complete this task, see the section on generating a CSR for
the machine SSL certificate using the vSphere Client in vSphere Authentication at
https://docs.vmware.com/en/VMware-
vSphere/7.0/com.vmware.vsphere.authentication.doc/GUID-2F83112B-961A-4ECB-B23F-
63758E34106B.html.
2. Under Machine SSL Certificate, select ACTIONS > Generate Certificate Signing Request
(CSR).
Option Value
Organization VMBeans
State/Province California
Host sb-vcsa-01.vclass.local
82
Lab 32 Reconfiguring the Primary
Network Identifier
Lab Scenario:
The recently deployed vCenter sb-vcenter-02.vclass.local does not match the naming
conventions that are used by VMBeans. Although the difference in naming convention does not
impact the functionality of vCenter, you are asked to change the vCenter name to sb-vcsa-
02.vclass.local.
An entry for the vCenter instance has already been added to the DNS server, and the vCenter
instance retains its current IPv4 network address.
83
Task 1: Reconfigure the Primary Network Identifier
You change the vCenter primary network identifier.
For information that can help you to complete this task, see the section on reconfiguring the
primary network identifier in vCenter Server Configuration at
https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-vcenter-configuration/GUID-
F46DBE63-F04E-42A1-B940-63A8F5B86ACF.html.
• Password: VMware1!
b. Power on sb-vcenter-02.
2. Open a command prompt window and run an nslookup command on the FQDN of the
new host name for the vCenter instance.
nslookup sb-vcsa-02.vclass.local
3. Verify that the sb-vcsa-02.vclass.local FQDN resolves to the 172.20.110.96 IP address.
• Password: VMware1!
8. While waiting for the vCenter services to restart, enter service-control --status
--all at the shell command prompt to monitor the startup of the vCenter services.
9. After the vCenter services restart, view the Network Settings pane in the vCenter
Management Interface.
10. Verify that the host name is sb-vcsa-02.vclass.local and that the IPv4 address is
172.20.110.96/24.
84
85
86