Pcornel
Virtualization · Virtualization Troubleshooting

Virtual Switch Problems

Cheat sheet · https://pcornel.dk/topic.php?topic=3825

Back to the Topic

Answer

Virtual switch problems are found by following the VM's traffic path: virtual NIC, port and its VLAN/security settings, the switch or bridge, the host's physical uplink, then the upstream network and the return path.

Remember

  • Virtual switch object exists ≠ VM is attached to the intended port/network.
  • Port Link Up ≠ forwarding policy permits the required traffic.
  • MAC learned ≠ VLAN, security policy, uplink or return path is correct.
  • Recreating a switch can hide the original fault and introduce new MAC/VLAN/uplink changes.

First checks

  • bridge link; ovs-vsctl show — bridge/OVS state
  • Get-VMSwitch — Hyper-V switch
  • esxcli network vswitch standard list — ESXi

Commands

esxcli network vswitch standard list
esxcli network nic stats get -n vmnic0
ip -s link
tcpdump -i vmbr0

Verify in this order

vNIC → vSwitch → uplink

Where it usually breaks

First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.

Virtualization Troubleshooting → Virtual Switch Problems troubleshooting map

BoundaryWhat to verifyEvidence limit
Symptom/scopeExact failing test, affected VM/host/cluster and incident time are definedSymptom classification does not identify root cause
Observed boundaryConfiguration, runtime and counters/logs for this Virtualization Troubleshooting → Virtual Switch Problems boundary are time-correlatedOne healthy or failed status does not prove adjacent dependencies
Adjacent dependencyThe next host, storage, network, device, guest or cluster dependency is tested independentlyLocal success does not prove end-to-end health
VerificationThe original workload test succeeds after one controlled change and remains healthy in regression checksTemporary recovery alone is not durable proof

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3825

Confirmation

Confirm action

Continue?