VMware ESXi and vSphere Cluster Management

VMware ESXi and vSphere Administration Online Course

Learn ESXi and vSphere administration: installation, networking, storage, virtual machines, vMotion, HA, troubleshooting, security, and VCP-DCV foundations.

This course introduces the practical skills required to deploy, configure, manage, troubleshoot, and protect virtual machines in a VMware vSphere environment. It is designed for beginning VMware administrators, IT professionals moving from desktop to server virtualization, and learners preparing for foundational VCP-DCV study.

You should understand basic computer hardware, Windows or Linux administration, IPv4 networking, DNS, VLANs, storage, user accounts, and system updates. A small lab using supported hardware or nested virtualization will make the lessons more useful.

Virtualization foundations

Server virtualization divides the computing resources of one physical server into multiple isolated virtual machines. A hypervisor controls access to physical CPU, memory, storage, and networking hardware. Each virtual machine behaves like an independent computer with virtual hardware, a guest operating system, applications, and its own configuration.

Bare-metal and hosted hypervisors

TypeHow it worksTypical use
Bare-metal, or Type 1Installs directly on server hardware and manages guest workloads without a general-purpose host operating system.Data centers and production virtualization. ESXi is a bare-metal hypervisor.
Hosted, or Type 2Runs as an application on Windows, Linux, or another desktop operating system.Personal testing, training, and desktop virtualization.

VMware ESXi is the hypervisor. VMware vSphere is the broader virtualization platform and management ecosystem that includes ESXi, vCenter Server, management clients, lifecycle tools, and features such as HA, DRS, and vMotion.

Core virtualization objects

  • Virtual hardware: Virtual CPUs, memory, disks, controllers, firmware, network adapters, and other devices presented to a guest.
  • Resource pool: A logical partition that allocates CPU and memory capacity to groups of virtual machines.
  • Snapshot: A point-in-time state and disk mechanism for short-term rollback or testing. A snapshot is not a backup.
  • Template: A master image used to create consistent virtual machines.
  • Clone: A copy of an existing virtual machine. A full clone is independent; linked clones depend on a parent design where supported.
  • Datastore: A logical storage container for virtual machine files, virtual disks, configuration files, logs, templates, and ISO images.

Consolidation can reduce hardware, power, and administration costs. Isolation limits the effect of one workload on another, while resource scheduling can improve utilization. These benefits depend on compatible host hardware, adequate storage performance, correct network design, sufficient capacity, and appropriate licensing.

vSphere platform architecture

An ESXi host can run virtual machines independently, but centralized management normally uses vCenter Server. The vSphere Client is the web interface used to manage vCenter Server and, for many tasks, individual ESXi hosts. Automation services and PowerCLI can perform repeatable operations through supported APIs. Update Manager functionality is provided through vSphere Lifecycle Manager in current vSphere releases.

ComponentPrimary purposeManaged scopeKey dependencies
ESXi hostRuns virtual machines and provides virtual networking and storage services.One physical server and its local resources.Compatible hardware, storage, networks, and host configuration.
vCenter ServerCentralizes inventory, permissions, clusters, alarms, migrations, HA, DRS, and lifecycle operations.Multiple hosts, clusters, datastores, networks, and VMs.DNS, time synchronization, appliance resources, and network access.
vSphere ClientProvides browser-based administration.Connected vCenter inventory or an individual host.Network connectivity and appropriate permissions.
Lifecycle ManagerAssesses host compliance and coordinates patches, updates, upgrades, baselines, or desired images.Hosts and clusters.Compatibility data, depot or image sources, and maintenance capacity.
Automation servicesExecutes repeatable administration through APIs, PowerCLI, or orchestration workflows.Objects exposed by the platform and assigned permissions.API access, credentials, and carefully tested scripts.

Common inventory objects include datacenters, folders, clusters, hosts, resource pools, datastores, networks, and virtual machines. A cluster groups compatible ESXi hosts so that shared resource management and availability features can operate across them. See how to add an ESXi host to vCenter inventory and understand communication between vCenter Server and ESXi.

Planning a lab or small vSphere environment

