Use this topic when the symptom or planned change has been narrowed to KVM / QEMU → Open vSwitch. Establish effective host/runtime state before changing configuration.
Open vSwitch
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.
1. Open vSwitch adds VLANs, tunnels (VXLAN/Geneve), OpenFlow and bonding.
2. libvirt <virtualport type='openvswitch'/>.
3. Flows decide forwarding.
4. Use for SDN and OpenStack.
5. Logs: /var/log/openvswitch/.
tap → OVS bridge → flows → uplink/tunnel
Context & applicabilityCommon mistakes · platform/version boundaries
OVS configuration shows intended local forwarding policy, not that datapath matching, upstream forwarding or end-to-end delivery succeeds.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
Guest vNIC → tap/vnet → OVS port/bridge/datapath → host uplink → external network → return path
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- OVS bridge exists ≠ packets forwarded as intended.
- Port attached ≠ VLAN/flow policy correct.
- Controller connectivity ≠ datapath correctness.
- Host uplink UP ≠ external return path healthy.
ovs-vsctl show— bridges and portsovs-ofctl dump-flows br0— flow tableovs-appctl bond/show— OVS bonds
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
OVS configuration shows intended local forwarding policy, not that datapath matching, upstream forwarding or end-to-end delivery succeeds.
In depth
Open vSwitch is a programmable virtual switch (OpenFlow, OVSDB) used by OpenStack, OVN and some KVM/Proxmox setups for VLANs, tunnels (VXLAN/Geneve), bonding and flow rules.
ovs-vsctl add-br ovsbr0
ovs-vsctl add-port ovsbr0 bond0
ovs-vsctl add-port ovsbr0 vlan20 tag=20 -- set interface vlan20 type=internal
ovs-vsctl show
ovs-ofctl dump-flows ovsbr0
ovs-appctl fdb/show ovsbr0
Choose OVS when you need OpenFlow, OVN or advanced tunnelling; a Linux bridge is simpler for plain VLAN setups.
ReferenceConfiguration & state1 section · depth on demand
OVS commands
ovs-vsctl show
ovs-vsctl add-br ovsbr0
ovs-vsctl add-port ovsbr0 eno1
ovs-vsctl set port vnet0 tag=20
ovs-ofctl dump-flows ovsbr0
Documented example, not captured output. OVS adds VLANs per port, VXLAN/GRE tunnels, OpenFlow rules and better integration with SDN controllers (OpenStack, OVN). libvirt uses <virtualport type='openvswitch'/> in the interface XML.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in KVM / QEMU → Open vSwitch. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.qemu.org/docs/master/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
KVM / QEMU → Open vSwitch reference map
Fast operational boundaries and evidence limits for KVM / QEMU → Open vSwitch.
| Boundary | What to verify | Evidence limit |
|---|---|---|
| Definition/config | Expected KVM / QEMU → Open vSwitch definition or configuration is present | Configured state does not prove runtime behavior |
| Runtime | Relevant KVM/QEMU/libvirt object or process is active without matching errors | Runtime state does not prove dependencies or guest outcome |
| Dependency | Host CPU/memory, storage, network or device backend required by this path is healthy | Local success does not prove the next boundary |
| Acceptance | Original guest/application test succeeds after the change or observation | Required for end-to-end closure |