GDCC VMware VSphere V7
GDCC VMware VSphere V7
GDCC VMware VSphere V7
Course Outline
1. Introduction to vSphere and the Software-
Defined Data Center
2. Virtual Machines
3. vCenter Server
4. Configuring and Managing Virtual Networks
5. Configuring and Managing Virtual Storage
6. Virtual Machine Management
7. Resource Management and Monitoring
8. vSphere Clusters
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 1-6
1
8/12/20
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 2-8
2
8/12/20
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 2-9
Types of Virtualization
Virtualization is the process of
creating a software-based
representation of something
physical, such as a server,
desktop, network, or storage
device.
Virtualization is the single most
effective way to reduce IT
expenses while boosting
efficiency and agility for all
business sizes.
3
8/12/20
4
8/12/20
10
5
8/12/20
CPU Virtualization
In a physical environment, the operating system assumes the ownership of all the physical CPUs
in the system.
CPU virtualization emphasizes performance and runs directly on the available CPUs.
11
12
6
8/12/20
13
14
7
8/12/20
15
16
8
8/12/20
17
18
9
8/12/20
19
20
10
8/12/20
21
22
11
8/12/20
23
24
12
8/12/20
25
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 3-7
26
13
8/12/20
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 3-8
27
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 3-9
28
14
8/12/20
29
30
15
8/12/20
31
32
16
8/12/20
33
34
17
8/12/20
35
36
18
8/12/20
37
38
19
8/12/20
39
40
20
8/12/20
41
42
21
8/12/20
43
Introduction to Containers
44
22
8/12/20
45
46
23
8/12/20
47
Container Terminology
Several terms and concepts apply to containers.
Term Definition
Container An application packaged with dependencies
Container host A virtual machine or physical machine on which containers run
Container engine A runtime engine that manages the containers on the container host
Docker The most recognized runtime engine for container support, which is often
used as a synonym for many aspects of container technologies
Kubernetes Google-developed orchestration for containers
48
24
8/12/20
About Containers
A container is an encapsulation of an application and dependent binaries and libraries. The
application is decoupled from the operating system and becomes a serverless function.
Among the reasons that containers were
popularized by software developers are:
• They make coding easier, locally and
anywhere.
• You can deploy and test applications quickly
in a staging environment. No operating
system or load is required.
49
50
25
8/12/20
Container Engines
A container engine is a control plane that is installed on each container host. The control plane
manages the containers on that host.
Container engines perform several functions:
• Build container images from source code (for
example, Dockerfile). Alternatively, load
container images from a repository.
• Create running containers based on a
container image.
• Commit a running container to an image.
• Save an image and push it to a repository.
• Stop and remove containers.
• Suspend and restart containers.
• Report container status.
51
52
26
8/12/20
53
About Kubernetes
Containers are managed on a single container host. Managing multiple containers across multiple
container hosts creates many problems:
• Managing large numbers of containers
• Restarting failed containers
• Scaling containers to meet capacity
• Networking and load balancing
Kubernetes provides an orchestration layer to solve these problems.
Kubernetes is an open-source system for automating deployment, scaling, and management of
containerized applications.
54
27
8/12/20
Platform
Ops
Infrastructure
55
56
28
8/12/20
57
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 4-6
58
29
8/12/20
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 4-7
59
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 4-8
60
30
8/12/20
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 4-9
61
62
31
8/12/20
63
64
32
8/12/20
65
66
33
8/12/20
67
68
34
8/12/20
69
70
35
8/12/20
71
72
36
8/12/20
73
74
37
8/12/20
75
76
38
8/12/20
77
78
39
8/12/20
79
Scheduling Backups
You can schedule automatic
file-based backups.
The backup scheduler supports:
• A retention policy to keep all
backups or a defined number
of backups
• Daily, weekly, or custom
schedule
Failed backups trigger an alarm
in the vSphere Client.
80
40
8/12/20
81
82
41
8/12/20
Option Description
None Turns off logging
Error (errors only) Displays only error log entries
Warning (errors and Displays warning and error log entries
warnings)
Info (normal logging) Displays information, error, and warning log entries
Verbose Displays information, error, warning, and verbose log entries
Trivia (extended verbose) Displays information, error, warning, verbose, and trivia log entries
83
84
42
8/12/20
85
86
43
8/12/20
87
88
44
8/12/20
89
90
45
8/12/20
91
92
46
8/12/20
93
94
47
8/12/20
95
96
48
8/12/20
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 5-7
97
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 5-8
98
49
8/12/20
About VLANs
ESXi supports 802.1Q VLAN tagging.
Virtual switch tagging is one of the supported
tagging policies:
• Frames from a VM are tagged as they exit
the virtual switch.
• Tagged frames arriving at a virtual switch are
untagged before they are sent to the
destination VM.
• The effect on performance is minimal.
ESXi provides VLAN support by assigning a
VLAN ID to a port group.
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 5-9
99
100
50
8/12/20
101
102
51
8/12/20
103
104
52
8/12/20
105
106
53
8/12/20
Storage Concepts
107
About Datastores
A datastore is a logical storage unit that can use
disk space on one physical device or span
several physical devices.
Datastores are used to hold VM files, VM
templates, and ISO images.
vSphere supports the following types of
datastores:
• VMFS
• NFS
• vSAN
• vSphere Virtual Volumes
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 6-6
108
54
8/12/20
Storage Overview
ESXi hosts should be configured with shared access to datastores.
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 6-7
109
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 6-8
110
55
8/12/20
About VMFS
ESXi hosts support VMFS5 and VMFS6:
• Features supported by both VMFS5 and
VMFS6:
– Concurrent access to shared storage
– Dynamic expansion
– On-disk locking
• Features supported by VMFS6:
– 4K native storage devices
– Automatic space reclamation
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 6-9
111
About NFS
NFS is a file-sharing protocol
that ESXi hosts use to
communicate with a network-
attached storage (NAS) device.
NFS supports NFS version 3
and 4.1 over TCP/IP.
112
56
8/12/20
About vSAN
vSAN is hypervisor-converged, software-
defined storage for virtual environments that
does not use traditional external storage.
By clustering host-attached hard disk drives
(HDDs) or solid-state drives (SSDs), vSAN
creates an aggregated datastore shared by
VMs.
113
114
57
8/12/20
115
116
58
8/12/20
About Templates
A template is a master copy of a virtual machine. You use templates to create and provision new
VMs.
A template typically includes:
• A guest operating system
• One or more applications
• A specific VM configuration
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 7-6
117
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 7-7
118
59
8/12/20
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 7-8
119
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 7-9
120
60
8/12/20
Updating Templates
You update a template to include new patches, make system changes, and install new
applications.
To update a template:
1. Convert the template to a VM.
2. Place the VM on an isolated network to
prevent user access.
3. Make appropriate changes to the VM.
4. Convert the VM to a template.
121
122
61
8/12/20
123
124
62
8/12/20
125
Removing VMs
You can remove a VM in the following ways:
• Remove from the inventory:
— The VM is unregistered from the ESXi host and vCenter
Server.
— The VM’s files remain on the disk.
— The VM can later be registered (added) to the inventory.
• Delete from disk:
— All VM files are permanently deleted from the datastore.
— The VM is unregistered from the ESXi host and vCenter
Server.
126
63
8/12/20
VM Migration Methods
127
Migrating VMs
Migration means moving a VM from one host, datastore, or vCenter Server instance to another
host, datastore, or vCenter Server instance.
Depending on the power state of the VM that you migrate, migration can be cold or hot:
• A cold migration involves moving a powered-off or suspended VM to a new host.
• A hot migration involves moving a powered-on VM to a new host.
Depending on the VM resource type, you can perform different types of migrations.
128
64
8/12/20
129
130
65
8/12/20
131
132
66
8/12/20
133
134
67
8/12/20
135
136
68
8/12/20
137
138
69
8/12/20
VM Snapshots
With snapshots, you can preserve the state of
the VM so that you can repeatedly return to the
same state.
For example, if problems occur during the
patching or upgrading process, you can stop
the process and revert to the previous state.
VM snapshots are not recommended as a VM
backup strategy.
139
Taking Snapshots
You can take a snapshot while a VM is powered
on, powered off, or suspended.
A snapshot captures the following items:
• VM configuration
• VM memory state (optional)
• Virtual disks
A snapshot capture does not include
Independent virtual disks (persistent and
nonpersistent).
140
70
8/12/20
Types of Snapshots
A delta or child disk is created when you create a snapshot:
• On the VMFS datastore, the delta disk is a sparse disk.
• Delta disks use different sparse formats depending on the type of datastore.
141
142
71
8/12/20
143
144
72
8/12/20
Managing Snapshots
In the vSphere Client, you can view snapshots for the active VM and take edit, delete, and revert
to actions.
145
146
73
8/12/20
147
148
74
8/12/20
149
Consolidating Snapshots
After the snapshot consolidation
warning appears, you can use
the vSphere Client to
consolidate the snapshots.
All snapshot delta disks are
committed to the base disks.
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 7 - 100
150
75
8/12/20
151
152
76
8/12/20
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 8-6
153
VM Memory Overcommitment
Memory is overcommitted when the combined
configured memory footprint of all powered-on
VMs exceeds that of the host memory sizes.
When memory is overcommitted:
• VMs do not always use their full allocated
memory.
• To improve memory usage, an ESXi host
transfers memory from idle VMs to VMs that
need more memory.
• Overcommitted memory is stored in the
.vswp file.
• Memory overhead is stored in the vmx-
*.vswp file.
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 8-7
154
77
8/12/20
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 8-8
155
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 8-9
156
78
8/12/20
About Hyperthreading
With hyperthreading, a core can execute two
threads or sets of instructions at the same time.
• Hyperthreading provides more scheduler
throughput.
• Hyperthreading is enabled by default.
To enable hyperthreading:
• Verify that the host system supports
hyperthreading.
• Enable hyperthreading in the system BIOS.
• Ensure that hyperthreading for the ESXi host
is turned on.
157
158
79
8/12/20
159
Resource-Monitoring Tools
Many resource-monitoring and performance-monitoring tools are available for use with vSphere.
160
80
8/12/20
161
162
81
8/12/20
163
164
82
8/12/20
165
166
83
8/12/20
167
Saving Charts
You click the Save Chart icon above the graph to save performance chart information.
You can save information in PNG, JPEG, SVG, and CSV formats.
168
84
8/12/20
Using Alarms
169
About Alarms
An alarm is a notification that is sent in response to an event or condition that occurs with an
object in the inventory.
170
85
8/12/20
171
172
86
8/12/20
173
174
87
8/12/20
175
176
88
8/12/20
177
178
89
8/12/20
179
180
90
8/12/20
181
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 9-6
182
91
8/12/20
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 9-7
183
© 2020 VMware, Inc. VMware vSphere: Install, Configure, Manage [V7] | 9-9
184
92
8/12/20
185
186
93
8/12/20
187
vSphere DRS
188
94
8/12/20
189
190
95
8/12/20
191
192
96
8/12/20
193
194
97
8/12/20
195
196
98
8/12/20
Introduction to vSphere HA
197
198
99
8/12/20
About vSphere HA
vSphere HA provides rapid recovery from outages and cost-effective high availability for
applications running in VMs. vSphere HA protects application availability in several ways.
Protects Against How Does vSphere HA Provide Protection?
ESXi host failure By restarting the VMs on other hosts within the cluster
VM failure By restarting the VM when a VMware Tools heartbeat is not
received within a set time
Application failure By restarting the VM when an application heartbeat is not received
within a set time
Datastore accessibility failure By restarting the affected VMs on other hosts that still can access
the datastores.
Network isolation By restarting VMs if their host becomes isolated on the
management or vSAN network. This protection is provided even if
the network becomes partitioned.
199
200
100
8/12/20
201
202
101
8/12/20
203
204
102
8/12/20
vSphere HA Architecture
205
206
103
8/12/20
207
208
104
8/12/20
209
210
105
8/12/20
211
Isolated Hosts
A host is declared isolated when
the following conditions occur:
• The host is not receiving
network heartbeats.
• The host cannot ping its
isolation addresses.
212
106
8/12/20
VM Storage Failures
Storage connectivity problems might arise
because of:
• Network or switch failure
• Array misconfiguration
• Power outage
Storage connectivity problems affect VM
availability:
• VMs on affected hosts are difficult to
manage.
• Applications with attached disks fail.
213
214
107
8/12/20
215
216
108
8/12/20
217
218
109
8/12/20
219
220
110
8/12/20
221
222
111
8/12/20
223
224
112