Start with a compatibility and capacity assessment. Confirm that the server CPU supports hardware virtualization, that the system firmware is current, and that memory is sufficient for ESXi, vCenter Server, and test VMs. Check storage controllers, network adapters, drives, and firmware against the VMware Compatibility Guide concept before purchasing or installing equipment.

  • Reserve management IP addresses and create forward and reverse DNS records for ESXi hosts and vCenter Server.
  • Document subnet masks, default gateways, VLAN IDs, DNS servers, and NTP sources.
  • Use separate or logically separated paths for management, virtual machine, vMotion, and storage traffic where practical.
  • Plan shared storage if you want to practice vMotion, HA, or cluster operations. Local-only storage limits many features.
  • Provide enough memory for the hypervisor, vCenter Server Appliance, and guest operating systems. Avoid sizing a lab from production assumptions without checking the current release requirements.
Host nameManagement IPSubnet maskGatewayDNS serversVLAN IDNTP source
esxi-01Document before installationDocument before installationDocument before installationDocument before installationDocument before installationDocument before installation
esxi-02Document before installationDocument before installationDocument before installationDocument before installationDocument before installationDocument before installation
vcenterDocument before deploymentDocument before deploymentDocument before deploymentDocument before deploymentDocument before deploymentDocument before deployment

Nested virtualization runs ESXi as a virtual machine inside another hypervisor. It is useful for training, but it adds overhead and may restrict performance, hardware passthrough, storage behavior, networking, and failure testing. Do not treat a nested lab as equivalent to production hardware.

Installing and initially configuring ESXi

  1. Verify hardware compatibility, obtain the correct installation image, and create supported installation media.
  2. Boot the server from the selected device and install ESXi to a dedicated supported disk or boot device.
  3. Choose the boot device carefully, accept the installation prompts, and set a strong root password.
  4. After reboot, use the Direct Console User Interface (DCUI) to configure the management network.
  5. Set a static IPv4 address, subnet mask, default gateway, DNS servers, hostname, and management VLAN when required.
  6. Run the DCUI network test, verify DNS resolution, and connect to the host management interface from an administrator workstation.
  7. Configure NTP and verify that the host clock synchronizes. Consistent time is important for certificates, authentication, logs, and cluster behavior.
  8. Apply the appropriate host license and review the host summary, storage, networking, and hardware health.

Enable ESXi Shell or SSH only for a specific administrative need, restrict access to trusted management networks, and disable the services afterward when possible. Record configuration changes and avoid routine administration through unrestricted root access.

For a focused walkthrough, review basic ESXi configuration and ESXi firewall configuration.

Deploying vCenter Server and organizing inventory

vCenter Server is required for centralized inventory, clusters, HA, DRS, vMotion orchestration, permissions across multiple objects, templates and content libraries, and many lifecycle operations. The vCenter Server Appliance is deployed as a virtual appliance and configured with its identity, networking, administrator account, time source, and storage resources.

  1. Prepare DNS, an FQDN, a static address, gateway, NTP, and adequate datastore capacity.
  2. Deploy the appliance using the installation wizard or an approved automation method.
  3. Complete appliance and single sign-on configuration, then sign in with a controlled administrator account.
  4. Create a datacenter, folders, and a cluster as appropriate for the lab or production design.
  5. Add ESXi hosts to inventory and verify certificates, licensing, connectivity, datastores, and networks.
  6. Define roles and assign permissions at the smallest practical inventory scope. Use named accounts or directory identities rather than sharing credentials.

Use least privilege: grant only the operations a person needs, review inherited permissions, and audit effective access. See assigning permissions and the vSphere access control model.

Virtual machine deployment and lifecycle management

When creating a VM, choose a compatible virtual hardware level, guest operating system type, firmware, virtual CPU count, memory, disk controller, virtual disk provisioning format, network adapter, and port group. Select resources based on the guest workload rather than assigning the largest possible VM.

  1. Create the VM in the correct folder, resource pool, datastore, and network.
  2. Attach ISO media or use an approved network installation source.
  3. Install Windows or Linux, configure its hostname and network settings, and apply updates.
  4. Install VMware Tools. Tools provide guest drivers and improve shutdown, time synchronization options, guest operations, heartbeat reporting, and device integration.
  5. Test power on, graceful shutdown, reboot, network connectivity, storage access, and application behavior.

Templates and content libraries support repeatable deployment. Clones are useful for test copies, but identity settings, hostnames, application keys, and network configuration must be handled safely. Startup and shutdown order should be designed around application dependencies rather than assumed to be automatic.

