Vsphere Esxi Vcenter Server 672 Security Guide
Vsphere Esxi Vcenter Server 672 Security Guide
Update 2
Modified on 30 AUG 2024
VMware vSphere 6.7
VMware ESXi 6.7
vCenter Server 6.7
vSphere Security
You can find the most up-to-date technical documentation on the VMware by Broadcom website at:
https://docs.vmware.com/
VMware by Broadcom
3401 Hillview Ave.
Palo Alto, CA 94304
www.vmware.com
©
Copyright 2009-2024 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc.
and/or its subsidiaries. For more information, go to https://www.broadcom.com. All trademarks, trade
names, service marks, and logos referenced herein belong to their respective companies.
VMware by Broadcom 2
Contents
Updated Information 15
VMware by Broadcom 3
vSphere Security
VMware by Broadcom 4
vSphere Security
VMware by Broadcom 5
vSphere Security
VMware by Broadcom 6
vSphere Security
VMware by Broadcom 7
vSphere Security
VMware by Broadcom 8
vSphere Security
12 Managing TLS Protocol Configuration with the TLS Configurator Utility 241
Ports That Support Disabling TLS Versions 241
Enabling or Disabling TLS Versions in vSphere 242
Perform an Optional Manual Backup 243
Enable or Disable TLS Versions on vCenter Server Systems 244
Enable or Disable TLS Versions on ESXi Hosts 245
Enable or Disable TLS Versions on External Platform Services Controller Systems 247
Scan vCenter Server for Enabled TLS Protocols 248
Revert TLS Configuration Changes 249
Enable or Disable TLS Versions on vSphere Update Manager on Windows 251
Disable Earlier TLS Versions for Update Manager Port 9087 251
Disable Earlier TLS Versions for Update Manager Port 8084 252
Reenable Disabled TLS Versions for Update Manager Port 9087 253
Reenable Disabled TLS Versions for Update Manager Port 8084 254
VMware by Broadcom 9
vSphere Security
VMware by Broadcom 10
vSphere Security
VMware by Broadcom 11
About vSphere Security
®
vSphere Security provides information about securing your vSphere environment for
® ®
VMware vCenter Server and VMware ESXi.
To help you protect your vSphere environment, this documentation describes available security
features and the measures that you can take to safeguard your environment from attack.
Host Security Features n Lockdown mode and other security profile features.
n Host smart card authentication.
n vSphere Authentication Proxy.
n UEFI Secure Boot.
n Trusted Platform Module (TPM).
Managing TLS Protocol Configuration Changing TLS protocol configuration using a command-
line utility.
Security Best Practices and Hardening Best practices and advice from VMware security experts.
n vCenter Server security
n Host security
n Virtual machine security
n Networking security
VMware by Broadcom 12
vSphere Security
Related Documentation
A companion document, Platform Services Controller Administration, explains how you can use
the Platform Services Controller services, for example, to manage authentication with vCenter
Single Sign-On and to manage certificates in your vSphere environment.
In addition to these documents, VMware publishes the vSphere Security Configuration Guide
(formerly known as the Hardening Guide) for each release of vSphere, accessible at http://
www.vmware.com/security/hardening-guides.html. The vSphere Security Configuration Guide
contains guidelines on security settings that can or should be set by the customer, and security
settings delivered by VMware that should be audited by the customer to ensure that they are still
set to default.
Intended Audience
This information is for experienced Windows or Linux system administrators who are familiar with
virtual machine technology and data center operations.
Tasks for which the workflow differs significantly between the vSphere Client and the vSphere
Web Client have duplicate procedures that provide steps according to the respective client
interface. The procedures that relate to the vSphere Web Client, contain vSphere Web Client in
the title.
Note In vSphere 6.7 Update 1, almost all of the vSphere Web Client functionality is implemented
in the vSphere Client. For an up-to-date list of any remaining unsupported functionality, see
Functionality Updates for the vSphere Client.
Certifications
VMware publishes a public list of VMware products that have completed Common Criteria
certifications. To check if a particular VMware product version has been certified, see the
Common Criteria Evaluation and Validation webpage at https://www.vmware.com/security/
certifications/common-criteria.html.
VMware by Broadcom 13
vSphere Security
FIPS 140-2 is a U.S. and Canadian government standard that specifies security requirements for
cryptographic modules. By default, FIPS 140-2 is always enabled after installation or upgrade of
vCenter Server 6.7 or greater, and ESXi 6.7 or greater.
To learn more about support for FIPS 140-2 in VMware products, see https://www.vmware.com/
security/certifications/fips.html.
VMware by Broadcom 14
Updated Information
This vSphere Security document is updated with each release of the product or when necessary.
This table provides the update history of the vSphere Security documentation.
Revision Description
04 JUN 2024 n Minor update to How vSphere Virtual Machine Encryption Protects Your Environment.
n Minor update to Create a Virtual Machine with a Virtual Trusted Platform Module.
30 JAN 2023 n Updated How vSphere Virtual Machine Encryption Protects Your Environment and Prerequisites and
Required Privileges for Encryption Tasks to state that ESXi Shell users also have cryptographic
operation privileges.
n Updated Enable Virtual Trusted Platform Module for an Existing Virtual Machine to state that the
Virtual machine.Configuration.Add or remove device privilege is required.
21 DEC 2022 n Minor update to Collect a vm-support Package for an ESXi Host That Uses Encryption.
n Minor update to Remove Virtual Trusted Platform Module from a Virtual Machine.
13 OCT 2022 n Minor updates to Virtualization-based Security Best Practices, Enable Virtualization-based Security on
a Virtual Machine, and Enable Virtualization-based Security on an Existing Virtual Machine.
14 JUN 2022 n Fixed the steps to add NTP servers in Add or Replace NTP Servers in the vCenter Server Appliance
Configuration.
21 MAR 2022 n Fixed a typo in Upload an SSH Key Using a vifs Command.
n Minor update to Host Upgrades and Certificates.
n Fixed incorrect commands in step 4 in Use Custom Certificates with Auto Deploy.
n Minor update to Restore ESXi Certificate and Key Files.
n Removed the tabular information from Incoming and Outgoing Firewall Ports for ESXi Hosts, Required
Ports for vCenter Server and Platform Services Controller, and Ports That Support Disabling TLS
Versions. Going forward, see the VMware Ports and Protocols Tool™ at https://ports.vmware.com/.
As part of transitioning all the ports information to the Ports and Protocols Tool, the "Additional
vCenter Server TCP and UDP Ports" topic has also been removed.
n Added information to Virtual Machine Encryption Interoperability.
n Minor update to Resolve ESXi Host Encryption Mode Issues.
n Added required privileges to Create a Virtual Machine with a Virtual Trusted Platform Module, Enable
Virtual Trusted Platform Module for an Existing Virtual Machine, and Remove Virtual Trusted Platform
Module from a Virtual Machine.
n For a standalone ESXi host, clarified that you must run the reconfigureEsx ESXiHost command from
a vCenter Server system in Enable or Disable TLS Versions on ESXi Hosts.
VMware by Broadcom 15
vSphere Security
Revision Description
22 OCT 2021 n Updated Replace a Default Certificate and Key with the vifs Command and Replace a Default
Certificate Using HTTPS PUT with an alternative to restart the management agents after replacing
the certificate.
n Minor update to Use vSphere Authentication Proxy to Add a Host to a Domain.
n Corrected a typo in Change the Encryption Policy for Virtual Disks.
n Corrected a command in Ensure Proper SNMP Configuration.
n Minor update to Revert TLS Configuration Changes.
n Minor update to About DISA STIGs.
n Minor update to Single Sign-On Audit Events.
13 AUG 2020 At VMware, we value inclusion. To foster this principle within our customer, partner, and internal
community, we are replacing some of the terminology in our content. We have updated this guide to
remove instances of non-inclusive language.
VMware by Broadcom 16
vSphere Security
Revision Description
18 JUN 2020 n Updated Required Privileges for Common Tasks to show required privileges for adding a single host
to a data center and adding multiple hosts to cluster.
n Updated Replacing ESXi SSL Certificates and Keys with a link to the VMware knowledge base
article at https://kb.vmware.com/s/article/56441 (Configuring Custom Certificates on ESXi hosts to
authenticate vSAN hosts).
n Added port 15080 (Analytics service internal port) to ports information.
n Minor update to Remove Virtual Trusted Platform Module from a Virtual Machine.
28 APR 2020 n Updated Replacing ESXi SSL Certificates and Keys to refer to the correct information about using
custom certificates.
n Minor update to Prevent a Virtual Machine User or Process from Disconnecting Devices.
n Updated required privileges for moving hosts into a cluster in Required Privileges for Common Tasks.
n Added information about VMware Remote Console version 11.0 to Connecting to the Virtual Machine
Console Through a Firewall.
n Removed the cross reference to "Enable or Disable a Service" from Enable vSphere Authentication
Proxy, as it does not apply to vCenter Server.
n Minor update to Use the Direct Console User Interface to Enable Access to the ESXi Shell.
n Updated videos in Add Allowed IP Addresses for an ESXi Host and ESXi Firewall Configuration to
show the vSphere Client.
n Added a reference to the vSphere Networking documentation about configuring virtual machine
adapters for promiscuous mode in Promiscuous Mode Operation.
n ESXi Certificate Default Settings now shows the correct parameter for "Number of days the
certificate is valid" (vpxd.certmgmt.certs.daysValid).
23 DEC 2019 n Corrected the information about Port 80 and Port 9000 to show that they are outgoing firewall
connections in Incoming and Outgoing Firewall Ports for ESXi Hosts.
n Corrected a link in About DISA STIGs.
14 NOV 2019 n Added information about vSphere support for the Federal Information Processing Standard 140-2 in
About vSphere Security.
n Added log filename and location for Quick Boot to ESXi Log File Locations.
n Corrected the information about Port 9080 to show that it is an incoming firewall connection in
Incoming and Outgoing Firewall Ports for ESXi Hosts.
27 AUG 2019 n Corrected steps in Synchronize ESXi Clocks with a Network Time Server.
n Made minor update to Virtual Machine Service Configuration Privileges.
10 JUL 2019 n Updated Virtualization-based Security Best Practices, Enable Virtualization-based Security on a
Virtual Machine, and Enable Virtualization-based Security on an Existing Virtual Machine, to reflect
that virtualization-based security (VBS) is now supported on Microsoft Server 2019.
n Made minor updates to Virtual Machine Encryption Interoperability and Encrypted vSphere vMotion.
VMware by Broadcom 17
Security in the vSphere
Environment 1
The components of a vSphere environment are secured out of the box by several features such
as authentication, authorization, a firewall on each ESXi host, and so on. You can modify the
default setup in many ways. For example, you can set permissions on vCenter objects, open
firewall ports, or change the default certificates. You can take security measures for different
objects in the vCenter object hierarchy, for example, vCenter Server systems, ESXi hosts, virtual
machines, and network and storage objects.
A high-level overview of different areas of vSphere that require attention helps you plan your
security strategy. You also benefit from other vSphere Security resources on the VMware Web
site.
You can enhance protection of ESXi hosts that are managed by vCenter Server with the following
actions. See the Security of the VMware vSphere Hypervisor white paper for background and
details.
VMware by Broadcom 18
vSphere Security
By default, the ESXi Shell and SSH services are not running and only the root user can log in
to the Direct Console User Interface (DCUI). If you decide to enable ESXi or SSH access, you
can set timeouts to limit the risk of unauthorized access.
Users who can access the ESXi host must have permissions to manage the host. You set
permissions on the host object from the vCenter Server system that manages the host.
By default, the root user can perform many tasks. Do not allow administrators to log in to
the ESXi host using the root user account. Instead, create named administrator users from
vCenter Server and assign those users the Administrator role. You can also assign those
users a custom role. See Create a Custom Role.
If you manage users directly on the host, role management options are limited. See the
vSphere Single Host Management - VMware Host Client documentation.
By default, firewall ports on your ESXi host are opened only when you start a corresponding
service. You can use the vSphere Client or ESXCLI or PowerCLI commands to check and
manage firewall port status.
Because it is often important that different hosts in the same data center are in sync, use
scripted installation or vSphere Auto Deploy to provision hosts. You can manage the hosts
using scripts. Host profiles are an alternative to scripted management. You set up a reference
host, export the host profile, and apply the host profile to all hosts. You can apply the host
profile directly or as part of provisioning with Auto Deploy.
See Use Scripts to Manage Host Configuration Settings and see the vCenter Server
Installation and Setup documentation for information about vSphere Auto Deploy.
In lockdown mode, ESXi hosts can be accessed only through vCenter Server by default.
Starting with vSphere 6.0, you can select strict lockdown mode or normal lockdown mode.
You can define Exception Users to allow direct access to service accounts such as backup
agents.
See Lockdown Mode.
Each VIB package has an associated acceptance level. You can add a VIB to an ESXi host
only if the VIB acceptance level is the same or better than the acceptance level of the
host. You cannot add a CommunitySupported or PartnerSupported VIB to a host unless you
explicitly change the host's acceptance level.
VMware by Broadcom 19
vSphere Security
In vSphere 6.0 and later, the VMware Certificate Authority (VMCA) provisions each ESXi host
with a signed certificate that has VMCA as the root certificate authority by default. If your
company policy requires it, you can replace the existing certificates with certificates that are
signed by a third-party or an enterprise CA.
Starting with vSphere 6.0, ESXi supports the use of smart card authentication instead of
user name and password authentication. For additional security, you can configure smart
card authentication. Two-factor authentication is also supported for vCenter Server. You can
configure user name and password authentication and smart card authentication at the same
time.
Starting with vSphere 6.0, account locking is supported for access through SSH and through
the vSphere Web Services SDK. By default, a maximum of 10 failed attempts is allowed
before the account is locked. The account is unlocked after two minutes by default.
Note The Direct Console Interface (DCUI) and the ESXi Shell do not support account lockout.
Security considerations for standalone hosts are similar, though the management tasks might
differ. See the vSphere Single Host Management - VMware Host Client documentation.
As you protect your vSphere environment, consider that all services that are associated with the
vCenter Server instances must be protected. In some environments, you might protect several
vCenter Server instances and one or more Platform Services Controller instances.
The first step in protecting your vCenter environment is hardening each machine on which
vCenter Server or an associated service runs. Similar considerations apply to a physical
machine or a virtual machine. Always install the latest security patches for your operating
system and follow industry standard best practices to protect the host machine.
VMware by Broadcom 20
vSphere Security
By default, the VMware Certificate Authority provisions each ESXi host, each machine in the
environment, and each solution user with a certificate signed by VMCA. The environment
works out of the box, but if company policy requires it, you can change the default behavior.
See the Platform Services Controller Administration documentation for details.
For additional protection, explicitly remove expired or revoked certificates and failed
installations.
vCenter Server and associated services are protected by the vCenter Single Sign-On
authentication framework. When you first install the software, you specify a password for the
administrator of the vCenter Single Sign-On domain, [email protected] by default.
Only that domain is initially available as an identity source. You can add other identity
sources, either Active Directory or LDAP, and set a default identity source. Going forward,
users who can authenticate to one of those identity sources can view objects and perform
tasks if they are authorized to do so. See the Platform Services Controller Administration
documentation for details.
For better logging, associate each permission that you give on an object with a named user
or group and a predefined role or custom role. The vSphere 6.0 permissions model allows
great flexibility through multiple ways of authorizing users or groups. See Understanding
Authorization in vSphere and Required Privileges for Common Tasks.
Restrict administrator privileges and the use of the administrator role. If possible, do not use
the anonymous Administrator user.
Set up NTP
Set up NTP for each node in your environment. The certificate infrastructure requires an
accurate time stamp and does not work correctly if the nodes are out of sync.
To protect your guest operating system, make sure that it uses the most recent patches and,
if appropriate, anti-spyware and anti-malware applications. See the documentation from your
guest operating system vendor and, potentially, other information available in books or on
the Internet for that operating system.
VMware by Broadcom 21
vSphere Security
Check that unnecessary functionality is disabled to minimize potential points of attack. Many
of the features that are used infrequently are disabled by default. Remove unnecessary
hardware and disable certain features such as host-guest filesystem (HGFS) or copy and
paste between the virtual machine and a remote console.
See Disable Unnecessary Functions Inside Virtual Machines.
Virtual machine templates enable you to set up the operating system so that it meets your
requirements, and to create other VMs with the same settings.
If you want to change virtual machine settings after initial deployment, consider using scripts,
for example, PowerCLI. This documentation explains how to perform tasks using the GUI.
Consider using scripts instead of the GUI to keep your environment consistent. In large
environments, you can group virtual machines into folders to optimize scripting.
For information on templates, see Use Templates to Deploy Virtual Machines and the
vSphere Virtual Machine Administration. For information on PowerCLI, see the VMware
PowerCLI documentation.
The virtual machine console provides the same function for a virtual machine that a monitor
on a physical server provides. Users with access to a virtual machine console have access
to virtual machine power management and to removable device connectivity controls. As a
result, virtual machine console access might allow a malicious attack on a virtual machine.
Starting with vSphere 6.5, you can configure your virtual machine to use UEFI boot. If the
operating system supports secure UEFI boot, you can select that option for your VMs for
additional security. See Enable or Disable UEFI Secure Boot for a Virtual Machine.
Starting with vSphere 6.7 Update 1, you can install and use the VMware AppDefense plug-in
to protect your applications and ensure endpoint security. The AppDefense plug-in becomes
available with the vSphere Platinum license. If you have the Platinum license, the AppDefense
panel appears on the Summary tab for any virtual machine in your inventory. From that
panel, you can install, upgrade, or view details about the AppDefense plug-in. For more
information about VMware AppDefense, see the AppDefense documentation.
VMware by Broadcom 22
vSphere Security
vSphere includes the full array of features necessary for a secure networking infrastructure.
You can secure each element of the infrastructure, such as virtual switches, distributed virtual
switches, and virtual network adapters, separately. In addition, consider the following guidelines,
discussed in more detail in Chapter 10 Securing vSphere Networking.
You can open and close firewall ports and secure each element in the virtual network
separately. For ESXi hosts, firewall rules associate services with corresponding firewalls and
can open and close the firewall according to the status of the service.
You can also open ports on Platform Services Controller and vCenter Server instances
explicitly.
For the list of all supported ports and protocols in VMware products, including vSphere and
vSAN, see the VMware Ports and Protocols Tool™ at https://ports.vmware.com/. You can
search ports by VMware product, create a customized list of ports, and print or save port
lists.
Network security policies provide protection of traffic against MAC address impersonation
and unwanted port scanning. The security policy of a standard or distributed switch is
implemented in Layer 2 (Data Link Layer) of the network protocol stack. The three elements
of the security policy are promiscuous mode, MAC address changes, and forged transmits.
Secure VM networking
The methods that you use to secure VM networking depend on several factors, including:
Virtual switches and distributed virtual switches provide significant protection when used with
other common security practices, such as installing firewalls.
VMware by Broadcom 23
vSphere Security
ESXi supports IEEE 802.1q VLANs. VLANs let you segment a physical network. You can use
VLANs to further protect the VM network or storage configuration. When you use VLANS,
two VMs on the same physical network cannot send packets to or receive packets from each
other unless they are on the same VLAN.
See Securing Virtual Machines with VLANs.
A VM stores operating system files, program files, and other data on a virtual disk. Each
virtual disk appears to the VM as a SCSI drive that is connected to a SCSI controller. A VM
is isolated from storage details and cannot access the information about the LUN where its
virtual disk resides.
The Virtual Machine File System (VMFS) is a distributed file system and volume manager that
presents virtual volumes to the ESXi host. You are responsible for securing the connection to
storage. For example, if you are using iSCSI storage, you can set up your environment to use
CHAP. If required by company policy, you can set up mutual CHAP. Use the vSphere Client or
CLIs to set up CHAP.
ESXi supports IPSec over IPv6. You cannot use IPSec over IPv4.
ESXi Passwords
ESXi password restrictions are determined by the Linux PAM module pam_passwdqc. See the
Linux manpage for pam_passwdqc and see ESXi Passwords and Account Lockout.
VMware by Broadcom 24
vSphere Security
If you forget the password for this user, search the VMware Knowledge Base system for
information on resetting this password. The reset requires additional privileges such as root
access to the vCenter Server system.
Passwords for other vsphere.local users, or users of the domain that you specified during
installation, must follow the restrictions that are set by the vCenter Single Sign-On password
policy and lockout policy. See Platform Services Controller Administration for details. These
passwords expire after 90 days by default. Administrators can change the expiration as part
of the password policy.
If you forget your vsphere.local password, an administrator user can reset the password
using the dir-cli command.
Other Users
Password restrictions, password expiration, and account lockout for all other users are
determined by the domain (identity source) to which the user can authenticate.
vCenter Single Sign-On supports one default identity source. Users can log in to the
corresponding domain with the vSphere Client with just their user names. If users want to log
in to a non-default domain, they can include the domain name, that is, specify user@domain
or domain\user. The domain password parameters apply to each domain.
When you deploy the vCenter Server Appliance, you specify these passwords.
n Password for the root user of the appliance Linux operating system.
You can change the root user password and perform other vCenter Server Appliance local user
management tasks from the appliance console. See vCenter Server Configuration.
This manual includes best practices for the different components of your vSphere infrastructure.
VMware by Broadcom 25
vSphere Security
This manual is only one of the sources you must use to ensure a secure environment.
VMware security resources, including security alerts and downloads, are available on the Web.
Topic Resource
VMware by Broadcom 26
vSphere Security
Topic Resource
VMware by Broadcom 27
vSphere Permissions and User
Management Tasks 2
Authentication and authorization govern access. vCenter Single Sign-On supports authentication,
which means it determines whether a user can log in to vSphere components at all. Each user
must also be authorized to view or manipulate vSphere objects.
vCenter Server allows fine-grained control over authorization with permissions and roles. When
you assign a permission to an object in the vCenter Server object hierarchy, you specify which
user or group has which privileges on that object. To specify the privileges, you use roles, which
are sets of privileges.
Initially, only the administrator user for the vCenter Single Sign-On domain is authorized to log in
to the vCenter Server system. The default domain is vsphere.local and the default administrator is
[email protected]. You can change the default domain during installation of vSphere.
1 Add an identity source in which users and groups are defined to vCenter Single Sign-On. See
the Platform Services Controller Administration documentation.
n Global Permissions
VMware by Broadcom 28
vSphere Security
Authorization Overview
vSphere allows privileged users to give other users permissions to perform tasks. You can use
global permissions, or you can use local vCenter Server permissions to authorize other users for
individual vCenter Server instances.
The following figure illustrates how global and local permissions work.
Global Permission
1
Root Object
In this figure:
1 You assign a global permission at the root object level with "Propagate to children" selected.
2 vCenter Server propagates the permissions to the vCenter Server 1 and vCenter Server 2
object hierarchies in the environment.
3 A local permission on the root folder on vCenter Server 2 overrides the global permission.
The permission model for vCenter Server systems relies on assigning permissions to objects
in the object hierarchy. Users get permissions in the following ways.
n From a specific permission for the user or from the groups that the user is a member of
n From a permission on the object or through the permission inheritance from a parent
object
VMware by Broadcom 29
vSphere Security
Each permission gives one user or group a set of privileges, that is, a role for a selected
object. You can use the vSphere Client to add permissions. For example, you can right-click
a virtual machine, select Add Permission, and complete the dialog box to assign a role to
a group of users. That role gives those users the corresponding privileges on the virtual
machine.
Global Permissions
Global permissions give a user or group privileges to view or manage all objects in each of
the inventory hierarchies of the solutions in the deployment. That is, global permissions are
applied to a global root object that spans solution inventory hierarchies. (Solutions include
vCenter Server, vRealize Orchestrator, and so on.) Global permissions also apply to global
objects such as tags and content libraries. For example, consider a deployment that consists
of two solutions, vCenter Server and vRealize Orchestrator. You can use global permissions
to assign a role to a group of users that has read-only privileges to all objects in both the
vCenter Server and vRealize Orchestrator object hierarchies.
Global permissions are replicated across the vCenter Single Sign-On domain (vsphere.local by
default). Global permissions do not provide authorization for services managed through the
vCenter Single Sign-On domain groups. See Global Permissions.
Members of a vsphere.local group can perform certain tasks. For example, you can perform
license management if you are a member of the LicenseService.Administrators group. See
the Platform Services Controller Administration documentation.
If you are managing a standalone ESXi host that is not managed by a vCenter Server
system, you can assign one of the predefined roles to users. See the vSphere Single Host
Management - VMware Host Client documentation.
For managed hosts, assign roles to the ESXi host object in the vCenter Server inventory.
Permissions
VMware by Broadcom 30
vSphere Security
Each object in the vCenter Server object hierarchy has associated permissions. Each
permission specifies for one group or user which privileges that group or user has on the
object.
On vCenter Server systems, you can assign privileges only to authenticated users or groups
of authenticated users. Users are authenticated through vCenter Single Sign-On. Users
and groups must be defined in the identity source that vCenter Single Sign-On uses to
authenticate. Define users and groups using the tools in your identity source, for example,
Active Directory.
Privileges
Privileges are fine-grained access controls. You can group those privileges into roles, which
you can then map to users or groups.
Roles
Roles are sets of privileges. Roles allow you to assign permissions on an object based on a
typical set of tasks that users perform. Default roles, such as Administrator, are predefined
on vCenter Server and cannot be changed. Other roles, such as Resource Pool Administrator,
are predefined sample roles. You can create custom roles either from scratch or by cloning
and modifying sample roles. See Create a Custom Role.
The following figure illustrates how a permission is constructed from privileges and roles, and
assigned to a user or group for a vSphere object.
Permission
Privilege
Privilege
VMware by Broadcom 31
vSphere Security
1 Select the object to which you want to apply the permission in the vCenter Server object
hierarchy.
2 Select the group or user that should have privileges on the object.
3 Select individual privileges or a role, that is a set of privileges, that the group or user should
have on the object.
By default, Propagate to children is not selected. You must select the checkbox for the group
or user to have the selected role on the selected object and its child objects.
vCenter Server offers predefined roles, which combine frequently used privilege sets. You can
also create custom roles by combining a set of roles.
Permissions must often be defined on both a source object and a destination object. For
example, if you move a virtual machine, you need privileges on that virtual machine, but also
privileges on the destination data center.
All privileges and the objects to which you can apply the Chapter 13 Defined Privileges
privileges
Sets of privileges that are required on different objects for Required Privileges for Common Tasks
different tasks.
The permissions model for standalone ESXi hosts is simpler. See Assigning Privileges for ESXi
Hosts.
Similarly, if user Smith is removed from the domain, all permissions associated with that user are
removed when the next validation occurs. If a new user Smith is added to the domain before
the next validation occurs, the new user Smith replaces the old user Smith in permissions on any
object.
VMware by Broadcom 32
vSphere Security
universally applied. Permissions defined for a child object always override the permissions that
are propagated from parent objects.
The following figure illustrates the inventory hierarchy and the paths by which permissions can
propagate.
Note Global permissions support assigning privileges across solutions from a global root object.
See Global Permissions.
vCenter Server
content library
(vCenter Server instance level)
data center
folder
data center
network storage
VM folder host folder folder folder
standard
template host VDS datastore
switch
vApp
vApp
virtual
machine
resource
pool
virtual
machine
VMware by Broadcom 33
vSphere Security
n You cannot set direct permissions on the VM, host, network, and storage folders. That is,
these folders act as containers, and as such are not visible to users.
Most inventory objects inherit permissions from a single parent object in the hierarchy. For
example, a datastore inherits permissions from either its parent datastore folder or parent data
center. Virtual machines inherit permissions from both the parent virtual machine folder and the
parent host, cluster, or resource pool simultaneously.
For example, you can set permissions for a distributed switch and its associated distributed port
groups, by setting permissions on a parent object, such as a folder or data center. You must also
select the option to propagate these permissions to child objects.
Managed entities
Managed entities refer to the following vSphere objects. Managed entities offer specific
operations that vary depending on the entity type. Privileged users can define permissions on
managed entities. See the vSphere API documentation for more information about vSphere
objects, properties, and methods.
n Clusters
n Data centers
n Datastores
n Datastore clusters
n Folders
n Hosts
n Resource pools
n Templates
n Virtual machines
n vSphere vApps
Global entities
You cannot modify permissions on entities that derive permissions from the root vCenter
Server system.
n Custom fields
n Licenses
VMware by Broadcom 34
vSphere Security
n Roles
n Statistics intervals
n Sessions
A child object inherits the permissions of its parent if the parent’s propagate property is set to
true. A permission that is set directly on a child object overrides the permission in the parent
object. See Example 2: Child Permissions Overriding Parent Permissions.
If multiple group roles are defined on the same object, and a user belongs to two or more of
those groups, two situations are possible:
n No permission for the user is defined directly on the object. In that case, the user gets the
union of the permissions that the groups have on the object.
n A permission for the user is defined directly on the object. In that case, the permissions for
the user take precedence over all group permissions.
In this example, two permissions are assigned on the same object for two different groups.
User 1, who belongs to both the PowerOnVMGroup and the SnapShotGroup, logs in. User 1 can
both power on and take snapshots of both VM A and VM B.
VMware by Broadcom 35
vSphere Security
PowerOnVMGroup + PowerOnVMRole
VM Folder
SnapShotGroup + SnapShotRole
VM B
In this example, permissions are defined on two different objects for two different groups.
User 1, who belongs to both the PowerOnVMGroup and the SnapShotGroup, logs in. Because the
SnapShotRole is assigned at a lower point in the hierarchy than the PowerOnVMRole, it overrides
PowerOnVMRole on VM B. User 1 can power on VM A, but not take snapshots. User 1 can take
snapshots of VM B, but not power it on.
VMware by Broadcom 36
vSphere Security
In this example, permissions are defined on the same object. One permission associates a group
with a role, the other permission associates an individual user with a role. The user is a member
of the group.
User 1, who belongs to PowerOnVMGroup, logs in. The NoAccess role granted to User 1 on VM
Folder overrides the role assigned to the group. User 1 has no access to VM Folder or VMs A and
B. VMs A and B are not visible in the hierarchy to User 1.
PowerOnVMGroup + PowerOnVMRole
VM Folder
User 1 + no access
VM B
By assigning a different role to a group of users on different objects, you control the tasks
that those users can perform in your vSphere environment. For example, to allow a group to
configure memory for the host, select that host and add a permission that grants a role to that
group that includes the Host.Configuration.Memory Configuration privilege.
For conceptual information about permissions, see the discussion in Understanding the Object-
Level Permission Model.
VMware by Broadcom 37
vSphere Security
You can assign permissions to objects at different levels of the hierarchy, for example, you
can assign permissions to a host object or to a folder object that includes all host objects. See
Hierarchical Inheritance of Permissions. You can also assign permissions to a global root object to
apply the permissions to all object in all solutions. See Global Permissions.
When you assign permissions, user and group names must match Active Directory precisely,
including case. If you upgraded from earlier versions of vSphere, check for case inconsistencies if
you experience problems with groups.
Prerequisites
On the object whose permissions you want to modify, you must have a role that includes the
Permissions.Modify permission privilege.
Procedure
1 Browse to the object for which you want to assign permissions in the vSphere Client object
navigator.
4 Select the user or group that will have the privileges defined by the selected role.
a From the User drop-down menu, select the domain for the user or group.
6 (Optional) To propagate the permissions, select the Propagate to children check box.
The role is applied to the selected object and propagates to the child objects.
7 Click OK .
VMware by Broadcom 38
vSphere Security
Procedure
Task Steps
For vCenter Server versions before vCenter Server 5.0, these settings apply to an Active
Directory associated with vCenter Server. For vCenter Server 5.0 and later, these settings apply
to vCenter Single Sign-On identity sources.
Note This procedure applies only to vCenter Server user lists. You cannot search ESXi user lists
in the same way.
Procedure
1 Browse to the vCenter Server system in the vSphere Client object navigator.
Option Description
User directory timeout Timeout interval, in seconds, for connecting to the Active Directory server.
This value specifies the maximum amount of time vCenter Server allows a
search to run on the selected domain. Searching large domains can take a
long time.
Query limit Toggle on to set a maximum number of users and groups that vCenter
Server displays.
VMware by Broadcom 39
vSphere Security
Option Description
Query limit size Maximum number of users and groups from the selected domain that
vCenter Server displays in the Select Users or Groups dialog box. If you
enter 0 (zero), all users and groups appear.
Validation Period Specifies how often vCenter Server validates permissions, in minutes.
Global Permissions
Global permissions are applied to a global root object that spans solutions. In an on-premises
SDDC, global permissions might span both vCenter Server and vRealize Orchestrator. But for any
vSphere SDDC, global permissions apply to global objects such as tags and content libraries.
You can assign global permissions to users or groups, and decide on the role for each user or
group. The role determines the set of privileges that the user or group has for all objects in the
hierarchy. You can assign a predefined role or create custom roles. See Using Roles to Assign
Privileges.
You usually apply a permission to a vCenter Server inventory object such as a virtual
machine. When you do, you specify that a user or group has a role (set of privileges) on
the object.
Global permissions
Global permissions give a user or group privileges to view or manage all objects in each of
the inventory hierarchies in your deployment. Global permissions also apply to global objects
such as tags and content libraries. See Permissions on Tag Objects.
If you assign a global permission and do not select Propagate, the users or groups associated
with this permission do not have access to the objects in the hierarchy. They only have
access to some global functionality such as creating roles.
Important Use global permissions with care. Verify that you really want to assign permissions to
all objects in all inventory hierarchies.
Important Use global permissions with care. Verify that you really want to assign permissions to
all objects in all inventory hierarchies.
VMware by Broadcom 40
vSphere Security
Prerequisites
To perform this task, you must have Permissions.Modify permission privileges on the root object
for all inventory hierarchies.
Procedure
2 Select Administration and click Global Permissions in the Access Control area.
4 Select the user or group that will have the privileges defined by the selected role.
a From the User drop-down menu, select the domain for the user or group.
6 Decide whether to propagate the permissions by selecting the Propagate to children check
box.
If you assign a global permission and do not select Propagate to children, the users or
groups associated with this permission do not have access to the objects in the hierarchy.
They only have access to some global functionality such as creating roles.
7 Click OK.
For example, if you grant the Assign vSphere Tag privilege to user Dana on host TPA, that
permission does not affect whether Dana can assign tags on host TPA. Dana must have the
Assign vSphere Tag privilege at the top level, that is, a global permission, or must have the
privilege for the tag object.
VMware by Broadcom 41
vSphere Security
Table 2-1. How Global Permissions and Tag Object Permissions Affect What Users Can Do
vCenter Server Object-
Global Permission Tag-Level Permission Level Permission Effective Permission
No tagging privileges Dana has Assign or Dana has Delete vSphere Dana has Assign or
assigned. Unassign vSphere Tag Tag privileges on ESXi host Unassign vSphere Tag
privileges for the tag. TPA. privileges for the tag.
Dana has Assign or No privileges assigned for Dana has Delete vSphere Dana has Assign or
Unassign vSphere Tag the tag. Tag privileges on ESXi host Unassign vSphere Tag
privileges. TPA. global privileges. That
includes privileges at the
tag level.
No tagging privileges No privileges assigned for Dana has Assign or Dana does not have
assigned. the tag. Unassign vSphere Tag tagging privileges on any
privileges on ESXi host object, including host TPA.
TPA.
For example, assume that you assign the Delete vSphere Tag privilege to user Robin at the top
level by using global permissions. For the tag Production, you do not assign the Delete vSphere
Tag privilege to Robin. In that case, Robin has the privilege for the tag Production because Robin
has the global permission, which propagates from the top level. You cannot restrict privileges
unless you modify the global permission.
Robin has Delete vSphere Tag Robin does not have Delete Robin has Delete vSphere Tag privileges.
privileges vSphere Tag privileges for the
tag.
No tagging privileges assigned Robin does not have Robin does not have Delete vSphere Tag
Delete vSphere Tag privileges privileges
assigned for the tag.
Note This behavior is different from how vCenter Server privileges are inherited. In vCenter
Server, permissions defined for a child object always override the permissions that are
propagated from parent objects.
VMware by Broadcom 42
vSphere Security
Lee has Assign or Unassign Lee has Delete vSphere Tag Lee has the Assign vSphere Tag privilege and
vSphere Tag privilege. privilege. the Delete vSphere Tag privilege for the tag.
No tagging privileges assigned. Lee has Delete vSphere Tag Lee has the Delete vSphere Tag privilege for the
privilege assigned for the tag. tag.
When you assign permissions, you pair a user or group with a role and associate that pairing with
an inventory object. A single user or group can have different roles for different objects in the
inventory.
For example, assume that you have two resource pools in your inventory, Pool A and Pool B. You
can assign group Sales the Virtual Machine User role on Pool A, and the Read Only role on Pool
B. With these assignments, the users in group Sales can turn on virtual machines in Pool A, but
can only view virtual machines in Pool B.
System roles
System roles are permanent. You cannot edit the privileges associated with these roles.
Sample roles
VMware provides sample roles for certain frequently performed combination of tasks. You
can clone, modify, or remove these roles.
Note To avoid losing the predefined settings in a sample role, clone the role first and make
modifications to the clone. You cannot reset the sample to its default settings.
Users can schedule tasks only if they have a role that includes privileges to perform that task at
the time the task is created.
Note Changes to roles and privileges take effect immediately, even if the users involved are
logged in. The exception is searches, where changes take effect after the user has logged out
and logged back in.
VMware by Broadcom 43
vSphere Security
Create custom roles by using the role-editing facilities in the vSphere Client to create privilege
sets that match your needs.
You can create custom roles for individual hosts by using a CLI or the VMware Host Client.
See the vSphere Single Host Management - VMware Host Client documentation. Custom host
roles are not accessible from vCenter Server.
If you manage ESXi hosts through vCenter Server, do not maintain custom roles in both the
host and vCenter Server. Define roles at the vCenter Server level.
When you manage a host using vCenter Server, the permissions associated with that host are
created through vCenter Server and stored on vCenter Server. If you connect directly to a host,
only the roles that are created directly on the host are available.
Note When you add a custom role and do not assign any privileges to it, the role is created
as a Read Only role with three system-defined privileges: System.Anonymous, System.View, and
System.Read. These privileges are not visible in the vSphere Client but are used to read certain
properties of some managed objects. All the predefined roles in vCenter Server contain these
three system-defined privileges. See the vSphere Web Services API documentation for more
information.
You can create or edit a role on a vCenter Server system that is part of the same vCenter
Single Sign-On domain as other vCenter Server systems. The VMware Directory Service (vmdir)
propagates the role changes that you make to all other vCenter Server systems in the group.
Assignments of roles to specific users and objects are not shared across vCenter Server systems.
Prerequisites
Procedure
VMware by Broadcom 44
vSphere Security
Option Description
To create the role by cloning Select a role, and click the Clone role action icon.
Note When creating a cloned role, you cannot change privileges. To change privileges,
select the cloned role after it is created and click the Edit role action icon.
6 Click Finish.
What to do next
You can now create permissions by selecting an object and assigning the role to a user or group
for that object.
vCenter Server provides a few default roles. You cannot change the privileges associated with
the default roles. The default roles are organized as a hierarchy. Each role inherits the privileges
of the previous role. For example, the Administrator role inherits the privileges of the Read Only
role.
The vCenter Server role hierarchy also includes several sample roles. You can clone a sample role
to create a similar role.
If you create a role, it does not inherit privileges from any of the system roles.
Administrator Role
Users with the Administrator role for an object are allowed to view and perform all actions
on the object. This role also includes all privileges of the Read Only role. If you have the
Administrator role on an object, you can assign privileges to individual users and groups.
If you are acting in the Administrator role in vCenter Server, you can assign privileges to users
and groups in the default vCenter Single Sign-On identity source. See the Platform Services
Controller Administration documentation for supported identity services.
VMware by Broadcom 45
vSphere Security
By default, the [email protected] user has the Administrator role on both vCenter
Single Sign-On and vCenter Server after installation. That user can then associate other users
with the Administrator role on vCenter Server.
Users with the Read Only role for an object are allowed to view the state of the object and
details about the object. For example, users with this role can view virtual machine, host, and
resource pool attributes, but cannot view the remote console for a host. All actions through
the menus and toolbars are disallowed.
No Access Role
Users with the No Access role for an object cannot view or change the object in any way.
New users and groups are assigned this role by default. You can change the role on an
object-by-object basis.
Best practice is to create a user at the root level and assign the Administrator role to that user.
After creating a named user with Administrator privileges, you can remove the root user from
any permissions or change its role to No Access.
Follow these best practices when configuring roles and permissions in your vCenter Server
environment:
n Grant permissions only on the objects where they are needed, and assign privileges only to
users or groups that must have them. Use the minimum number of permissions to make it
easier to understand and manage your permissions structure.
n If you assign a restrictive role to a group, check that the group does not contain the
Administrator user or other users with administrative privileges. Otherwise, you might
unintentionally restrict administrators' privileges in the parts of the inventory hierarchy where
you have assigned that group the restrictive role.
n Use folders to group objects. For example, to grant modify permission on one set of hosts
and view permission on another set of hosts, place each set of hosts in a folder.
n Use caution when adding a permission to the root vCenter Server objects. Users with
privileges at the root level have access to global data on vCenter Server, such as roles,
custom attributes, vCenter Server settings.
VMware by Broadcom 46
vSphere Security
n Use the No Access role to mask specific areas of the hierarchy. The No Access role restricts
access for the users or groups with that role.
n To all vCenter Server systems that are linked to the same Platform Services Controller.
n To Platform Services Controller instances in the same vCenter Single Sign-On domain.
n License propagation happens even if the user does not have privileges on all vCenter Server
systems.
The following table lists common tasks that require more than one privilege. You can add
permissions to inventory objects by pairing a user with one of the predefined roles or with
multiple privileges. If you expect that you assign a set of privileges multiple times, create custom
roles.
Refer to the vSphere Web Services API Reference documentation to learn how operations in
the vSphere Client user interface map to API calls, and what privileges are required to perform
operations. For example, the API documentation for the AddHost_Task(addHost) method
specifies that the Host.Inventory.AddHostToCluster privilege is required to add a host to a
cluster.
If the task that you want to perform is not in this table, the following rules explain where you
must assign permissions to allow particular operations:
n Any operation that consumes storage space requires the Datastore.Allocate Space privilege
on the target datastore, and the privilege to perform the operation itself. You must have
these privileges, for example, when creating a virtual disk or taking a snapshot.
n Moving an object in the inventory hierarchy requires appropriate privileges on the object
itself, the source parent object (such as a folder or cluster), and the destination parent object.
n Each host and cluster has its own implicit resource pool that contains all the resources of
that host or cluster. Deploying a virtual machine directly to a host or cluster requires the
Resource.Assign Virtual Machine to Resource Pool privilege.
VMware by Broadcom 47
vSphere Security
On the destination datastore or the folder that contains the datastore: Datastore
Datastore.Allocate space Consumer or
Administrator
On the network that the virtual machine will be assigned to: Network
Network.Assign network Consumer or
Administrator
Power on a virtual machine On the data center in which the virtual machine is deployed: Virtual Machine
Virtual machine .Interaction .Power On Power User or
Administrator
On the virtual machine or folder of virtual machines:
Virtual machine .Interaction .Power On
On the network that the virtual machine will be assigned to: Network
Network.Assign network Consumer or
Administrator
Take a virtual machine On the virtual machine or a folder of virtual machines: Virtual Machine
snapshot Virtual machine .Snapshot management. Create snapshot Power User or
Administrator
Move a virtual machine into On the virtual machine or folder of virtual machines: Administrator
a resource pool n Resource.Assign virtual machine to resource pool
n Virtual machine .Inventory.Move
VMware by Broadcom 48
vSphere Security
Install a guest operating On the virtual machine or folder of virtual machines: Virtual Machine
system on a virtual machine n Virtual machine.Interaction .Answer question Power User or
Administrator
n Virtual machine .Interaction .Console interaction
n Virtual machine .Interaction .Device connection
n Virtual machine .Interaction .Power Off
n Virtual machine .Interaction .Power On
n Virtual machine .Interaction .Reset
n Virtual machine .Interaction .Configure CD media (if installing
from a CD)
n Virtual machine .Interaction .Configure floppy media (if installing
from a floppy disk)
n Virtual machine .Interaction .VMware Tools install
On a datastore that contains the installation media ISO image: Virtual Machine
Datastore.Browse datastore (if installing from an ISO image on a Power User or
datastore) Administrator
Migrate a virtual machine On the virtual machine or folder of virtual machines: Resource Pool
with vMotion n Resource.Migrate powered on virtual machine Administrator
or
n Resource.Assign Virtual Machine to Resource Pool (if destination
Administrator
is a different resource pool from the source)
On the destination host, cluster, or resource pool (if different from the Resource Pool
source): Administrator
Resource.Assign virtual machine to resource pool or
Administrator
Cold migrate (relocate) a On the virtual machine or folder of virtual machines: Resource Pool
virtual machine n Resource.Migrate powered off virtual machine Administrator
or
n Resource.Assign virtual machine to resource pool (if destination
Administrator
is a different resource pool from the source)
On the destination host, cluster, or resource pool (if different from the Resource Pool
source): Administrator
Resource.Assign virtual machine to resource pool or
Administrator
Migrate a virtual machine On the virtual machine or folder of virtual machines: Resource Pool
with Storage vMotion Resource.Migrate powered on virtual machine Administrator
or
Administrator
VMware by Broadcom 49
vSphere Security
Encrypt a virtual machine Encryption tasks are possible only in environments that include Administrator
vCenter Server. In addition, the ESXi host must have encryption
mode enabled for most encryption tasks. The user who performs the
task must have the appropriate privileges. A set of Cryptographic
Operations privileges allows fine-grained control. See Prerequisites
and Required Privileges for Encryption Tasks.
VMware by Broadcom 50
Securing ESXi Hosts
3
The ESXi hypervisor architecture has many built-in security features such as CPU isolation,
memory isolation, and device isolation. You can configure additional features such as lockdown
mode, certificate replacement, and smart card authentication for enhanced security.
An ESXi host is also protected with a firewall. You can open ports for incoming and outgoing
traffic as needed, but should restrict access to services and ports. Using the ESXi lockdown
mode and limiting access to the ESXi Shell can further contribute to a more secure environment.
ESXi hosts participate in the certificate infrastructure. Hosts are provisioned with certificates that
are signed by the VMware Certificate Authority (VMCA) by default.
See the VMware white paper Security of the VMware vSphere Hypervisor for additional
information on ESXi security.
Note ESXi is not built upon the Linux kernel or a commodity Linux distribution. It uses its own
VMware specialized and proprietary kernel and software tools, delivered as a self-contained unit,
and does not contain applications and components from Linux distributions.
VMware by Broadcom 51
vSphere Security
n Only a limited number of firewall ports are open by default. You can explicitly open additional
firewall ports that are associated with specific services.
n ESXi runs only services that are essential to managing its functions. The distribution is limited
to the features required to run ESXi.
n By default, all ports that are not required for management access to the host are closed.
Open ports if you need additional services.
n By default, weak ciphers are disabled and communications from clients are secured by SSL.
The exact algorithms used for securing the channel depend on the SSL handshake. Default
certificates created on ESXi use PKCS#1 SHA-256 with RSA encryption as the signature
algorithm.
n A Tomcat Web service is used internally by ESXi to support access by Web clients. The
service has been modified to run only functions that a Web client requires for administration
and monitoring. As a result, ESXi is not vulnerable to the Tomcat security issues reported in
broader use.
n VMware monitors all security alerts that can affect ESXi security and issues a security patch if
needed.
n Insecure services such as FTP and Telnet are not installed, and the ports for these services
are closed by default. Because more secure services such as SSH and SFTP are easily
available, avoid using these insecure services and use their safer alternatives. For example,
use Telnet with SSL to access virtual serial ports if SSH is unavailable and you must use
Telnet.
If you must use insecure services and have implemented sufficient protection for the host,
you can explicitly open ports to support them.
n Consider using UEFI Secure Boot for your ESXi system. See UEFI Secure Boot for ESXi Hosts.
Limit access
VMware by Broadcom 52
vSphere Security
If you enable access to the Direct Console User Interface (DCUI) the ESXi Shell, or SSH,
enforce strict access security policies.
The ESXi Shell has privileged access to certain parts of the host. Provide only trusted users
with ESXi Shell login access.
Use the vSphere Client to administer ESXi hosts that are managed by a vCenter Server. Do
not access managed hosts directly with the VMware Host Client, and do not change managed
hosts from the DCUI.
If you manage hosts with a scripting interface or API, do not target the host directly. Instead,
target the vCenter Server system that manages the host and specify the host name.
Access the host from the DCUI or the ESXi Shell as the root user only for troubleshooting.
Use one of the GUI clients, or one of the VMware CLIs or APIs to administer your ESXi hosts.
If you use the ESXi Shell or SSH, limit the accounts that have access and set timeouts.
The host runs several third-party packages to support management interfaces or tasks that
you must perform. VMware only supports upgrades to these packages that come from a
VMware source. If you use a download or patch from another source, you might compromise
management interface security or functions. Check third-party vendor sites and the VMware
knowledge base for security alerts.
You can configure host profiles for a reference host from the vSphere Client and apply the
host profile to all hosts that share the characteristics of the reference host. You can also
use host profiles to monitor hosts for host configuration changes. See vSphere Host Profiles
documentation.
You can attach the host profile to a cluster to apply it to all hosts in the cluster.
Procedure
3 Apply the host profile of the reference host to other hosts or clusters.
VMware by Broadcom 53
vSphere Security
vSphere includes several scripting languages for host management. See vSphere Command-
Line Documentation and vSphere API/SDK Documentation for reference information and
programming tips, and VMware Communities for additional tips about scripted management. The
vSphere Administrator documentation focuses on using the vSphere Client for management.
vSphere PowerCLI
VMware vSphere PowerCLI is a Windows PowerShell interface to the vSphere API. vSphere
PowerCLI includes PowerShell cmdlets for administering vSphere components.
vSphere PowerCLI includes more than 200 cmdlets, a set of sample scripts, and a function
library for management and automation. See vSphere PowerCLI Documentation.
vCLI includes a set of commands for managing ESXi hosts and virtual machines. The installer,
which also installs the vSphere SDK for Perl, runs Windows or Linux systems and installs
ESXCLI commands, vicfg- commands, and a set of other vCLI commands. See vSphere
Command-Line Interface Documentation.
Starting with vSphere 6.0, you can also use one of the scripting interfaces to the vCloud Suite
SDK such as the vCloud Suite SDK for Python.
Procedure
For example, consider creating a role that has a set of privileges for managing hosts but no
privileges for managing virtual machines, storage, or networking. If the script you want to use
only extracts information, you can create a role with read-only privileges for the host.
2 From the vSphere Client, create a service account and assign it the custom role.
You can create multiple custom roles with different levels of access if you want access to
certain hosts to be fairly limited.
VMware by Broadcom 54
vSphere Security
For example, you can check or set the shell interactive timeout of a host as follows:
Language Commands
4 In large environments, create roles with different access privileges and group hosts into
folders according to the tasks that you want to perform. You can then run scripts over
different folders from different service accounts.
5 Verify that the changes happened after you run the command.
Note The default requirements for ESXi passwords can change from one release
to the next. You can check and change the default password restrictions using the
Security.PasswordQualityControl advanced option.
ESXi Passwords
ESXi enforces password requirements for access from the Direct Console User Interface, the ESXi
Shell, SSH, or the VMware Host Client.
n By default, you have to include a mix of characters from four character classes: lowercase
letters, uppercase letters, numbers, and special characters such as underscore or dash when
you create a password.
VMware by Broadcom 55
vSphere Security
Note An uppercase character that begins a password does not count toward the number of
character classes used. A number that ends a password does not count toward the number of
character classes used.
retry=3 min=disabled,disabled,disabled,7,7
With this setting, a user is prompted up to three times (retry=3) for a new password that is
not sufficiently strong or if the password was not entered correctly twice. Passwords with one
or two character classes and pass phrases are not allowed, because the first three items are
disabled. Passwords from three- and four-character classes require seven characters. See the
pam_passwdqc man page for details on other options, such as max, passphrase, and so on.
n Xqat3hi: Begins with an uppercase character, reducing the effective number of character
classes to two. The minimum number of required character classes is three.
n xQaTEh2: Ends with a number, reducing the effective number of character classes to two.
The minimum number of required character classes is three.
retry=3 min=disabled,disabled,16,7,7
This example allows pass phrases of at least 16 characters and at least three words, separated by
spaces.
For legacy hosts, changing the /etc/pamd/passwd file is still supported, but changing the file
is deprecated for future releases. Use the Security.PasswordQualityControl advanced option
instead.
VMware by Broadcom 56
vSphere Security
Note Not all possible combinations of password options have been tested. Perform additional
testing after you change the default password settings.
See the vCenter Server and Host Management documentation for information on setting ESXi
advanced options.
SSH Security
ESXi Shell and SSH interfaces are disabled by default. Keep these interfaces disabled unless you
are performing troubleshooting or support activities. For day-to-day activities, use the vSphere
Client, where activity is subject to role-based access control and modern access control methods.
VMware by Broadcom 57
vSphere Security
VMware does not support Version 1 SSH protocol and uses Version 2 protocol exclusively.
Version 2 eliminates certain security problems present in Version 1 and provides you with a
safe way to communicate with the management interface.
SSH supports only 256-bit and 128-bit AES ciphers for your connections.
These settings are designed to provide solid protection for the data you transmit to the
management interface through SSH. You cannot change these settings.
You can copy the SSH key to the host by using the vifs vSphere CLI command. See Getting
Started with vSphere Command-Line Interfaces for information on installing and using the
vSphere CLI command set. You can also use HTTPS PUT to copy the SSK key to the host.
Instead of generating the keys externally and uploading them, you can create the keys
on the ESXi host and download them. See the VMware knowledge base article at http://
kb.vmware.com/kb/1002866.
Enabling SSH and adding SSH keys to the host has inherent risks. Weigh the potential risk of
exposing a user name and password against the risk of intrusion by a user who has a trusted key.
Note For ESXi 5.0 and earlier, a user with an SSH key can access the host even when the host is
in lockdown mode. Starting with ESXi 5.1, a user with an SSH key can no longer access a host that
is in lockdown mode.
Note Because authorized keys allow SSH access without requiring user authentication, consider
carefully whether you want to use SSH keys in your environment.
Authorized keys allow you to authenticate remote access to a host. When users or scripts try
to access a host with SSH, the key provides authentication without a password. With authorized
keys, you can automate authentication, which is useful when you write scripts to perform routine
tasks.
n RSA key
VMware by Broadcom 58
vSphere Security
Starting with the vSphere 6.0 Update 2 release, DSS/DSA keys are no longer supported.
Important Do not modify the /etc/ssh/sshd_config file. If you do, you make a change that
the host daemon (hostd) knows nothing about.
Procedure
u At the command line or an administration server, use the vifs command to upload the SSH
key to an appropriate location on the ESXi host.
Authorized keys allow you to authenticate remote access to a host. When users or scripts try
to access a host with SSH, the key provides authentication without a password. With authorized
keys you can automate authentication, which is useful when you write scripts to perform routine
tasks.
You can upload the following types of SSH keys to a host using HTTPS PUT:
n DSA key
n RSA key
Procedure
VMware by Broadcom 59
vSphere Security
Use PCI or PCIe passthrough to a virtual machine only if a trusted entity owns and administers
the virtual machine. You must be sure that this entity does not to attempt to crash or exploit the
host from the virtual machine.
n The guest OS might generate an unrecoverable PCI or PCIe error. Such an error does not
corrupt data, but can crash the ESXi host. Such errors might occur because of bugs or
incompatibilities in the hardware devices that are being passed through. Other reasons for
errors include problems with drivers in the guest OS.
n The guest OS might generate a Direct Memory Access (DMA) operation that causes an
IOMMU page fault on the ESXi host. This operation might be the result of a DMA operation
that targets an address outside the virtual machine memory. On some machines, host
firmware configures IOMMU faults to report a fatal error through a non-maskable interrupt
(NMI). This fatal error causes the ESXi host to crash. This problem might occur because of
problems with the drivers in the guest OS.
n If the operating system on the ESXi host is not using interrupt remapping, the guest OS might
inject a spurious interrupt into the ESXi host on any vector. ESXi currently uses interrupt
remapping on Intel platforms where it is available. Interrupt mapping is part of the Intel VT-d
feature set. ESXi does not use interrupt mapping on AMD platforms. A false interrupt can
result in a crash of the ESXi host. Other ways to exploit these false interrupts might exist in
theory.
VMware by Broadcom 60
vSphere Security
because it is possible to change the host configuration by using the MOB. Use the MOB only for
debugging, and ensure that it is disabled in production systems.
Starting with vSphere 6.0, the MOB is disabled by default. However, for certain tasks, for
example when extracting the old certificate from a system, you have to use the MOB. You can
enable and disable the MOB as follows.
Procedure
2 Click Configure.
Your ESXi host uses several networks. Use appropriate security measures for each network, and
isolate traffic for specific applications and functions. For example, ensure that VMware vSphere®
vMotion® traffic does not travel over networks where virtual machines are located. Isolation
prevents snooping. Having separate networks is also recommended for performance reasons.
n vSphere infrastructure networks are used for features such as vSphere vMotion, VMware
vSphere Fault Tolerance, VMware vSAN, and storage. Isolate these networks for their specific
functions. It is often not necessary to route these networks outside a single physical server
rack.
n A management network isolates client traffic, command-line interface (CLI) or API traffic,
and third-party software traffic from other traffic. This network should be accessible only by
system, network, and security administrators. Use jump box or virtual private network (VPN)
to secure access to the management network. Strictly control access within this network.
n Virtual machine traffic can flow over one or many networks. You can enhance the isolation of
virtual machines by using virtual firewall solutions that set firewall rules at the virtual network
controller. These settings travel with a virtual machine as it migrates from host to host within
your vSphere environment.
VMware by Broadcom 61
vSphere Security
Note Restart the host process after making any changes to host directories or authentication
mechanisms.
n Do not set up certificates that use a password or pass phrases. ESXi does not support Web
proxies that use passwords or pass phrases, also known as encrypted keys. If you set up a
Web proxy that requires a password or pass phrase, ESXi processes cannot start correctly.
n To support encryption for user names, passwords, and packets, SSL is enabled by default
for vSphere Web Services SDK connections. If you want to configure these connections so
that they do not encrypt transmissions, disable SSL for your vSphere Web Services SDK
connection by switching the connection from HTTPS to HTTP.
Consider disabling SSL only if you created a fully trusted environment for these clients, where
firewalls are in place and transmissions to and from the host are fully isolated. Disabling SSL
can improve performance, because you avoid the overhead required to perform encryption.
n To protect against misuse of ESXi services, most internal ESXi services are accessible only
through port 443, the port used for HTTPS transmission. Port 443 acts as a reverse proxy for
ESXi. You can see a list of services on ESXi through an HTTP welcome page, but you cannot
directly access the Storage Adapters services without proper authorization.
You can change this configuration so that individual services are directly accessible through
HTTP connections. Do not make this change unless you are using ESXi in a fully trusted
environment.
Networking Security
Secure your network just as you secure the network for any other PXE-based deployment
method. vSphere Auto Deploy transfers data over SSL to prevent casual interference and
snooping. However, the authenticity of the client or of the Auto Deploy server is not checked
during a PXE boot.
You can greatly reduce the security risk of Auto Deploy by completely isolating the network
where Auto Deploy is used.
VMware by Broadcom 62
vSphere Security
n The VIB packages that the image profile consists of are always included in the boot image.
n The host profile and host customization are included in the boot image if Auto Deploy rules
are set up to provision the host with a host profile or host customization.
n The administrator (root) password and user passwords that are included with host profile
and host customization are hashed with SHA-512.
n Any other passwords associated with profiles are in the clear. If you set up Active
Directory by using host profiles, the passwords are not protected.
Use the vSphere Authentication Proxy to avoid exposing the Active Directory passwords.
If you set up Active Directory using host profiles, the passwords are not protected.
n The host's public and private SSL key and certificate are included in the boot image.
CIM is an open standard that defines a framework for agent-less, standards-based monitoring
of hardware resources for ESXi hosts. This framework consists of a CIM object manager, often
called a CIM broker, and a set of CIM providers.
CIM providers support management access to device drivers and underlying hardware. Hardware
vendors, including server manufacturers and hardware device vendors, can write providers that
monitor and manage their devices. VMware writes providers that monitor server hardware, ESXi
storage infrastructure, and virtualization-specific resources. These providers run inside the ESXi
host and are lightweight and focused on specific management tasks. The CIM broker takes
information from all CIM providers and presents it to the outside world using standard APIs. The
most common API is WS-MAN.
Do not provide root credentials to remote applications that access the CIM interface. Instead,
create a less-privileged vSphere user account for these applications and use the VIM API ticket
function to issue a sessionId (called a "ticket") to this less-privileged user account to authenticate
to CIM. If the account has been granted permission to obtain CIM tickets, the VIM API can then
supply the ticket to CIM. These tickets are then supplied as both the user ID and password to any
CIM-XML API call. See the AcquireCimServicesTicket() method for more information.
The CIM service starts when you install a third-party CIM VIB, for example, when you run the
esxcli software vib install -n VIBname command.
VMware by Broadcom 63
vSphere Security
If you must enable the CIM service manually, run the following command:
If necessary, you can disable wsman (WSManagement Service) so that only the CIM service is
running:
For more information about ESXCLI commands, see vSphere Command-Line Interface
Documentation. For more information about enabling the CIM service, see the VMware
knowledge base article at https://kb.vmware.com/kb/1025757.
Procedure
See the topic on adding vCenter Single Sign-On users in Platform Services Controller
Administration Guide. The required vSphere privilege for the user account is
Host.CIM.Interaction.
2 Use the vSphere API SDK of your choice to authenticate the user account to vCenter Server.
Then call AcquireCimServicesTicket() to return a ticket to authenticate with ESXi as an
administrator-level account using CIM-XML port 5989 or WS-Man port 433 APIs.
You can view and manage ESXi certificates from the vSphere Client and by using the
vim.CertificateManager API in the vSphere Web Services SDK. You cannot view or manage
ESXi certificates by using certificate management CLIs that are available for managing vCenter
Server certificates.
VMware by Broadcom 64
vSphere Security
In vSphere 5.5 and earlier, the TLS/SSL endpoints are secured only by a combination of user
name, password, and thumbprint. Users can replace the corresponding self-signed certificates
with their own certificates. See the vSphere 5.5 Documentation Center.
In vSphere 6.0 and later, vCenter Server supports the following certificate modes for ESXi hosts.
VMware Certificate Authority (default) Use this mode if VMCA provisions all ESXi hosts, either as
the top-level CA or as an intermediate CA.
By default, VMCA provisions ESXi hosts with certificates.
In this mode, you can refresh and renew certificates from
the vSphere Client.
Custom Certificate Authority Use this mode if you want to use only custom certificates
that are signed by a third-party or enterprise CA.
In this mode, you are responsible for managing the
certificates. You cannot refresh and renew certificates
from the vSphere Client.
Thumbprint Mode vSphere 5.5 used thumbprint mode, and this mode is
still available as a fallback option for vSphere 6.x. In
this mode, vCenter Server checks that the certificate is
formatted correctly, but does not check the validity of the
certificate. Even expired certificates are accepted.
Do not use this mode unless you encounter problems that
you cannot resolve with one of the other two modes.
Some vCenter 6.x and later services might not work
correctly in thumbprint mode.
Certificate Expiration
Starting with vSphere 6.0, you can view information about certificate expiration for certificates
that are signed by VMCA or a third-party CA in the vSphere Client. You can view the information
for all hosts that are managed by a vCenter Server or for individual hosts. A yellow alarm is raised
if the certificate is in the Expiring Shortly state (less than eight months). A red alarm is raised if
the certificate is in the Expiration Imminent state (less than two months).
VMware by Broadcom 65
vSphere Security
The process is similar for hosts that are provisioned with Auto Deploy. However, because those
hosts do not store any state, the signed certificate is stored by the Auto Deploy server in its local
certificate store. The certificate is reused during subsequent boots of the ESXi hosts. An Auto
Deploy server is part of any embedded deployment or vCenter Server system.
If VMCA is not available when an Auto Deploy host boots the first time, the host first attempts to
connect. If the host cannot connect, it cycles through shutdown and reboot until VMCA becomes
available and the host can be provisioned with a signed certificate.
Table 3-2. When Host Name or IP Address Changes Require Manual Intervention
Host added to vCenter Server
using... Host name changes IP address changes
VMware by Broadcom 66
vSphere Security
Note You cannot provision legacy hosts with VMCA certificates. You must upgrade those
hosts to ESXi 6.5 or later.
If your host is provisioned with custom certificates, usually third-party CA-signed certificates,
those certificates remain in place during upgrade. Change the certificate mode to Custom to
ensure that the certificates are not replaced accidentally during a certificate refresh later.
Note If your environment is in VMCA mode, and you refresh the certificates from the
vSphere Client, any existing certificates are replaced with certificates that are signed by
VMCA.
Going forward, vCenter Server monitors the certificates and displays information, for
example, about certificate expiration, in the vSphere Client.
Hosts that are being provisioned by Auto Deploy are always assigned new certificates when
they are first booted with ESXi 6.5 or later software. When you upgrade a host that is
provisioned by Auto Deploy, the Auto Deploy server generates a certificate signing request
(CSR) for the host and submits it to VMCA. VMCA stores the signed certificate for the host.
When the Auto Deploy server provisions the host, it retrieves the certificate from VMCA and
includes it as part of the provisioning process.
In vSphere 6.0 and later, vCenter Server supports the following certificate modes for ESXi hosts.
VMware by Broadcom 67
vSphere Security
VMware Certificate By default, the VMware Certificate Authority is used as the CA for ESXi host certificates. VMCA
Authority (default) is the root CA by default, but it can be set up as the intermediary CA to another CA. In this
mode, users can manage certificates from the vSphere Client. Also used if VMCA is a subordinate
certificate.
Custom Certificate Some customers might prefer to manage their own external certificate authority. In this mode,
Authority customers are responsible for managing the certificates and cannot manage them from the
vSphere Client.
Thumbprint Mode vSphere 5.5 used thumbprint mode, and this mode is still available as a fallback option for vSphere
6.0. Do not use this mode unless you encounter problems with one of the other two modes that
you cannot resolve. Some vCenter 6.0 and later services might not work correctly in thumbprint
mode.
2 Place the host or hosts into maintenance mode and disconnect them from vCenter Server.
4 Deploy the custom CA certificates to each host and restart services on that host.
2 On the vCenter Server system, remove the third-party CA's root certificate from VECS.
Note Any other workflow for this mode switch might result in unpredictable behavior.
VMware by Broadcom 68
vSphere Security
Note Any other workflow for this mode switch might result in unpredictable behavior.
2 Add the custom CA root certificate to TRUSTED_ROOTS store on VECS on the vCenter
Server system. See Update the vCenter Server TRUSTED_ROOTS Store (Custom Certificates).
You can change many of the default settings using the vSphere Client. Consider changing the
organization, and location information. See Change Certificate Default Settings.
VMware by Broadcom 69
vSphere Security
VMware by Broadcom 70
vSphere Security
See ESXi Certificate Default Settings for a list of default settings. Some of the defaults cannot be
changed.
Procedure
1 In the vSphere Client, select the vCenter Server system that manages the hosts.
4 Click the Filter icon in the Name column, and in the Filter box, enter vpxd.certmgmt to
display only certificate management parameters.
5 Change the value of the existing parameters to follow your company policy and click Save.
The next time you add a host to vCenter Server, the new settings are used in the CSR that
vCenter Server sends to VMCA and in the certificate that is assigned to the host.
What to do next
Changes to certificate metadata only affect new certificates. If you want to change the
certificates of hosts that are already managed by the vCenter Server system, you can disconnect
and reconnect the hosts or renew the certificates.
You can view certificate status information for hosts that are using VMCA mode and for hosts
that are using custom mode in the vSphere Client. You cannot view certificate status information
for hosts in thumbprint mode.
Procedure
2 Browse the inventory list and select the vCenter Server instance.
By default, the Hosts display does not include the certificate status.
5 Select the Certificate Valid To check box, and scroll to the right if necessary.
VMware by Broadcom 71
vSphere Security
6 (Optional) Deselect other columns to make it easier to see what you are interested in.
What to do next
Renew the certificates that are about to expire. See Renew or Refresh ESXi Certificates.
Procedure
2 Click Configure.
You can examine the following information. This information is available only in the single-
host view.
Field Description
VMware by Broadcom 72
vSphere Security
Field Description
Good
Normal operation.
Expiring
Expiring shortly
Expiration imminent
Expired
You can renew your certificates when they are about to expire, or if you want to provision the
host with a new certificate for other reasons. If you do not renew the certificate before it expires,
disconnecting the host and reconnecting it causes vCenter Server to renew the certificate. The
act of re-adding the host to vCenter Server reestablishes trust, and enables vCenter Server to
unconditionally issue the renewed certificate.
By default, vCenter Server renews the certificates of a host with status Expired, Expiration
imminent, or Expiring shortly, each time the host is added to the inventory, or reconnected.
Prerequisites
n There is proper time synchronization between the vCenter Server system and the ESXi hosts.
n DNS resolution works between the vCenter Server system and the ESXi hosts.
n The vCenter Server system's MACHINE_SSL_CERT and Trusted_Root certificates are valid
and have not expired. See the VMware knowledge base article at https://kb.vmware.com/s/
article/2111411.
VMware by Broadcom 73
vSphere Security
Procedure
2 Click Configure.
You can view detailed information about the selected host's certificate.
Option Description
Renew Retrieves a fresh signed certificate for the host from VMCA.
Refresh CA Certificates Pushes all certificates in the TRUSTED_ROOTS store in the vCenter Server
VECS store to the host.
You can use the vCenter Server advanced settings to change to thumbprint mode or to custom
CA mode. Use thumbprint mode only as a fallback option.
Procedure
1 In the vSphere Client, select the vCenter Server system that manages the hosts.
4 Click the Filter icon in the Name column, and in the Filter box, enter vpxd.certmgmt to
display only certificate management parameters.
5 Change the value of vpxd.certmgmt.mode to custom if you intend to manage your own
certificates, and to thumbprint if you temporarily want to use thumbprint mode, and click
Save.
VMware by Broadcom 74
vSphere Security
By default, vSphere components use the VMCA-signed certificate and key that are created
during installation. If you accidentally delete the VMCA-signed certificate, remove the host from
its vCenter Server system, and add it back. When you add the host, vCenter Server requests a
new certificate from VMCA and provisions the host with it.
Replace VMCA-signed certificates with certificates from a trusted CA, either a commercial CA or
an organizational CA, if your company policy requires it.
The default certificates are in the same location as the vSphere 5.5 certificates. You can replace
the default certificates with trusted certificates in various ways.
After you replace the certificate, you have to update the TRUSTED_ROOTS store in VECS on the
vCenter Server system that manages the host to ensure that the vCenter Server and the ESXi
host have a trust relationship.
For detailed instructions about using CA-signed certificates for ESXi hosts, see Certificate Mode
Switch Workflows.
Note If you are replacing SSL certificates on an ESXi host that is part of a vSAN cluster, follow
the steps that are in the VMware knowledge base article at https://kb.vmware.com/s/article/
56441.
n Replace the Default Certificate and Key from the ESXi Shell
You can replace the default VMCA-signed ESXi certificates from the ESXi Shell.
VMware by Broadcom 75
vSphere Security
n PEM format. VMware supports PKCS8 and PKCS1 (RSA keys). When keys are added to VECS,
they are converted to PKCS8.
n x509 version 3
n For root certificates, the CA extension must be set to true, and the cert sign must be in the
list of requirements.
n CRT format
n Contains the following Key Usages: Digital Signature, Non Repudiation, Key Encipherment
n CN (and SubjectAltName) set to the host name (or IP address) that the ESXi host has in the
vCenter Server inventory.
For information about generating the CSR, see the VMware knowledge base article at https://
kb.vmware.com/s/article/2113926.
Replace the Default Certificate and Key from the ESXi Shell
You can replace the default VMCA-signed ESXi certificates from the ESXi Shell.
Prerequisites
n If you want to use third-party CA-signed certificates, generate the certificate request, send it
to the certificate authority, and store the certificates on each ESXi host.
n If necessary, enable the ESXi Shell or enable SSH traffic from the vSphere Client.
n All file transfers and other communications occur over a secure HTTPS session. The user who
is used to authenticate the session must have the privilege Host.Config.AdvancedConfig on
the host.
Procedure
1 Log in to the ESXi Shell, either directly from the DCUI or from an SSH client, as a user with
administrator privileges.
VMware by Broadcom 76
vSphere Security
2 In the directory /etc/vmware/ssl, rename the existing certificates using the following
commands.
mv rui.crt orig.rui.crt
mv rui.key orig.rui.key
Alternatively, you can put the host into maintenance mode, install the new certificate, use the
Direct Console User Interface (DCUI) to restart the management agents, and set the host to
exit maintenance mode.
What to do next
Update the vCenter Server TRUSTED_ROOTS store. See Update the vCenter Server
TRUSTED_ROOTS Store (Custom Certificates).
You run vifs as a vCLI command. See vSphere Command-Line Interface Reference.
Prerequisites
n If you want to use third-party CA-signed certificates, generate the certificate request, send it
to the certificate authority, and store the certificates on each ESXi host.
n If necessary, enable the ESXi Shell or enable SSH traffic from the vSphere Client.
n All file transfers and other communications occur over a secure HTTPS session. The user who
is used to authenticate the session must have the privilege Host.Config.AdvancedConfig on
the host.
Procedure
2 Generate a certificate request following the instructions from the certificate authority.
3 When you have the certificate, use the vifs command to upload the certificate to the
appropriate location on the host from an SSH connection to the host.
VMware by Broadcom 77
vSphere Security
Alternatively, you can put the host into maintenance mode, install the new certificate, use the
Direct Console User Interface (DCUI) to restart the management agents, and set the host to
exit maintenance mode.
What to do next
Update the vCenter Server TRUSTED_ROOTS store. See Update the vCenter Server
TRUSTED_ROOTS Store (Custom Certificates).
Prerequisites
n If you want to use third-party CA-signed certificates, generate the certificate request, send it
to the certificate authority, and store the certificates on each ESXi host.
n If necessary, enable the ESXi Shell or enable SSH traffic from the vSphere Client.
n All file transfers and other communications occur over a secure HTTPS session. The user who
is used to authenticate the session must have the privilege Host.Config.AdvancedConfig on
the host.
Procedure
Option Description
Certificates https://hostname/host/ssl_cert
Keys https://hostname/host/ssl_key
The location /host/ssl_cert and host/ssl_key link to the certificate files in /etc/
vmware/ssl.
Alternatively, you can put the host into maintenance mode, install the new certificate, use the
Direct Console User Interface (DCUI) to restart the management agents, and set the host to
exit maintenance mode.
VMware by Broadcom 78
vSphere Security
What to do next
Update the vCenter Server TRUSTED_ROOTS store. See Update the vCenter Server
TRUSTED_ROOTS Store (Custom Certificates).
Prerequisites
Note This step is not required if the vCenter Server system is also running with custom
certificates issued by the same CA as those installed on the ESXi hosts.
Procedure
1 Log in to the vCenter Server system that manages the ESXi hosts.
Log in to the Windows system on which you installed the software, or log in to the vCenter
Server Appliance shell.
2 To add the new certificates to the TRUSTED_ROOTS store, run dir-cli, for example:
Option Description
4 If your custom certificates are issued by an intermediate CA, you must also add the
intermediate CA to the TRUSTED_ROOTS store on the vCenter Server, for example:
What to do next
Set certificate mode to Custom. If certificate mode is VMCA, the default, and you perform a
certificate refresh, your custom certificates are replaced with VMCA-signed certificates. See
Change the Certificate Mode.
VMware by Broadcom 79
vSphere Security
Prerequisites
n Request a certificate from your CA. The certificate must meet these requirements.
n PEM format. VMware supports PKCS8 and PKCS1 (RSA keys). When keys are added to
VECS, they are converted to PKCS8.
n x509 version 3
n For root certificates, the CA extension must be set to true, and the cert sign must be in
the list of requirements.
n CRT format
n Contains the following Key Usages: Digital Signature, Non Repudiation, Key Encipherment
n CN (and SubjectAltName) set to the host name (or IP address) that the ESXi host has in
the vCenter Server inventory.
Procedure
VMware by Broadcom 80
vSphere Security
Tool Steps
vCenter Server Appliance a In a Web browser, go to the vCenter Server Appliance Management
Management Interface (VAMI) Interface, https://appliance-IP-address-or-FQDN:5480.
b Log in as root.
The default root password is the password that you set while deploying
the vCenter Server Appliance.
c Click Services, and click the VMware vSphere Authentication Proxy
service.
d Click Stop.
vSphere Web Client a Select Administration, and click System Configuration under
Deployment.
b Click Services and click the VMware vSphere Authentication Proxy
service.
c Click the red Stop the service icon.
3 On the system where the Auto Deploy service runs, replace rbd-ca.crt and rbd-ca.key
in /etc/vmware-rbd/ssl/ with your custom certificate and key files.
4 On the system where the Auto Deploy service runs, run the following commands to update
the TRUSTED_ROOTS store inside the VECS to use your new certificates.
Option Description
5 Create a castore.pem file that contains what is in the TRUSTED_ROOTS store and place the
file in the /etc/vmware-rbd/ssl/ directory.
6 Change the ESXi certificate mode for the vCenter Server system to custom.
7 Restart the vCenter Server service and start the Auto Deploy service.
VMware by Broadcom 81
vSphere Security
Results
The next time you provision a host that is set up to use Auto Deploy, the Auto Deploy server
generates a certificate. The Auto Deploy server uses the root certificate that you just added to
the TRUSTED_ROOTS store.
Note If you encounter problems with Auto Deploy after certificate replacement, see the
VMware knowledge base article at http://kb.vmware.com/kb/2000988.
The host certificate and key are located in /etc/vmware/ssl/rui.crt and /etc/vmware/ssl/
rui.key. When you replace a host certificate and key by using the vSphere Web Services SDK
vim.CertificateManager managed object, the previous key and certificate are appended to the
file /etc/vmware/ssl/rui.bak.
Note If you replace the certificate by using HTTP PUT, vifs, or from the ESXi Shell, the existing
certificates are not appended to the .bak file.
Procedure
#
# Host private key and certificate backup from 2014-06-20 08:02:49.961
#
-----BEGIN CERTIFICATE-----
previous cert
-----END CERTIFICATE-----
2 Copy the text starting with -----BEGIN PRIVATE KEY----- and ending with -----END PRIVATE
KEY----- into the /etc/vmware/ssl/rui.key file.
3 Copy the text between -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- into
the /etc/vmware/ssl/rui.crt file.
VMware by Broadcom 82
vSphere Security
Alternatively, you can put the host into maintenance mode and use the Direct Console User
Interface (DCUI) to restart the management agents, and set the host to exit maintenance
mode.
At installation time, the ESXi firewall is configured to block incoming and outgoing traffic, except
traffic for services that are enabled in the host's security profile.
As you open ports on the firewall, consider that unrestricted access to services running on an
ESXi host can expose a host to outside attacks and unauthorized access. Reduce the risk by
configuring the ESXi firewall to enable access only from authorized networks.
Note The firewall also allows Internet Control Message Protocol (ICMP) pings and
communication with DHCP and DNS (UDP only) clients.
n Use Configure > Firewall for each host in the vSphere Client. See Manage ESXi Firewall
Settings.
n Use ESXCLI commands from the command line or in scripts. See ESXi ESXCLI Firewall
Commands.
n Use a custom VIB if the port you want to open is not included in the security profile.
You create custom VIBs with the VIB Author tool available from VMware Labs. To
install the custom VIB, you have to change the acceptance level of the ESXi host to
CommunitySupported.
Note If you engage VMware Technical Support to investigate a problem on an ESXi host
with a CommunitySupported VIB installed, VMware Support might request you to uninstall
this VIB. Such a request is a troubleshooting step to determine if that VIB is related to the
problem being investigated.
VMware by Broadcom 83
vSphere Security
The behavior of the NFS Client rule set (nfsClient) is different from other rule sets. When the
NFS Client rule set is enabled, all outbound TCP ports are open for the destination hosts in the list
of allowed IP addresses. See NFS Client Firewall Behavior for more information.
Note If different services have overlapping port rules, enabling one service might implicitly
enable other services. You can specify which IP addresses are allowed to access each service on
the host to avoid this problem.
Procedure
Option Description
The display shows a list of active incoming and outgoing connections with the corresponding
firewall ports.
The display shows firewall rule sets, which include the name of the rule and the associated
information.
4 Select the rule sets to enable, or deselect the rule sets to disable.
Option Description
vSphere Client Manage service details by navigating to Configure > Services under System.
For more information about starting, stopping, and restarting services, see Enable or Disable
a Service.
VMware by Broadcom 84
vSphere Security
6 For some services, you can explicitly specify IP addresses from which connections are
allowed.
7 Click OK.
You can use the vSphere Client, vSphere Web Client, vCLI, or PowerCLI to update the Allowed IP
list for a service. By default, all IP addresses are allowed for a service. This task describes how to
use either the vSphere Client or the vSphere Web Client. See the topic on managing the firewall
in vSphere Command-Line Interface Concepts and Examples at https://code.vmware.com/ for
instructions on using the vCLI.
Procedure
Option Description
3 In the Firewall section, click Edit and select a service from the list.
4 In the Allowed IP Addresses section, deselect Allow connections from any IP address and
enter the IP addresses of networks that are allowed to connect to the host.
Separate IP addresses with commas. You can use the following address formats:
n 192.168.0.0/24
n 192.168.1.2, 2001::1/64
n fd3e:29a6:0a81:e478::/64
5 Click OK.
VMware by Broadcom 85
vSphere Security
ESXi includes a firewall that is enabled by default. At installation time, the ESXi firewall is
configured to block incoming and outgoing traffic, except traffic for services that are enabled
in the host's security profile. For the list of supported ports and protocols in the ESXi firewall, see
the VMware Ports and Protocols Tool™ at https://ports.vmware.com/.
The VMware Ports and Protocols Tool lists port information for services that are installed by
default. If you install other VIBs on your host, additional services and firewall ports might become
available. The information is primarily for services that are visible in the vSphere Client and
vSphere Web Client but the VMware Ports and Protocols Tool includes some other ports as well.
When you add, mount, or unmount an NFS datastore, the resulting behavior depends on the
version of NFS.
n If the nfsClient rule set is disabled, ESXi enables the rule set and disables the Allow All IP
Addresses policy by setting the allowedAll flag to FALSE. The IP address of the NFS server
is added to the allowed list of outgoing IP addresses.
n If the nfsClient rule set is enabled, the state of the rule set and the allowed IP address
policy are not changed. The IP address of the NFS server is added to the allowed list of
outgoing IP addresses.
Note If you manually enable the nfsClient rule set or manually set the Allow All IP Addresses
policy, either before or after you add an NFS v3 datastore to the system, your settings are
overridden when the last NFS v3 datastore is unmounted. The nfsClient rule set is disabled
when all NFS v3 datastores are unmounted.
When you remove or unmount an NFS v3 datastore, ESXi performs one of the following actions.
n If none of the remaining NFS v3 datastores are mounted from the server of the datastore
being unmounted, ESXi removes the server's IP address from the list of outgoing IP
addresses.
n If no mounted NFS v3 datastores remain after the unmount operation, ESXi disables the
nfsClient firewall rule set.
VMware by Broadcom 86
vSphere Security
Command Description
esxcli network firewall get Return the enabled or disabled status of the firewall and
lists default actions.
esxcli network firewall set --default-action Set to true to set the default action to pass. Set to false to
set the default action to drop.
esxcli network firewall set --enabled Enable or disable the ESXi firewall.
esxcli network firewall load Load the firewall module and rule set configuration files.
esxcli network firewall refresh Refresh the firewall configuration by reading the rule set
files if the firewall module is loaded.
esxcli network firewall unload Destroy filters and unload the firewall module.
esxcli network firewall ruleset set --allowed- Set to true to allow all access to all IPs. Set to false to use
all a list of allowed IP addresses.
esxcli network firewall ruleset set --enabled Set enabled to true to enable the specified ruleset. Set
--ruleset-id=<string> enabled to false to disable the specified ruleset.
esxcli network firewall ruleset allowedip list List the allowed IP addresses of the specified rule set.
esxcli network firewall ruleset allowedip add Allow access to the rule set from the specified IP address
or range of IP addresses.
esxcli network firewall ruleset allowedip Remove access to the rule set from the specified IP
remove address or range of IP addresses.
esxcli network firewall ruleset rule list List the rules of each ruleset in the firewall.
VMware by Broadcom 87
vSphere Security
2 Specify specific IP Address or IP ranges to access a particular service. The following example
disable the allow all option and specifies a particular range for the virtuallyGhetto service.
Note Enabling services affects the security of your host. Do not enable a service unless strictly
necessary.
Available services depend on the VIBs that are installed on the ESXi host. You cannot add
services without installing a VIB. Some VMware products, for example, vSphere HA, install VIBs
on hosts and make services and the corresponding firewall ports available.
In a default installation, you can modify the status of the following services from the vSphere
Client.
Direct Console UI Running The Direct Console User Interface (DCUI) service
allows you to interact with an ESXi host from the local
console host using text-based menus.
ESXi Shell Stopped The ESXi Shell is available from the Direct
Console User Interface and includes a set of fully
supported commands and a set of commands for
troubleshooting and remediation. You must enable
access to the ESXi Shell from the direct console of
each system. You can enable access to the local ESXi
Shell or access to the ESXi Shell with SSH.
SSH Stopped The host's SSH client service that allows remote
connections through Secure Shell.
Active Directory Service Stopped When you configure ESXi for Active Directory, this
service is started.
VMware by Broadcom 88
vSphere Security
PC/SC Smart Card Daemon Stopped When you enable the host for smart card
authentication, this service starts. See Configuring
Smart Card Authentication for ESXi.
Syslog Server Stopped Syslog daemon. You can enable syslog from the
Advanced System Settings in the vSphere Client. See
vCenter Server Installation and Setup.
VMware vCenter Agent Running vCenter Server agent. Allows a vCenter Server to
connect to an ESXi host. Specifically, vpxa is the
communication conduit to the host daemon, which in
turn communicates with the ESXi kernel.
X.Org Server Stopped X.Org Server. This optional feature is used internally
for 3D graphics for virtual machines.
After installation, certain services are running by default, while others are stopped. Sometimes,
additional setup is necessary before a service becomes available in the UI. For example, the NTP
service is a way of getting accurate time information, but this service only works when required
ports are opened in the firewall.
Prerequisites
Connect to vCenter Server with either the vSphere Client or the vSphere Web Client.
Procedure
Option Description
VMware by Broadcom 89
vSphere Security
3 Manage services.
Option Description
n Start and stop with host: The service starts shortly after the host starts, and closes
shortly before the host shuts down. Much like Start and stop with port usage, this
option means that the service regularly attempts to complete its tasks, such as contacting
the specified NTP server. If the port was closed but is later opened, the client begins
completing its tasks shortly thereafter.
n Start and stop manually: The host preserves the user-determined service settings,
regardless of whether ports are open or not. When a user starts the NTP service, that
service is kept running if the host is powered on. If the service is started and the host is
powered off, the service is stopped as part of the shutdown process, but as soon as the
host is powered on, the service is started again, preserving the user-determined state.
n Start and stop with port usage: The default setting for these services. If any port is open,
the client attempts to contact the network resources for the service. If some ports are
open, but the port for a particular service is closed, the attempt fails. If and when the
applicable outgoing port is opened, the service begins completing its startup.
Note These settings apply only to service settings that are configured through the UI or
to applications that are created with the vSphere Web Services SDK. Configurations made
through other means, such as from the ESXi Shell or with configuration files, are not affected
by these settings.
4 Click OK.
Lockdown Mode
To increase the security of your ESXi hosts, you can put them in lockdown mode. In lockdown
mode, operations must be performed through vCenter Server by default.
VMware by Broadcom 90
vSphere Security
Starting with vSphere 6.0, you can select normal lockdown mode or strict lockdown mode,
which offer different degrees of lockdown. vSphere 6.0 also introduces the Exception User list.
Exception users do not lose their privileges when the host enters lockdown mode. Use the
Exception User list to add the accounts of third-party solutions and external applications that
need to access the host directly when the host is in lockdown mode. See Specify Lockdown
Mode Exception Users.
n In strict and normal lockdown mode, privileged users can access the host through vCenter
Server, from the vSphere Client or the vSphere Web Client, or by using the vSphere Web
Services SDK.
n Direct Console Interface behavior differs for strict lockdown mode and normal lockdown
mode.
n In strict lockdown mode, the Direct Console User Interface (DCUI) service is disabled.
n In normal lockdown mode, accounts on the Exception User list can access the DCUI
if they have administrator privileges. In addition, all users who are specified in the
DCUI.Access advanced system setting can access the DCUI.
n If the ESXi Shell or SSH is enabled and the host is placed in lockdown mode, accounts on the
Exception Users list who have administrator privileges can use these services. For all other
users, ESXi Shell or SSH access is disabled. Starting with vSphere 6.0, ESXi or SSH sessions
for users who do not have administrator privileges are closed.
All access is logged for both strict and normal lockdown mode.
VMware by Broadcom 91
vSphere Security
vSphere Web Services All users, based on vCenter (vpxuser) vCenter (vpxuser)
API permissions Exception users, based Exception users, based on
on permissions permissions
vCloud Director vCloud Director (vslauser, if
(vslauser, if available) available)
Direct Console UI (DCUI) Users with administrator Users defined in the DCUI service is stopped.
privileges on the host, DCUI.Access advanced
and users in the option
DCUI.Access advanced Exception users with
option administrator privileges
on the host
ESXi Shell Users with administrator Users defined in the Users defined in the DCUI.Access
(if enabled) privileges on the host DCUI.Access advanced advanced option
option Exception users with administrator
Exception users with privileges on the host
administrator privileges
on the host
SSH Users with administrator Users defined in the Users defined in the DCUI.Access
(if enabled) privileges on the host DCUI.Access advanced advanced option
option Exception users with administrator
Exception users with privileges on the host
administrator privileges
on the host
If you want to disallow all direct access to a host completely, you can select strict lockdown
mode. Strict lockdown mode makes it impossible to access a host if the vCenter Server is
unavailable and SSH and the ESXi Shell are disabled. See Lockdown Mode Behavior.
VMware by Broadcom 92
vSphere Security
Procedure
2 Click Configure.
5 Click Lockdown Mode and select one of the lockdown mode options.
Option Description
Normal The host can be accessed through vCenter Server. Only users who are on
the Exception Users list and have administrator privileges can log in to the
Direct Console User Interface. If SSH or the ESXi Shell is enabled, access
might be possible.
Strict The host can only be accessed through vCenter Server. If SSH or the ESXi
Shell is enabled, running sessions for accounts in the DCUI.Access advanced
option and for Exception User accounts that have administrator privileges
remain enabled. All other sessions are closed.
6 Click OK.
Users can disable both normal lockdown mode and strict lockdown mode from either the
vSphere Client or the vSphere Web Client.
Users who can access the Direct Console User Interface on the ESXi host can disable normal
lockdown mode. In strict lockdown mode, the Direct Console Interface service is stopped.
Procedure
2 Click Configure.
6 Click OK.
VMware by Broadcom 93
vSphere Security
Results
The system exits lockdown mode, vCenter Server displays an alarm, and an entry is added to the
audit log.
Enable or Disable Normal Lockdown Mode from the Direct Console User
Interface
You can enable and disable normal lockdown mode from the Direct Console User Interface
(DCUI). You can enable and disable strict lockdown mode only from the vSphere Client or the
vSphere Web Client.
When the host is in normal lockdown mode, the following accounts can access the Direct
Console User Interface:
n Accounts in the Exception Users list who have administrator privileges on the host. The
Exception Users list is meant for service accounts such as a backup agent.
n Users defined in the DCUI.Access advanced option for the host. This option can be used to
enable access in case of catastrophic failure.
For ESXi 6.0 and later, user permissions are preserved when you enable lockdown mode. User
permissions are restored when you disable lockdown mode from the Direct Console Interface.
Note If you upgrade a host that is in lockdown mode to ESXi version 6.0 without exiting
lockdown mode, and if you exit lockdown mode after the upgrade, all permissions defined
before the host entered lockdown mode are lost. The system assigns the administrator role to
all users who are found in the DCUI.Access advanced option to guarantee that the host remains
accessible.
To retain permissions, disable lockdown mode for the host from either the vSphere Client or the
vSphere Web Client before the upgrade.
Procedure
1 At the Direct Console User Interface of the host, press F2 and log in.
2 Scroll to the Configure Lockdown Mode setting and press Enter to toggle the current setting.
3 Press Esc until you return to the main menu of the Direct Console User Interface.
The vSphere version determines what different accounts can do by default when lockdown
mode is enabled, and how you can change the default behavior.
n In vSphere 5.0 and earlier, only the root user can log in to the Direct Console User Interface
on an ESXi host that is in lockdown mode.
VMware by Broadcom 94
vSphere Security
n In vSphere 5.1 and later, you can add a user to the DCUI.Access advanced system setting for
each host. The option is meant for a catastrophic failure of vCenter Server. Companies usually
lock the password for the user with this access into a safe. A user in the DCUI.Access list does
not need to have full administrative privileges on the host.
n In vSphere 6.0 and later, the DCUI.Access advanced system setting is still supported. In
addition, vSphere 6.0 and later supports an Exception User list, which is for service accounts
that have to log in to the host directly. Accounts with administrator privileges that are on the
Exception Users list can log in to the ESXi Shell. In addition, those users can log in to a host's
DCUI in normal lockdown mode and can exit lockdown mode.
You specify Exception Users from either the vSphere Client or the vSphere Web Client.
Note Exception users are host local users or Active Directory users with privileges defined
locally for the ESXi host. Users that are members of an Active Directory group lose their
permissions when the host is in lockdown mode.
Note Users in the DCUI.Access list can change lockdown mode settings regardless of their
privileges. The ability to change lockdown modes can impact the security of your host. For
service accounts that need direct access to the host, consider adding users to the Exception
Users list instead. Exception users can only perform tasks for which they have privileges. See
Specify Lockdown Mode Exception Users.
Procedure
2 Click Configure.
5 In the DCUI.Access text box, enter the local ESXi user names, separated by commas.
By default, the root user is included. Consider removing the root user from the DCUI.Access
list, and specifying a named account for better auditability.
6 Click OK.
VMware by Broadcom 95
vSphere Security
Exception users do not lose their privileges when the host enters lockdown mode. Usually
these accounts represent third-party solutions and external applications that need to continue
to function in lockdown mode.
Note The Exception Users list is meant for service accounts that perform very specific tasks,
and not for administrators. Adding administrator users to the Exception Users list defeats the
purpose of lockdown mode.
Exception users are host local users or Active Directory users with privileges defined locally for
the ESXi host. They are not members of an Active Directory group and are not vCenter Server
users. These users are allowed to perform operations on the host based on their privileges. That
means, for example, that a read-only user cannot disable lockdown mode on a host.
Procedure
2 Click Configure.
5 Click Exception Users and click the Add User icon to add exception users.
VIBs are software packages that include a signature from VMware or a VMware partner.
To protect the integrity of the ESXi host, do not allow users to install unsigned (community-
supported) VIBs. An unsigned VIB contains code that is not certified by, accepted by, or
supported by VMware or its partners. Community-supported VIBs do not have a digital signature.
The host's acceptance level must be the same or less restrictive than the acceptance level of any
VIB you want to add to the host. For example, if the host acceptance level is VMwareAccepted,
you cannot install VIBs at the PartnerSupported level. You can use ESXCLI commands to set an
acceptance level for a host. To protect the security and integrity of your ESXi hosts, do not allow
unsigned (CommunitySupported) VIBs to be installed on hosts in production systems.
The acceptance level for an ESXi host is displayed in the Security Profile in the vSphere Client.
VMwareCertified
VMware by Broadcom 96
vSphere Security
The VMwareCertified acceptance level has the most stringent requirements. VIBs with this
level go through thorough testing fully equivalent to VMware in-house Quality Assurance
testing for the same technology. Today, only I/O Vendor Program (IOVP) program drivers are
published at this level. VMware takes support calls for VIBs with this acceptance level.
VMwareAccepted
VIBs with this acceptance level go through verification testing, but the tests do not fully
test every function of the software. The partner runs the tests and VMware verifies the
result. Today, CIM providers and PSA plug-ins are among the VIBs published at this level.
VMware directs customers with support calls for VIBs with this acceptance level to contact
the partner's support organization.
PartnerSupported
VIBs with the PartnerSupported acceptance level are published by a partner that VMware
trusts. The partner performs all testing. VMware does not verify the results. This level is used
for a new or nonmainstream technology that partners want to enable for VMware systems.
Today, driver VIB technologies such as Infiniband, ATAoE, and SSD are at this level with
nonstandard hardware drivers. VMware directs customers with support calls for VIBs with
this acceptance level to contact the partner's support organization.
CommunitySupported
Procedure
1 Connect to each ESXi host and verify that the acceptance level is set to VMwareCertified,
VMwareAccepted, or PartnerSupported by running the following command.
2 If the host acceptance level is CommunitySupported, determine whether any of the VIBs are
at the CommunitySupported level by running the following commands.
VMware by Broadcom 97
vSphere Security
4 Change the acceptance level of the host by using one of the following methods.
Option Description
The level parameter is required and specifies the acceptance level to set.
Should be one of VMwareCertified, VMwareAccepted, PartnerSupported,
or CommunitySupported. See ESXCLI Reference for more information.
Results
Note ESXi conducts integrity checks of VIBs governed by the Acceptance Level. You can
use the VMkernel.Boot.execInstalledOnly setting to instruct ESXi to only execute binaries that
originate from a valid VIB installed on the host. Combined with Secure Boot, this setting ensures
that every single process ever run on an ESXi host is signed, allowed, and expected. Enabling this
setting when possible improves security. For more information on configuring advanced options
for ESXi, see the VMware knowledge base article at https://kb.vmware.com/kb/1038578.
You can select the ESXi host object in the vCenter Server object hierarchy and assign
the administrator role to a limited number of users. Those users can then perform direct
management on the ESXi host. See Using Roles to Assign Privileges.
Best practice is to create at least one named user account, assign it full administrative privileges
on the host, and use this account instead of the root account. Set a highly complex password for
the root account and limit the use of the root account. Do not remove the root account.
VMware by Broadcom 98
vSphere Security
For all versions of ESXi, you can see the list of predefined users in the /etc/passwd file.
Read Only
Allows a user to view objects associated with the ESXi host but not to make any changes to
objects.
Administrator
Administrator role.
No Access
No access. This role is the default role. You can override the default role.
You can manage local users and groups and add local custom roles to an ESXi host using
a VMware Host Client connected directly to the ESXi host. See the vSphere Single Host
Management - VMware Host Client documentation.
Starting with vSphere 6.0, you can use ESXCLI account management commands for managing
ESXi local user accounts. You can use ESXCLI permission management commands for setting or
removing permissions on both Active Directory accounts (users and groups) and on ESXi local
accounts (users only).
Note If you define a user for the ESXi host by connecting to the host directly, and a user with
the same name also exists in vCenter Server, those users are different. If you assign a role to the
ESXi user, the vCenter Server user is not assigned the same role.
Predefined Privileges
If your environment does not include a vCenter Server system, the following users are
predefined.
root User
By default each ESXi host has a single root user account with the Administrator role. That
root user account can be used for local administration and to connect the host to vCenter
Server.
Assigning root user privileges can make it easier to break into an ESXi host because the name
is already known. Having a common root account also makes it harder to match actions to
users.
VMware by Broadcom 99
vSphere Security
For better auditing, create individual accounts with Administrator privileges. Set a highly
complex password for the root account and limit the use of the root account, for example,
for use when adding a host to vCenter Server. Do not remove the root account. For more
information about assigning permissions to a user for an ESXi host, see vSphere Single Host
Management - VMware Host Client documentation.
Best practice is to ensure that any account with the Administrator role on an ESXi host is
assigned to a specific user with a named account. Use ESXi Active Directory capabilities,
which allow you to manage Active Directory credentials.
Important You can remove the access privileges for the root user. However, you must
first create another permission at the root level that has a different user assigned to the
Administrator role.
vpxuser User
vCenter Server uses vpxuser privileges when managing activities for the host.
The vCenter Server administrator can perform most of the same tasks on the host as the root
user and also schedule tasks, work with templates, and so forth. However, the vCenter Server
administrator cannot directly create, delete, or edit local users and groups for hosts. Only a
user with Administrator privileges can perform these tasks directly on a host.
Caution Do not change vpxuser in any way. Do not change its password. Do not change its
permissions. If you do so, you might experience problems when working with hosts through
vCenter Server.
dcui User
The dcui user runs on hosts and acts with Administrator rights. This user’s primary purpose is
to configure hosts for lockdown mode from the Direct Console User Interface (DCUI).
This user acts as an agent for the direct console and cannot be modified or used by
interactive users.
Creating local user accounts on each host presents challenges with having to synchronize
account names and passwords across multiple hosts. Join ESXi hosts to an Active Directory
domain to eliminate the need to create and maintain local user accounts. Using Active
Directory for user authentication simplifies the ESXi host configuration and reduces the risk for
configuration issues that could lead to unauthorized access.
When you use Active Directory, users supply their Active Directory credentials and the domain
name of the Active Directory server when adding a host to a domain.
When you add an ESXi host to Active Directory, the DOMAIN group ESX Admins is assigned full
administrative access to the host if it exists. If you do not want to make full administrative access
available, see VMware Knowledge Base article 1025569 for a workaround.
If a host is provisioned with Auto Deploy, Active Directory credentials cannot be stored on the
hosts. You can use the vSphere Authentication Proxy to join the host to an Active Directory
domain. Because a trust chain exists between the vSphere Authentication Proxy and the host,
the Authentication Proxy can join the host to the Active Directory domain. See Using vSphere
Authentication Proxy.
Note When you define user account settings in Active Directory, you can limit the computers
that a user can log in to by the computer name. By default, no equivalent restrictions are set on
a user account. If you set this limitation, LDAP Bind requests for the user account fail with the
message LDAP binding not successful, even if the request is from a listed computer. You
can avoid this issue by adding the netBIOS name for the Active Directory server to the list of
computers that the user account can log in to.
Prerequisites
n Verify that you have an Active Directory domain. See your directory server documentation.
n Verify that the host name of ESXi is fully qualified with the domain name of the Active
Directory forest.
Procedure
1 Synchronize the time between ESXi and the directory service system using NTP.
See Synchronize ESXi Clocks with a Network Time Server or the VMware Knowledge Base for
information about how to synchronize ESXi time with a Microsoft Domain Controller.
2 Ensure that the DNS servers that you configured for the host can resolve the host names for
the Active Directory controllers.
b Click Configure.
d Under TCP/IP Stack: Default, click DNS and verify that the host name and DNS server
information for the host are correct.
What to do next
Join the host to a directory service domain. See Add a Host to a Directory Service Domain. For
hosts that are provisioned with Auto Deploy, set up the vSphere Authentication Proxy. See Using
vSphere Authentication Proxy. You can configure permissions so that users and groups from
the joined Active Directory domain can access the vCenter Server components. For information
about managing permissions, see Add a Permission to an Inventory Object .
n name.tld (for example, domain.com): The account is created under the default container.
To use the vSphere Authentication Proxy service, see Using vSphere Authentication Proxy.
Procedure
2 Click Configure.
5 Enter a domain.
6 Enter the user name and password of a directory service user who has permissions to join the
host to the domain, and click OK.
7 (Optional) If you intend to use an authentication proxy, enter the proxy server IP address.
What to do next
You can configure permissions so that users and groups from the joined Active Directory domain
can access the vCenter Server components. For information about managing permissions, see
Add a Permission to an Inventory Object .
Procedure
2 Click Configure.
The Authentication Services page displays the directory service and domain settings.
What to do next
You can configure permissions so that users and groups from the joined Active Directory domain
can access the vCenter Server components. For information about managing permissions, see
Add a Permission to an Inventory Object .
You only have to set up the host so it knows about the domain name of the Active Directory
server and about the IP address of vSphere Authentication Proxy. When vSphere Authentication
Proxy is enabled, it automatically adds hosts that are being provisioned with Auto Deploy to the
Active Directory domain. You can also use vSphere Authentication Proxy with hosts that are not
provisioned by using Auto Deploy.
See Required Ports for vCenter Server and Platform Services Controller for information about
TCP ports used by vSphere Authentication Proxy.
Auto Deploy
If you are provisioning hosts with Auto Deploy, you can set up a reference host that points to
Authentication Proxy. You then set up a rule that applies the reference host's profile to any
ESXi host that is provisioned with Auto Deploy. vSphere Authentication Proxy stores the IP
addresses of all hosts that Auto Deploy provisions using PXE in its access control list. When
the host boots, it contacts vSphere Authentication Proxy, and vSphere Authentication Proxy
joins those hosts, which are already in its access control list, to the Active Directory domain.
Even if you use vSphere Authentication Proxy in an environment that uses certificates that
are provisioned by VMCA or third-party certificates, the process works seamlessly if you
follow the instructions for using custom certificates with Auto Deploy.
You can set up other hosts to use vSphere Authentication Proxy if you want to make it
possible for the host to join the domain without using Active Directory credentials. That
means you do not need to transmit Active Directory credentials to the host, and you do not
save Active Directory credentials in the host profile.
In that case, you add the host's IP address to the vSphere Authentication Proxy access
control list, and vSphere Authentication Proxy authorizes the host based on its IP address by
default. You can enable client authentication to have vSphere Authentication Proxy check the
host's certificate.
Note You cannot use vSphere Authentication Proxy in an environment that supports only IPv6.
The vSphere Authentication Proxy service binds to an IPv4 address for communication with
vCenter Server, and does not support IPv6. The vCenter Server instance can be on a host
machine in an IPv4-only or IPv4/IPv6 mixed-mode network environment. However, when you
specify the address of vSphere Authentication Proxy, you must specify an IPv4 address.
Prerequisites
Verify that you are using vCenter Server 6.5 or later. In earlier versions of vSphere, vSphere
Authentication Proxy is installed separately. See the documentation for the earlier version of the
product for instructions.
Procedure
Option Description
vCenter Server Appliance a In a Web browser, go to the vCenter Server Appliance Management
Management Interface (VAMI) Interface, https://appliance-IP-address-or-FQDN:5480.
b Log in as root.
The default root password is the password that you set while deploying
the vCenter Server Appliance.
c Click Services, and click the VMware vSphere Authentication Proxy
service.
d Click Start.
vSphere Web Client a Click Administration, and click System Configuration under Deployment.
b Click Services, and click the VMware vSphere Authentication Proxy
service.
c Click the green Start the service icon in the menu bar at the top of the
window.
d (Optional) After the service has started, click Actions > Edit Startup
Type and click Automatic to make startup automatic.
Results
You can now set the vSphere Authentication Proxy domain. After that, vSphere Authentication
Proxy handles all hosts that are provisioned with Auto Deploy, and you can explicitly add hosts
to vSphere Authentication Proxy.
You can add a domain to vSphere Authentication Proxy only after you enable the proxy. After
you add the domain, vSphere Authentication Proxy adds all hosts that you provision with Auto
Deploy to that domain. For other hosts, you can also use vSphere Authentication Proxy if you do
not want to give those hosts domain privileges.
Procedure
3 Click Services, click the VMware vSphere Authentication Proxy service, and click Edit.
4 Enter the name of the domain that vSphere Authentication Proxy will add hosts to, and the
name of a user who has Active Directory privileges to add hosts to the domain.
5 Click the ellipsis icon to add and confirm the password for the user, and click OK.
You can add a domain to vSphere Authentication Proxy only after you enable the proxy. After
you add the domain, vSphere Authentication Proxy adds all hosts that you provision with Auto
Deploy to that domain. For other hosts, you can also use vSphere Authentication Proxy if you do
not want to give those hosts domain privileges.
Procedure
1 Log in to the vCenter Server appliance or the vCenter Server Windows machine as a user
with administrator privileges.
shell
OS Location
4 To add the domain and user Active Directory credentials to the Authentication Proxy
configuration, run the following command.
vSphere Authentication Proxy caches that user name and password. You can remove and
recreate the user as needed. The domain must be reachable through DNS, but does not have
to be a vCenter Single Sign-On identity source.
vSphere Authentication Proxy uses the user name specified by user to create the accounts
for ESXi hosts in Active Directory. The user must have privileges to create accounts in the
Active Directory domain to which you are adding the hosts. At the time of writing of this
information, the Microsoft Knowledge Base article 932455 had background information for
account creation privileges.
5 If you later want to remove the domain and user information from vSphere Authentication
Proxy, run the following command.
n name.tld (for example, domain.com): The account is created under the default container.
Prerequisites
n If the ESXi host is using a VMCA-signed certificate, verify that the host has been added to
vCenter Server. Otherwise, the Authentication Proxy service cannot trust the ESXi host.
n If the ESXi host is using a root CA-signed certificate, verify that the appropriate root CA-
signed certificate has been added to the vCenter Server system. See Certificate Management
for ESXi Hosts.
Procedure
2 Click Configure.
5 Enter a domain.
7 Enter the IP address of the Authentication Proxy server, which is always the same as the IP
address of the vCenter Server system.
8 Click OK.
Prerequisites
n Verify that the vCenter Server system trusts the host. By default, when you add a host to
vCenter Server, the host is assigned a certificate that is signed by a vCenter Server trusted
root CA. vSphere Authentication Proxy trusts vCenter Server trusted root CA.
n If you plan on replacing ESXi certificates in your environment, perform the replacement
before you enable vSphere Authentication Proxy. The certificates on the ESXi host must
match that of the host's registration.
Procedure
1 Log in to the vCenter Server appliance or the vCenter Server Windows machine as a user
with administrator privileges.
shell
OS Location
camconfig ssl-cliAuth -e
Going forward, vSphere Authentication Proxy checks the certificate of each host that is
added.
5 If you later want to disable client authentication again, run the following command.
camconfig ssl-cliAuth -n
Prerequisites
n Upload the vSphere Authentication Proxy certificate to a datastore accessible to the ESXi
host. Using an SFTP application such WinSCP, you can download the certificate from the
vCenter Server host at the following location.
Procedure
4 Enter the certificate file path following the format [datastore]/path/certname.crt, and
click OK.
See Set Up vSphere Authentication Proxy to Use Custom Certificates if you want to use a custom
certificate that is signed by a third-party or enterprise CA.
Prerequisites
You must have root or Administrator privileges on the system on which vSphere Authentication
Proxy is running.
Procedure
cp /usr/lib/vmware-vmca/share/config/certool.cfg /var/lib/vmware/vmcam/ssl/vmcam.cfg
2 Edit the copy with some information about your organization, as in the following example.
Country = IE
Name = vmcam
Organization = VMware
OrgUnit = vTSU
State = Cork
Locality = Cork
Hostname = test-cam-1.test1.vmware.com
By default, vSphere Authentication Proxy generates a CSR during first boot and asks VMCA to
sign that CSR. vSphere Authentication Proxy registers with vCenter Server using that certificate.
You can use custom certificates in your environment, if you add those certificates to vCenter
Server.
Procedure
[ req ]
distinguished_name = req_distinguished_name
encrypt_key = no
prompt = no
string_mask = nombstr
req_extensions = v3_req
[ v3_req ]
basicConstraints = CA:false
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
subjectAltName = DNS:dns.static-1.csl.vmware.com
[ req_distinguished_name ]
countryName = IE
stateOrProvinceName = Cork
localityName = Cork
0.organizationName = VMware
organizationalUnitName = vTSU
commonName = test-cam-1.test1.vmware.com
b Run openssl to generate a CSR file and a key file, passing in the configuration file.
openssl req -new -nodes -out vmcam.csr -newkey rsa:2048 -keyout /var/lib/vmware/
vmcam/ssl/rui.key -config /var/lib/vmware/vmcam/ssl/vmcam.cfg
2 Back up the rui.crt certificate and rui.key files, which are stored in the following location.
OS Location
OS Commands
user must be a vCenter Single Sign-On user that has administrator permissions on vCenter
Server.
Tool Steps
vCenter Server Appliance a In a Web browser, go to the vCenter Server Appliance Management
Management Interface (VAMI) Interface, https://appliance-IP-address-or-FQDN:5480.
b Log in as root.
The default root password is the password that you set while deploying
the vCenter Server Appliance.
c Click Services, and click the VMware vSphere Authentication Proxy
service.
d Click Stop.
vSphere Web Client a Select Administration, and click System Configuration under
Deployment.
b Click Services, click the VMware vSphere Authentication Proxy service,
and click the red Stop the service icon.
5 Replace the existing rui.crt certificate and rui.key files with the files that you received
from your CA.
7 Reregister vSphere Authentication Proxy explicitly with vCenter Server by using the new
certificate and key.
A smart card is a small plastic card with an embedded integrated circuit chip. Many government
agencies and large enterprises use smart card based two-factor authentication to increase the
security of their systems and comply with security regulations.
When smart card authentication is enabled on an ESXi host, the DCUI prompts for a smart card
and PIN combination instead of the default prompt for a user name and password.
1 When you insert the smart card into the smart card reader, the ESXi host reads the
credentials on it.
2 The ESXi DCUI displays your login ID, and prompts for your PIN.
3 After you enter your PIN, the ESXi host matches it with the PIN stored on the smart card and
verifies the certificate on the smart card with Active Directory.
4 After successful verification of the smart card certificate, ESXi logs you in to the DCUI.
You can switch to user name and password authentication from the DCUI by pressing F3.
The chip on the smart card locks after a few consecutive incorrect PIN entries, usually three. If a
smart card is locked, only selected personnel can unlock it.
Prerequisites
n Set up the infrastructure to handle smart card authentication, such as accounts in the Active
Directory domain, smart card readers, and smart cards.
n Configure ESXi to join an Active Directory domain that supports smart card authentication.
For more information, see Using Active Directory to Manage ESXi Users .
n Use the vSphere Client to add root certificates. See Certificate Management for ESXi Hosts.
Procedure
2 Click Configure.
You see the current smart card authentication status and a list with imported certificates.
5 In the Edit Smart Card Authentication dialog box, select the Certificates page.
6 Add trusted Certificate Authority (CA) certificates, for example, root and intermediary CA
certificates.
7 Open the Smart Card Authentication page, select the Enable Smart Card Authentication
check box, and click OK.
Procedure
2 Click Configure.
You see the current smart card authentication status and a list with imported certificates.
5 On the Smart Card Authentication page, deselect the Enable Smart Card Authentication
check box, and click OK.
In exceptional circumstances, the AD domain server is not reachable to authenticate the user
credentials on the smart card because of connectivity problems, network outage, or disasters. In
that case, you can log in to the ESXi DCUI by using the credentials of a local ESXi Administrator
user. After logging in, you can perform diagnostics or other emergency actions. The fallback to
user name and password login is logged. When the connectivity to AD is restored, smart card
authentication is enabled again.
Note Loss of network connectivity to vCenter Server does not affect smart card authentication
if the Active Directory (AD) domain server is available.
In normal lockdown mode, only users on the Exception Users list with administrator privileges can
access the DCUI. Exception users are host local users or Active Directory users with permissions
defined locally for the ESXi host. If you want to use smart card authentication in normal lockdown
mode, you must add users to the Exception Users list from the vSphere Client. These users do
not lose their permissions when the host enters normal lockdown mode and can log in to the
DCUI. For more information, see Specify Lockdown Mode Exception Users.
In strict lockdown mode, the DCUI service is stopped. As a result, you cannot access the host by
using smart card authentication.
To reduce the risk of unauthorized access, enable the ESXi Shell for troubleshooting only.
The ESXi Shell is independent of lockdown mode. Even if the host is running in lockdown mode,
you can still log in to the ESXi Shell if it is enabled.
ESXi Shell
SSH
Enable this service to access the ESXi Shell remotely by using SSH.
The root user and users with the Administrator role can access the ESXi Shell. Users who are
in the Active Directory group ESX Admins are automatically assigned the Administrator role. By
default, only the root user can run system commands (such as vmware -v) by using the ESXi
Shell.
Note Do not enable the ESXi Shell unless you actually need access.
n Use the Direct Console User Interface to Enable Access to the ESXi Shell
The Direct Console User Interface (DCUI) allows you to interact with the host locally
using text-based menus. Evaluate carefully whether the security requirements of your
environment support enabling the Direct Console User Interface.
Note Access the host by using the vSphere Web Client, remote command-line tools (vCLI and
PowerCLI), and published APIs. Do not enable remote access to the host using SSH unless special
circumstances require that you enable SSH access.
Prerequisites
If you want to use an authorized SSH key, you can upload it. See ESXi SSH Keys.
Procedure
Option Description
Option Description
When you select Start and stop manually, the service does not start when you reboot the
host. If you want the service to start when you reboot the host, select Start and stop with
host.
What to do next
Set the availability and idle timeouts for the ESXi Shell. See Create a Timeout for ESXi Shell
Availability and Create a Timeout for Idle ESXi Shell Sessions
The availability timeout setting is the amount of time that can elapse before you must log in
after the ESXi Shell is enabled. After the timeout period, the service is disabled and users are not
allowed to log in.
Procedure
2 Click Configure.
You must restart the SSH service and the ESXi Shell service for the timeout to take effect.
6 Click OK.
Results
If you are logged in when the timeout period elapses, your session will persist. However, after
you log out or your session is terminated, users are not allowed to log in.
The idle timeout is the amount of time that can elapse before a user is logged out of an idle
interactive session. You can control the amount of time for both local and remote (SSH) session
from the Direct Console Interface (DCUI) or from the vSphere Client.
Procedure
2 Click Configure.
5 Restart the ESXi Shell service and the SSH service for the timeout to take effect.
Results
If the session is idle, users are logged out after the timeout period elapses.
Use the Direct Console User Interface to Enable Access to the ESXi
Shell
The Direct Console User Interface (DCUI) allows you to interact with the host locally using text-
based menus. Evaluate carefully whether the security requirements of your environment support
enabling the Direct Console User Interface.
You can use the Direct Console User Interface (DCUI) to enable local and remote access to the
ESXi Shell. You access the Direct Console User Interface from the physical console attached
to the host. After the host reboots and loads ESXi, press F2 to log in to the DCUI. Enter the
credentials that you created when you installed ESXi.
Note Changes made to the host using the Direct Console User Interface, the vSphere Client,
ESXCLI, or other administrative tools are committed to permanent storage every hour or upon
graceful shutdown. If the host fails before the changes are committed, they might be lost.
Procedure
1 From the Direct Console User Interface, press F2 to access the System Customization menu.
n Enable SSH
5 Press Esc until you return to the main menu of the Direct Console User Interface.
What to do next
Set the availability and idle timeouts for the ESXi Shell. See Set Availability Timeout or Idle
Timeout for the ESXi Shell.
Idle Timeout
If a user enables the ESXi Shell on a host, but forgets to log out of the session, the idle
session remains connected indefinitely. The open connection can increase the potential for
someone to gain privileged access to the host. You can prevent this situation by setting a
timeout for idle sessions.
Availability Timeout
The availability timeout determines how much time can elapse before you log in after you
initially enable the shell. If you wait longer, the service is disabled and you cannot log in to the
ESXi Shell.
Prerequisites
Enable the ESXi Shell. See Use the Direct Console User Interface to Enable Access to the ESXi
Shell.
Procedure
2 From the Troubleshooting Mode Options menu, select Modify ESXi Shell and SSH timeouts
and press Enter.
You must restart the SSH service and the ESXi Shell service for the timeout to take effect.
4 Press Enter and press Esc until you return to the main menu of the Direct Console User
Interface.
5 Click OK.
Results
n If you set the idle timeout, users are logged out after the session is idle for the specified time.
n If you set the availability timeout, and you do not log in before that timeout elapses, logins
become disabled again.
Procedure
n If you have direct access to the host, press Alt+F1 to open the login page on the
machine's physical console.
n If you are connecting to the host remotely, use SSH or another remote console
connection to start a session on the host.
Note Before you use UEFI Secure Boot on a host that was upgraded to ESXi 6.5, check
for compatibility by following the instructions in Run the Secure Boot Validation Script on an
Upgraded ESXi Host. If you upgrade an ESXi host by using esxcli commands, the upgrade does
not update the bootloader. In that case, you cannot perform a secure boot on that system.
1 VMkernel
1
VMware
bootloader
public key
Root
of trust UEFI CA
public key UEFI firmware
1 Starting with vSphere 6.5, the ESXi bootloader contains a VMware public key. The bootloader
uses this key to verify the signature of the kernel and a small subset of the system that
includes a secure boot VIB verifier.
2 The VIB verifier verifies every VIB package that is installed on the system.
At this point, the entire system boots with the root of trust in certificates that are part of the UEFI
firmware.
The error message depends on the hardware vendor and on the level at which verification did
not succeed.
n If you attempt to boot with a bootloader that is unsigned or has been tampered with, an error
during the boot sequence results. The exact message depends on the hardware vendor. It
might look like the following error, but might look different.
n If the kernel has been tampered with, an error like the following results.
n If a package (VIB or driver) has been tampered with, a purple screen with the following
message appears.
2 Run the secure boot verification script (see Run the Secure Boot Validation Script on an
Upgraded ESXi Host).
For secure boot to succeed, the signature of every installed VIB must be available on the system.
Older versions of ESXi do not save the signatures when installing VIBs.
n If you upgrade using ESXCLI commands, the old version of ESXi performs the installation of
the new VIBs, so their signatures are not saved and secure boot is not possible.
n If you upgrade using the ISO, new VIBs do have their signatures saved. This is true also for
vSphere Upgrade Manager upgrades that use the ISO.
n If old VIBs remain on the system, the signatures of those VIBs are not available and secure
boot is not possible.
n If the system uses a third-party driver, and the VMware upgrade does not include a new
version of the driver VIB, then the old VIB remains on the system after upgrade.
n In rare cases, VMware might drop ongoing development of a specific VIB without
providing a new VIB that replaces or obsoletes it, so the old VIB remains on the system
after upgrade.
Note UEFI secure boot also requires an up-to-date bootloader. This script does not check for an
up-to-date bootloader.
Prerequisites
n Verify that all VIBs are signed with an acceptance level of at least PartnerSupported. If you
include VIBs at the CommunitySupported level, you cannot use secure boot.
Procedure
/usr/lib/vmware/secureboot/bin/secureBoot.py -c
The output either includes Secure boot can be enabled or Secure boot CANNOT be enabled.
TPM is an industry-wide standard for secure cryptoprocessors. TPM chips are found in most of
today's computers, from laptops, to desktops, to servers. vSphere 6.7 and later supports TPM
version 2.0.
A TPM 2.0 chip attests to an ESXi host's identity. Host attestation is the process of authenticating
and attesting to the state of the host's software at a given point in time. UEFI secure boot,
which ensures that only signed software is loaded at boot time, is a requirement for successful
attestation. The TPM 2.0 chip records and securely stores measurements of the software
modules booted in the system, which vCenter Server remotely verifies.
1 Establish the trustworthiness of the remote TPM and create an Attestation Key (AK) on it.
When an ESXi host is added to, rebooted from, or reconnected to vCenter Server, vCenter
Server requests an AK from the host. Part of the AK creation process also involves the
verification of the TPM hardware itself, to ensure that a known (and trusted) vendor has
produced it.
vCenter Server requests that the host sends an Attestation Report, which contains a quote
of Platform Configuration Registers (PCRs), signed by the TPM, and other signed host binary
metadata. By checking that the information corresponds to a configuration it deems trusted,
a vCenter Server identifies the platform on a previously untrusted host.
vCenter Server verifies the authenticity of the signed quote, infers the software versions, and
determines the trustworthiness of said software versions. If vCenter Server determines the
signed quote is invalid, remote attestation fails and the host is not trusted.
To use a TPM 2.0 chip, your vCenter Server environment must meet these requirements:
n ESXi 6.7 host or later with TPM 2.0 chip installed and enabled in UEFI
Ensure that the TPM is configured in the ESXi host's BIOS to use the SHA-256 hashing algorithm
and the TIS/FIFO (First-In, First-Out) interface and not CRB (Command Response Buffer). For
information about setting these required BIOS options, refer to the vendor documentation.
Review the TPM 2.0 chips certified by VMware at the following location:
https://www.vmware.com/resources/compatibility/search.php
When you boot an ESXi host with an installed TPM 2.0 chip, vCenter Server monitors the host's
attestation status. The vSphere Client displays the hardware trust status in the vCenter Server's
Summary tab under Security with the following alarms:
Note If you add a TPM 2.0 chip to an ESXi host that vCenter Server already manages, you
must first disconnect the host, then reconnect it. See vCenter Server and Host Management
documentation for information about disconnecting and reconnecting hosts.
Procedure
3 Click Security.
4 Review the host's status in the Attestation column and read the accompanying message in
the Message column.
What to do next
For a Failed or Warning attestation status, see Troubleshoot ESXi Host Attestation Problems.
Procedure
1 View the ESXi host alarm status and accompanying error message. See View ESXi Host
Attestation Status.
2 If the error message is Host secure boot was disabled, you must re-enable secure boot
to resolve the problem.
3 If the attestation status of the host is failed, check the vCenter Server vpxd.log file for the
following message:
n Configure persistent logging to a datastore. By default, the logs on ESXi hosts are stored
in the in-memory file system. Therefore, they are lost when you reboot the host, and only
24 hours of log data is stored. When you enable persistent logging, you have a dedicated
activity record for the host.
n Remote logging to a central host allows you to gather log files on a central host. From that
host, you can monitor all hosts with a single tool, do aggregate analysis, and search log data.
This approach facilitates monitoring and reveals information about coordinated attacks on
multiple hosts.
n Configure the remote secure syslog on ESXi hosts by using a CLI such as vCLI or PowerCLI, or
by using an API client.
n Query the syslog configuration to make sure that the syslog server and port are valid.
See the vSphere Monitoring and Performance documentation for information about syslog setup,
and for additional information on ESXi log files.
For information about using the esxcli system syslog command and other vCLI commands,
see Getting Started with ESXCLI.
Procedure
2 Click Configure.
4 Click Edit.
6 To set up logging globally, select the setting to change and enter the value.
Option Description
Syslog.global.defaultRotate Maximum number of archives to keep. You can set this number globally and
for individual subloggers.
Syslog.global.defaultSize Default size of the log, in KB, before the system rotates logs. You can set
this number globally and for individual subloggers.
Syslog.global.LogDir Directory where logs are stored. The directory can be on mounted NFS
or VMFS volumes. Only the /scratch directory on the local file system
is persistent across reboots. Specify the directory as [datastorename]
path_to_file, where the path is relative to the root of the volume backing
the datastore. For example, the path [storage1] /systemlogs maps to
the path /vmfs/volumes/storage1/systemlogs.
Option Description
Syslog.global.logDirUnique Selecting this option creates a subdirectory with the name of the ESXi host
under the directory specified by Syslog.global.LogDir. A unique directory is
useful if the same NFS directory is used by multiple ESXi hosts.
Syslog.global.LogHost Remote host to which syslog messages are forwarded and port on which
the remote host receives syslog messages. You can include the protocol
and the port, for example, ssl://hostName1:1514. UDP (only on port 514),
TCP, and SSL are supported. The remote host must have syslog installed
and correctly configured to receive the forwarded syslog messages. See
the documentation for the syslog service installed on the remote host for
information on configuration.
7 (Optional) To overwrite the default log size and log rotation for any of the logs:
b Enter the number of rotations and the log size you want.
8 Click OK.
Results
ESXi host agent log /var/log/hostd.log Contains information about the agent
that manages and configures the ESXi
host and its virtual machines.
Virtual machines The same directory as the affected Contains virtual machine power
virtual machine's configuration events, system failure information,
files, named vmware.log and tools status and activity, time sync,
vmware*.log. For example, / virtual hardware changes, vMotion
vmfs/volumes/datastore/virtual migrations, machine clones, and so on.
machine/vwmare.log
This logging traffic between the primary and secondary VMs is unencrypted and contains guest
network and storage I/O data, as well as the memory contents of the guest operating system.
This traffic might include sensitive data such as passwords in plaintext. To avoid such data being
divulged, ensure that this network is secured, especially to avoid man-in-the-middle attacks. For
example, use a private network for FT logging traffic.
Note Starting with vSphere 6.0, the local administrator no longer has full administrative
rights to vCenter Server by default.
n Install vCenter Server using a service account instead of a Windows account. The service
account must be an administrator on the local machine.
n Make sure that applications use unique service accounts when connecting to a vCenter
Server system.
Users with the vCenter Server Administrator role have privileges on all objects in the hierarchy.
For example, by default the Administrator role allows users to interact with files and programs
inside a virtual machine's guest operating system. Assigning that role to too many users can
lessen virtual machine data confidentiality, availability, or integrity. Create a role that gives the
administrators the privileges they need, but remove some of the virtual machine management
privileges.
Minimize Access
Do not allow users to log directly in to the vCenter Server host machine. Users who are logged
in to the vCenter Server host machine can cause harm, either intentionally or unintentionally, by
altering settings and modifying processes. Those users also have potential access to vCenter
credentials, such as the SSL certificate. Allow only users who have legitimate tasks to perform to
log in to the system and ensure that login events are audited.
Some privileges are required only for installation and upgrade. You can remove these privileges
from the database administrator after vCenter Server is installed or upgraded.
Note Make sure that password aging policy is not too short.
Reestablish a named administrator account and assign the Administrator role to that
account to avoid using the anonymous vCenter Single Sign-On administrator account
([email protected] by default).
Procedure
3 Click Configure.
n If expired or revoked certificates are not removed from the vCenter Server system, the
environment can be subject to a MiTM attack
n In certain cases, a log file that contains the database password in plain text is created on
the system if vCenter Server installation fails. An attacker who breaks into the vCenter Server
system, might gain access to this password and, at the same time, access to the vCenter
Server database.
n Maintain a supported operating system, database, and hardware for the vCenter Server
system. If vCenter Server is not running on a supported operating system, it might not run
properly, making vCenter Server vulnerable to attacks.
n Keep the vCenter Server system properly patched. By staying up-to-date with operating
system patches, the server is less vulnerable to attack.
n Provide operating system protection on the vCenter Server host. Protection includes antivirus
and anti-malware software.
n On each Windows computer in the infrastructure, ensure that Remote Desktop (RDP) Host
Configuration settings are set to ensure the highest level of encryption according to industry-
standard guidelines or internal guidelines.
For operating system and database compatibility information, see the vSphere Compatibility
Matrices.
vCenter Server requires access to a management network only. Avoid putting the vCenter Server
system on other networks such as your production network or storage network, or on any
network with access to the Internet. vCenter Server does not need access to the network where
vMotion operates.
n Other vCenter Server systems (if the vCenter Server systems are part of a common vCenter
Single Sign-On domain for purposes of replicating tags, permissions, and so on).
n Systems that are authorized to run management clients. For example, the vSphere Client, a
Windows system where you use the PowerCLI, or any other SDK-based client.
n Systems that run add-on components such as VMware vSphere Update Manager.
n Other systems that run components that are essential to functionality of the vCenter Server
system.
Use a local firewall on the Windows system where the vCenter Server system is running or use
a network firewall. Include IP-based access restrictions so that only necessary components can
communicate with the vCenter Server system.
To improve security, you can replace the VMCA-signed certificates on the vCenter Server system
and on the ESXi hosts with certificates that are signed by an enterprise or third-party CA.
However, certain communications with Linux clients might still be vulnerable to man-in-the-middle
attacks. The following components are vulnerable when they run on the Linux operating system.
n vCLI commands
n Programs that are written using the vSphere Web Services SDK
You can relax the restriction against using Linux clients if you enforce proper controls.
n Use firewalls to ensure that only authorized hosts are allowed to access vCenter Server.
n Use jump-box systems to ensure that Linux clients are behind the jump.
A vCenter installation includes an extensibility framework for the vSphere Client and the vSphere
Web Client. You can use this framework to extend the clients with menu selections or toolbar
icons. The extensions can provide access to vCenter add-on components or external, Web-
based functionality.
Using the extensibility framework results in a risk of introducing unintended capabilities. For
example, if an administrator installs a plug-in in an instance of the vSphere Client, the plug-in can
run arbitrary commands with the privilege level of that administrator.
To protect against potential compromise of your vSphere Client or vSphere Web Client, examine
all installed plug-ins periodically and make sure that each plug-in comes from a trusted source.
Prerequisites
You must have privileges to access the vCenter Single Sign-On service. These privileges differ
from vCenter Server privileges.
Procedure
2 From the Home page, select Administration, then select Client Plug-Ins under Solutions.
Configure NTP
Ensure that all systems use the same relative time source. This time source must be in sync
with an agreed-upon time standard such as Coordinated Universal Time (UTC). Synchronized
systems are essential for certificate validation. NTP also makes it easier to track an intruder in
log files. Incorrect time settings make it difficult to inspect and correlate log files to detect
attacks, and make auditing inaccurate. See Synchronize the Time in the vCenter Server
Appliance with an NTP Server.
Restrict access to components that are required to communicate with the vCenter Server
Appliance. Blocking access from unnecessary systems reduces the potential for attacks on
the operating system.
For the list of all supported ports and protocols in VMware products, including vSphere and
vSAN, see the VMware Ports and Protocols Tool™ at https://ports.vmware.com/. You can
search ports by VMware product, create a customized list of ports, and print or save port
lists.
This section discusses vCenter Single Sign-On passwords. See ESXi Passwords and Account
Lockout for a discussion of passwords of ESXi local users.
n At least 8 characters
The password for this user cannot be more than 20 characters long. Starting with vSphere 6.0,
non-ASCII characters are allowed. Administrators can change the default password policy. See
the Platform Services Controller Administration documentation.
Starting with vSphere 6.0, the vCenter Single Sign-On domain administrator,
[email protected] by default, is not affected by the lockout policy. The user is affected
by the password policy.
Password Changes
If you know your password, you can change the password by using the dir-cli password
change command. If you forget your password, a vCenter Single Sign-On administrator can reset
your password by using the dir-cli password reset command.
Search the VMware Knowledge Base for information on password expiration and related topics
in different versions of vSphere.
Procedure
2 Click Configure.
4 Click Edit.
6 If any of your ESXi 5.5 or earlier hosts require manual validation, compare the thumbprints
listed for the hosts to the thumbprints in the host console.
To obtain the host thumbprint, use the Direct Console User Interface (DCUI).
a Log in to the direct console and press F2 to access the System Customization menu.
7 If the thumbprint matches, select the Verify check box next to the host.
Hosts that are not selected will be disconnected after you click OK.
8 Click Save.
vCenter Server is accessed through predetermined TCP and UDP ports. If you manage network
components from outside a firewall, you might be required to reconfigure the firewall to allow
access on the appropriate ports. For the list of all supported ports and protocols in vCenter
Server, see the VMware Ports and Protocols Tool™ at https://ports.vmware.com/.
During installation, if a port is in use or is blocked using a denylist, the vCenter Server installer
displays an error message. You must use another port number to proceed with the installation.
VMware uses designated ports for communication. Also, the managed hosts monitor designated
ports for data from vCenter Server. If a built-in firewall exists between any of these elements,
the installer opens the ports during the installation or upgrade process. For custom firewalls, you
must manually open the required ports. If you have a firewall between two managed hosts and
you want to perform source or target activities, such as migration or cloning, you must configure
a means for the managed hosts to receive data.
To configure the vCenter Server system to use a different port to receive vSphere Client data,
see the vCenter Server and Host Management documentation.
In an operating system that supports UEFI secure boot, each piece of boot software is signed,
including the bootloader, the operating system kernel, and operating system drivers. The virtual
machine's default configuration includes several code signing certificates.
n A Microsoft certificate that is used for third-party code that is signed by Microsoft, such as
Linux bootloaders.
n A VMware certificate that is used only for booting ESXi inside a virtual machine.
The virtual machine's default configuration includes one certificate for authenticating requests to
modify the secure boot configuration, including the secure boot revocation list, from inside the
virtual machine, which is a Microsoft KEK (Key Exchange Key) certificate.
In almost all cases, it is not necessary to replace the existing certificates. If you do want to
replace the certificates, see the VMware Knowledge Base system.
VMware Tools version 10.1 or later is required for virtual machines that use UEFI secure boot.
You can upgrade those virtual machines to a later version of VMware Tools when it becomes
available.
For Linux virtual machines, VMware Host-Guest Filesystem is not supported in secure boot mode.
Remove VMware Host-Guest Filesystem from VMware Tools before you enable secure boot.
Note If you turn on secure boot for a virtual machine, you can load only signed drivers into that
virtual machine.
This task describes how to use the vSphere Client to enable and disable secure boot for a
virtual machine. You can also write scripts to manage virtual machine settings. For example, you
can automate changing the firmware from BIOS to EFI for virtual machines with the following
PowerCLI code:
Prerequisites
You can enable secure boot only if all prerequisites are met. If prerequisites are not met, the
check box is not visible in the vSphere Client.
n Verify that the virtual machine operating system and firmware support UEFI boot.
n EFI firmware
Note Some guest operating systems do not support changing from BIOS boot to UEFI boot
without guest OS modifications. Consult your guest OS documentation before changing to
UEFI boot. If you upgrade a virtual machine that already uses UEFI boot to an operating
system that supports UEFI secure boot, you can enable Secure Boot for that virtual machine.
n Turn off the virtual machine. If the virtual machine is running, the check box is dimmed.
Procedure
6 Click OK.
Results
When the virtual machine boots, only components with valid signatures are allowed. The boot
process stops with an error if it encounters a component with a missing or invalid signature.
The virtual machine configuration file (VMX file) limit is 1 MB by default. In general, this capacity is
sufficient, but you can change this value if necessary. For example, you might increase the limit if
you store large amounts of custom information in the file.
Note Consider carefully how much information you require. If the amount of information
exceeds datastore capacity, a DoS can result.
The default limit of 1 MB is applied even when the tools.setInfo.sizeLimit parameter is not
listed in the advanced options.
Procedure
3 Select VM Options.
Keep all security measures up-to-date, including applying appropriate patches. It is especially
important to keep track of updates for dormant virtual machines that are powered off,
because it can be easy to overlook them. For example, ensure that anti-virus software,
anti-spy ware, intrusion detection, and other protection are enabled for every virtual machine
in your virtual infrastructure. You should also ensure that you have enough space for the
virtual machine logs.
Anti-virus scans
Because each virtual machine hosts a standard operating system, you must protect it from
viruses by installing anti-virus software. Depending on how you are using the virtual machine,
you might also want to install a software firewall.
Stagger the schedule for virus scans, particularly in deployments with a large number
of virtual machines. Performance of systems in your environment degrades significantly
if you scan all virtual machines simultaneously. Because software firewalls and antivirus
software can be virtualization-intensive, you can balance the need for these two security
measures against virtual machine performance, especially if you are confident that your
virtual machines are in a fully trusted environment.
Serial ports
Serial ports are interfaces for connecting peripherals to the virtual machine. They are often
used on physical systems to provide a direct, low-level connection to the console of a server,
and a virtual serial port allows for the same access to a virtual machine. Serial ports allow for
low-level access, which often does not have strong controls like logging or privileges.
You can use templates that can contain a hardened, patched, and properly configured operating
system to create other, application-specific templates, or you can use the application template to
deploy virtual machines.
Procedure
u Provide templates for virtual machine creation that contain hardened, patched, and properly
configured operating system deployments.
If possible, deploy applications in templates as well. Ensure that the applications do not
depend on information specific to the virtual machine to be deployed.
What to do next
For more information about templates, see the vSphere Virtual Machine Administration
documentation.
Procedure
1 Use native remote management services, such as terminal services and SSH, to interact with
virtual machines.
For example, in a highly secure environment, limit the connection to one. In some
environments, you can increase the limit if several concurrent connections are necessary to
accomplish normal tasks.
a In the vSphere Client, power off the virtual machine.
c Click the VM Options tab, and expand VMware Remote Console Options.
e Click OK.
By default, all virtual machines on an ESXi host share resources equally. You can use Shares and
resource pools to prevent a denial of service attack that causes one virtual machine to consume
so much of the host’s resources that other virtual machines on the same host cannot perform
their intended functions.
Do not set limits or use resource pools until you fully understand the impact.
Procedure
1 Provision each virtual machine with just enough resources (CPU and memory) to function
properly.
4 In each resource pool, leave Shares set to the default to ensure that each virtual machine in
the pool receives approximately the same resource priority.
With this setting, a single virtual machine cannot use more than other virtual machines in the
resource pool.
What to do next
See the vSphere Resource Management documentation for information about shares and limits.
Virtual machines do not usually require as many services or functions as physical servers. When
you virtualize a system, evaluate whether a particular service or function is necessary.
Note When possible, install guest operating systems using "minimal" or "core" installation modes
to reduce the size, complexity, and attack surface of the guest operating system.
Procedure
For example, if the system runs a file server, turn off any Web services.
u Disconnect unused physical devices, such as CD/DVD drives, floppy drives, and USB
adapters.
u Disable unused functionality, such as unused display features, or VMware Shared Folders,
which enables sharing of host files to the virtual machine (Host Guest File System).
u Do not run the X Window system on top of Linux, BSD, or Solaris guest operating systems
unless it is necessary.
An attacker with access to a virtual machine can connect a disconnected hardware device
and access sensitive information on media that is left in a hardware device. The attacker can
potentially disconnect a network adapter to isolate the virtual machine from its network, resulting
in a denial of service.
n Ensure that only required devices are connected to a virtual machine. Virtual machines rarely
use serial or parallel ports. As a rule, CD/DVD drives are connected only temporarily during
software installation.
Procedure
n Floppy drives
n Serial ports
n Parallel ports
n USB controllers
n CD-ROM drives
Prerequisites
Procedure
3 Select VM Options.
Option Description
svga.vgaonly If you set this parameter to TRUE, advanced graphics functions no longer
work. Only character-cell console mode is available. If you use this setting,
mks.enable3d has no effect.
Note Apply this setting only to virtual machines that do not need a
virtualized video card.
mks.enable3d Set this parameter to FALSE on virtual machines that do not require 3D
functionality.
Prerequisites
Procedure
3 Select VM Options.
n isolation.tools.unity.push.update.disable
n isolation.tools.ghi.launchmenu.change
n isolation.tools.memSchedFakeSampleStats.disable
n isolation.tools.getCreds.disable
n isolation.tools.ghi.autologon.disable
n isolation.bios.bbs.disable
n isolation.tools.hgfsServerSet.disable
6 Click OK.
Disable VMware Shared Folders Sharing Host Files to the Virtual Machine
In high-security environments, you can disable certain components to minimize the risk that an
attacker can use the host guest file system (HGFS) to transfer files inside the guest operating
system.
Modifying the parameters described in this section affects only the Shared Folders feature and
does not affect the HGFS server running as part of tools in the guest virtual machines. Also, these
parameters do not affect the auto-upgrade and VIX commands that use the tools' file transfers.
Procedure
3 Select VM Options.
A setting of TRUE prevents the VMX process from receiving a notification from each tool's
service, daemon, or upgrader processes of its HGFS server capability.
A setting of TRUE disables the unused VMware Shared Folders feature for sharing host files
to the virtual machine.
Disable Copy and Paste Operations Between Guest Operating System and
Remote Console
Copy and paste operations between the guest operating system and remote console are
disabled by default. For a secure environment, retain the default setting. If you require copy
and paste operations, you must enable them using the vSphere Client.
The default values for these options are set to ensure a secure environment. However, you must
set them to true explicitly if you want to enable audit tools to check that the setting is correct.
Prerequisites
Procedure
3 Select VM Options.
5 Ensure that the following values are in the Name and Value columns, or add them.
Name Value
isolation.tools.copy.disable true
isolation.tools.paste.disable true
isolation.tools.setGUIOptions.ena false
ble
These options override any settings made in the guest operating system’s VMware Tools
control panel.
6 Click OK.
7 (Optional) If you made changes to the configuration parameters, restart the virtual machine.
When copy and paste is enabled on a virtual machine running VMware Tools, you can copy and
paste between the guest operating system and remote console. When the console window gains
focus, processes running in the virtual machine and non-privileged users can access the virtual
machine console clipboard. If a user copies sensitive information to the clipboard before using
the console, the use might expose sensitive data to the virtual machine. To prevent this problem,
copy and paste operations for the guest operating system are disabled by default.
It is possible to enable copy and paste operations for virtual machines if necessary.
For security, be as restrictive about allowing access to the virtual data center as you are to
the physical data center. Apply a custom role that disables guest access to users who require
administrator privileges, but who are not authorized to interact with guest operating system files
and applications.
For example, a configuration might include a virtual machine on the infrastructure that has
sensitive information on it.
If tasks such as migration with vMotion require that data center administrators can access the
virtual machine, disable some remote guest OS operations to ensure that those administrators
cannot access sensitive information.
Prerequisites
Verify that you have Administrator privileges on the vCenter Server system where you create
the role.
Procedure
1 Log in to the vSphere Client as a user who has Administrator privileges on the vCenter
Server system where you want to create the role.
3 Click the Administrator role and click the Clone role action icon.
5 Select the cloned role and click the Edit role action icon.
6 Under the Virtual machine privilege, deselect Guests operations and click Next.
7 Click Finish.
What to do next
Select the vCenter Server system or the host and assign a permission that pairs the user or group
that should have the new privileges to the newly created role. Remove those users from the
Administrator role.
You can prevent virtual machine users in the guest OS, and processes running in the guest OS,
from making any changes to the devices by changing the virtual machine advanced settings.
Prerequisites
Procedure
3 Select VM Options.
5 Verify that the following values are in the Name and Value columns, or add them.
Name Value
isolation.device.connectable.disable true
isolation.device.edit.disable true
These settings do not affect a vSphere administrator's ability to connect or disconnect the
devices attached to the virtual machine.
6 Click OK to close the Configuration Parameters dialog box, and click OK again.
Prerequisites
Procedure
3 Select VM Options.
5 Click Add Configuration Params and enter the following values in the Name and Value
columns.
Column Value
Name isolation.tools.setinfo.disable
Value true
6 Click OK to close the Configuration Parameters dialog box, and click OK again.
Procedure
u Ensure that virtual machine activity is logged remotely on a separate server, such as a syslog
server or equivalent Windows-based event collector.
If remote logging of events and activity is not configured for the guest, scsiX:Y.mode should
be one of the following settings:
n Not present
Results
When nonpersistent mode is not enabled, you cannot roll a virtual machine back to a known
state when you reboot the system.
n Manage setup of the trusted connection with the KMS and perform most encryption
workflows from the vSphere Client.
n Manage automation of some advanced features from the vSphere Web Services SDK. See
vSphere Web Services SDK Programming Guide and VMware vSphere API Reference.
n Use the crypto-util command-line tool directly on the ESXi host for some special cases, for
example, to decrypt the core dumps in a vm-support bundle.
encrypted, the virtual machine is protected. Only administrators with encryption privileges can
perform encryption and decryption tasks.
1 The ESXi host generates and uses internal keys to encrypt virtual machines and disks. These
keys are used as DEKs.
2 vCenter Server requests keys from the KMS. These keys are used as the KEKs. vCenter
Server stores only the ID of each KEK, but not the key itself.
3 ESXi uses the KEK to encrypt the internal keys, and stores the encrypted internal key on disk.
ESXi does not store the KEK on disk. If a host reboots, vCenter Server requests the KEK with
the corresponding ID from the KMS and makes it available to ESXi. ESXi can then decrypt the
internal keys as needed.
What Is Encrypted
vSphere Virtual Machine Encryption supports encryption of virtual machine files, virtual disk files,
and core dump files.
Most virtual machine files, in particular, guest data that are not stored in the VMDK file, are
encrypted. This set of files includes but is not limited to the NVRAM, VSWP, and VMSN files.
The key that vCenter Server retrieves from the KMS unlocks an encrypted bundle in the VMX
file that contains internal keys and other secrets.
If you are using the vSphere Client to create an encrypted virtual machine, you can encrypt
and decrypt virtual disks separate from virtual machine files. If you are using the vSphere
Web Client to create an encrypted virtual machine, all virtual disks are encrypted by default.
For other encryption tasks, for both clients, such as encrypting an existing virtual machine,
you can encrypt and decrypt virtual disks separate from virtual machine files.
Note You cannot associate an encrypted virtual disk with a virtual machine that is not
encrypted.
Data in an encrypted virtual disk (VMDK) file is never written in cleartext to storage or
physical disk, and is never transmitted over the network in cleartext. The VMDK descriptor
file is mostly cleartext, but contains a key ID for the KEK and the internal key (DEK) in the
encrypted bundle.
You can use the vSphere API to perform either a shallow recrypt operation with a new KEK or
deep recrypt operation with a new internal key.
Core dumps
Core dumps on an ESXi host that has encryption mode enabled are always encrypted. See
vSphere Virtual Machine Encryption and Core Dumps.
Note Core dumps on the vCenter Server system are not encrypted. Protect access to the
vCenter Server system.
Note For information on some limitations concerning devices and features that vSphere Virtual
Machine Encryption can interoperate with, see Virtual Machine Encryption Interoperability.
Log files
Log files are not encrypted because they do not contain sensitive data.
Most of the virtual machine configuration information, stored in the VMX and VMSD files, is
not encrypted.
To support disk management without a key, most of the virtual disk descriptor file is not
encrypted.
You can create additional custom roles, for example, to allow a group of users to encrypt virtual
machines but to prevent them from decrypting virtual machines.
vSphere Client or vSphere Web Create encrypted virtual machine This book.
Client Encrypt and decrypt virtual machines
vSphere Web Services SDK Create encrypted virtual machine vSphere Web Services SDK
Encrypt and decrypt virtual machines Programming Guide
Perform a deep recrypt of a virtual machine (use VMware vSphere API Reference
a different DEK).
Perform a shallow recrypt of a virtual machine
(use a different KEK).
Third-Party Key
Management Server
Managed
VM Keys
vSphere
vCenter Server
Managed VM
key IDs
You can use the vSphere Web Client or the vSphere API to add a cluster of KMS instances to the
vCenter Server system. If you use multiple KMS instances in a cluster, all instances must be from
the same vendor and must replicate keys.
If your environment uses different KMS vendors in different environments, you can add a KMS
cluster for each KMS and specify a default KMS cluster. The first cluster that you add becomes
the default cluster. You can explicitly specify the default later.
As a KMIP client, vCenter Server uses the Key Management Interoperability Protocol (KMIP) to
make it easy to use the KMS of your choice.
vCenter Server
Only vCenter Server has the credentials for logging in to the KMS. Your ESXi hosts do not have
those credentials. vCenter Server obtains keys from the KMS and pushes them to the ESXi hosts.
vCenter Server does not store the KMS keys, but keeps a list of key IDs.
vCenter Server checks the privileges of users who perform cryptographic operations. You can
use the vSphere Web Client to assign cryptographic operation privileges or to assign the No
cryptography administrator custom role to groups of users. See Prerequisites and Required
Privileges for Encryption Tasks.
vCenter Server adds cryptography events to the list of events that you can view and export
from the vSphere Web Client Event Console. Each event includes the user, time, key ID, and
cryptographic operation.
The keys that come from the KMS are used as key encryption keys (KEKs).
ESXi Hosts
ESXi hosts are responsible for several aspects of the encryption workflow.
n vCenter Server pushes keys to an ESXi host when the host needs a key. The host must
have encryption mode enabled. The current user's role must include cryptographic operation
privileges. See Prerequisites and Required Privileges for Encryption Tasks and Cryptographic
Operations Privileges.
n Ensuring that guest data for encrypted virtual machines is encrypted when stored on disk.
n Ensuring that guest data for encrypted virtual machines is not sent over the network without
encryption.
The keys that the ESXi host generates are called internal keys in this document. These keys
typically act as data encryption keys (DEKs).
The process flow includes the KMS, the vCenter Server, and the ESXi host.
Third-Party Key
Management Server
Managed
VM Keys
vSphere
vCenter Server
Managed VM
key IDs
1 When the user performs an encryption task, for example, creating an encrypted virtual
machine, vCenter Server requests a new key from the default KMS. This key will be used
as the KEK.
2 vCenter Server stores the key ID and passes the key to the ESXi host. If the ESXi host is part
of a cluster, vCenter Server sends the KEK to each host in the cluster.
The key itself is not stored on the vCenter Server system. Only the key ID is known.
3 The ESXi host generates internal keys (DEKs) for the virtual machine and its disks. It keeps
the internal keys in memory only, and uses the KEKs to encrypt internal keys.
Unencrypted internal keys are never stored on disk. Only encrypted data is stored. Because
the KEKs come from the KMS, the host continues to use the same KEKs.
4 The ESXi host encrypts the virtual machine with the encrypted internal key.
Any hosts that have the KEK and that can access the encrypted key file can perform
operations on the encrypted virtual machine or disk.
If you later want to decrypt a virtual machine, you change its storage policy. You can change the
storage policy for the virtual machine and all disks. If you want to decrypt individual components,
decrypt selected disks first, then decrypt the virtual machine by changing the storage policy for
VM Home. Both keys are required for decryption of each component.
Encryption for a virtual machine and its disks is controlled through storage policies. The storage
policy for VM Home governs the virtual machine itself, and each virtual disk has an associated
storage policy.
n Setting the storage policy of VM Home to an encryption policy encrypts only the virtual
machine itself.
n Setting the storage policy of VM Home and all the disks to an encryption policy encrypts all
components.
Create an encrypted virtual machine. If you add disks while creating an encrypted virtual
machine, the disks are encrypted by default. You can
change the policy to not encrypt one or more of the disks.
After virtual machine creation, you can explicitly change
the storage policy for each disk. See Change the
Encryption Policy for Virtual Disks.
Encrypt a virtual machine. To encrypt an existing virtual machine, you change its
storage policy. You can change the storage policy for
the virtual machine and all virtual disks. To encrypt just
the virtual machine, you can specify an encryption policy
for VM Home and select a different storage policy, such
as Datastore Default, for each virtual disk. See Create an
Encrypted Virtual Machine.
Add an existing unencrypted disk to an encrypted virtual Fails with an error. You have to add the disk with the
machine (encryption storage policy). default storage policy, but can later change the storage
policy. See Change the Encryption Policy for Virtual Disks.
Add an existing unencrypted disk to an encrypted virtual The disk uses the default storage policy. You can explicitly
machine with a storage policy that does not include change the storage policy after adding the disk if you
encryption, for example Datastore Default. want an encrypted disk. See Change the Encryption
Policy for Virtual Disks.
Add an encrypted disk to an encrypted virtual machine. When you add the disk, it remains encrypted. The
VM Home storage policy is Encryption. vSphere Web Client displays the size and other attributes,
including encryption status but might not display the
correct storage policy. For consistency, change the
storage policy.
Add an existing encrypted disk to an unencrypted virtual This use case is not supported.
machine
n Global.Diagnostics
You can assign the No cryptography administrator role to vCenter Server administrators that do
not need Cryptographic Operations privileges.
To further limit what users can do, you can clone the No cryptography administrator role and
create a custom role with only some of the Cryptographic Operations privileges. For example,
you can create a role that allows users to encrypt but not to decrypt virtual machines. See Using
Roles to Assign Privileges.
When host encryption mode is enabled, vCenter Server installs a host key on the host, which
ensures that the host is cryptographically "safe." With the host key in place, other cryptographic
operations can proceed, including vCenter Server obtaining keys from the Key Management
Server cluster and pushing them to the ESXi hosts.
In "safe" mode, user worlds (that is, hostd) and encrypted virtual machines have their core dumps
encrypted. Unencrypted virtual machines do not have their core dumps encrypted.
For more information about encrypted core dumps and how they are used by VMware Technical
Support, see the VMware knowledge base article at http://kb.vmware.com/kb/2147388.
After Host encryption mode is enabled, it cannot be disabled easily. See Disable Host Encryption
Mode.
Automatic changes occur when encryption operations attempt to enable host encryption mode.
For example, assume that you add an encrypted virtual machine to a standalone host. Host
encryption mode is not enabled. If you have the required privileges on the host, encryption mode
changes to enabled automatically.
Assume that a cluster has three ESXi hosts, host A, B, and C. You create an encrypted virtual
machine on host A. What happens depends on several factors.
n If hosts A, B, and C already have encryption enabled, you need only Cryptographic
operations.Encrypt new privileges to create the virtual machine.
n If hosts A and B are enabled for encryption and C is not enabled, the system proceeds as
follows.
n Assume that you have both the Cryptographic operations.Encrypt new and the
Cryptographic operations.Register host privileges on each host. In that case, the virtual
machine creation process enables encryption on host C. The encryption process enables
host encryption mode on host C, and pushes the key to each host in the cluster.
For this case, you can also explicitly enable host encryption on host C.
n Assume that you have only Cryptographic operations.Encrypt new privileges on the
virtual machine or virtual machine folder. In that case, virtual machine creation succeeds
and the key becomes available on host A and host B. Host C remains disabled for
encryption and does not have the virtual machine key.
n If none of the hosts has encryption enabled, and you have Cryptographic
operations.Register host privileges on host A, then the virtual machine creation process
enables host encryption on that host. Otherwise, an error results.
Encrypted vSphere vMotion secures confidentiality, integrity, and authenticity of data that is
transferred with vSphere vMotion.
n vSphere supports encrypted vMotion of unencrypted virtual machines across vCenter Server
instances.
n vSphere does not support vMotion of encrypted virtual machines across vCenter Server
instances. Because one vCenter instance cannot verify that another vCenter instance is
connected to the same Key Management System cluster, the proper encryption keys are
not available for successful VM encryption operation. As a result, vMotion in this situation is
not currently supported.
What Is Encrypted
For encrypted disks, the data is transmitted encrypted. For disks that are not encrypted, Storage
vMotion encryption is not supported.
For virtual machines that are encrypted, migration with vSphere vMotion always uses encrypted
vSphere vMotion. You cannot turn off encrypted vSphere vMotion for encrypted virtual
machines.
Disabled
Opportunistic
Use encrypted vSphere vMotion if source and destination hosts support it. Only ESXi versions
6.5 and later use encrypted vSphere vMotion.
Required
Allow only encrypted vSphere vMotion. If the source or destination host does not support
encrypted vSphere vMotion, migration with vSphere vMotion is not allowed.
When you encrypt a virtual machine, the virtual machine keeps a record of the current encrypted
vSphere vMotion setting. If you later disable encryption for the virtual machine, the encrypted
vMotion setting remains at Required until you change the setting explicitly. You can change the
settings using Edit Settings.
See the vCenter Server and Host Management documentation for information on enabling and
disabling encrypted vSphere vMotion for virtual machines that are not encrypted.
n If your ESXi host fails, retrieve the support bundle as soon as possible. The host key must
be available for generating a support bundle that uses a password, or for decrypting a core
dump. If the host is rebooted, it is possible that the host key changes. If that happens, you
can no longer generate a support bundle with a password or decrypt core dumps in the
support bundle with the host key.
n Manage KMS cluster names carefully. If the KMS cluster name changes for a KMS that is
already in use, a VM that is encrypted with keys from that KMS enters a locked state during
power-on or register. In that case, remove the KMS from the vCenter Server and add it with
the cluster name that you used initially.
n Do not edit VMX files and VMDK descriptor files. These files contain the encryption bundle. It
is possible that your changes make the virtual machine unrecoverable, and that the recovery
problem cannot be fixed.
n The encryption process encrypts data on the host before it is written to storage. Backend
storage features such as deduplication and compression might not be effective for encrypted
virtual machines. Consider storage tradeoffs when using vSphere Virtual Machine Encryption.
n Establish a policy regarding core dumps. Core dumps are encrypted because they can
contain sensitive information such as keys. If you decrypt a core dump, consider it sensitive
information. ESXi core dumps might contain keys for the ESXi host and for the virtual
machines on it. Consider changing the host key and recrypting encrypted virtual machines
after you decrypt a core dump. You can perform both tasks by using the vSphere API.
See vSphere Virtual Machine Encryption and Core Dumps for details.
n Always use a password when you collect a vm-support bundle. You can specify the
password when you generate the support bundle from the vSphere Client or using the
vm-support command.
The password recrypts core dumps that use internal keys to use keys that are based on the
password. You can later use the password to decrypt any encrypted core dumps that might
be included in the support bundle. Unencrypted core dumps and logs are not affected by
using the password option.
n The password that you specify during vm-support bundle creation is not persisted in
vSphere components. You are responsible for keeping track of passwords for support
bundles.
n Before you change the host key, generate a vm-support bundle with a password. You can
later use the password to access any core dumps that might have been encrypted with the
old host key.
n You are responsible for having policies in place that guarantee KMS availability.
If the KMS is not available, virtual machine operations that require that vCenter Server
request the key from the KMS are not possible. That means running virtual machines continue
to run, and you can power on, power off, and reconfigure those virtual machines. However,
you cannot relocate the virtual machine to a host that does not have the key information.
Most KMS solutions include high availability features. You can use the vSphere Client or the
API to specify a KMS cluster and the associated KMS servers.
n You are responsible for keeping track of keys and for performing remediation if keys for
existing virtual machines are not in the Active state.
n Pre-Active
n Active
n Deactivated
n Compromised
n Destroyed
n Destroyed Compromised
vSphere Virtual Machine Encryption uses only Active keys for encryption. If a key is Pre-
Active, vSphere Virtual Machine Encryption activates it. If the key state is Deactivated,
Compromised, Destroyed, Destroyed Compromised, you cannot encrypt a virtual machine
or disk with that key.
For keys that are in other states, virtual machines using those keys continue to work.
Whether a clone or migration operation succeeds depends on whether they key is already on
the host.
n If the key is on the destination host, the operation succeeds even if the key is not Active
on the KMS.
n If the required virtual machine and virtual disk keys are not on the destination host,
vCenter Server has to fetch the keys from the KMS. If the key state is Deactivated,
Compromised, Destroyed, or Destroyed Compromised, vCenter Server displays an error
and the operation does not succeed.
A clone or migration operation succeeds if the key is already on the host. The operation fails
if vCenter Server has to pull the keys from the KMS.
If a key is not Active, perform a rekey operation using the API. See the vSphere Web Services
SDK Programming Guide.
n Not all backup architectures are supported. See Virtual Machine Encryption Interoperability.
n Set up policies for restore operations. Because backup is always in cleartext, plan to encrypt
virtual machines right after restore is complete. You can specify that the virtual machine is
encrypted as part of the restore operation. If possible, encrypt virtual machine as part of the
restore process to avoid exposing sensitive information. To change the encryption policy for
any disks that are associated with the virtual machine, change the storage policy for the disk.
n Because the VM home files are encrypted, ensure that the encryption keys are available at
the time of a restore.
n Encrypting existing virtual machines is more time consuming than encrypting a virtual
machine during creation. Encrypt a virtual machine when you create it if possible.
Note No automated way of returning VM Encryption Policy to its original settings exists.
See the vSphere Storage documentation for details customizing storage policies.
To understand which devices and features cannot be used with Virtual Machine Encryption, see
Virtual Machine Encryption Interoperability.
Limitations
Consider the following caveats when you plan your virtual machine encryption strategy.
n When you clone an encrypted virtual machine or perform a Storage vMotion operation,
you can attempt to change the disk format. Such conversions do not always succeed.
For example, if you clone a virtual machine and attempt to change the disk format from
lazy-zeroed thick format to thin format, the virtual machine disk keeps the lazy-zeroed thick
format.
n When you detach a disk from a virtual machine, the storage policy information for the virtual
disk is not retained.
n If the virtual disk is encrypted, you must explicitly set the storage policy to VM Encryption
Policy or to a storage policy that includes encryption.
n If the virtual disk is not encrypted, you can change the storage policy when you add the
disk to a virtual machine.
The vCenter Server does not store KMS keys but only tracks the key IDs. As a result, vCenter
Server does not store the ESXi host key persistently.
Under certain circumstances, for example, when you move the ESXi host to a different cluster
and reboot the host, vCenter Server assigns a new host key to the host. You cannot decrypt
any existing core dumps with the new host key.
n Using the VMware Host Client to register an encrypted virtual machine is not supported.
n When you encrypt both a virtual machine and its disks from the vSphere Client, the same key
is used for both.
n When you perform the encryption using the API, you can use different encryption keys for
the virtual machine and for disks. In that case, if you attempt to power on a virtual machine,
and one of the disk keys is missing, the power on operation fails. If you remove the virtual
disk, you can power on the virtual machine.
The following limitations and remarks refer to using vSphere Virtual Machine Encryption.
For similar information about using vSAN encryption, see the Administering VMware vSAN
documentation.
n For most virtual machine encryption operations, you must power off the virtual machine. You
can clone an encrypted virtual machine and you can perform a shallow recrypt while the
virtual machine is powered on.
Note Virtual machines configured with IDE controllers must be powered off to perform a
shallow rekey operation.
n You cannot perform a deep recrypt on a virtual machine with snapshots. You can perform a
shallow recrypt on a virtual machine with snapshots.
Caution Cloning a virtual machine duplicates the entire virtual machine, including the virtual
devices such as a vTPM. Information stored in the vTPM, including properties of the vTPM that
software can use to determine a system’s identity, is also duplicated.
n Full clones are supported. The clone inherits the parent encryption state including keys.
You can encrypt the full clone, re-encrypt the full clone to use new keys, or decrypt the
full clone.
Linked clones are supported and the clone inherits the parent encryption state including
keys. You cannot decrypt the linked clone or re-encrypt a linked clone with different keys.
Note Verify that other applications support linked clones. For example, VMware
®
Horizon 7 supports both full clones and instant clones, but not linked clones.
n Instant clone is supported, but you cannot change encryption keys on clone.
n RDM (Raw Device Mapping). However, vSphere Virtual Volumes (vVols) are supported.
n Multi-writer or shared disks (MSCS, WSFC, or Oracle RAC). Encrypted virtual machine “home”
files are supported for multi-writer disks. Encrypted virtual disks are not supported for multi-
writer disks. If you attempt to select Multi-writer in the Edit Settings page of the virtual
machine with encrypted virtual disks, the OK button is deactivated.
n Content Library
n Content libraries support two types of templates, the OVF Template type and the VM
Template type. You cannot export an encrypted virtual machine to the OVF Template
type. The OVF Tool does not support encrypted virtual machines. You can create
encrypted VM templates using the VM Template type. See the vSphere Virtual Machine
Administration documentation.
n Software for backing up encrypted virtual disks must use the VMware vSphere Storage API
- Data Protection (VADP) to either back up the disks in hot-add mode or NBD mode with
SSL enabled. However, not all backup solutions that use VADP for virtual disk backup are
supported. Check with your backup vendor for details.
n VADP SAN transport mode solutions are not supported for backing up encrypted virtual
disks.
n VADP Hot-Add solutions are supported for encrypted virtual disks. The backup software
must support encryption of the proxy VM that is used as part of the hot-add backup
workflow. The vendor must have the privilege Cryptographic Operations.Encrypt Virtual
Machine.
n Backup solutions using the NBD-SSL transport modes are supported for backing up
encrypted virtual disks. The vendor application must have the privilege Cryptographic
Operations.Direct Access.
n You cannot send output from an encrypted virtual machine to a serial port or parallel port.
Even if the configuration appears to succeed, output is sent to a file.
n vSphere Virtual Machine Encryption is not supported in VMware Cloud on AWS. See the
Managing the VMware Cloud on AWS Data Center documentation.
You can perform additional tasks by using the API and by using the crypto-util CLI. See the
vSphere Web Services SDK Programming Guide for API documentation and the crypto-util
command-line help for details about that tool.
The KMS must support the Key Management Interoperability Protocol (KMIP) 1.1 standard. See the
vSphere Compatibility Matrices for details.
You can find information about VMware certified KMS vendors in the VMware Compatibility
Guide under Platform and Compute. If you select Compatibility Guides, you can open the
Key Management Server (KMS) compatibility documentation. This documentation is updated
frequently.
The vSphere Client (HTML5-based client) provides a wizard to add a KMS to your vCenter Server
system, and establish trust between the KMS and vCenter Server.
vCenter Server creates a KMS cluster when you add the first KMS instance.
n After vCenter Server creates the first cluster, you can add KMS instances from the same
vendor to the cluster.
n You can set up the cluster with only one KMS instance.
n If your environment supports KMS solutions from different vendors, you can add multiple
KMS clusters.
n If your environment includes multiple KMS clusters, and you delete the default cluster, you
must set another default explicitly.
Note The following steps apply to vCenter Server Appliance. For vCenter Server on Windows,
you are prompted to first make the KMS trust vCenter Server, then make vCenter Server trust the
KMS.
Prerequisites
n Verify that the key server is in the VMware Compatibility Guide for Key Management Servers
(KMS) and is KMIP 1.1 compliant, and that it can be a symmetric key foundry and server.
n Verify that you have the required privileges: Cryptographic operations.Manage key servers.
n Both vCenter Server and the KMS can be configured with only IPv6 addresses.
Procedure
1 Log in to the vCenter Server system with the vSphere Client (HTML5-based client).
2 Browse the inventory list and select the vCenter Server instance.
4 Click Add, specify the KMS information in the wizard, and click OK.
5 Click Trust.
The wizard displays that vCenter Server trusts the KMS with a green check mark.
7 Select the option appropriate for your server and complete the steps.
Option See
Root CA certificate Use the Root CA Certificate Option to Establish a Trusted Connection.
New Certificate Signing Request Use the New Certificate Signing Request Option to Establish a Trusted
Connection.
Upload certificate and private key Use the Upload Certificate and Private Key Option to Establish a Trusted
Connection.
The wizard displays that the KMS trusts vCenter Server with a green check mark.
vCenter Server creates a KMS cluster when you add the first KMS instance.
n When you add the KMS, you are prompted to set this cluster as a default. You can later
change the default cluster explicitly.
n After vCenter Server creates the first cluster, you can add KMS instances from the same
vendor to the cluster.
n You can set up the cluster with only one KMS instance.
n If your environment supports KMS solutions from different vendors, you can add multiple
KMS clusters.
n If your environment includes multiple KMS clusters, and you delete the default cluster, you
must set the default explicitly. See Set the Default KMS Cluster.
Prerequisites
n Verify that the key server is in the vSphere Compatibility Matrices and is KMIP 1.1 compliant,
and that it can be a symmetric key foundry and server.
n Verify that you have the required privileges: Cryptographic operations.Manage key servers.
n Both vCenter Server and the KMS can be configured with only IPv6 addresses.
Procedure
1 Log in to the vCenter Server system with the vSphere Web Client.
2 Browse the inventory list and select the vCenter Server instance.
4 Click Add KMS, specify the KMS information in the wizard, and click OK.
Option Value
KMS cluster Select Create new cluster for a new cluster. If a cluster exists, you can select
that cluster.
Cluster name Name for the KMS cluster. You might need this name to connect to the KMS
if your vCenter Server instance becomes unavailable.
Option Value
Server alias Alias for the KMS. You might need this alias to connect to the KMS if your
vCenter Server instance becomes unavailable.
User name Some KMS vendors allow users to isolate encryption keys that are used by
different users or groups by specifying a user name and password. Specify
a user name only if your KMS supports this functionality, and if you intend to
use it.
Password Some KMS vendors allow users to isolate encryption keys that are used by
different users or groups by specifying a user name and password. Specify
a password only if your KMS supports this functionality, and if you intend to
use it.
Prerequisites
Procedure
1 Log in to the vSphere Web Client, and select a vCenter Server system.
3 Select the KMS instance with which you want to establish a trusted connection.
5 Select the option appropriate for your server and complete the steps.
Option See
Root CA certificate Use the Root CA Certificate Option to Establish a Trusted Connection.
New Certificate Signing Request Use the New Certificate Signing Request Option to Establish a Trusted
Connection.
Upload certificate and private key Use the Upload Certificate and Private Key Option to Establish a Trusted
Connection.
The root CA certificate that vSphere Virtual Machine Encryption uses is a self-signed certificate
that is stored in a separate store in the VMware Endpoint Certificate Store (VECS) on the vCenter
Server system.
Note Generate a root CA certificate only if you want to replace existing certificates. If you do,
other certificates that are signed by that root CA become invalid. You can generate a new root
CA certificate as part of this workflow.
Procedure
1 Log in to the vSphere Web Client, and select a vCenter Server system.
3 Select the KMS instance with which you want to establish a trusted connection.
The Download Root CA Certificate dialog box is populated with the root certificate that
vCenter Server uses for encryption. This certificate is stored in VECS.
6 Follow the instructions from your KMS vendor to upload the certificate to their system.
Note Some KMS vendors require that the KMS vendor restarts the KMS to pick up the root
certificate that you upload.
What to do next
vCenter Server generates a certificate to protect connections with the KMS. The certificate is
stored in a separate key store in the VMware Endpoint Certificate Store (VECS) on the vCenter
Server system.
Procedure
1 Log in to the vSphere Web Client, and select a vCenter Server system.
3 Select the KMS instance with which you want to establish a trusted connection.
The Download Certificate dialog box is populated with the root certificate that vCenter Server
uses for encryption. This certificate is stored in VECS.
Note Do not generate a new certificate unless you want to replace existing certificates.
6 Follow the instructions from your KMS vendor to upload the certificate to the KMS.
What to do next
Using the New Certificate Signing Request option is a two-step process. First you generate the
CSR and send it to the KMS vendor. Then you upload the signed certificate that you receive from
the KMS vendor to vCenter Server.
Procedure
1 Log in to the vSphere Web Client, and select a vCenter Server system.
3 Select the KMS instance with which you want to establish a trusted connection.
5 In the dialog box, copy the full certificate in the text box to the clipboard or download it as a
file, and click OK.
Use the Generate new CSR button in the dialog box only if you explicitly want to generate a
CSR. Using that option makes any signed certificates that are based on the old CSR invalid.
6 Follow the instructions from your KMS vendor to submit the CSR.
7 When you receive the signed certificate from the KMS vendor, click Key Management
Servers again, and select New Certificate Signing Request again.
8 Paste the signed certificate into the bottom text box or click Upload File and upload the file,
and click OK.
What to do next
Use the Upload Certificate and Private Key Option to Establish a Trusted
Connection
Some KMS vendors require that you upload the KMS server certificate and private key to the
vCenter Server system.
Some KMS vendors generate a certificate and private key for the connection and make them
available to you. After you upload the files, the KMS trusts your vCenter Server instance.
Prerequisites
n Request a certificate and private key from the KMS vendor. The files are X509 files in PEM
format.
Procedure
1 Log in to the vSphere Web Client, and select a vCenter Server system.
3 Select the KMS instance with which you want to establish a trusted connection.
5 Paste the certificate that you received from the KMS vendor into the top text box or click
Upload File to upload the certificate file.
6 Paste the key file into the bottom text box or click Upload File to upload the key file.
7 Click OK.
What to do next
Prerequisites
As a best practice, verify that the Connection Status in the Key Management Servers tab shows
Normal and a green check mark.
Procedure
1 Log in to the vSphere Web Client and select a vCenter Server system.
2 Click the Configure tab and click Key Management Servers under More.
Do not select the server. The menu to set the default is available only for the cluster.
4 Click Yes.
You can complete the trust setup, that is, make vCenter Server trust the KMS, either by trusting
the KMS or by uploading a KMS certificate. You have two options:
n Trust the certificate explicitly by using the Refresh KMS certificate option.
n Upload a KMS leaf certificate or the KMS CA certificate to vCenter Server by using the
Upload KMS certificate option.
Note If you upload the root CA certificate or the intermediate CA certificate, vCenter Server
trusts all certificates that are signed by that CA. For strong security, upload a leaf certificate or an
intermediate CA certificate that the KMS vendor controls.
Procedure
1 Log in to the vSphere Web Client, and select a vCenter Server system.
3 Select the KMS instance with which you want to establish a trusted connection.
Option Action
Refresh KMS certificate a Click All Actions, and select Refresh KMS certificate.
b In the dialog box that appears, click Trust.
Upload KMS certificate a Click All Actions, and select Upload KMS Certificate.
b In the dialog box that appears, click Upload file, upload a certificate file,
and click OK.
Using multiple KMS clusters allows you to use the same KMS to separate keys. Having separate
sets of keys is essential for use cases like different BUs or different customers.
Figure 7-1. Connecting from vCenter Server to the KMS for Two Different Users
C1 username/pwd C1
KMS Cluster C1
keys
C2 username/pwd C2
KMS Cluster C2
keys
Prerequisites
Set up the connection with the KMS. See Set up the Key Management Server Cluster.
Procedure
1 Create the two users with corresponding user names and passwords, for example C1 and C2,
on the KMS.
3 When prompted for a user name and password, give information that is unique to the first
user.
4 Create a second KMS cluster and add the same KMS, but use the second user name and
password (C2).
Results
The two clusters have independent connections to the KMS and use a different set of keys.
If you want to use virtual machine encryption with other I/O filters, or to use the Create VM
Storage Policy wizard in the vSphere Client, see the vSphere Storage documentation for details.
Prerequisites
Although you can create a VM Encryption storage policy without the KMS connection in
place, you cannot perform encryption tasks until trusted connection with the KMS server is
established.
Procedure
2 Select Home, click Policies and Profiles, and click VM Storage Policies.
a Enter a storage policy name and optional description and click Next.
b If you are new to this wizard, review the Policy structure information, and click Next.
c Select the Use common rules in the VM storage policy check box.
d Click Add component and select Encryption > Default Encryption Properties and click
Next.
The default properties are appropriate in most cases. You need a custom policy only if
you want to combine encryption with other features such as caching or replication.
e Deselect the Use rule-sets in the storage policy check box and click Next.
f On the Storage compatibility page, leave Compatible selected, choose a datastore, and
click Next.
Sometimes, turning on encryption mode explicitly is necessary. See Prerequisites and Required
Privileges for Encryption Tasks.
Prerequisites
Procedure
Procedure
1 Unregister all encrypted virtual machines from the host whose encryption mode you want to
disable.
3 (Optional) If the host is in a cluster, unregister the other encryption-enabled hosts in that
cluster.
Results
If you do not add encrypted virtual machines to the host, host encryption mode is disabled.
This task describes how to create an encrypted virtual machine using either the vSphere Web
Client or the vSphere Client (HTML5-based client). The vSphere Client filters storage policies to
those that include virtual machine encryption, easing creation of encrypted virtual machines.
Note Creating an encrypted virtual machine is faster and uses fewer storage resources than
encrypting an existing virtual machine. If possible, encrypt virtual machine during the creation
process.
Prerequisites
n Establish a trusted connection with the KMS and select a default KMS.
n Create an encryption storage policy, or use the bundled sample, VM Encryption Policy.
n If the host encryption mode is not Enabled, you also need Cryptographic
operations.Register host.
Procedure
1 Connect to vCenter Server by using either the vSphere Client (HTML5-based client) or the
vSphere Web Client.
2 Select an object in the inventory that is a valid parent object of a virtual machine, for
example, an ESXi host or a cluster.
n vSphere Client: Right-click the object and select New Virtual Machine.
n vSphere Web Client: Right-click the object, select New Virtual Machine > New Virtual
Machine.
Option Action
Select a name and folder Specify a unique name and target location for the virtual machine.
Select a compute resource Specify an object for which you have privileges to create encrypted virtual
machines. See Prerequisites and Required Privileges for Encryption Tasks.
Select storage vSphere Client: Select the Encrypt this virtual machine check box. Virtual
machine storage policies are filtered to those that include encryption. Select
a VM storage policy (the bundled sample is VM Encryption Policy), and
select a compatible datastore.
vSphere Web Client: Select a VM storage policy with encryption (the
bundled sample is VM Encryption Policy). Select a compatible datastore.
Select compatibility Select the compatibility. You can migrate an encrypted virtual machine only
to hosts with compatibility ESXi 6.5 and later.
Select a guest OS Select a guest OS that you plan to install on the virtual machine later.
Customize hardware Customize the hardware, for example, by changing disk size or CPU.
vSphere Client: (Optional) Select the VM Options tab, and open Encryption.
Choose which disks to exclude from encryption. When you deselect a disk,
only the VM Home and any other selected disks are encrypted.
Any New Hard disk that you add is encrypted. You can change the storage
policy for individual hard disks later.
Prerequisites
n Establish a trusted connection with the KMS and select a default KMS.
n Create an encryption storage policy, or use the bundled sample, VM Encryption Policy.
n Required privileges:
n Cryptographic operations.Clone
n If the host encryption mode is not Enabled, you also must have Cryptographic
operations.Register host privileges.
Procedure
2 To create a clone of an encrypted machine, right-click the virtual machine, select Clone >
Clone to Virtual Machine, and follow the prompts.
Option Action
Select a name and folder Specify a name and target location for the clone.
Select a compute resource Specify an object for which you have privileges to create encrypted virtual
machines. See Prerequisites and Required Privileges for Encryption Tasks.
Select storage Make a selection in the Select virtual disk format menu and select a
datastore. You cannot change the storage policy as part of the clone
operation.
Select clone options Select clone options, as discussed in the vSphere Virtual Machine
Administration documentation.
By default, the cloned virtual machine is created with the same keys as its parent. Best
practice is to change the cloned virtual machine's keys to ensure that multiple virtual
machines do not have the same keys.
a Power off the virtual machine.
b Perform a recrypt of the clone using the API. See vSphere Web Services SDK
Programming Guide.
To use a different DEK and KEK, perform a deep recrypt of the cloned virtual machine.
To use a different KEK, perform a shallow recrypt of the cloned virtual machine. You can
perform a shallow recrypt operation while the virtual machine is powered on, unless the
virtual machine has snapshots present.
This task describes how to encrypt an existing virtual machine or virtual disk using either the
vSphere Client (HTML5-based client) or the vSphere Web Client.
Prerequisites
n Establish a trusted connection with the KMS and select a default KMS.
n Create an encryption storage policy, or use the bundled sample, VM Encryption Policy.
n If the host encryption mode is not Enabled, you also need Cryptographic
operations.Register host.
Procedure
1 Connect to vCenter Server by using either the vSphere Client (HTML5-based client) or the
vSphere Web Client.
2 Right-click the virtual machine that you want to change and select VM Policies > Edit VM
Storage Policies.
You can set the storage policy for the virtual machine files, represented by VM home, and the
storage policy for virtual disks.
n To encrypt the VM and its hard disks, select an encryption storage policy and click
OK.
n To encrypt the VM but not the virtual disks, toggle on Configure per disk, select
the encryption storage policy for VM Home and other storage policies for the virtual
disks, and click OK.
n To encrypt the VM and its hard disks, select an encryption storage policy and click
Apply to all.
n To encrypt the VM but not the virtual disks, select the encryption storage policy for
VM Home and other storage policies for the virtual disks, and click Apply.
You cannot encrypt the virtual disk of an unencrypted VM.
4 If you prefer, you can encrypt the virtual machine, or both virtual machine and disks, from the
Edit Settings menu in the vSphere Client.
b Select the VM Options tab, and open Encryption. Choose an encryption policy. If you
deselect all disks, only the VM home is encrypted.
c Click OK.
This task describes how to decrypt an encrypted virtual machine using either the vSphere Client
(HTML5-based client) or the vSphere Web Client.
All encrypted virtual machines require encrypted vMotion. During virtual machine decryption,
the Encrypted vMotion setting remains. To change this setting so that Encrypted vMotion is no
longer used, change the setting explicitly.
This task explains how to perform decryption using storage policies. For virtual disks, you can
also perform decryption using the Edit Settings menu.
Prerequisites
Procedure
1 Connect to vCenter Server by using either the vSphere Client (HTML5-based client) or the
vSphere Web Client.
2 Right-click the virtual machine that you want to change and select VM Policies > Edit VM
Storage Policies.
You can set the storage policy for the virtual machine files, represented by VM home, and the
storage policy for virtual disks.
n To decrypt the VM and its hard disks, toggle off Configure per disk, select a storage
policy from the drop-down menu, and click OK.
n To decrypt a virtual disk but not the virtual machine, toggle on Configure per disk,
select the encryption storage policy for VM Home and other storage policies for the
virtual disks, and click OK.
n To decrypt the virtual machine and its hard disks, select a storage policy from the
drop-down menu, click Apply to all, and click OK.
n To decrypt a virtual disk but not the virtual machine, select a storage policy for the
virtual disk from the drop-down menu in the table. Do not change the policy for VM
Home. Click OK.
You cannot decrypt the virtual machine and leave the disk encrypted.
4 If you prefer, you can use the vSphere Client (HTML5-based client) to decrypt the virtual
machine and disks from the Edit Settings menu.
c To decrypt the VM and its hard disks, choose None from the Encrypt VM drop-down
menu.
d To decrypt a virtual disk but not the virtual machine, deselect the disk.
e Click OK.
Note An encrypted virtual machine can have virtual disks that are not encrypted. However, an
unencrypted virtual machine cannot have encrypted virtual disks.
This task describes how to change the encryption policy using storage policies. You can use
either the vSphere Client (HTML5-based client) or the vSphere Web Client. You can also use the
Edit Settings menu to make this change.
Prerequisites
Procedure
1 Connect to vCenter Server by using either the vSphere Client (HTML5-based client) or the
vSphere Web Client.
2 Right-click the virtual machine and select VM Policies > Edit VM Storage Policies .
n To change the storage policy for the VM and its hard disks, select an encryption
storage policy and click OK.
n To encrypt the VM but not the virtual disks, toggle on Configure per disk, select
the encryption storage policy for VM Home and other storage policies for the virtual
disks, and click OK.
n To change the storage policy for the VM and its hard disks, select an encryption
storage policy and click Apply to all.
n To encrypt the VM but not the virtual disks, select the encryption storage policy for
VM Home and other storage policies for the virtual disks, and click Apply.
You cannot encrypt the virtual disk of an unencrypted VM.
4 If you prefer, you can change the storage policy from the Edit Settings menu.
b Select the Virtual Hardware tab, expand a hard disk, and choose an encryption policy
from the drop-down menu.
c Click OK.
If the virtual machine key is not available, the state of the virtual machine displays as invalid.
The virtual machine cannot power on. If the virtual machine key is available, but a key for an
encrypted disk is not available, the virtual machine state does not display as invalid. However, the
virtual machine cannot power on and the following error results:
The disk [/path/to/the/disk.vmdk] is encrypted and a required key was not found.
Note The following procedure illustrates the situations that can cause a virtual machine to
become locked, the corresponding alarms and event logs that appear, and what to do in each
case.
Procedure
1 If the problem is the connection between the vCenter Server system and the KMS, a virtual
machine alarm is generated and the following message appears in the event log:
Losing the connection to the KMS does not automatically lock the virtual machine. The virtual
machine only enters a locked state if the following conditions are met:
After each reboot, an ESXi host must be able to reach vCenter Server. vCenter Server
requests the key with the corresponding ID from the KMS and makes it available to ESXi.
If, after restoring connection to the KMS cluster, the virtual machine remains locked, see
Unlock Locked Virtual Machines.
2 If the connection is restored, register the virtual machine. If an error results when
you attempt to register the virtual machine, verify that you have the Cryptographic
operations.RegisterVM privilege for the vCenter Server system.
This privilege is not required for powering on an encrypted virtual machine if the key is
available. This privilege is required for registering the virtual machine if the key has to be
retrieved.
3 If the key is no longer available on the KMS, a virtual machine alarm is generated and the
following message appears in the event log:
Ask the KMS administrator to restore the key. You might encounter an inactive key if you are
powering on a virtual machine that had been removed from the inventory and that had not
been registered for a long time. It also happens if you reboot the ESXi host, and the KMS is
not available.
a Retrieve the key ID by using the Managed Object Browser (MOB) or the vSphere API.
b Ask the KMS administrator to reactivate the key that is associated with that key ID.
4 If the KMS is accessible and the ESXi host is powered on, but the vCenter Server system is
unavailable, follow these steps to unlock virtual machines.
a Restore the vCenter Server system, or set up a different vCenter Server system, then
establish trust with the KMS.
You must use the same KMS cluster name, but the KMS IP address can be different.
The new vCenter Server instance retrieves the keys from the KMS and the virtual
machines are unlocked.
5 If the keys are missing only on the ESXi host, a virtual machine alarm is generated and the
following message appears in the event log:
Prerequisites
n Other privileges might be required for optional tasks such as enabling host encryption.
n Before unlocking a locked virtual machine, troubleshoot the cause of the lock and attempt to
fix the problem manually. See Resolve Missing Key Issues.
Procedure
When a virtual machine is locked, the Virtual Machine Locked alarm appears.
3 Decide if you want to either acknowledge the alarm, or reset the alarm to green but not
unlock the virtual machine now.
When you click either Acknowledge or Reset to green, the alarm goes away, but the virtual
machine remains locked until you unlock it.
4 Navigate to the virtual machine's Monitor tab and click Events to get more information about
why the virtual machine is locked.
6 Navigate to the virtual machine's Summary tab and click Unlock VM, located underneath the
virtual machine console.
A message appears, warning that encryption key data is transmitted to the host.
7 Click Yes.
An ESXi host requires that host encryption mode is enabled if it contains any encrypted virtual
machines. If the host detects it is missing its host key, or if the KMS cluster is unavailable, the
host might fail to enable the encryption mode. vCenter Server generates an alarm when the host
encryption mode cannot be enabled.
Procedure
1 If the problem is the connection between the vCenter Server system and the KMS cluster, an
alarm is generated and an error message appears in the event log.
You must restore the connection to the KMS cluster that contains the encryption keys in
question.
2 If keys are missing, an alarm is generated and an error message appears in the event log.
You must ensure that the keys are present in the KMS cluster. Consult the documentation for
your key management vendor for information about restoring from backup.
What to do next
If, after restoring connection to the KMS cluster, or manually recovering keys to the KMS
cluster, the host's encryption mode remains disabled, re-enable the host encryption mode. See
Re-Enable ESXi Host Encryption Mode.
Prerequisites
n Verify that you have the required privileges: Cryptographic operations.Register host
n Before re-enabling encryption mode, troubleshoot the cause and attempt to fix the problem
manually.
Procedure
When the encryption mode is disabled, the Host Requires Encryption Mode Enabled alarm
appears.
3 Decide if you want to either acknowledge the alarm, or reset the alarm to green but not
re-enable the host encryption mode now.
When you click either Acknowledge or Reset to green, the alarm goes way, but the host's
encryption mode remains disabled until you re-enable it.
4 Navigate to the ESXi host's Monitor tab and click Events to get more information on why
encryption mode is disabled.
5 On the Summary tab, click Enable Host Encryption Mode to re-enable host encryption.
A message appears, warning that encryption key data is transmitted to the host.
6 Click Yes.
KMS certificates have an expiration date. When the threshold for the expiration date is reached,
an alarm notifies you.
vCenter Server and KMS clusters exchange two types of certificates: server and client. The
VMware Endpoint Certificate Store (VECS) on the vCenter Server system stores the server
certificates and one client certificate per KMS cluster. Because there are two certificate types,
there are two alarms for each certificate type (one for client, one for server).
Procedure
3 Click Configure.
5 Click the Filter icon and enter vpxd.kmscert.threshold, or scroll to the configuration
parameter itself.
Note Core dumps can contain sensitive information. Follow your organization's data security
and privacy policy when handling core dumps.
The following table shows encryption keys used for each core dump type, by vSphere release.
Core Dump Type Encryption Key (ESXi 6.5) Encryption Key (ESXi 6.7 and Later)
What you can do after an ESXi host reboot depends on several factors.
n In most cases, vCenter Server retrieves the key for the host from the KMS and attempts to
push the key to the ESXi host after reboot. If the operation is successful, you can generate
the vm-support package and you can decrypt or re-encrypt the core dump. See Decrypt or
Re-Encrypt an Encrypted Core Dump.
n If vCenter Server cannot connect to the ESXi host, you might be able to retrieve the key from
the KMS. See Resolve Missing Key Issues.
n If the host used a custom key, and that key differs from the key that vCenter Server pushes
to the host, you cannot manipulate the core dump. Avoid using custom keys.
The vm-support package includes log files, core dump files, and more.
Prerequisites
Inform your support representative that host encryption mode is enabled for the ESXi host. Your
support representative might ask you to decrypt core dumps and extract relevant information.
Note Core dumps can contain sensitive information. Follow your organization's security and
privacy policy to protect sensitive information such as host keys.
Procedure
4 In the dialog box, select Password for encrypted core dumps, and specify and confirm a
password.
5 Leave the defaults for other options or make changes if requested by VMware Technical
Support, and click Export Logs.
If you have not configured your browser to ask where to save files before downloading, the
download starts. If you have configured your browser to ask where to save files, specify a
location for the file.
6 If your support representative asked you to decrypt the core dump in the vm-support
package, log in to any ESXi host and follow these steps.
a Log in to the ESXi host and connect to the directory where the vm-support package is
located.
b Make sure that the directory has enough space for the package, the uncompressed
package, and the recompressed package, or move the package.
vm-support -x *.tgz .
The resulting file hierarchy might contain core dump files for the ESXi host, usually
in /var/core, and might contain multiple core dump files for virtual machines.
vm-support-incident-key-file is the incident key file that you find at the top level in the
directory.
e Provide the password that you specified when you created the vm-support package.
f Remove the encrypted core dumps, and compress the package again.
vm-support --reconstruct
Results
You can decrypt and examine the core dumps in the vm-support package yourself. Core dumps
might contain sensitive information. Follow your organization's security and privacy policy to
protect sensitive information such as keys.
For details about re-encrypting a core dump and other features of crypto-util, see the
command-line help.
Prerequisites
The key that was used to encrypt the core dump must be available on the ESXi host that
generated the core dump.
Procedure
1 Log directly in to the ESXi host on which the core dump happened.
If the ESXi host is in lockdown mode, or if SSH access is disabled, you might have to enable
access first.
Option Description
Option Description
Introduction to vTPMs
vTPMs provide hardware-based, security-related functions such as random number generation,
attestation, key generation, and more. When added to a virtual machine, a vTPM enables the
guest operating system to create and store keys that are private. These keys are not exposed
to the guest operating system itself. Therefore, the virtual machine attack surface is reduced.
Usually, compromising the guest operating system compromises its secrets, but enabling a
vTPM greatly reduces this risk. These keys can be used only by the guest operating system
for encryption or signing. With an attached vTPM, a third party can remotely attest to (validate)
the identity of the firmware and the guest operating system.
You can add a vTPM to either a new or an existing virtual machine. A vTPM depends on virtual
machine encryption to secure vital TPM data. When you configure a vTPM, the virtual machine
files are encrypted but not the disks. You can choose to add encryption explicitly for the virtual
machine and its disks.
When you back up a virtual machine enabled with a vTPM, the backup must include all virtual
machine data, including the *.nvram file. If your backup does not include the *.nvram file,
you cannot restore a virtual machine with a vTPM. Also, because the VM home files of a vTPM-
enabled virtual machine are encrypted, ensure that the encryption keys are available at the time
of a restore.
A vTPM does not require a physical Trusted Platform Module (TPM) 2.0 chip to be present on the
ESXi host. However, if you want to perform host attestation, an external entity, such as a TPM 2.0
physical chip, is required. See Securing ESXi Hosts with Trusted Platform Module.
Note By default, no storage policy is associated with a virtual machine that has been enabled
with a vTPM. Only the virtual machine files (VM Home) are encrypted. If you prefer, you can
choose to add encryption explicitly for the virtual machine and its disks, but the virtual machine
files would have already been encrypted.
n EFI firmware
n Component requirements:
n Virtual machine encryption (to encrypt the virtual machine home files).
n Key provider configured for vCenter Server. See Set up the Key Management Server
Cluster.
n Guest OS support:
A hardware TPM includes a preloaded key called the Endorsement Key (EK). The EK has a private
and public key. The EK provides the TPM with a unique identity. For a vTPM, this key is provided
either by the VMware Certificate Authority (VMCA) or by a third-party Certificate Authority (CA).
After the vTPM uses a key, it is typically not changed because doing so invalidates sensitive
information stored in the vTPM. The vTPM does not contact the third-party CA at any time.
You can enable a vTPM for virtual machines running on vSphere 6.7 and later. The VMware virtual
TPM is compatible with TPM 2.0 and creates a TPM-enabled virtual chip for use by the virtual
machine and the guest OS it hosts.
Prerequisites
n Ensure your vSphere environment is configured for virtual machine encryption. See Set up
the Key Management Server Cluster.
n The guest OS you use can be Windows Server 2008 and later, and Windows 7 and later.
n The ESXi hosts running in your environment must be ESXi 6.7 or later.
n Cryptographic operations.Clone
n Cryptographic operations.Encrypt
n Cryptographic operations.Migrate
n Cryptographic operations.Register VM
Procedure
2 Select an object in the inventory that is a valid parent object of a virtual machine, for
example, an ESXi host or a cluster.
3 Right-click the object, select New Virtual Machine, and follow the prompts to create a virtual
machine.
Option Action
Select a compute resource Specify an object for which you have privileges to create a virtual machine.
See Prerequisites and Required Privileges for Encryption Tasks.
Select a guest OS Select Windows Server 2016 (64 bit) or Windows 10 (64 bit) for use as the
guest OS.
Customize hardware Click Add New Device and select Trusted Platform Module.
You can further customize the hardware, for example, by changing disk size
or CPU.
Results
You can enable a vTPM for virtual machines running on vSphere 6.7 and later. The VMware virtual
TPM is compatible with TPM 2.0, and creates a TPM-enabled virtual chip for use by the virtual
machine and the guest OS it hosts.
Prerequisites
n Ensure your vSphere environment is configured for virtual machine encryption. See Set up
the Key Management Server Cluster.
n The guest OS you use can be Windows Server 2008 and later, and Windows 7 and later.
n The ESXi hosts running in your environment must be ESXi 6.7 or later.
n Cryptographic operations.Clone
n Cryptographic operations.Encrypt
n Cryptographic operations.Register VM
Procedure
2 Right-click the virtual machine in the inventory that you want to modify and select Edit
Settings.
3 In the Edit Settings dialog box, click Add New Device and select Trusted Platform Module.
4 Click OK.
The virtual machine Summary tab now includes Virtual Trusted Platform Module in the VM
Hardware pane.
Removing a vTPM device causes all encrypted information on the virtual machine to become
unrecoverable. Before removing a vTPM from a virtual machine, disable any applications in the
Guest OS that use the vTPM device, such as BitLocker. Failure to do so can cause the virtual
machine not to boot. Also, you cannot remove a vTPM from a virtual machine that contains
snapshots.
Prerequisites
n Verify that you have the required privileges: Virtual machine.Configuration.Add or remove
device and Cryptographic operations.Decrypt
Procedure
2 Right-click the virtual machine in the inventory that you want to modify and select Edit
Settings.
3 In the Edit Settings dialog box, locate the Trusted Platform Module entry in the Virtual
Hardware tab.
4 Move your pointer over the device and click the Remove icon.
This icon appears only for the virtual hardware that you can safely remove.
6 Click OK.
Verify that the Virtual Trusted Platform Module entry no longer appears in the virtual machine
Summary tab in the VM Hardware pane.
You can generate a list of all virtual machines in your inventory showing virtual machine name,
operating system, and vTPM status. You can also export this list to a CSV file for use in
compliance audits.
Procedure
4 Click the menu bar for any virtual machine column, select Show/Hide Columns, and select
TPM.
The TPM column displays present for all virtual machines on which TPM is enabled. Virtual
machines without a TPM are listed as not present.
5 You can export the contents of an inventory list view to a CSV file.
The Export List Contents dialog box opens and lists the available options for inclusion in
the CSV file.
b Select whether you want all rows or your current selection of rows to be listed in the CSV
file.
c From the available options, select the columns you want listed in the CSV file.
d Click Export.
Prerequisites
Procedure
2 Select an object in the inventory that is a valid parent object of a virtual machine, for
example, an ESXi host or a cluster.
4 Select the vTPM-enabled virtual machine whose certificate information you want to view.
If necessary, click the menu bar for any virtual machine column, select Show/Hide Columns,
and select TPM to display virtual machines with a TPM "Present."
What to do next
You can replace the default certificate with a certificate issued by a third-party certificate
authority (CA). See Export and Replace Virtual Trusted Platform Module Device Certificates.
Prerequisites
Procedure
2 Select an object in the inventory that is a valid parent object of a virtual machine, for
example, an ESXi host or a cluster.
3 Select the vTPM-enabled virtual machine in the inventory whose certificate information you
want to replace.
6 Select a certificate.
8 Get a certificate issued by a third-party certificate authority (CA) against the certificate
signing request (CSR) you exported.
You can use any CA that you might have in your IT environment.
9 When you have the new certificate, replace the existing certificate.
a Right-click the virtual machine in the inventory whose certificate you want to replace and
select Edit Settings.
b In the Edit Settings dialog box, expand Security Devices, then expand Trusted Platform
Module.
d On your local machine, locate the new certificate and upload it.
The new certificate replaces the default certificate that came with your vTPM device.
e The certificate name is updated in the virtual machine Summary tab under the Virtual
Trusted Platform Module list.
VBS permits you to use the following Windows security features to harden your system and
isolate key system and user secrets from being compromised:
n Credential Guard: Aims to isolate and harden key system and user secrets against
compromise.
n Device Guard: Provides a set of features designed to work together to prevent and eliminate
malware from running on a Windows system.
n Configurable Code Integrity: Ensures that only trusted code runs from the boot loader
onwards.
See the topic on virtualization-based security in the Microsoft documentation for more
information.
After you enable VBS for a virtual machine through vCenter Server, you enable VBS within the
Windows guest operating system.
VBS Hardware
Use the following Intel hardware for VBS:
n Haswell CPU or later. For best performance, use the Skylake-EP CPU or later.
Not all VBS functionality is available on AMD CPUs. For more information, see the VMware KB
article at http://kb.vmware.com/kb/54009.
VBS in Windows guest OSs RS1, RS2, and RS3 requires HyperV to be enabled in the guest OS.
See VMware vSphere Release Notes for more information.
n Fault tolerance
n PCI passthrough
n New virtual machines configured for Windows 10 and Windows Server 2016 and later on
hardware versions less than version 14 are created using Legacy BIOS by default. You must
reinstall the guest operating system after changing the virtual machine's firmware type from
Legacy BIOS to UEFI.
n If you plan to migrate your virtual machines from previous vSphere releases to vSphere 6.7
or later, and enable VBS on your virtual machines, use UEFI to avoid having to reinstall the
operating system.
Enabling VBS is a process that involves first enabling VBS in the virtual machine then enabling
VBS in the Windows guest OS.
Prerequisites
Intel hosts are recommended. See Virtualization-based Security Best Practices for acceptable
CPUs.
Create a virtual machine that uses hardware version 14 or later and one of the following
supported guest operating systems:
Procedure
2 Select an object in the inventory that is a valid parent object of a virtual machine, for
example, an ESXi host or a cluster.
3 Right-click the object, select New Virtual Machine, and follow the prompts to create a virtual
machine.
Option Action
Select a compute resource Specify an object for which you have privileges to create virtual machines.
Select storage In the VM storage policy, select the storage policy. Select a compatible
datastore.
Select a guest OS Select the Windows guest operating system option that best corresponds to
operating system release.
Select the Enable Windows Virtualization Based Security check box.
Customize hardware Customize the hardware, for example, by changing disk size or CPU.
Results
Once the virtual machine is created, confirm that its Summary tab displays "VBS true" in the
Guest OS description.
What to do next
Enabling VBS is a process that involves first enabling VBS in the virtual machine then enabling
VBS in the guest OS.
Note New virtual machines configured for Windows 10, Windows Server 2016, and Windows
Server 2019 on hardware versions less than version 14 are created using Legacy BIOS by default.
If you change the virtual machine's firmware type from Legacy BIOS to UEFI, you must reinstall
the guest operating system.
Prerequisites
Intel hosts are recommended. See Virtualization-based Security Best Practices for acceptable
CPUs.
The virtual machine must have been created using hardware version 14 or later, UEFI firmware,
and one of the following supported guest operating systems:
Procedure
5 Click OK.
Results
Confirm that the virtual machine's Summary tab displays "VBS true" in the Guest OS description.
What to do next
You enable VBS from within the Windows Guest OS. Windows configures and enforces VBS
through a Group Policy Object (GPO). The GPO gives you the ability to turn off and on the
various services, such as Secure Boot, Device Guard, and Credential Guard, that VBS offers.
Certain Windows versions also require you to perform the additional step of enabling the Hyper-
V platform.
Prerequisites
n Ensure that virtualization-based security has been enabled on the virtual machine.
Procedure
1 In Microsoft Windows, edit the group policy to turn on VBS and choose other VBS-related
security options.
2 (Optional) For Microsoft Windows versions less than Redstone 4, in the Windows Features
control panel, enable the Hyper-V platform.
Prerequisites
Procedure
See Identify VBS-Enabled Virtual Machines for help in locating VBS-enabled virtual machines.
3 Click VM Options.
5 Click OK.
6 Verify that the virtual machine's Summary tab no longer displays "VBS true" in the Guest OS
description.
Procedure
4 In the list of virtual machines, click the down arrow in a column header to show/hide columns,
and select the VBS check box.
Firewalls
Add firewall protection to your virtual network by installing and configuring host-based firewalls
on some or all its VMs.
For efficiency, you can set up private virtual machine Ethernet networks or virtual networks. With
virtual networks, you install a host-based firewall on a VM at the head of the virtual network. This
firewall serves as a protective buffer between the physical network adapter and the remaining
VMs in the virtual network.
Host-based firewalls can slow performance. Balance your security needs against performance
goals before you install host-based firewalls on VMs elsewhere in the virtual network.
Segmentation
Keep different virtual machine zones within a host on different network segments. If you isolate
each virtual machine zone on its own network segment, you minimize the risk of data leakage
from one zone to the next. Segmentation prevents various threats, including Address Resolution
Protocol (ARP) spoofing. With ARP spoofing, an attacker manipulates the ARP table to remap
MAC and IP addresses, and gains access to network traffic to and from a host. Attackers use ARP
spoofing to generate man in the middle (MITM) attacks, perform denial of service (DoS) attacks,
hijack the target system, and otherwise disrupt the virtual network.
Planning segmentation carefully lowers the chances of packet transmissions between virtual
machine zones. Segmentation therefore prevents sniffing attacks that require sending network
traffic to the victim. Also, an attacker cannot use a nonsecure service in one virtual machine zone
to access other virtual machine zones in the host. You can implement segmentation by using one
of two approaches.
n Use separate physical network adapters for virtual machine zones to ensure that the zones
are isolated. Maintaining separate physical network adapters for virtual machine zones is
probably the most secure method. After the initial segment creation. This approach is less
prone to misconfiguration.
n Set up virtual local area networks (VLANs) to help safeguard your network. VLANs provide
almost all the security benefits inherent in implementing physically separate networks
without the hardware overhead. VLANs can save you the cost of deploying and maintaining
additional devices, cabling, and so on. See Securing Virtual Machines with VLANs.
n Even if you do not connect a VM to the physical network, the VM can be attacked by other
VMs.
VMs are isolated from each other. One VM cannot read or write another VM’s memory, access
its data, use its applications, and so forth. However, within the network, any VM or group of
VMs can still be the target of unauthorized access from other VMs. Protect your VMs from such
unauthorized access.
For additional information about protecting VMs, see the NIST document titled " Secure Virtual
Network Configuration for Virtual Machine (VM) Protection" at:
https://csrc.nist.gov/publications/detail/sp/800-125b/final
Firewalls control access to devices within their perimeter by closing all ports except for ports that
the administrator explicitly or implicitly designates as authorized. The ports that administrators
open allow traffic between devices on different sides of the firewall.
Important The ESXi firewall in ESXi 5.5 and later does not allow per-network filtering of vMotion
traffic. Therefore, you must install rules on your external firewall to ensure that no incoming
connections can be made to the vMotion socket.
In a virtual machine environment, you can plan the layout for firewalls between components.
n Firewalls between physical machines such as vCenter Server systems and ESXi hosts.
n Firewalls between one virtual machine and another, for example, between a virtual machine
acting as an external Web server and a virtual machine connected to your company’s internal
network.
n Firewalls between a physical machine and a virtual machine, such as when you place a
firewall between a physical network adapter card and a virtual machine.
How you use firewalls in your ESXi configuration is based on how you plan to use the network
and how secure any given component has to be. For example, if you create a virtual network
where each virtual machine is dedicated to running a different benchmark test suite for the
same department, the risk of unwanted access from one virtual machine to the next is minimal.
Therefore, a configuration where firewalls are present between the virtual machines is not
necessary. However, to prevent interruption of a test run from an outside host, you can configure
a firewall at the entry point of the virtual network to protect the entire set of virtual machines.
For a diagram of firewall ports, see VMware Knowledge Base article 2131180.
Firewalls must be present at entry points. A firewall might lie between the clients and vCenter
Server or vCenter Server and the clients can both be behind a firewall.
For the list of all supported ports and protocols in VMware products, including vSphere and
vSAN, see the VMware Ports and Protocols Tool™ at https://ports.vmware.com/. You can search
ports by VMware product, create a customized list of ports, and print or save port lists.
Networks configured with vCenter Server can receive communications through the vSphere Web
Client, other UI clients, or clients that use the vSphere API. During normal operation, vCenter
Server listens for data from its managed hosts and clients on designated ports. vCenter Server
also assumes that its managed hosts listen for data from vCenter Server on designated ports. If
a firewall is present between any of these elements, you must ensure that the firewall has open
ports to support data transfer.
You might also include firewalls at other access points in the network, depending on network
usage and on the level of security that clients require. Select the locations for your firewalls
based on the security risks for your network configuration. The following firewall locations are
commonly used.
n Between the vSphere Web Client or a third-party network-management client and vCenter
Server.
n If your users access virtual machines through a Web browser, between the Web browser and
the ESXi host.
n If your users access virtual machines through the vSphere Web Client, between the vSphere
Web Client and the ESXi host. This connection is in addition to the connection between the
vSphere Web Client and vCenter Server, and it requires a different port.
n Between the ESXi hosts in your network. Although traffic between hosts is usually considered
trusted, you can add firewalls between them if you are concerned about security breaches
from machine to machine.
If you add firewalls between ESXi hosts and plan to migrate virtual machines between them,
open ports in any firewall that divides the source host from the target hosts.
n Between the ESXi hosts and network storage such as NFS or iSCSI storage. These ports are
not specific to VMware. Configure them according to the specifications for your network.
Firewall configuration depends on what is used at your site, ask your local firewall system
administrator for information. How you open ports depends on whether you use a vCenter
Server Appliance or a vCenter Server Windows installation.
To configure a connection for receiving data, open ports for traffic from services such as
vSphere High Availability, vMotion, and vSphere Fault Tolerance. See ESXi Firewall Configuration
for a discussion of configuration files, vSphere Web Client access, and firewall commands. See
Incoming and Outgoing Firewall Ports for ESXi Hosts for a list of ports.
n Third-party clients
The firewall requirements for standalone hosts are similar to requirements when a vCenter Server
is present.
n Use a firewall to protect your ESXi layer or, depending on your configuration, your clients,
and the ESXi layer. This firewall provides basic protection for your network.
n Licensing in this type of configuration is part of the ESXi package that you install on each of
the hosts. Because licensing is resident to ESXi, a separate License Server with a firewall is
not required.
You can configure firewall ports using ESXCLI or using the VMware Host Client. See vSphere
Single Host Management - VMware Host Client.
If you are using the vSphere Web Client and connecting to a browser-based virtual machine
console, the following access must be possible:
n The firewall must allow vSphere Web Client to access vCenter Server on port 9443.
n The firewall must allow vCenter Server to access the ESXi host on port 902.
n The firewall must allow vSphere Web Client to access vCenter Server on port 9443.
n The firewall must allow the standalone virtual machine console to access vCenter Server on
port 9443 and to access the ESXi host on port 902 for VMRC versions before 11.0, and port
443 for VMRC version 11.0 and greater. For more information about VMRC version 11.0 and
ESXi port requirements, see the VMware knowledge base article at https://kb.vmware.com/s/
article/76672.
Note Do not use the VMware Host Client to connect directly to hosts that are managed by
a vCenter Server system. If you make changes to such hosts from the VMware Host Client,
instability in your environment results.
The firewall must allow access to the ESXi host on ports 443 and 902
The VMware Host Client uses port 902 to provide a connection for guest operating system MKS
activities on virtual machines. It is through this port that users interact with the guest operating
systems and applications of the virtual machine. VMware does not support configuring a different
port for this function.
For best protection of your hosts, ensure that physical switch ports are configured with spanning
tree disabled and ensure that the non-negotiate option is configured for trunk links between
external physical switches and virtual switches in Virtual Switch Tagging (VST) mode.
Procedure
1 Log in to the physical switch and ensure that spanning tree protocol is disabled or that Port
Fast is configured for all physical switch ports that are connected to ESXi hosts.
2 For virtual machines that perform bridging or routing, check periodically that the first
upstream physical switch port is configured with BPDU Guard and Port Fast disabled and
with spanning tree protocol enabled.
In vSphere 5.1 and later, to prevent the physical switch from potential Denial of Service (DoS)
attacks, you can turn on the guest BPDU filter on the ESXi hosts.
3 Log in to the physical switch and ensure that Dynamic Trunking Protocol (DTP) is not enabled
on the physical switch ports that are connected to the ESXi hosts.
4 Routinely check physical switch ports to ensure that they are properly configured as trunk
ports if connected to virtual switch VLAN trunking ports.
Just like physical network adapters, virtual machine network adapters can impersonate another
VM. Impersonation is a security risk.
n A VM can send frames that appear to be from a different machine so that it can receive
network frames that are intended for that machine.
n A virtual machine network adapter can be configured so that it receives frames targeted for
other machines
When you add a VMkernel port group or virtual machine port group to a standard switch,
ESXi configures a security policy for the ports in the group. You can use this security policy to
ensure that the host prevents the guest operating systems of its VMs from impersonating other
machines on the network. The guest operating system that might attempt impersonation does
not detect that the impersonation was prevented.
The security policy determines how strongly you enforce protection against impersonation and
interception attacks on VMs. To correctly use the settings in the security profile, see the Security
Policy section in the vSphere Networking publication. This section explains:
Each VM network adapter has an initial MAC address and an effective MAC address.
The initial MAC address is assigned when the adapter is created. Although the initial MAC
address can be reconfigured from outside the guest operating system, it cannot be changed
by the guest operating system.
Each adapter has an effective MAC address that filters out incoming network traffic with
a destination MAC address that is different from the effective MAC address. The guest
operating system is responsible for setting the effective MAC address and typically matches
the effective MAC address to the initial MAC address.
Upon creating a VM network adapter, the effective MAC address and initial MAC address are the
same. The guest operating system can alter the effective MAC address to another value at any
time. If an operating system changes the effective MAC address, its network adapter receives
network traffic that is destined for the new MAC address.
When sending packets through a network adapter, the guest operating system typically places
its own adapter effective MAC address in the source MAC address field of the Ethernet frames.
It places the MAC address for the receiving network adapter in the destination MAC address
field. The receiving adapter accepts packets only if the destination MAC address in the packet
matches its own effective MAC address.
An operating system can send frames with an impersonated source MAC address. An operating
system can therefore impersonate a network adapter that the receiving network authorizes, and
stage malicious attacks on the devices in a network.
Protect virtual traffic against impersonation and interception Layer 2 attacks by configuring a
security policy on port groups or ports.
The security policy on distributed port groups and ports includes the following options:
You can view and change the default settings by selecting the virtual switch associated with the
host from the vSphere Client. See vSphere Networking documentation.
When the Mac address changes option is set to Accept, ESXi accepts requests to change the
effective MAC address to a different address than the initial MAC address.
When the Mac address changes option is set to Reject, ESXi does not honor requests to change
the effective MAC address to a different address than the initial MAC address. This setting
protects the host against MAC impersonation. The port that the virtual machine adapter used to
send the request is disabled and the virtual machine adapter does not receive any more frames
until the effective MAC address matches the initial MAC address. The guest operating system
does not detect that the MAC address change request was not honored.
Note The iSCSI initiator relies on being able to get MAC address changes from certain types of
storage. If you are using ESXi iSCSI with iSCSI storage, set the MAC address changes option to
Accept.
In some situations, you might have a legitimate need for more than one adapter to have the same
MAC address on a network—for example, if you are using Microsoft Network Load Balancing in
unicast mode. When Microsoft Network Load Balancing is used in the standard multicast mode,
adapters do not share MAC addresses.
Forged Transmits
The Forged transmits option affects traffic that is transmitted from a virtual machine.
When the Forged transmits option is set to Accept, ESXi does not compare source and effective
MAC addresses.
To protect against MAC impersonation, you can set the Forged transmits option to Reject. If
you do, the host compares the source MAC address being transmitted by the guest operating
system with the effective MAC address for its virtual machine adapter to see if they match. If the
addresses do not match, the ESXi host drops the packet.
The guest operating system does not detect that its virtual machine adapter cannot send
packets by using the impersonated MAC address. The ESXi host intercepts any packets with
impersonated addresses before they are delivered, and the guest operating system might
assume that the packets are dropped.
Although promiscuous mode can be useful for tracking network activity, it is an insecure mode of
operation, because any adapter in promiscuous mode has access to the packets even if some of
the packets are received only by a particular network adapter. This means that an administrator
or root user within a virtual machine can potentially view traffic destined for other guest or host
operating systems.
See the topic on configuring the security policy for a vSphere Standard Switch or Standard Port
Group in the vSphere Networking documentation for information about configuring the virtual
machine adapter for promiscuous mode.
Note In some situations, you might have a legitimate reason to configure a standard or a
distributed virtual switch to operate in promiscuous mode, for example, if you are running
network intrusion detection software or a packet sniffer.
Having this protection does not guarantee that your virtual machine configuration is invulnerable
to other types of attacks. For example, standard switches do not protect the physical network
against these attacks; they protect only the virtual network.
Standard switches and VLANs can protect against the following types of attacks.
MAC flooding
Floods a switch with packets that contain MAC addresses tagged as having come from
different sources. Many switches use a content-addressable memory table to learn and store
the source address for each packet. When the table is full, the switch can enter a fully open
state in which every incoming packet is broadcast on all ports, letting the attacker see all of
the switch’s traffic. This state might result in packet leakage across VLANs.
Although VMware standard switches store a MAC address table, they do not get the MAC
addresses from observable traffic and are not vulnerable to this type of attack.
Force a switch to redirect frames from one VLAN to another by tricking the switch into acting
as a trunk and broadcasting the traffic to other VLANs.
VMware standard switches do not perform the dynamic trunking required for this type of
attack and, therefore, are not vulnerable.
Double-encapsulation attacks
Occur when an attacker creates a double-encapsulated packet in which the VLAN identifier
in the inner tag is different from the VLAN identifier in the outer tag. For backward
compatibility, native VLANs strip the outer tag from transmitted packets unless configured
to do otherwise. When a native VLAN switch strips the outer tag, only the inner tag is left,
and that inner tag routes the packet to a different VLAN than the one identified in the
now-missing outer tag.
VMware standard switches drop any double-encapsulated frames that a virtual machine
attempts to send on a port configured for a specific VLAN. Therefore, they are not vulnerable
to this type of attack.
Involve sending large numbers of multicast frames to a known VLAN almost simultaneously
to overload the switch so that it mistakenly allows some of the frames to broadcast to other
VLANs.
VMware standard switches do not allow frames to leave their correct broadcast domain
(VLAN) and are not vulnerable to this type of attack.
Spanning-tree attacks
Target Spanning-Tree Protocol (STP), which is used to control bridging between parts of the
LAN. The attacker sends Bridge Protocol Data Unit (BPDU) packets that attempt to change
the network topology, establishing themselves as the root bridge. As the root bridge, the
attacker can sniff the contents of transmitted frames.
VMware standard switches do not support STP and are not vulnerable to this type of attack.
Involve sending large numbers of packets in which the source and destination addresses stay
the same, but in which fields are randomly changed in length, type, or content. The goal of
this attack is to force packets to be mistakenly rerouted to a different VLAN.
Because new security threats develop over time, do not consider this an exhaustive list of
attacks. Regularly check VMware security resources on the Web to learn about security, recent
security alerts, and VMware security tactics.
The same rules apply for VLANs in a vSphere Distributed Switch as they do in a standard switch.
For more information, see Standard Switch Protection and VLANs.
Procedure
1 For distributed port groups with static binding, disable the Auto Expand feature.
To disable Auto Expand, configure the autoExpand property under the distributed port group
with the vSphere Web Services SDK or with a command-line interface. See the vSphere Web
Services SDK documentation.
2 Ensure that all private VLAN IDs of any vSphere Distributed Switch are fully documented.
3 If you are using VLAN tagging on a dvPortgroup, VLAN IDs must correspond to the IDs on
external VLAN-aware upstream switches. If VLAN IDs are not tracked correctly, mistaken
reuse of IDs might allow unintended traffic. Similarly, wrong or missing VLAN IDs might lead
to traffic not passing between physical and virtual machines.
4 Ensure that no unused ports exist on a virtual port group associated with a vSphere
Distributed Switch.
vSphere Distributed Switches associated with an ESXi host require a text box for the name of
the switch. This label serves as a functional descriptor for the switch, just like the host name
associated with a physical switch. The label on the vSphere Distributed Switch indicates the
function or the IP subnet of the switch. For example, you can label the switch as internal to
indicate that it is only for internal networking on a virtual machine’s private virtual switch. No
traffic goes over physical network adapters.
6 Disable network health check for your vSphere Distributed Switches if you are not actively
using it.
Network health check is disabled by default. Once enabled, the health check packets contain
information about the host, switch, and port that an attacker can potentially use. Use network
health check only for troubleshooting, and turn it off when troubleshooting is finished.
7 Protect virtual traffic against impersonation and interception Layer 2 attacks by configuring a
security policy on port groups or ports.
The security policy on distributed port groups and ports includes the following options:
VLANs are an IEEE standard networking scheme with specific tagging methods that allow routing
of packets to only those ports that are part of the VLAN. When properly configured, VLANs
provide a dependable means for you to protect a set of virtual machines from accidental or
malicious intrusions.
VLANs let you segment a physical network so that two machines in the network are unable
to transmit packets back and forth unless they are part of the same VLAN. For example,
accounting records and transactions are among a company’s most sensitive internal information.
In a company whose sales, shipping, and accounting employees all use virtual machines in the
same physical network, you might protect the virtual machines for the accounting department by
setting up VLANs.
Host 1
Standard Switch
Router Broadcast
Host 2
VM3 VM4 VM5 Domain A
Standard Switch
Standard Switch
Switch 1
VLAN B
VM6 VM7 VM8
Broadcast
Host 3 Domain B
Standard Switch
In this configuration, all employees in the accounting department use virtual machines in VLAN A
and the employees in sales use virtual machines in VLAN B.
The router forwards packets containing accounting data to the switches. These packets are
tagged for distribution to VLAN A only. Therefore, the data is confined to Broadcast Domain A
and cannot be routed to Broadcast Domain B unless the router is configured to do so.
This VLAN configuration prevents the sales force from intercepting packets destined for the
accounting department. It also prevents the accounting department from receiving packets
intended for the sales group. The virtual machines serviced by a single virtual switch can be
in different VLANs.
ESXi features a complete IEEE 802.1q-compliant VLAN implementation. VMware cannot make
specific recommendations on how to set up VLANs, but there are factors to consider when using
a VLAN deployment as part of your security enforcement policy.
Secure VLANs
Administrators have several options for securing the VLANs in their vSphere environment.
Procedure
1 Ensure that port groups are not configured to VLAN values that are reserved by upstream
physical switches
Do not set VLAN IDs to values reserved for the physical switch.
2 Ensure that port groups are not configured to VLAN 4095 unless you are using for Virtual
Guest Tagging (VGT).
n Virtual Switch Tagging (VST) - The virtual switch tags with the configured VLAN ID the
traffic that is incoming to the attached virtual machines and removes the VLAN tag from
the traffic that is leaving them. To set up VST mode, assign a VLAN ID between 1 and
4095.
n Virtual Guest Tagging (VGT) - Virtual machines handle VLAN traffic. To activate VGT
mode, set the VLAN ID to 4095. On a distributed switch, you can also allow virtual
machine traffic based on its VLAN by using the VLAN Trunking option.
On a standard switch you can configure VLAN networking mode at switch or port group
level, and on a distributed switch at distributed port group or port level.
3 Ensure that all VLANs on each virtual switch are fully documented and that each virtual
switch has all required VLANs and only required VLANs.
Figure 10-2. External Networks, Internal Networks, and a DMZ Configured on a Single ESXi Host
ESXi
VM 2
internal
user
VM 3 VM 6
internal firewall
user server
VM 4 VM 7
internal Web
user server
VM 1 VM 5 VM 8
physical network
adapters
In the figure, the system administrator configured a host into three distinct virtual machine zones:
FTP server, internal virtual machines, and DMZ. Each zone serves a unique function.
FTP server
Virtual Machine 1 is configured with FTP software and acts as a holding area for data sent to
and from outside resources such as forms and collateral localized by a vendor.
This virtual machine is associated with an external network only. It has its own virtual switch
and physical network adapter that connect it to External Network 1. This network is dedicated
to servers that the company uses to receive data from outside sources. For example, the
company uses External Network 1 to receive FTP traffic from vendors and allow vendors
access to data stored on externally available servers though FTP. In addition to servicing
Virtual Machine 1, External Network 1 services FTP servers configured on different ESXi hosts
throughout the site.
Because Virtual Machine 1 does not share a virtual switch or physical network adapter with
any virtual machines in the host, the other resident virtual machines cannot transmit packets
to or receive packets from the Virtual Machine 1 network. This restriction prevents sniffing
attacks, which require sending network traffic to the victim. More importantly, an attacker
cannot use the natural vulnerability of FTP to access any of the host’s other virtual machines.
Virtual Machines 2 through 5 are reserved for internal use. These virtual machines process
and store company-private data such as medical records, legal settlements, and fraud
investigations. As a result, the system administrators must ensure the highest level of
protection for these virtual machines.
These virtual machines connect to Internal Network 2 through their own virtual switch and
network adapter. Internal Network 2 is reserved for internal use by personnel such as claims
processors, in-house lawyers, or adjustors.
Virtual Machines 2 through 5 can communicate with one another through the virtual switch
and with internal virtual machines elsewhere on Internal Network 2 through the physical
network adapter. They cannot communicate with externally facing machines. As with the FTP
server, these virtual machines cannot send packets to or receive packets from the other
virtual machines’ networks. Similarly, the host’s other virtual machines cannot send packets to
or receive packets from Virtual Machines 2 through 5.
DMZ
Virtual Machines 6 through 8 are configured as a DMZ that the marketing group uses to
publish the company’s external website.
This group of virtual machines is associated with External Network 2 and Internal Network 1.
The company uses External Network 2 to support the Web servers that use the marketing
and financial department to host the corporate website and other Web facilities that it hosts
to outside users. Internal Network 1 is the conduit that the marketing department uses to
publish its content to the corporate Web site, post downloads, and maintain services like user
forums.
Because these networks are separate from External Network 1 and Internal Network 2, and
the virtual machines have no shared points of contact (switches or adapters), there is no risk
of attack to or from the FTP server or the internal virtual machine group.
By capitalizing on virtual machine isolation, correctly configuring virtual switches, and maintaining
network separation, the system administrator can house all three virtual machine zones in the
same ESXi host and be confident that there will be no data or resource breaches.
The company enforces isolation among the virtual machine groups by using multiple internal and
external networks and making sure that the virtual switches and physical network adapters for
each group are separate from those of other groups.
Because none of the virtual switches straddle virtual machine zones, the system administrator
succeeds in eliminating the risk of packet leakage from one zone to another. A virtual switch, by
design, cannot leak packets directly to another virtual switch. The only way for packets to travel
from one virtual switch to another is under the following circumstances:
n The virtual switches connect to a common virtual machine, which might be used to transmit
packets.
Neither of these conditions occur in the sample configuration. If system administrators want to
verify that no common virtual switch paths exist, they can check for possible shared points of
contact by reviewing the network switch layout in the vSphere Client.
To safeguard the virtual machines’ resources, the system administrator lowers the risk of DoS
and DDoS attacks by configuring a resource reservation and a limit for each virtual machine. The
system administrator further protects the ESXi host and virtual machines by installing software
firewalls at the front and back ends of the DMZ, ensuring that the host is behind a physical
firewall, and configuring the networked storage resources so that each has its own virtual switch.
When you set up IPsec on a host, you enable authentication and encryption of incoming and
outgoing packets. When and how IP traffic is encrypted depends on how you set up the system's
security associations and security policies.
A security association determines how the system encrypts traffic. When you create a security
association, you specify the source and destination, encryption parameters, and a name for the
security association.
A security policy determines when the system should encrypt traffic. The security policy includes
source and destination information, the protocol and direction of traffic to be encrypted, the
mode (transport or tunnel) and the security association to use.
You can get a list of available security associations using the esxcli vSphere CLI command.
Procedure
u At the command prompt, enter the command esxcli network ip ipsec sa list.
Results
You can add a security association using the esxcli vSphere CLI command.
Procedure
u At the command prompt, enter the command esxcli network ip ipsec sa add with one
or more of the following options.
Option Description
--sa-spi= security parameter index Required. Specify the security parameter index. The security parameter
index identifies the security association to the host. It must be a hexadecimal
with a 0x prefix. Each security association you create must have a unique
combination of protocol and security parameter index.
--encryption-algorithm= Required. Specify the encryption algorithm using one of the following
encryption algorithm parameters.
n 3des-cbc
n aes128-cbc
n null ( provides no encryption)
--encryption-key= encryption key Required when you specify an encryption algorithm. Specify the encryption
key. You can enter keys as ASCII text or as a hexadecimal with a 0x prefix.
--integrity-key= authentication Required. Specify the authentication key. You can enter keys as ASCII text or
key as a hexadecimal with a 0x prefix.
Prerequisites
Verify that the security association you want to use is not currently in use. If you try to remove a
security association that is in use, the removal operation fails.
Procedure
u At the command prompt, enter the command esxcli network ip ipsec sa remove
--sa-name security_association_name
Procedure
u At the command prompt, enter the command esxcli network ip ipsec sp list
Results
Prerequisites
Before creating a security policy, add a security association with the appropriate authentication
and encryption parameters as described in Add an IPsec Security Association.
Procedure
u At the command prompt, enter the command esxcli network ip ipsec sp add with one
or more of the following options.
Option Description
--sp-source= source address Required. Specify the source IP address and prefix length.
--sp-destination= destination Required. Specify the destination address and prefix length.
address
--source-port= port Required. Specify the source port. The source port must be a number
between 0 and 65535.
--destination-port= port Required. Specify the destination port. The source port must be a number
between 0 and 65535.
Option Description
--upper-layer-protocol= Specify the upper layer protocol using one of the following parameters.
protocol n tcp
n udp
n icmp6
n any
--flow-direction= direction Specify the direction in which you want to monitor traffic using either in or
out.
--action= action Specify the action to take when traffic with the specified parameters is
encountered using one of the following parameters.
n none: Take no action
n discard: Do not allow data in or out.
n ipsec: Use the authentication and encryption information supplied in the
security association to determine whether the data comes from a trusted
source.
--sa-name=security association Required. Provide the name of the security association for the security
name policy to use.
Prerequisites
Verify that the security policy you want to use is not currently in use. If you try to remove a
security policy that is in use, the removal operation fails.
Procedure
u At the command prompt, enter the command esxcli network ip ipsec sp remove
--sa-name security policy name.
To remove all security policies, enter the command esxcli network ip ipsec sp remove
--remove-all.
SNMP must be configured on each ESXi host. You can use vCLI, PowerCLI, or the vSphere Web
Services SDK for configuration.
See the Monitoring and Performance publication for detailed setup information for SNMP 3.
Procedure
n Spanning Tree Protocol (STP) detects and prevents loops from forming in the network
topology. VMware virtual switches prevent loops in other ways, but do not support STP
directly. When network topology changes occur, some time is required (30–50 seconds)
while the network relearns the topology. During that time, no traffic is allowed to pass. To
avoid these problems, network vendors have created features to enable switch ports to
continue forwarding traffic. For more information, see the VMware knowledge base article
at https://kb.vmware.com/kb/1003804. Consult your network vendor documentation for the
proper network and networking hardware configurations.
n Ensure that Netflow traffic for a Distributed Virtual Switch is only sent to authorized collector
IP addresses. Netflow exports are not encrypted and can contain information about the
virtual network. This information increases the potential for sensitive information to be viewed
and captured in transit by attackers. If Netflow export is required, verify that all Netflow
target IP addresses are correct.
n Ensure that only authorized administrators have access to virtual networking components by
using the role-based access controls. For example, give virtual machine administrators only
access to port groups in which their virtual machines reside. Give network administrators
access to all virtual networking components but no access to virtual machines. Limiting
access reduces the risk of misconfiguration, whether accidental or malicious, and enforces
key security concepts of separation of duties and least privilege.
n Ensure that port groups are not configured to the value of the native VLAN. Physical switches
are often configured with a native VLAN, and that native VLAN is often VLAN 1 by default.
ESXi does not have a native VLAN. Frames with VLAN specified in the port group have a
tag, but frames with VLAN not specified in the port group are not tagged. This can cause a
problem because virtual machines that are tagged with a 1 end up belonging to native VLAN
of the physical switch.
For example, frames on VLAN 1 from a Cisco physical switch are untagged because VLAN
1 is the native VLAN on that physical switch. However, frames from the ESXi host that are
specified as VLAN 1 are tagged with a 1. As a result, traffic from the ESXi host that is destined
for the native VLAN is not routed correctly because it is tagged with a 1 instead of being
untagged. Traffic from the physical switch that is coming from the native VLAN is not visible
because it is not tagged. If the ESXi virtual switch port group uses the native VLAN ID, traffic
from virtual machines on that port is not visible to the native VLAN on the switch because the
switch is expecting untagged traffic.
n Ensure that port groups are not configured to VLAN values reserved by upstream physical
switches. Physical switches reserve certain VLAN IDs for internal purposes and often disallow
traffic configured to these values. For example, Cisco Catalyst switches typically reserve
VLANs 1001–1024 and 4094. Using a reserved VLAN might result in a denial of service on the
network.
n Ensure that port groups are not configured to VLAN 4095 except for Virtual Guest Tagging
(VGT). Setting a port group to VLAN 4095 activates VGT mode. In this mode, the virtual
switch passes all network frames to the virtual machine without modifying the VLAN tags,
leaving it to the virtual machine to deal with them.
n Ensure that distributed virtual switch port mirror traffic is sent only to authorized collector
ports or VLANs. A vSphere Distributed Switch can mirror traffic from one port to another
to allow packet capture devices to collect specific traffic flows. Port mirroring sends a copy
of all specified traffic in unencrypted format. This mirrored traffic contains the full data in
the packets captured and can result in total compromise of that data if misdirected. If port
mirroring is required, verify that all port mirror destination VLAN, port, and uplink IDs are
correct.
n Ensure that port groups are configured with a clear network label. These labels serve as a
functional descriptor for the port group and help you identify each port group's function as
the network becomes more complex.
n Ensure that each vSphere Distributed Switch has a clear network label that indicates the
function or IP subnet of the switch. This label serves as a functional descriptor for the switch,
just as physical switches require a host name. For example, you can label the switch as
internal to show that it is for internal networking. You cannot change the label for a standard
virtual switch.
Procedure
1 Ensure that all vSwitch and VLANS IDs are fully documented
If you are using VLAN tagging on a virtual switch, the IDs must correspond to the IDs on
external VLAN-aware upstream switches. If VLAN IDs are not tracked completely, mistaken
reuse of IDs might allow for traffic between the wrong physical and virtual machines.
Similarly, if VLAN IDs are wrong or missing, traffic between physical and virtual machines
might be blocked where you want traffic to pass.
2 Ensure that VLAN IDs for all distributed virtual port groups (dvPortgroup instances) are fully
documented.
If you are using VLAN tagging on a dvPortgroup the IDs must correspond to the IDs on
external VLAN-aware upstream switches. If VLAN IDs are not tracked completely, mistaken
reuse of IDs might allow for traffic between the wrong physical and virtual machines.
Similarly, if VLAN IDs are wrong or missing, traffic between physical and virtual machines
might be blocked where you want traffic to pass.
3 Ensure that private VLAN IDs for all distributed virtual switches are fully documented.
Private VLANs (PVLANs) for distributed virtual switches require primary and secondary VLAN
IDs. These IDs must correspond to the IDs on external PVLAN-aware upstream switches. If
VLAN IDs are not tracked completely, mistaken reuse of IDs might allow for traffic between
the wrong physical and virtual machines. Similarly, if PVLAN IDs are wrong or missing, traffic
between physical and virtual machines might be blocked where you want traffic to pass.
4 Verify that VLAN trunk links are connected only to physical switch ports that function as
trunk links.
When connecting a virtual switch to a VLAN trunk port, you must properly configure both
the virtual switch and the physical switch at the uplink port. If the physical switch is not
properly configured, frames with the VLAN 802.1q header are forwarded to a switch that not
expecting their arrival.
Strictly control access to management network by protecting it at the security level of the
most secure VM running on an ESXi host or cluster. No matter how the management network
is restricted, administrators must have access to this network to configure the ESXi hosts and
vCenter Server system.
Place the vSphere management port group in a dedicated VLAN on a common standard switch.
Production (VM) traffic can share the standard switch if the vSphere management port group's
VLAN is not used by production VMs.
Check that the network segment is not routed, except to networks where other management-
related entities are found. Routing a network segment might make sense for vSphere Replication.
In particular, make sure that production VM traffic cannot be routed to this network.
Strictly control access to management functionality by using one of the following approaches.
IP-based storage frequently is not encrypted. Anyone with access to this network can view
IP-based storage traffic. To restrict unauthorized users from viewing IP-based storage traffic,
logically separate the IP-based storage network traffic from the production traffic. Configure
the IP-based storage adapters on separate VLANs or network segments from the VMkernel
management network to limit unauthorized users from viewing the traffic.
Separate vMotion traffic from production traffic on an isolated network. Set up the network to
be nonroutable, that is, make sure that no layer-3 router is spanning this and other networks, to
prevent outside access to the network.
Use a dedicated VLAN on a common standard switch for the vMotion port group. Production
(VM) traffic can use the same standard switch if the vMotion port group’s VLAN is not used by
production VMs.
Use Virtual Switches with the vSphere Network Appliance API Only If
Required
Do not configure your host to send network information to a virtual machine unless you are
using products that use the vSphere Network Appliance API (DvFilter). If the vSphere Network
Appliance API is enabled, an attacker might attempt to connect a virtual machine to the filter.
This connection might provide access to the network of other virtual machines on the host.
If you are using a product that uses this API, verify that the host is configured correctly.
See the sections on DvFilter in Developing and Deploying vSphere Solutions, vServices,
and ESX Agents. If your host is set up to use the API, make sure that the value of the
Net.DVFilterBindIpAddress parameter matches the product that uses the API.
Procedure
2 Click Configure.
4 Scroll down to Net.DVFilterBindIpAddress and verify that the parameter has an empty
value.
The order of parameters is not strictly alphabetical. Type DVFilter in the Filter text box to
display all related parameters.
n If you are not using DvFilter settings, make sure that the value is blank.
n If you are using DvFilter settings, make sure that the value of the parameter is correct.
The value must match the value that the product that uses the DvFilter is using.
See Chapter 3 Securing ESXi Hosts and Chapter 5 Securing Virtual Machines for related
information.
n Setting Timeouts for the ESXi Shell and vSphere Web Client
Unsynchronized clocks can result in authentication problems, which can cause the installation to
fail or prevent the vCenter Server Appliance vmware-vpxd service from starting.
Time inconsistencies in vSphere can cause firstboot to fail at different services depending on
where in the environment time is not accurate and when the time is synchronized. Problems most
commonly occur when the target ESXi host for the destination vCenter Server Appliance is not
synchronized with NTP. Similarly, issues can arise if the destination vCenter Server Appliance
migrates to an ESXi host set to a different time due to fully automated DRS.
To avoid time synchronization issues, ensure that the following is correct before installing,
migrating, or upgrading a vCenter Server Appliance.
n The target ESXi host where the destination vCenter Server Appliance is to be deployed is
synchronized to NTP.
n The ESXi host running the source vCenter Server Appliance is synchronized to NTP.
n If you are upgrading or migrating, verify that the source vCenter Server or vCenter Server
Appliance and external Platform Services Controller have the correct time.
Verify that any Windows host machine on which vCenter Server runs is synchronized with the
Network Time Server (NTP) server. See Knowledge Base article KB 1318.
To synchronize ESXi clocks with an NTP server, you can use the VMware Host Client. For
information about editing the time configuration of an ESXi host, see vSphere Single Host
Management.
To learn how to change time synchronization settings for vCenter Server Appliance, see
"Configuring Time Synchronization Settings in the vCenter Server Appliance" in vCenter Server
Appliance Configuration.
To learn how to edit time configuration for a host, see "Edit Time Configuration for a Host" in
vCenter Server and Host Management.
This task explains how to set up NTP from the VMware Host Client. You can instead use the
vicfg-ntp vCLI command. See the vSphere Command-Line Interface Reference.
Procedure
1 Start the VMware Host Client, and connect to the ESXi host.
2 Click Manage.
3 Under System, click Time & date, and click Edit settings.
5 In the NTP servers text box, enter the IP address or fully qualified domain name of one or
more NTP servers to synchronize with.
7 Click Save.
When you deploy the vCenter Server Appliance, you can choose the time synchronization
method to be either by using an NTP server or by using VMware Tools. In case the time settings
in your vSphere network change, you can edit the vCenter Server Appliance and configure the
time synchronization settings by using the commands in the appliance shell.
When you enable periodic time synchronization, VMware Tools sets the time of the guest
operating system to be the same as the time of the host.
After time synchronization occurs, VMware Tools checks once every minute to determine
whether the clocks on the guest operating system and the host still match. If not, the clock
on the guest operating system is synchronized to match the clock on the host.
Native time synchronization software, such as Network Time Protocol (NTP), is typically more
accurate than VMware Tools periodic time synchronization and is therefore preferred. You can
use only one form of periodic time synchronization in the vCenter Server Appliance. If you decide
to use native time synchronization software, vCenter Server Appliance VMware Tools periodic
time synchronization is disabled, and the reverse.
Procedure
1 Access the appliance shell and log in as a user who has the administrator or super
administrator role.
3 (Optional) Run the command to verify that you successfully applied the VMware Tools time
synchronization.
timesync.get
Results
The time of the appliance is synchronized with the time of the ESXi host.
Procedure
1 Access the appliance shell and log in as a user who has the administrator or super
administrator role.
2 Add NTP servers to the vCenter Server configuration by running the following ntp.set
command.
3 (Optional) To verify that you successfully applied the new NTP configuration settings, run the
following command.
ntp.get
The command returns a space-separated list of the servers configured for NTP
synchronization. If the NTP synchronization is enabled, the command returns that the NTP
configuration is in Up status. If the NTP synchronization is disabled, the command returns that
the NTP configuration is in Down status.
4 (Optional) To verify if the NTP server is reachable, run the following command.
What to do next
If the NTP synchronization is disabled, you can configure the time synchronization settings in
the vCenter Server Appliance to be based on an NTP server. See Synchronize the Time in the
vCenter Server Appliance with an NTP Server.
Synchronize the Time in the vCenter Server Appliance with an NTP Server
You can configure the time synchronization settings in the vCenter Server Appliance to be based
on an NTP server.
Prerequisites
Set up one or more Network Time Protocol (NTP) servers in the vCenter Server Appliance
configuration. See Add or Replace NTP Servers in the vCenter Server Appliance Configuration.
Procedure
1 Access the appliance shell and log in as a user who has the administrator or super
administrator role.
3 (Optional) Run the command to verify that you successfully applied the NTP synchronization.
timesync.get
iSCSI supports accessing SCSI devices and exchanging data by using TCP/IP over a network
port rather than through a direct connection to a SCSI device. An iSCSI transaction encapsulates
blocks of raw SCSI data in iSCSI records and transmits the data to the requesting device or user.
iSCSI SANs support efficient use of the existing Ethernet infrastructure to provide hosts access
to storage resources that they can dynamically share. iSCSI SANs are an economical storage
solution for environments that rely on a common storage pool to serve many users. As with any
networked system, your iSCSI SANs can be subject to security breaches.
Note The requirements and procedures for securing an iSCSI SAN are similar for hardware iSCSI
adapters associated with hosts and for iSCSI configured directly through the host.
Authentication ensures that the initiator has the right to access a target. You grant this right
when you configure authentication on the iSCSI device.
ESXi does not support Secure Remote Protocol (SRP), or public-key authentication methods for
iSCSI. You can use Kerberos only with NFS 4.1.
ESXi supports both CHAP and Mutual CHAP authentication. The vSphere Storage documentation
explains how to select the best authentication method for your iSCSI device and how to set up
CHAP.
Ensure uniqueness of CHAP secrets. Set up a different mutual authentication secret for each
host. If possible, set up a different secret for each client that to the ESXi host. Unique secrets
ensure that an attacker cannot create another arbitrary host and authenticate to the storage
device even if one host is compromised. With a shared secret, compromise of one host might
allow an attacker to authenticate to the storage device.
The following are some specific suggestions for enforcing good security standards.
Take additional measures to prevent attackers from easily seeing iSCSI data. Neither the
hardware iSCSI adapter nor ESXi iSCSI initiator encrypts the data that they transmit to and from
the targets, making the data more vulnerable to sniffing attacks.
Allowing your virtual machines to share standard switches and VLANs with your iSCSI
configuration potentially exposes iSCSI traffic to misuse by a virtual machine attacker. To help
ensure that intruders cannot listen to iSCSI transmissions, make sure that none of your virtual
machines can see the iSCSI storage network.
If you use a hardware iSCSI adapter, you can accomplish this by making sure that the iSCSI
adapter and ESXi physical network adapter are not inadvertently connected outside the host by
virtue of sharing a switch or some other means. If you configure iSCSI directly through the ESXi
host, you can accomplish this by configuring iSCSI storage through a different standard switch
than the one used by your virtual machines.
In addition to protecting the iSCSI SAN by giving it a dedicated standard switch, you can
configure your iSCSI SAN on its own VLAN to improve performance and security. Placing your
iSCSI configuration on a separate VLAN ensures that no devices other than the iSCSI adapter
have visibility into transmissions within the iSCSI SAN. Also, network congestion from other
sources cannot interfere with iSCSI traffic.
Any iSCSI target device that you run must have one or more open TCP ports to listen for iSCSI
connections. If any security vulnerabilities exist in the iSCSI device software, your data can be
at risk through no fault of ESXi. To lower this risk, install all security patches that your storage
equipment manufacturer provides and limit the devices connected to the iSCSI network.
You can protect access to storage in your vSphere environment by using zoning and LUN
masking with your SAN resources. For example, you might manage zones defined for testing
independently within the SAN so they do not interfere with activity in the production zones.
Similarly, you might set up different zones for different departments.
When you set up zones, take into account any host groups that are set up on the SAN device.
Zoning and masking capabilities for each SAN switch and disk array and the tools for managing
LUN masking are vendor specific.
See your SAN vendor's documentation and the vSphere Storage documentation.
The RPCSEC_GSS Kerberos mechanism is an authentication service. It allows an NFS 4.1 client
installed on ESXi to prove its identity to an NFS server before mounting an NFS share. The
Kerberos security uses cryptography to work across an insecure network connection.
The ESXi implementation of Kerberos for NFS 4.1 provides two security models, krb5 and krb5i,
that offer different levels of security.
n Kerberos for authentication and data integrity (krb5i), in addition to identity verification,
provides data integrity services. These services help to protect the NFS traffic from
tampering by checking data packets for any potential modifications.
Kerberos supports cryptographic algorithms that prevent unauthorized users from gaining
access to NFS traffic. The NFS 4.1 client on ESXi attempts to use either the AES256-CTS-HMAC-
SHA1-96 or AES128-CTS-HMAC-SHA1-96 algorithm to access a share on the NAS server. Before
using your NFS 4.1 datastores, make sure that AES256-CTS-HMAC-SHA1-96 or AES128-CTS-
HMAC-SHA1-96 are enabled on the NAS server.
The following table compares Kerberos security levels that ESXi supports.
Kerberos for authentication Integrity checksum for RPC Yes with DES Yes with AES
only (krb5) header
Kerberos for authentication Integrity checksum for RPC No krb5i Yes with AES
and data integrity (krb5i) header
n When multiple ESXi hosts share the NFS 4.1 datastore, you must use the same Active
Directory credentials for all hosts that access the shared datastore. To automate the
assignment process, set the user in host profiles and apply the profile to all ESXi hosts.
n You cannot use two security mechanisms, AUTH_SYS and Kerberos, for the same NFS 4.1
datastore shared by multiple hosts.
By default, the capability to send host performance data to a virtual machine is disabled. This
default setting prevents a virtual machine from obtaining detailed information about the physical
host. If a security breach of the virtual machine occurs, the setting does not make host data
available to the attacker.
Note The procedure below illustrates the basic process. Consider using one of the vSphere
command-line interfaces (vCLI, PowerCLI, and so on) for performing this task on all hosts
simultaneously.
Procedure
1 On the ESXi system that hosts the virtual machine, browse to the VMX file.
tools.guestlib.enableHostInfo=FALSE
Results
You cannot retrieve performance information about the host from inside the guest virtual
machine.
Setting Timeouts for the ESXi Shell and vSphere Web Client
To prevent intruders from using an idle session, be sure to set timeouts for the ESXi Shell and
vSphere Web Client.
Availability Timeout
The availability timeout setting is the amount of time that can elapse before you must log in
after the ESXi Shell is enabled. After the timeout period, the service is disabled and users are
not allowed to log in.
Idle Timeout
The idle timeout is the amount of time that can elapse before the user is logged out of an idle
interactive sessions. Changes to the idle timeout apply the next time a user logs in to the ESXi
Shell. Changes do not affect existing sessions.
Note Starting with vSphere 6.7, the TLS Configurator utility is included in the product. You no
longer download it separately.
vCenter Server and ESXi use ports that can be enabled or disabled for TLS protocols. The TLS
Configuration utility scan option displays which versions of TLS are enabled for each service. See
Scan vCenter Server for Enabled TLS Protocols.
For the list of all supported ports and protocols in VMware products, including vSphere and
vSAN, see the VMware Ports and Protocols Tool™ at https://ports.vmware.com/. You can search
ports by VMware product, create a customized list of ports, and print or save port lists.
n On vCenter Server on Windows, you reconfigure the TLS for Update Manager ports by
editing configuration files. See Enable or Disable TLS Versions on vSphere Update Manager
on Windows.
n Starting with vSphere 6.7, you can use TLS 1.2 to encrypt the connection between vCenter
Server and an external Microsoft SQL Server. You cannot use a TLS 1.2 only connection to an
external Oracle database. See VMware Knowledge Base article 2149745.
n Do not disable TLS 1.0 on a vCenter Server or Platform Services Controller instance that is
running on Windows Server 2008. Windows 2008 supports only TLS 1.0. See the Microsoft
TechNet Article TLS/SSL Settings in the Server Roles and Technologies Guide.
n If you change the TLS protocols, you must restart the ESXi host to apply the changes. You
must restart the host even if you apply the changes through cluster configuration by using
host profiles. You can choose to restart the host immediately, or postpone the restart to a
more convenient time.
1 If your environment includes vSphere Update Manager on Windows, and vSphere Update
Manager is on a separate system, disable protocols explicitly by editing configuration files.
See Enable or Disable TLS Versions on vSphere Update Manager on Windows.
vSphere Update Manager on the vCenter Server Appliance is always included with the
vCenter Server system and the script updates the corresponding port.
3 Run the utility on each ESXi host that is managed by the vCenter Server. You can perform this
task for each host or for all hosts in a cluster.
4 If your environment uses one or more Platform Services Controller instances, run the utility on
each instance.
Prerequisites
n Disable TLS 1.0, and enable TLS 1.1 and TLS 1.2.
n Disable TLS 1.0 and TLS 1.1, and enable TLS 1.2.
For vCenter Server or Platform Services Controller, the default directory differs for Windows and
the appliance.
OS Backup Directory
Windows c:\users\current_user\appdata\local\temp\yearmonthdayTtime
Linux /tmp/yearmonthdayTtime
Procedure
OS Command
Windows cd %VMWARE_CIS_HOME%\TlsReconfigurator\VcTlsReconfigurator
Linux cd /usr/lib/vmware-TlsReconfigurator/VcTlsReconfigurator
OS Command
A successful backup looks similar to the following example. The order of services displayed
might be different each time you run the reconfigureVc backup command, due to the way
the command runs.
4 (Optional) If you later have to perform a restore, you can run the following command.
Prerequisites
Ensure that the hosts and services that the vCenter Server manages can communicate using
a version of TLS that remains enabled. For products that communicate only using TLS 1.0,
connectivity becomes unavailable.
Procedure
1 Log in to the vCenter Server system with the user name and password for
[email protected], or as another member of the vCenter Single Sign-On
Administrators group who can run scripts.
OS Command
Windows cd %VMWARE_CIS_HOME%\TlsReconfigurator\VcTlsReconfigurator
Linux cd /usr/lib/vmware-TlsReconfigurator/VcTlsReconfigurator
3 Run the command, depending on your operating system and on which version of TLS you
want to use.
n To disable TLS 1.0 and enable both TLS 1.1 and TLS 1.2, run the following command.
OS Command
n To disable TLS 1.0 and TLS 1.1, and enable only TLS 1.2, run the following command.
OS Command
4 If your environment includes other vCenter Server systems, repeat the process on each
vCenter Server system.
5 Repeat the configuration on each ESXi host and each Platform Services Controller.
For ESXi hosts, you use a different utility than for the other components of your vSphere
environment. The utility is release-specific, and cannot be used on a previous release.
Prerequisites
Ensure that any products or services associated with the ESXi host can communicate using TLS
1.1 or TLS 1.2. For products that communicate only using TLS 1.0, connectivity is lost.
Procedure
1 Log in to the vCenter Server system with the user name and password of the vCenter Single
Sign-On user who can run scripts.
OS Command
Windows cd %VMWARE_CIS_HOME%\TlsReconfigurator\EsxTlsReconfigurator
Linux cd /usr/lib/vmware-TlsReconfigurator/EsxTlsReconfigurator
3 For an ESXi host that is part of a cluster, run one of the following commands.
n To disable TLS 1.0 and enable both TLS 1.1 and TLS 1.2 on all hosts in a cluster, run the
following command.
OS Command
n To disable TLS 1.0 and TLS 1.1, and enable only TLS 1.2 on all hosts in a cluster, run the
following command.
OS Command
4 For an individual host that is not part of a cluster, run one of the following commands.
n To disable TLS 1.0 and enable both TLS 1.1 and TLS 1.2 on an individual host, run the
following command.
OS Command
n To disable TLS 1.0 and TLS 1.1, and enable only TLS 1.2 on an individual host, run the
following command.
OS Command
Note To reconfigure a standalone ESXi host, log into a vCenter Server system and run
the reconfigureEsx command with the ESXiHost -h HOST -u ESXi_USER options. For the
HOST option, you can specify the IP address or FQDN of a single ESXi host, or a list of
host IP addresses or FQDNs. For example, logging in to a vCenter Server and running the
following command enables both TLS 1.1 and TLS 1.2 on two ESXi hosts:
Alternatively, to reconfigure a standalone ESXi host, you can log into the host and modify
the UserVars.ESXiVPsDisabledProtocols advanced setting. See the topic titled
"Configure Advanced TLS/SSL Key Options" in the vSphere Single Host Management -
VMware Host Client documentation for more information.
If your environment uses only an embedded Platform Services Controller, you previously
completed this task during the vCenter Server process. See Enable or Disable TLS Versions on
vCenter Server Systems.
Note Proceed with this task only after you confirm that each vCenter Server system is running a
compatible version of TLS.
As part of the process, you can disable TLS 1.0, and enable TLS 1.1 and TLS 1.2. Or, you can
disable TLS 1.0 and TLS 1.1, and enable only TLS 1.2.
Prerequisites
Ensure that the applications, hosts, and services that connect to the Platform Services Controller
are eligible or configured to communicate by using a version of TLS that remains enabled.
Because the Platform Services Controller handles authentication and certificate management,
consider carefully which services might be affected. For services that communicate only using
unsupported protocols, connectivity becomes unavailable.
Procedure
1 Log in to the Platform Services Controller as a user who can run scripts and go to the
directory where the script is located.
OS Command
Windows cd %VMWARE_CIS_HOME%\TlsReconfigurator\VcTlsReconfigurator
Linux cd /usr/lib/vmware-TlsReconfigurator/VcTlsReconfigurator
2 You can perform the task on Platform Services Controller on Windows or on the Platform
Services Controller appliance.
n To disable TLS 1.0 and enable both TLS 1.1 and TLS 1.2, run the following command.
OS Command
n To disable TLS 1.0 and TLS 1.1, and enable only TLS 1.2, run the following command.
OS Command
3 If your environment includes other Platform Services Controller systems, repeat the process.
The TLS Configuration utility scan option displays which versions of TLS are enabled for each
service.
Procedure
OS Procedure
cd %VMWARE_CIS_HOME%
\TlsReconfigurator\VcTlsReconfigurator
Linux a Connect to the appliance using SSH and log in as a user who has
privileges to run scripts.
b If the Bash shell is not currently enabled, run the following commands.
cd /usr/lib/vmware-TlsReconfigurator/
VcTlsReconfigurator
2 To display which services have TLS enabled, and the ports used, run the following command.
reconfigureVc scan
You can only perform a recovery if you previously backed up the configuration.
2 vCenter Server.
Prerequisites
Before reverting changes, use the vCenter Server Appliance interface to perform a backup of the
Windows machine or appliance.
Procedure
Option Description
cd %VMWARE_CIS_HOME%
\TlsReconfigurator\VcTlsReconfigurator
Linux a Connect to the appliance using SSH and log in as a user who has
privileges to run scripts.
b If the Bash shell is not currently enabled, run the following commands.
cd /usr/lib/vmware-TlsReconfigurator/
VcTlsReconfigurator
Option Description
Windows C:\ProgramData\VMware\vCenterServer\logs\vmware\vSphere-
TlsReconfigurator\VcTlsReconfigurator.log
c:\users\username\appdata\local\temp\20161108T161539
c:\users\username\appdata\local\temp\20161108T171539
Option Description
For example:
reconfigureVc restore -d
c:\users\username\appdata\local\temp\20161108T171539
For example:
You can manage the TLS protocol configuration for other services by using the TLS Configuration
Utility. For vSphere Update Manager on Windows, however, you must reconfigure the TLS
protocol manually.
Modifying the TLS protocol configuration might involve any of the following tasks.
n Disabling TLS version 1.0 while leaving TLS version 1.1 and TLS version 1.2 enabled.
n Disabling TLS version 1.0 and TLS version 1.1 while leaving TLS version 1.2 enabled.
Note Before you disable a TLS version, make sure that none of the services that communicate
with vSphere Update Manager use that version.
Prerequisites
Stop the vSphere Update Manager service. See the Installing and Administering VMware vSphere
Update Manager documentation.
Procedure
2 Navigate to the Update Manager installation directory, which is different for vSphere 6.0 and
vSphere 6.5 and later.
Version Location
Option Description
Note Before you disable a TLS version, make sure that none of the services that communicate
with vSphere Update Manager use that version.
Prerequisites
Stop the vSphere Update Manager service. See the Installing and Administering VMware vSphere
Update Manager documentation.
Procedure
2 Navigate to the Update Manager installation directory, which is different for 6.0 and 6.5 and
later.
Version Location
<vmacore>
<ssl>
<handshakeTimeoutMs>120000</handshakeTimeoutMS>
<protocols>protocols_value</protocols>
</ssl>
</vmacore>
5 Depending on the TLS version that you want to enable, use one of the following values in the
<protocols> tag.
All tls1.0,tls1.1,tls1.2.
Only TLSv1.2 tls1.2, or do not include a protocols tag. Because the default is TLS 1.2, no protocols
tag is present to start with in vmacore.
6 (Optional) Starting from vSphere 6.0 Update 2, you might have an <sslOptions> tag.
Procedure
2 Navigate to the Update Manager installation directory which is different for 6.0 and 6.5 and
later.
Version Location
4 Remove the TLS tag that corresponds to the TLS protocol version that you want to enable.
Procedure
2 Navigate to the Update Manager installation directory, which is different for 6.0 and 6.5 and
later.
Version Location
<vmacore>
<ssl>
<handshakeTimeoutMs>120000</handshakeTimeoutMS>
<protocols>protocols_value</protocols>
</ssl>
</vmacore>
5 Depending on the TLS version that you want to enable, use one of the following values in the
<protocols> tag.
All tls1.0,tls1.1,tls1.2.
Only TLSv1.2 tls1.2, or do not include a protocols tag. Because the default is TLS 1.2, no protocols
tag is present to start with in vmacore.
When setting permissions, verify all the object types are set with appropriate privileges for
each particular action. Some operations require access permission at the root folder or parent
folder in addition to access to the object being manipulated. Some operations require access or
performance permission at a parent folder and a related object.
vCenter Server extensions might define additional privileges not listed here. Refer to the
documentation for the extension for more information on those privileges.
n Alarms Privileges
n Certificates Privileges
n Datacenter Privileges
n Datastore Privileges
n Extension Privileges
n Folder Privileges
n Global Privileges
n Host Inventory
n Network Privileges
n Performance Privileges
n Permissions Privileges
n Resource Privileges
n Sessions Privileges
n Tasks Privileges
n vApp Privileges
n vServices Privileges
Alarms Privileges
Alarms privileges control the ability to create, modify, and respond to alarms on inventory
objects.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Alarms.Acknowledge alarm Allows suppression of all alarm actions Object on which an alarm is defined
on all triggered alarms.
Alarms.Create alarm Allows creation of a new alarm. Object on which an alarm is defined
When creating alarms with a custom
action, privilege to perform the action is
verified when the user creates the alarm.
Alarms.Disable alarm action Allows stopping an alarm action from Object on which an alarm is defined
occurring after an alarm has been
triggered. This does not disable the
alarm.
Alarms.Modify alarm Allows changing the properties of an Object on which an alarm is defined
alarm.
Alarms.Set alarm status Allows changing the status of the Object on which an alarm is defined
configured event alarm. The status can
change to Normal, Warning, or Alert.
The table describes privileges that determine who can manage Auto Deploy rules and rule sets
and who can create and edit image profiles. See vCenter Server Installation and Setup.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Certificates Privileges
Certificates privileges control which users can manage ESXi certificates.
This privilege determines who can perform certificate management for ESXi hosts. See
Required Privileges for Certificate Management Operations in the Platform Services Controller
Administration documentation for information on vCenter Server certificate management.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Content library.Create Allows creation of local libraries on the specified vCenter Server vCenter Server
local library system.
Content library.Evict Allows eviction of items. The content of a subscribed library Library. Set this
library item can be cached or not cached. If the content is cached, you can permission to
release a library item by evicting it if you have this privilege. propagate to all library
items.
Content library.Import Allows a user to import a library item if the source file URL Library
Storage starts with ds:// or file://. This privilege is disabled for
content library administrator by default. Because an import from
a storage URL implies import of content, enable this privilege
only if necessary and if now security concern exists for the user
who will perform the import.
Content library.Probe This privilege allows solution users and APIs to probe a Library
subscription information remote library's subscription info including URL, SSL certificate,
and password. The resulting structure describes whether the
subscription configuration is successful or whether there are
problems such as SSL errors.
Content library.Publish Allows publication of library items to subscribers. Library. Set this
a library item to its permission to
subscribers propagate to all library
items.
Content library.Type Allows a solution user or API to introspect the type support Library
introspection plugins for the content library service.
Content library.Update Allows you to upload content into the content library. Also Library
files allows you to remove files from a library item.
Content library.Update Allows you to update the properties of a subscribed library. Library
subscribed library
Content library.Update Allows updates of subscription parameters. Users can update Library
subscription of a parameters such as the subscribed library's vCenter Server
published library instance specification and placement of its virtual machine
template items.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Cryptographic operations.Direct Access Allows users access to encrypted Virtual machine, host,
resources. For example, users or datastore
can export virtual machines, have
NFC access to virtual machines,
and so on.
Cryptographic operations.Encrypt new Allows users to encrypt a virtual Virtual machine folder
machine during virtual machine
creation or a disk during disk
creation.
Cryptographic operations.Manage encryption policies Allows users to manage virtual vCenter Server root
machine storage policies with folder
encryption IO filters. By default,
virtual machines that use the
Encryption storage policy do not
use other storage policies.
Cryptographic operations.Manage key servers Allows users to manage the vCenter Server
Key Management Server for system.
the vCenter Server system.
Management tasks include adding
and removing KMS instances, and
establishing a trust relationship
with the KMS.
Cryptographic operations.Manage keys Allows users to perform key vCenter Server root
management operations. These folder
operations are not supported
from the vSphere Web Client
but can be performed by using
crypto-util or the API.
Cryptographic operations.Register host Allows users to enable encryption Host folder for
on a host. You can enable standalone hosts,
encryption on a host explicitly, cluster for hosts in
or the virtual machine creation cluster
process can enable it.
Datacenter Privileges
Datacenter privileges control the ability to create and edit data centers in the vSphere Web
Client inventory.
All data center privileges are used in vCenter Server only. The Create datacenter privilege is
defined on data center folders or the root object. All other data center privileges are pair with
data centers, data center folders, or the root object.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Datacenter.Create datacenter Allows creation of new data center. Data center folder or
root object
Datacenter.Network protocol profile Allows configuration of the network profile Data center
configuration for a data center.
Datacenter.Release IP allocation Allows releasing the assigned IP allocation for Data center
a data center.
Datacenter.Rename datacenter Allows changing the name of a data center. Data center
Datastore Privileges
Datastore privileges control the ability to browse, manage, and allocate space on datastores.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Datastore.Allocate space Allows allocating space on a datastore for a virtual machine, Data stores
snapshot, clone, or virtual disk.
Datastore.Low level file Allows performing read, write, delete, and rename operations Data stores
operations in the datastore browser.
Datastore.Move datastore Allows moving a datastore between folders. Datastore, source and
Privileges must be present at both the source and destination
destination.
Datastore.Update virtual Allows updating file paths to virtual machine files on a Data stores
machine files datastore after the datastore has been resignatured.
Datastore.Update virtual Allows updating virtual machine metadata associated with a Data stores
machine metadata datastore.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Datastore Allows creation of and configuration of settings for datastore Datastore clusters
cluster.Configure a clusters for Storage DRS.
datatstore cluster
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Distributed switch.Host Allows changing the host members of a distributed switch. Distributed switches
operation
Distributed switch.Modify Allows changing the configuration of a distributed switch. Distributed switches
Distributed switch.Move Allows moving a vSphere Distributed Switch to another folder. Distributed switches
Distributed Allow changing the resource settings for a vSphere Distributed Distributed switches
switch.Network I/O Switch.
control operation
Distributed switch.Policy Allows changing the policy of a vSphere Distributed Switch. Distributed switches
operation
Distributed switch .Port Allow changing the configuration of a port in a vSphere Distributed switches
configuration operation Distributed Switch.
Distributed switch.Port Allows changing the setting of a port in a vSphere Distributed Distributed switches
setting operation Switch.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
ESX Agent Allows deployment of an agent virtual machine on a host or Virtual machines
Manager.Config cluster.
ESX Agent Allows modifications to an agent virtual machine such as powering Virtual machines
Manager.Modify off or deleting the virtual machine.
ESX Agent View.View Allows viewing of an agent virtual machine. Virtual machines
Extension Privileges
Extension privileges control the ability to install and manage extensions.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Folder Privileges
Folder privileges control the ability to create and manage folders.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Global Privileges
Global privileges control global tasks related to tasks, scripts, and extensions.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Global.Act as vCenter Allows preparation or initiation of a vMotion send operation or a Root vCenter Server
Server vMotion receive operation.
Global.Capacity planning Allows enabling the use of capacity planning for planning Root vCenter Server
consolidation of physical machines to virtual machines.
Global.Diagnostics Allows retrieval of a list of diagnostic files, log header, binary Root vCenter Server
files, or diagnostic bundle.
To avoid potential security breaches, limit this privilege to the
vCenter Server Administrator role.
Global.Disable methods Allows servers for vCenter Server extensions to disable certain Root vCenter Server
operations on objects managed by vCenter Server.
Global.Enable methods Allows servers for vCenter Server extensions to enable certain Root vCenter Server
operations on objects managed byvCenter Server.
Global.Global tag Allows adding or removing global tags. Root host or vCenter
Server
Global.Health Allows viewing the health of vCenter Server components. Root vCenter Server
Global.Licenses Allows viewing installed licenses and adding or removing Root host or vCenter
licenses. Server
Global.Log event Allows logging a user-defined event against a particular Any object
managed entity.
Global.Manage custom Allows adding, removing, or renaming custom field definitions. Root vCenter Server
attributes
Global.Proxy Allows access to an internal interface for adding or removing Root vCenter Server
endpoints to or from the proxy.
Global.Script action Allows scheduling a scripted action in conjunction with an alarm. Any object
Global.Service managers Allows use of the resxtop command in the vSphere CLI. Root host or vCenter
Server
Global.Set custom Allows viewing, creating, or removing custom attributes for a Any object
attribute managed object.
Global.Settings Allows reading and modifying runtime vCenter Server Root vCenter Server
configuration settings.
Global.System tag Allows adding or removing system tags. Root vCenter Server
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Host.CIM.CIM Interaction Allow a client to obtain a ticket to use for CIM services. Hosts
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Host.Configuration.Change date Allows changes to date and time settings on the host. Hosts
and time settings
Host.Configuration.Maintenance Allows putting the host in and out of maintenance mode Hosts
and shutting down and restarting the host.
Host.Configuration.Query patch Allows querying for installable patches and installing Hosts
patches on the host.
Host Inventory
Host inventory privileges control adding hosts to the inventory, adding hosts to clusters, and
moving hosts in the inventory.
The table describes the privileges required to add and move hosts and clusters in the inventory.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Host.Inventory.Move Allows moving a set of existing hosts into or out of a cluster. Clusters
host Privilege must be present at both the source and destination.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Host.Local Allows installation and removal of vCenter agents, such as vpxa Root host
operations.Add host to and aam, on a host.
vCenter
Host.Local Allows creation of a new virtual machine from scratch on a disk Root host
operations.Create virtual without registering it on the host.
machine
Host.Local Allows deletion of a virtual machine on disk. Supported for Root host
operations.Delete virtual registered and unregistered virtual machines.
machine
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Host profile.Clear Allows clearing of profile related information. Root vCenter Server
Network Privileges
Network privileges control tasks related to network management.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Performance Privileges
Performance privileges control modifying performance statistics settings.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Performance.Modify Allows creating, removing, and updating performance data Root vCenter Server
intervals collection intervals.
Permissions Privileges
Permissions privileges control the assigning of roles and permissions.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Permissions.Modify Allows defining one or more permission rules on an entity, or Any object plus
permission updating rules if rules are already present for the given user or parent object
group on the entity.
To have permission to perform this operation, a user or group
must have this privilege assigned in both the object and its
parent object.
Permissions.Modify role Allows updating a role's name and the privileges that are Any object
associated with the role.
Permissions.Reassign Allows reassigning all permissions of a role to another role. Any object
role permissions
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Profile-driven storage.Profile- Allows viewing of defined storage capabilities Root vCenter Server
driven storage view and storage profiles.
Resource Privileges
Resource privileges control the creation and management of resource pools, as well as the
migration of virtual machines.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Resource.Assign vApp to resource Allows assignment of a vApp to a resource pool. Resource pools
pool
Resource.Migrate powered off virtual Allows migration of a powered off virtual machine Virtual machines
machine to a different resource pool or host.
Resource.Modify resource pool Allows changes to the allocations of a resource Resource pools
pool.
Resource.Query vMotion Allows querying the general vMotion compatibility Root vCenter Server
of a virtual machine with a set of hosts.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Scheduled task.Create Allows scheduling of a task. Required in addition to the Any object
tasks privileges to perform the scheduled action at the time of
scheduling.
Scheduled task.Modify Allows reconfiguration of the scheduled task properties. Any object
task
Scheduled task.Remove Allows removal of a scheduled task from the queue. Any object
task
Scheduled task.Run task Allows running the scheduled task immediately. Any object
Creating and running a scheduled task also requires permission
to perform the associated action.
Sessions Privileges
Sessions privileges control the ability of extensions to open sessions on the vCenter Server
system.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Sessions.Impersonate Allows impersonation of another user. This capability is used by Root vCenter Server
user extensions.
Sessions.Message Allows setting of the global login message. Root vCenter Server
Sessions.View and stop Allows viewing sessions and forcing log out of one or more Root vCenter Server
sessions logged-on users.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Storage views.Configure service Allows privileged users to use all Storage Root vCenter Server
Monitoring Service APIs. Use Storage views.View
for privileges to read-only Storage Monitoring
Service APIs.
Storage views.View Allows privileged users to use read-only Storage Root vCenter Server
Monitoring Service APIs.
Tasks Privileges
Tasks privileges control the ability of extensions to create and update tasks on the vCenter
Server.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Tasks.Create task Allows an extension to create a user-defined task. Root vCenter Server
No vSphere Web Client user interface elements are associated
with this privilege.
Tasks.Update task Allows an extension to update a user-defined task. Root vCenter Server
No vSphere Web Client user interface elements are associated
with this privilege.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Virtual machine.Configuration.Acquire disk lease Allows disk lease operations for Virtual machines
a virtual machine.
Virtual machine.Configuration.Add existing disk Allows adding an existing virtual Virtual machines
disk to a virtual machine.
Virtual machine.Configuration.Add new disk Allows creation of a new virtual Virtual machines
disk to add to a virtual machine.
Virtual machine.Configuration.Change CPU count Allows changing the number of Virtual machines
virtual CPUs.
Virtual machine.Configuration.Configure Host USB device Allows attaching a host-based Virtual machines
USB device to a virtual machine.
Virtual machine.Configuration.Extend virtual disk Allows expansion of the size of Virtual machines
a virtual disk.
Virtual machine.Configuration.Modify device settings Allows changing the properties Virtual machines
of an existing device.
Virtual machine.Configuration.Reset guest information Allows editing the guest Virtual machines
operating system information
for a virtual machine.
Virtual machine.Configuration.Upgrade virtual machine Allows upgrade of the virtual Virtual machines
compatibility machine’s virtual machine
compatibility version.
See the VMware vSphere API Reference documentation for more information on these
operations.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Virtual machine.Guest Operations.Guest Operation Alias Allows virtual machine guest Virtual machines
modification operations that involve
modifying the alias for the
virtual machine.
Virtual machine.Guest Operations.Guest Operation Alias Allows virtual machine guest Virtual machines
query operations that involve
querying the alias for the
virtual machine.
Virtual machine.Guest Operations.Guest Operation Allows virtual machine guest Virtual machines
Modifications operations that involve
modifications to a guest
operating system in a
virtual machine, such as
transferring a file to the
virtual machine.
No vSphere Web Client
user interface elements
are associated with this
privilege.
Virtual machine.Guest Operations.Guest Operation Program Allows virtual machine guest Virtual machines
Execution operations that involve
executing a program in the
virtual machine.
No vSphere Web Client
user interface elements
are associated with this
privilege.
Virtual machine.Guest Operations.Guest Operation Queries Allows virtual machine Virtual machines
guest operations that
involve querying the guest
operating system, such as
listing files in the guest
operating system.
No vSphere Web Client
user interface elements
are associated with this
privilege.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Virtual machine .Interaction .Configure floppy media Allows configuration of a Virtual machines
virtual floppy device.
Virtual machine .Interaction .Console interaction Allows interaction with the Virtual machines
virtual machine’s virtual
mouse, keyboard, and
screen.
Virtual machine .Interaction .Create screenshot Allows creation of a virtual Virtual machines
machine screen shot.
Virtual machine .Interaction .Defragment all disks Allows defragment Virtual machines
operations on all disks of
the virtual machine.
Virtual machine .Interaction .Device connection Allows changing the Virtual machines
connected state of
a virtual machine’s
disconnectable virtual
devices.
Virtual machine .Interaction .Drag and Drop Allows drag and drop of Virtual machines
files between a virtual
machine and a remote
client.
Virtual machine .Interaction .Guest operating system Allows management of the Virtual machines
management by VIX API virtual machine's operating
system through the VIX
API.
Virtual machine .Interaction .Inject USB HID scan codes Allows injection of USB HID Virtual machines
scan codes.
Virtual machine .Interaction .Perform wipe or shrink Allows performing wipe or Virtual machines
operations shrink operations on the
virtual machine.
Virtual machine .Interaction .Power Off Allows powering off Virtual machines
a powered-on virtual
machine. This operation
powers down the guest
operating system.
Virtual machine .Interaction .Record session on Virtual Allows recording a session Virtual machines
Machine on a virtual machine.
Virtual machine .Interaction .Replay session on Virtual Allows replaying of a Virtual machines
Machine recorded session on a
virtual machine.
Virtual machine .Interaction .Resume Fault Tolerance Allows resuming of fault Virtual machines
tolerance for a virtual
machine.
Virtual machine .Interaction .Suspend Fault Tolerance Allows suspension of fault Virtual machines
tolerance for a virtual
machine.
Virtual machine .Interaction .Test failover Allows testing of Fault Virtual machines
Tolerance failover by
making the Secondary
virtual machine the Primary
virtual machine.
Virtual machine .Interaction .Test restart Secondary VM Allows termination of a Virtual machines
Secondary virtual machine
for a virtual machine using
Fault Tolerance.
Virtual machine .Interaction .Turn Off Fault Tolerance Allows turning off Fault Virtual machines
Tolerance for a virtual
machine.
Virtual machine .Interaction .Turn On Fault Tolerance Allows turning on Fault Virtual machines
Tolerance for a virtual
machine.
Virtual machine .Interaction .VMware Tools install Allows mounting and Virtual machines
unmounting the VMware
Tools CD installer as a
CD-ROM for the guest
operating system.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Virtual Allows creation of a virtual machine based on an existing virtual Clusters, Hosts, Virtual
machine .Inventory.Crea machine or template, by cloning or deploying from a template. machine folders
te from existing
Virtual Allows creation of a virtual machine and allocation of resources Clusters, Hosts, Virtual
machine .Inventory.Crea for its execution. machine folders
te new
Virtual Allows adding an existing virtual machine to a vCenter Server or Clusters, Hosts, Virtual
machine .Inventory.Regi host inventory. machine folders
ster
Virtual Allows deletion of a virtual machine. Deletion removes the Virtual machines
machine .Inventory.Rem virtual machine's underlying files from disk.
ove To have permission to perform this operation, a user or group
must have this privilege assigned in both the object and its
parent object.
Virtual Allows unregistering a virtual machine from a vCenter Server or Virtual machines
machine .Inventory.Unre host inventory.
gister To have permission to perform this operation, a user or group
must have this privilege assigned in both the object and its
parent object.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Virtual Allows opening a disk on a virtual machine for random read Virtual machines
machine .Provisioning.Allo and write access. Used mostly for remote disk mounting.
w disk access
Virtual Allows operations on files associated with a virtual machine, Virtual machines
machine .Provisioning.Allo including vmx, disks, logs, and nvram.
w file access
Virtual Allows opening a disk on a virtual machine for random read Virtual machines
machine .Provisioning.Allo access. Used mostly for remote disk mounting.
w read-only disk access
Virtual Allows read operations on files associated with a virtual Root host or vCenter
machine .Provisioning.Allo machine, including vmx, disks, logs, and nvram. Server
w virtual machine download
Virtual Allows write operations on files associated with a virtual Root host or vCenter
machine .Provisioning.Allo machine, including vmx, disks, logs, and nvram. Server
w virtual machine files
upload
Virtual Allows cloning of an existing virtual machine and allocation of Virtual machines
machine .Provisioning.Clon resources.
e virtual machine
Virtual Allows creation of a new template from a virtual machine. Virtual machines
machine .Provisioning.Crea
te template from virtual
machine
Virtual Allows marking an existing powered off virtual machine as a Virtual machines
machine .Provisioning.Mark template.
as template
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Virtual Machine. Service Allows generating and consuming notification about service status.
configuration. Allow
notifications
Virtual Machine. Service Allows querying whether any notifications are present.
configuration. Allow polling of
global event notifications
Virtual Machine. Service Allows creating, modifying, and deleting virtual machine services.
configuration. Manage service
configurations
Virtual Machine. Service Allows modification of existing virtual machine service configuration.
configuration. Modify service
configuration
Virtual Machine. Service Allows retrieval of existing virtual machine service configuration.
configuration. Read service
configuration
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Virtual Allows creation of a snapshot from the virtual machine’s current Virtual machines
machine .Snapshot state.
management. Create
snapshot
Virtual Allows removal of a snapshot from the snapshot history. Virtual machines
machine .Snapshot
management.Remove
Snapshot
Virtual Allows renaming a snapshot with a new name, a new Virtual machines
machine .Snapshot description, or both.
management.Rename
Snapshot
Virtual Allows setting the virtual machine to the state it was in at a given Virtual machines
machine .Snapshot snapshot.
management.Revert to
snapshot
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
Virtual machine .vSphere Allows configuration of replication for the virtual machine. Virtual machines
Replication.Configure
Replication
Virtual machine .vSphere Allows triggering of full sync, online sync or offline sync on a Virtual machines
Replication.Manage replication.
Replication
The table describes the privileges required to create and configure distributed virtual port
groups.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
dvPort group.Create Allows creation of a distributed virtual port group. Virtual port groups
dvPort group.Delete Allows deletion of distributed virtual port group. Virtual port groups
To have permission to perform this operation, a user or group
must have this privilege assigned in both the object and its parent
object.
dvPort group.Modify Allows modification of a distributed virtual port group Virtual port groups
configuration.
dvPort group.Policy Allows setting the policy of a distributed virtual port group. Virtual port groups
operation
dvPort group.Scope Allows setting the scope of a distributed virtual port group. Virtual port groups
operation
vApp Privileges
vApp privileges control operations related to deploying and configuring a vApp.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
vServices Privileges
vServices privileges control the ability to create, configure, and update vService dependencies
for virtual machines and vApps.
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
vService.Create Allows creation of a vService dependency for a virtual machine vApps and virtual
dependency or vApp. machines
vService.Destroy Allows removal of a vService dependency for a virtual machine vApps and virtual
dependency or vApp. machines
vService.Reconfigure Allows reconfiguration of a dependency to update the provider vApps and virtual
dependency or binding. machines
configuration
vService.Update Allows updates of a dependence to configure the name or vApps and virtual
dependency description. machines
You can set this privilege at different levels in the hierarchy. For example, if you set a privilege
at the folder level, you can propagate the privilege to one or more objects within the folder. The
object listed in the Required On column must have the privilege set, either directly or inherited.
vSphere Tagging.Assign or Unassign Allows assignment or unassignment of a tag for an Any object
vSphere Tag object in the vCenter Server inventory.
vSphere Tagging.Create vSphere Tag Allows creation of a tag category. Any object
Category
vSphere Tagging.Create vSphere Tag Allows creation of a tag scope. Any object
Scope
vSphere Tagging.Delete vSphere Tag Allows deletion of a tag category. Any object
vSphere Tagging.Delete vSphere Tag Allows deletion of a tag category. Any object
Category
vSphere Tagging.Delete vSphere Tag Allows deletion of a tag scope. Any object
Scope
vSphere Tagging.Edit vSphere Tag Allows editing of a tag category. Any object
Category
vSphere Tagging.Edit vSphere Tag Allows editing of a tag scope. Any object
Scope
vSphere Tagging.Modify UsedBy Field Allows changing the UsedBy field for a tag Any object
for Category category.
vSphere Tagging.Modify UsedBy Field Allows changing the UsedBy field for a tag. Any object
for Tag
A high-level overview of security and compliance topics that require attention helps you plan
your compliance strategy. You also benefit from other compliance-related resources on the
VMware Web site.
n Audit Logging
Security reduces the risk of data theft, cyberattack, or unauthorized access, while compliance
is the proof that a security control is in place, typically within a defined time line. Security is
primarily outlined in the design decisions and highlighted within the technology configurations.
Compliance is focused on mapping the correlation between security controls and specific
requirements. A compliance mapping provides a centralized view to list out many of the
required security controls. Those controls are further detailed by including each security control's
respective compliance citations as dictated by a domain such as NIST, PCI, FedRAMP, HIPAA, and
so forth.
Effective cybersecurity and compliance programs are built on three pillars: people, process, and
technology. A general misconception is that technology alone can solve all your cybersecurity
needs. Technology does play a large and important role in the development and execution of an
information security program. However, technology without process and procedures, awareness
and training, creates a vulnerability within your organization.
When defining your security and compliance strategies, keep the following in mind:
n People need general awareness and training, whereas IT staff need specific training.
n Process defines how your organization's activities, roles, and documentation are used to
mitigate risk. Processes are only effective if people follow them correctly.
n Technology can be used to prevent or reduce the impact of cybersecurity risk to your
organization. Which technology to use depends on your organization's risk acceptance level.
VMware provides Compliance Kits that contain both an Audit Guide and a Product Applicability
Guide, helping to bridge the gap between compliance and regulatory requirements and
implementation guides. For more information, see https://core.vmware.com/compliance.
Term Definition
Term Definition
The vSphere Security Configuration Guide does not discuss securing the following items:
n Software running inside the virtual machine, such as the Guest OS and applications
The vSphere Security Configuration Guide is not meant to be used as a "compliance" tool. The
vSphere Security Configuration Guide does enable you to take initial steps towards compliance,
but used by itself, it does not ensure that your deployment is compliant. For more information
about compliance, see Security Versus Compliance in the vSphere Environment.
Desired Value The desired state or value of the recommendation. Possible values include:
n N/A
n Site Specific
n False
n True
n Enabled
n Disabled
n Not present or False
Is desired value the default? States if the security setting is the default product configuration.
Action Needed The type of action to take on the particular recommendation. Actions
include:
n Update
n Audit Only
n Modify
n Add
n Remove
Setting Location in the vSphere Client Steps for checking on the value by using the vSphere Client.
Negative Functional Impact in Change Description, if any, of a potential negative impact from using the security
From Default? recommendation.
PowerCLI Command Assessment Steps for checking on the value by using PowerCLI.
PowerCLI Command Remediation Steps for setting (remediating) the value by using PowerCLI.
Example
vCLI Command Remediation Steps for setting (remediating) the value by using the vCLI commands.
PowerCLI Command Assessment Steps for checking on the value by using the PowerCLI commands.
PowerCLI Command Remediation Steps for setting (remediating) the value by using the PowerCLI commands.
Able to set using Host Profile Whether the setting can be accomplished by using Host Profiles (applies
only to ESXi guidelines).
Hardening If TRUE, then the guideline has only one implementation to be compliant. If
FALSE then you can satisfy the guideline implementation by more than one
configuration setting. The actual setting is often site-specific.
Site Specific Setting If TRUE, then the setting to be compliant with the guideline depends on
rules or standards that are specific to that vSphere deployment.
Audit Setting If TRUE, then the value of the listed setting might need to be modified to
satisfy site-specific rules.
Note These columns might change over time as required. For example, recent additions include
the DISA STIG ID, Hardening, and Site Specific Setting columns. Check https://blogs.vmware.com
for announcements about updates to the vSphere Secure Configuration Guide.
Do not blindly apply guidelines in the vSphere Secure Configuration Guide to your environment.
Rather, take time to evaluate each setting and make an informed decision whether you want to
apply it. At a minimum, you can use the instructions in the Assessment columns to verify the
security of your deployment.
The vSphere Secure Configuration Guide is an aid to begin implementing compliance in your
deployment. When used with the Defense Information Systems Agency (DISA) and other
compliance guidelines, the vSphere Secure Configuration Guide enables you to map vSphere
security controls to the compliance flavor per each guideline.
The National Institute of Standards and Technology (NIST) was founded in 1901 and is now
part of the U.S. Department of Commerce. NIST is one of the nation's oldest physical science
laboratories. Today, NIST measurements support the smallest of technologies to the largest and
most complex of human-made creations, from nanoscale devices, up to earthquake-resistant
skyscrapers and global communication networks.
The Federal Information Security Management Act (FISMA) is a United States federal law passed
in 2002 that made it a requirement for federal agencies to develop, document, and implement
an information security and protection program. NIST plays an important role in the FISMA
implementation by producing key security standards and guidelines (for example, FIPS 199, FIPS
200, and SP 800 series).
Government and private organizations use NIST 800-53 to secure information systems.
Cybersecurity and privacy controls are essential to protect organizational operations (including
mission, functions, image, and reputation), organizational assets, and individuals from a diverse
set of threats. Some of these threats include hostile cyber-attacks, natural disasters, structural
failures, and human errors. VMware has enlisted a third-party audit partner to evaluate VMware
products and solutions against the NIST 800-53 catalog of controls. For more information, visit
the NIST webpage at https://www.nist.gov/cyberframework.
The Defense Information Systems Agency (DISA) is the U.S. Department of Defense (DoD)
combat support agency responsible for maintaining the security posture of the DOD Information
Network (DODIN). One of the ways DISA accomplishes this task is by developing, disseminating,
and mandating the implementation of Security Technical Implementation Guides, or STIGs. In
brief, STIGs are portable, standards-based guides for hardening systems. STIGs are mandatory
for U.S. DoD IT systems and, as such, provide a vetted, secure baseline for non-DoD entities to
measure their security posture.
Vendors such as VMware submit suggested security hardening guidance to DISA for evaluation,
based on DISA protocols and feedback. Once that process is complete, the official STIG
is published on the DISA organization’s web site at https://public.cyber.mil/stigs/. VMware
provides security baselines and hardening guidance for vSphere as part of the vSphere Security
Configuration Guide. See https://core.vmware.com/security.
The SDL is the software development methodology that the VMware Security Engineering,
Communication, and Response (vSECR) group, and VMware product development groups, use
to help identify and mitigate security issues. For more information about the VMware Security
Development Lifecycle, see the webpage at https://www.vmware.com/security/sdl.html.
The VSRC works with customers and the security research community to achieve the goals
of addressing security issues and providing customers with actionable security information in
a timely manner. For more information about the VMware Security Response Center, see the
webpage at https://www.vmware.com/security/vsrc.html.
Audit Logging
Audit logging of network traffic, compliance alerts, firewall activity, operating system changes,
and provisioning activities is considered a best practice for maintaining the security of any IT
environment. In addition, logging is a specific requirement of many regulations and standards.
One of the first steps to take for ensuring you are aware of changes to your infrastructure is
to audit your environment. By default, vSphere includes tools that enable you to view and track
changes. For example, you can use the Tasks and Events tab in the vSphere Client on any object
in your vSphere hierarchy to see what changes have occurred. You can also use the PowerCLI
to retrieve events and tasks. Also, vRealize Log Insight offers audit logging to support collection
and retention of important system events. In addition, many third-party tools are available that
provide vCenter auditing.
Log files can provide an audit trail to help determine who or what is accessing a host, a virtual
machine, and so on. For more information, see ESXi Log File Locations.
vCenter Server 6.7 Update 2 and later improves VMware vCenter Single Sign-On auditing by
adding events for the following operations:
n User management
n Login
n Group creation
n Identity source
n Policy updates
Supported identity sources are vsphere.local, Integrated Windows Authentication (IWA), and
Active Directory over LDAP.
When a user logs in to vCenter Server through Single Sign-On, or makes changes that affect SSO,
the following audit events are written to the SSO audit log file:
n Login and Logout Attempts: Events for all the successful and failed login and logout
operations.
n Account Change: Event for change in the user account information, for example, user name,
password, or any additional account information.
In the vSphere Client and the vSphere Web Client, event data is displayed in the Monitor tab. See
the vSphere Monitoring and Performance documentation.
Note The ability to view events using either of the GUI clients is only enabled for the vCenter
Server Appliance.
OS Location
Caution Never manually edit the audit_events.log file, as doing so might cause the audit
logging to fail.
Keep the following in mind when working with the audit_events.log file:
n A maximum of 10 archive files is kept. If the limit is reached, the oldest file is purged when a
new archive is created.
n The archive files are named audit_events-<index>.log.gz, where the index is a numeral
from 1 to 10. The first archive created is index 1, and is increased with each subsequent
archive.
n The oldest events are in archive index 1. The highest indexed file is the latest archive.
You might ask these general questions when preparing to conduct a security audit:
5 Do we use a third-party audit firm to help us prepare for an audit? If so, what is their level of
comfort with virtualization?
6 Do we run vulnerability scans against the systems and applications? When and how often?
8 Is your audit logging configured according to your needs? See Audit Logging.
In the absence of specific guidance or direction on where to begin, you can jumpstart securing
your vSphere environment by:
n Keeping your environment up-to-date with the latest software and firmware patches
n Referring to the VMware Security Configuration Guides (see Understanding the vSphere
Security Configuration Guide)
n Using readily available and proven guidance from policy frameworks such as NIST, ISO, and
so forth
n Following guidance from regulatory compliance frameworks such as PCI, DISA, and FedRAMP