Pcornel
Virtualization · KVM / QEMU

Open vSwitch

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

Back to the Topic

Answer

Separate VM interface attachment from OVS datapath state and from physical uplink/network policy. OVS control/config state and datapath forwarding are related but distinct evidence surfaces.

Remember

  • OVS bridge exists ≠ packets forwarded as intended.
  • Port attached ≠ VLAN/flow policy correct.
  • Controller connectivity ≠ datapath correctness.
  • Host uplink UP ≠ external return path healthy.

First checks

  • ovs-vsctl show — bridges and ports
  • ovs-ofctl dump-flows br0 — flow table
  • ovs-appctl bond/show — OVS bonds

Verify in this order

tap → OVS bridge → flows → uplink/tunnel

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.

KVM / QEMU → Open vSwitch reference map

BoundaryWhat to verifyEvidence limit
Definition/configExpected KVM / QEMU → Open vSwitch definition or configuration is presentConfigured state does not prove runtime behavior
RuntimeRelevant KVM/QEMU/libvirt object or process is active without matching errorsRuntime state does not prove dependencies or guest outcome
DependencyHost CPU/memory, storage, network or device backend required by this path is healthyLocal success does not prove the next boundary
AcceptanceOriginal guest/application test succeeds after the change or observationRequired for end-to-end closure

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

Confirmation

Confirm action

Continue?