Virtual Switch Problems
Cheat sheet · https://pcornel.dk/topic.php?topic=3825
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 stateGet-VMSwitch— Hyper-V switchesxcli network vswitch standard list— ESXi
Commands
esxcli network vswitch standard listesxcli network nic stats get -n vmnic0ip -s linktcpdump -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
| Boundary | What to verify | Evidence limit |
|---|---|---|
| Symptom/scope | Exact failing test, affected VM/host/cluster and incident time are defined | Symptom classification does not identify root cause |
| Observed boundary | Configuration, runtime and counters/logs for this Virtualization Troubleshooting → Virtual Switch Problems boundary are time-correlated | One healthy or failed status does not prove adjacent dependencies |
| Adjacent dependency | The next host, storage, network, device, guest or cluster dependency is tested independently | Local success does not prove end-to-end health |
| Verification | The original workload test succeeds after one controlled change and remains healthy in regression checks | Temporary 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