Many virtual hardware changes require a powered-off VM, including some firmware, controller, and device changes. Increase CPU or memory gradually, confirm guest operating system support, and monitor the result.

Snapshots and backups

A snapshot preserves a point-in-time view while subsequent writes are recorded in delta files. Long-lived or chained snapshots can consume datastore capacity and reduce performance. Remove snapshots after the test or rollback window, and investigate consolidation warnings rather than repeatedly creating new snapshots. VM backup software must copy and catalog recoverable data; snapshots alone do not protect against datastore loss, host loss, corruption, or ransomware.

See cloning a virtual machine and adding virtual hardware for related lifecycle tasks.

Virtual networking

A physical NIC connects an ESXi host to a physical switch. An uplink is the host-side connection from a virtual switch to a physical NIC. A vSwitch forwards traffic internally. A port group stores connection and security policies for VMs or VMkernel adapters. A virtual NIC connects a VM to a port group. A VMkernel adapter is a host interface for services such as management, vMotion, and storage.

Traffic typeUses VMkernel?Typical VLANConnectivity requirementsDesign notes
ManagementYesManagement VLANAdministrator workstations, DNS, NTP, vCenter, and host services.Protect with restricted routing and redundant uplinks.
Virtual machineNoWorkload VLANsPort group, uplink, physical switch VLAN, and guest network settings.Use separate port groups for different security or traffic policies.
vMotionYesMigration VLANReachability between vMotion VMkernel adapters and compatible hosts.Consider bandwidth, isolation, and MTU consistency.
StorageYesStorage VLANReachability to iSCSI, NFS, or other storage endpoints.Keep storage traffic reliable and monitor latency and packet loss.

Standard switches are configured per host. Distributed switches are centrally managed through vCenter and provide consistent policies across hosts. VLAN design must match the physical switch: an access configuration carries one untagged VLAN, while a trunk carries permitted VLANs. The port group VLAN setting determines how ESXi handles tags and must agree with the physical design.

Configure NIC teaming with an explicit load-balancing policy, active or standby uplinks, and a defined failover order. Test by disconnecting one uplink in a non-production window and verify recovery. Security policies for promiscuous mode, MAC address changes, and forged transmits should remain restrictive unless a documented workload requires an exception.

Storage configuration

Local storage is attached to one host and is simple but limits mobility. Shared storage is visible to multiple hosts and supports many cluster operations. VMFS is VMware's clustered file system for block storage. NFS datastores use network file shares. vSAN aggregates eligible local devices across hosts into a policy-driven datastore.

Storage typeProtocol or formatShared accessTypical useAdvantagesConsiderations
Local VMFSVMFS on local disksUsually one hostStandalone host or lab workloadsSimple and low network dependencyLimited host mobility and local failure domain
iSCSIBlock storage over IPMultiple hosts when presented correctlyShared VMFS datastoreUses familiar Ethernet infrastructureRequires correct targets, initiators, paths, and network design
Fibre ChannelBlock storage over a SAN fabricMultiple hostsEnterprise shared VMFSDedicated storage fabric and multipathingRequires compatible adapters, fabric, zoning, and expertise
NFSNetwork file shareMultiple hosts when export permitsVM files, ISO images, and shared storageFile-based management and flexible capacityDepends on IP connectivity and export permissions
vSANDistributed storage using host devicesCluster-wideHyperconverged infrastructurePolicy-based placement and integrated designRequires compatible hardware, network, capacity, and licensing

Add or mount datastores through the vSphere Client, rescan storage adapters after presentation changes, inspect paths and targets, and monitor capacity, latency, I/O rate, and path health. Storage vMotion relocates VM files between datastores while the VM remains powered on, subject to compatibility, licensing, and capacity requirements.

Resource management

Overcommitment assigns more virtual CPU or memory than is physically available, relying on workloads not using all assigned resources at once. It can improve utilization but creates contention when demand rises.

ControlCPU or memory behaviorBest use casePotential risk
ReservationGuarantees a minimum amount of capacity when resources are available in the parent.Workloads with a known critical minimum.Reduces capacity available to other workloads.
LimitSets a maximum amount of usable CPU or memory.Intentional containment of a workload.Can throttle a VM even when host capacity is idle.
SharesDefines relative priority during contention.Prioritizing workloads with different importance.Has little effect when there is no contention.
Resource poolGroups VMs under shared reservations, limits, and shares.Delegated allocation among teams or applications.Nested pools and limits can make capacity difficult to understand.

