VMware vSphere interview questions and answers for infrastructure engineers
VMware interview questions focus on vSphere: how ESXi hosts and vCenter fit together, how virtual machines use shared storage and virtual switches, and how vMotion, DRS and HA keep workloads running when a host is busy or fails. Expect definitions in the first round, then capacity and troubleshooting scenarios such as a slow VM with high CPU ready time, a datastore filled by forgotten snapshots, or a cluster that cannot restart VMs after a failure.
By Evin JohnPublished 8 min read
Where VMware questions come up
VMware rounds appear in interviews for virtualization engineers, infrastructure and data center administrators, Windows and Unix server teams, and some cloud and VDI roles. Junior screens test vocabulary: what a hypervisor is, what vCenter adds, what a snapshot is for. Experienced loops ask you to design a cluster, explain what happens second by second when a host dies, and read performance counters out loud. Teams that run hybrid estates may also ask how you would move workloads to a public cloud or another hypervisor, which is a fair question to expect since Broadcom's acquisition of VMware changed licensing and product bundles for many customers.
- Concept screenHypervisor types, ESXi and vCenter roles, VM files and disk formats.
- Technical deep diveNetworking, storage, vMotion, DRS and HA, often drawn on a whiteboard as hosts, switches and datastores.
- Troubleshooting walk-throughA slow VM, a host that shows as disconnected, a failed migration. The order of your checks matters more than the exact menu path.
- Design or operations discussionSizing a cluster for failure, patching without downtime, backups, and how you handle change on shared infrastructure.
VMware fundamentals questions
| Question | What it tests | What a strong answer shows |
|---|---|---|
| Type 1 versus type 2 hypervisor? | Core concept | A type 1 hypervisor such as ESXi runs directly on the server hardware. A type 2 hypervisor such as VMware Workstation runs as an application on a desktop operating system. |
| What is the difference between ESXi and vCenter Server? | Architecture | ESXi is the hypervisor on each host. vCenter manages many hosts centrally and is what makes clusters, vMotion, DRS, HA, templates and distributed switches possible. |
| Which files make up a virtual machine? | VM anatomy | The .vmx configuration, .vmdk descriptor and its flat data file, .nvram for firmware settings, a .vswp swap file while powered on, logs, and delta files when snapshots exist. |
| Thin versus thick provisioning? | Storage | Thin disks grow as data is written, which saves space but risks overcommitting the datastore. Thick lazy-zeroed allocates up front and zeroes on first write; eager-zeroed zeroes everything at creation and is needed for some features such as Fault Tolerance. |
| What does VMware Tools provide? | Guest integration | Optimized drivers, clean shutdown from vCenter, time and heartbeat integration, the balloon driver, and quiescing for consistent snapshots. |
| Is a snapshot a backup? | Operations judgment | No. A snapshot depends on the base disk on the same datastore, and delta files grow and slow the VM over time. Backup tools use a snapshot briefly to copy data elsewhere, then remove it. |
| Template versus clone? | Provisioning | A clone is a copy of a VM. A template is a master image that cannot be powered on, used with customization specifications to deploy consistent VMs. |
| What datastore types can a host use? | Storage | VMFS on block storage (Fibre Channel, iSCSI, local disks), NFS shares, vSAN built from local disks across the cluster, and vVols where the array supports them. |
| What is a VMkernel adapter? | Networking | A host-level interface (vmk) carrying the host's own traffic: management, vMotion, IP storage, vSAN or FT logging. VM traffic goes through port groups instead. |
| Standard versus distributed switch? | Networking | A standard switch is configured on each host separately. A distributed switch is defined once in vCenter and applied to many hosts, with features such as central policies and traffic monitoring. |
Networking and storage questions
- How does VLAN tagging work on a port group? With virtual switch tagging, the port group carries a VLAN ID and the physical switch port is a trunk. You can also tag at the physical switch or inside the guest, and you should say which design the team uses.
- What NIC teaming options would you choose for management traffic? Two uplinks to different physical switches, active and standby or both active, with a load-balancing policy that matches the physical switch configuration. Mismatched policies cause flapping and lost packets.
- What is the difference between All Paths Down and Permanent Device Loss? APD means the host lost every path but the device may return, so it keeps retrying for a while. PDL means the array told the host the device is gone, so the host can fail over or power off affected VMs.
- Which path selection policies have you used? Most Recently Used, Fixed and Round Robin. Round Robin spreads I/O across paths on arrays that support it; the array vendor's guidance decides the choice.
- How would you grow a VMFS datastore? Extend the LUN on the array, rescan, then increase the datastore into the new space. Adding extents from other LUNs works but ties the datastore's health to several devices.
- Why can a thin-provisioned datastore suddenly fill up? The VMs' total provisioned size can exceed the real capacity, and snapshots or a guest filling its disk consume the rest. Alarms on free space and a written overcommit limit prevent it.
vMotion, DRS, HA and resource questions
| Question | What it tests | What a strong answer shows |
|---|---|---|
| What does vMotion need, and what does it move? | Live migration | Compatible CPUs, a VMkernel network enabled for vMotion, and access to the VM's network on both hosts. It moves the running memory and state; Storage vMotion moves the disks, and both can be combined. |
| What is EVC? | CPU compatibility | Enhanced vMotion Compatibility masks CPU features to a common baseline across a cluster so VMs can move between hosts of different CPU generations from the same vendor. |
| How does DRS decide where VMs run? | Load balancing | It places VMs at power-on and migrates them to balance demand, according to an automation level (manual, partially automated, fully automated) and a migration threshold. Affinity and anti-affinity rules constrain it. |
| What happens when a host fails in an HA cluster? | Availability | HA detects the failure through network and datastore heartbeats and restarts that host's VMs on surviving hosts. It is a restart, so the VMs go down briefly and guests reboot. |
| What is host isolation, and what is the isolation response? | Failure modes | A host loses management network contact but may still be running VMs. The isolation response decides whether it leaves them running or shuts them down so other hosts can restart them. |
| What does admission control do? | Capacity | It refuses power-ons that would leave too little capacity to restart VMs after the failures you plan for, based on reserved capacity, slot sizes or dedicated failover hosts. |
| HA or Fault Tolerance? | Design trade-off | FT keeps a secondary copy of the VM running in lockstep on another host, so a host failure causes no restart. It costs double the resources and has vCPU and feature limits, so it suits a few critical VMs. |
| Explain shares, reservations and limits. | Resource control | A reservation guarantees a minimum, a limit caps the maximum, and shares decide priority only under contention. Limits on memory below the configured size force swapping and are a common self-inflicted problem. |
| What is a resource pool, and what is a common mistake with them? | Resource control | A way to divide cluster CPU and memory between groups. Using pools as folders is the classic mistake: a pool with many VMs can get the same shares as a pool with few, starving each VM. |
hosts = 4
cores_per_host = 32
ram_gb_per_host = 512
host_failures_to_tolerate = 1
# Made-up inventory: (vCPUs, RAM in GB) for each powered-on VM.
vms = [(4, 16)] * 40 + [(8, 64)] * 10
survivors = hosts - host_failures_to_tolerate
reserve_pct = 100 * host_failures_to_tolerate / hosts
vcpus = sum(cpu for cpu, _ in vms)
ram = sum(mem for _, mem in vms)
print(f"Reserve about {reserve_pct:.0f}% of CPU and memory for failover")
print(f"vCPU to physical core ratio after a failure: {vcpus / (cores_per_host * survivors):.2f} to 1")
print(f"RAM in use after a failure: {ram} of {ram_gb_per_host * survivors} GB "
f"({100 * ram / (ram_gb_per_host * survivors):.0f}%)")
# Prints: 25% reserve, a 2.50 to 1 vCPU ratio, and 1280 of 1536 GB (83%).Performance and memory questions
- What is CPU ready time? Time a vCPU was ready to run but waited for a physical core. High ready time means contention, often from too many large VMs on a host. Giving a VM more vCPUs can make it worse.
- What is co-stop? For multi-vCPU VMs, time some vCPUs were held back so they stay roughly in step with the others. High co-stop usually means the VM has more vCPUs than it needs.
- How does ESXi reclaim memory, from cheapest to most costly? Transparent page sharing, ballooning through VMware Tools, memory compression, then hypervisor swapping to the .vswp file. Note that page sharing between VMs is restricted by default on current releases for security reasons.
- Which esxtop counters do you check for storage latency? DAVG for time at the device and array, KAVG for time in the VMkernel, and GAVG as roughly their sum as the guest sees it. High KAVG points at queuing on the host; high DAVG points at the array or fabric.
- A VM shows high memory usage in vCenter. Is that a problem? Not by itself. Compare active memory, ballooning and swapping counters. Swapping or ballooning on a host is the signal of real pressure.
- Why should you right-size VMs? Oversized VMs waste reservations, raise ready and co-stop times, lengthen vMotion and make HA restarts harder to place.
Interviewers often ask for numbers here. Commonly quoted rules of thumb exist, such as sustained ready time of more than a few percent per vCPU being worth a look, but treat them as starting points and compare against the VM's own baseline rather than reciting a threshold as fact.
Senior and scenario questions
| Scenario | Likely cause | What to say you would check |
|---|---|---|
| Users say one VM is slow, the host looks fine. | Contention or oversizing | CPU ready and co-stop for that VM, ballooning or swapping, disk latency per virtual disk, and whether a limit is set on the VM or its resource pool. |
| A datastore is almost full and growing fast. | Snapshots | Snapshots left by a failed backup job or a forgotten change. Consolidate or delete them during a quiet window and add an alarm on snapshot age. |
| vCenter says a VM needs disk consolidation. | Stale delta files | A snapshot removal did not finish, often because a backup proxy still had the disk attached. Release the lock, then run consolidation. |
| A host shows as disconnected or not responding. | Management agents or network | Ping and SSH or console access to the host, the management network, then restarting the management agents. Running VMs usually keep running while vCenter cannot see the host. |
| vMotion fails partway through. | Network or compatibility | VMkernel connectivity between the hosts (vmkping on the vMotion interface), MTU mismatches, EVC or CPU differences, and devices attached to the VM such as a mounted ISO on local storage. |
| After a host failure, some VMs did not restart. | Capacity or rules | Admission control settings, reservations too large to place, anti-affinity rules that could not be satisfied, and whether HA was healthy on all hosts before the failure. |
| You must patch twenty hosts without downtime. | Operations | Rolling maintenance mode with DRS evacuating each host, a compatible image or baseline through the lifecycle tooling, a check that HA capacity holds with one host out, and a rollback plan. |
- How do you back up VMs on vSphere? Image-level backups through the vSphere storage APIs, with changed block tracking for incremental copies, plus application-aware handling for databases. Test restores, not just jobs.
- How would you design a new cluster? Start from workload requirements and failure tolerance, size for N+1 or N+2 at peak, separate management, vMotion, storage and VM traffic, choose storage based on performance and operations skills, and document the rules you will enforce.
- How would you approach moving workloads off vSphere or into a public cloud? Inventory and group applications, measure real resource use, pick a pilot with low risk, test networking and backups on the target, and plan the licensing and support overlap. Avoid promising cost results before the inventory is done.
Connect-VIServer -Server vcenter.example.local
Get-VM | Get-Snapshot |
Where-Object { $_.Created -lt (Get-Date).AddDays(-7) } |
Sort-Object SizeGB -Descending |
Select-Object VM, Name, Created, SizeGBFictional example
- Interviewer
- The DBA asked for 16 vCPUs instead of 8, we added them, and performance got worse. What happened?
- Candidate
- My first suspicion is scheduling contention. A 16 vCPU VM needs that many physical cores to be free at about the same time, so on a host shared with other large VMs its ready time and co-stop usually go up. I would confirm in esxtop or the performance charts: %RDY and %CSTP for that VM before and after the change, plus host CPU usage. I would also check NUMA, because 16 vCPUs may now span two sockets on that host and memory access gets slower. If the data agrees, I would go back to 8 vCPUs, or the smallest count the database actually uses at peak, and look at the real bottleneck with the DBA, which is often storage latency or memory rather than CPU.
VMware practice plan
- Days 1 and 2: draw a two-host cluster from memory: hosts, vCenter, switches, port groups, VMkernel adapters and datastores. Explain each line in a sentence.
- Day 3: if you have access to a lab or a nested setup, take and delete snapshots, then look at the files on the datastore. If not, read through a VM's file list and say what each file is.
- Day 4: write out, step by step, what happens when a host fails in an HA cluster, including isolation and admission control.
- Day 5: learn the main esxtop CPU, memory and disk counters and practice reading a sample screen aloud.
- Days 6 and 7: rehearse the scenarios above and one design answer, with numbers you calculate yourself rather than memorize.
Related reading: Unix interview questions covers the shell skills many infrastructure rounds also test, Docker interview questions explains how containers differ from virtual machines, and system administrator interview questions covers the identity and device side of infrastructure work.
Infrastructure interviews reward a steady order of checks, and a failure walk-through is where most candidates skip steps without noticing. Natively, an AI interview assistant for Mac and Windows, can transcribe a mock virtualization round on your computer, so you can read whether you checked the cluster's capacity before blaming the storage. While rehearsing it can read a screenshot of a performance chart or an error dialog and suggest follow-up questions to prepare, and with Pro or the free trial it uses the résumé and job description you add. The transcript and notes are kept so you can go back over them.
Questions people ask
What VMware questions are asked in interviews?
Type 1 versus type 2 hypervisors, ESXi versus vCenter, VM files, thin and thick disks, standard and distributed switches, vMotion, DRS, HA, Fault Tolerance, shares and reservations, snapshots, and troubleshooting slow VMs.
What is the difference between VMware HA and Fault Tolerance?
HA restarts a failed host's VMs on other hosts, so there is a short outage. Fault Tolerance runs a secondary copy in lockstep so a host failure causes no restart, at the cost of double resources and feature limits.
How do I answer a slow VM question in a VMware interview?
Check CPU ready and co-stop, ballooning and swapping, disk latency split into device and kernel time, and any limits on the VM or its resource pool before suggesting more resources.
Are VMware skills still asked for after the Broadcom acquisition?
Many organizations still run vSphere, and some are also evaluating other platforms. Expect questions on vSphere itself and sometimes on how you would plan a migration.
Where to go next
Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.
Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.