Review CPU ready time, co-stop, memory ballooning, compression, swapping, datastore latency, and network drops. Use performance charts at host, cluster, VM, datastore, and network levels. A symptom such as slow application response may originate in the guest, virtual hardware, host contention, storage, or network.

Migration and mobility

Cold migration moves a powered-off VM. vMotion moves a running VM between compatible hosts. Storage vMotion moves VM files between datastores while the VM runs. DRS can recommend or perform host placement and balancing through vMotion.

Before vMotion, verify vCenter connectivity, compatible host CPU features, sufficient destination resources, licensing, VMkernel adapters with vMotion enabled, correct VLAN and routing, and destination access to required storage. EVC presents a common CPU feature baseline to reduce compatibility barriers within a cluster. After migration, verify the VM network, storage, application state, and active connections.

Availability and continuity

FeaturePurposeDowntime expectationPrimary prerequisitesWhat it does not replace
vMotionMoves a running VM between hosts.Usually no planned guest downtime.Compatible hosts, vMotion networking, resources, and storage access.Backups or disaster recovery.
Storage vMotionMoves VM files between datastores.Usually no planned guest downtime.Compatible storage, capacity, and licensing.Data protection or replication.
HARestarts VMs on surviving hosts after an ESXi host failure.Guest restart interruption is expected.Cluster, shared or supported storage, heartbeats, admission control, and capacity.Application-aware recovery, backups, and disaster recovery.
FTMaintains a secondary execution instance for supported workloads.Designed for continuous execution through certain host failures.Workload, host, network, storage, and version requirements.General backup, application recovery, or unlimited scalability.
DRSBalances cluster resources using policies and vMotion.Normally no planned guest downtime during vMotion.Cluster resources, vCenter, compatible hosts, and migration networking.Host failure protection or backups.

HA handles host failure, not every failure. A guest OS crash, VM failure, application failure, storage outage, or network outage may require separate monitoring and recovery methods. Admission control reserves enough cluster capacity for the configured failure policy. Heartbeats help determine host and VM state, while restart priorities influence recovery order. Isolation responses must be chosen carefully to avoid conflicting actions during network partitions.

Place a host in maintenance mode before planned work. Evacuate VMs with vMotion where possible, confirm datastore and network access, perform the work, then validate the host and exit maintenance mode. Test HA and FT only in a controlled lab; never simulate a production failure without an approved procedure.

Host lifecycle management

Lifecycle work includes patches, updates, upgrades, firmware coordination, driver compatibility, and hardware validation. vSphere Lifecycle Manager can assess compliance and remediate hosts using baselines or desired images, depending on the environment and version.

  1. Check release notes, compatibility, firmware, drivers, and application constraints.
  2. Confirm cluster capacity and place the target host in maintenance mode.
  3. Remediate or upgrade the host using the approved lifecycle image or baseline.
  4. Reboot if required and verify management connectivity, DNS, NTP, storage paths, VMkernel networking, and hardware health.
  5. Exit maintenance mode, confirm workload operation, and proceed to the next host in a rolling maintenance plan.

Monitoring and troubleshooting

Begin with the exact symptom and the most recent task or event. Use vSphere Client alarms, tasks, events, host and VM summaries, performance charts, datastore capacity views, and network status. Preserve timestamps and configuration changes before making disruptive corrections.

SymptomLikely layerFirst checksUseful logs or toolsTypical corrective action
Cannot connect to ESXi or vCenterManagement network, DNS, services, or access controlIP, VLAN, gateway, DNS, uplink, service status, and firewall path.DCUI tests, host events, management logs, and vmkping.Correct network settings, restore an uplink or service, or adjust approved access rules.
VM has no network connectivityVirtual switch, port group, physical VLAN, or guestVirtual NIC connection, port group, VLAN, uplinks, guest IP, route, and firewall.vSphere network view, guest tools, physical switch records.Correct port group or VLAN, reconnect the NIC, restore an uplink, or fix guest settings.
vMotion failsVMkernel network, CPU compatibility, resources, or storagevMotion interfaces, reachability, EVC, licensing, destination capacity, and MTU.vmkping, tasks, events, and host logs.Correct VMkernel or VLAN configuration, EVC, capacity, or MTU consistency.
Datastore is inaccessibleStorage network, target, path, export, or capacityRescan, path state, target presentation, NFS permissions, and free space.Storage adapters, events, VMkernel logs, and datastore view.Restore paths, correct presentation or export permissions, or reclaim capacity.
VM will not power onDatastore, file lock, resource, compatibility, or VM configurationTask error, free space, locks, reservations, disks, ISO, and snapshots.Tasks, events, VM logs, datastore browser, and esxcli vm process list.Free capacity, correct missing files or resources, or consolidate snapshots safely.
HA does not restart a VMCluster configuration, capacity, heartbeat, or failure typeHA state, host membership, admission control, isolation, heartbeats, and restart priority.Cluster events, HA status, host summaries, and logs.Correct HA or capacity configuration and distinguish host failure from guest or application failure.

Important ESXi evidence includes host management logs, VMkernel logs, authentication logs, and virtual machine logs. Basic inspection commands include:

esxcli system version get
esxcli network ip interface ipv4 get
esxcli network nic list
esxcli storage filesystem list
esxcli vm process list
esxcli system maintenanceMode set --enable true
vmkping <destination-ip>
vmkping -I vmk1 <destination-ip>

Use vmkping with the relevant VMkernel interface to test host-service reachability. Collect a support bundle when logs and configuration data must be escalated. Avoid changing multiple variables at once, and record the before-and-after state.

Security and operational practices

  • Use strong, unique administrator credentials and approved directory authentication.
  • Apply role-based access control and least privilege. Review inherited permissions and remove stale accounts.
  • Restrict management networks, SSH, ESXi Shell, and administrative APIs. Enable temporary access only when required.
  • Protect certificates, use consistent hostnames and DNS, and maintain reliable NTP.
  • Back up vCenter Server configuration and virtual machine data. Regularly test restoration rather than assuming a successful backup job is sufficient.
  • Review alarms, capacity, datastore growth, snapshots, patch compliance, access changes, hardware health, and backup status on a defined schedule.
  • Document VLANs, uplinks, IP addresses, storage paths, dependencies, maintenance procedures, and recovery contacts.

Introductory PowerCLI automation

PowerCLI can make inventory checks and repeatable administration faster. Test commands against a lab first, use least-privilege credentials, and verify the target object before making changes.

Connect-VIServer -Server <vcenter-fqdn>
Get-VMHost
Get-VM
Get-Datastore
New-VM -Name <vm-name> -VMHost <host-name> -Datastore <datastore-name>
Move-VM -VM <vm-name> -Destination <host-or-datastore>

Hands-on lab sequence

  1. Install ESXi on supported lab hardware or a nested platform.
  2. Use DCUI to assign a static management address, DNS, hostname, VLAN, gateway, and NTP.
  3. Connect with the vSphere Client, create a datastore and VM network port group, and verify connectivity.
  4. Deploy a Windows or Linux test VM, install VMware Tools, and test power operations.
  5. Deploy vCenter Server Appliance, create a datacenter and cluster, and add two hosts.
  6. Create separate management, vMotion, and VM traffic paths with VLANs and defined uplink failover.
  7. Configure shared storage, rescan adapters, inspect paths, and monitor capacity.
  8. Enable HA, configure restart priorities, and test a controlled host failure.
  9. Configure vMotion and perform a live migration while monitoring an active connection.
  10. Practice a troubleshooting scenario by checking tasks, events, resources, networking, storage, guest settings, and logs in order.

Certification-oriented review

Foundational VCP-DCV preparation commonly spans architecture, ESXi installation, vCenter configuration, VM administration, virtual networking, storage, resource management, vMotion, HA, DRS, lifecycle management, security, and troubleshooting. Learn the reason for each setting and practice scenario decisions instead of memorizing names alone.

<
  • Which layer would you check first when a VM has a connected virtual NIC but cannot reach its gateway?
  • Why can HA restart a VM after a host failure but not necessarily repair an application failure?
  • What prerequisites must exist before a live vMotion can succeed?
  • Why should a snapshot be removed after a short test window and never treated as a backup?
  • When would a reservation be appropriate, and why can a limit harm a workload?
  • How would you prove that a datastore outage is a storage-path problem rather than a guest operating system problem?

Use hands-on practice to identify weak areas. For related administration topics, review admission control, vSphere alarms, and browsing VMFS datastores.