Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

Open vSwitch

Direct 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.

When to use this

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.

First 30 seconds

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/.

Operational verification

tap → OVS bridge → flows → uplink/tunnel

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

OVS configuration shows intended local forwarding policy, not that datapath matching, upstream forwarding or end-to-end delivery succeeds.

Platform / version applicability
kvm-qemu
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformkvm-qemu
Scope / prerequisiteUse this topic when the symptom or planned change has been narrowed to KVM / QEMU → Open vSwitch. Establish effective h…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • OVS bridge exists ≠ packets forwarded as intended.
  • Port attached ≠ VLAN/flow policy correct.
  • Controller connectivity ≠ datapath correctness.
  • Host uplink UP ≠ external return path healthy.
Key checks
  • ovs-vsctl show — bridges and ports
  • ovs-ofctl dump-flows br0 — flow table
  • ovs-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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor dockvm-qemu current

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%
Terminology layer

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.

Aliases that resolve here
kvm openvswitchqemu ovslibvirt openvswitchovs vm networking
Embedded reference data

Quick lookup tables

KVM / QEMU → Open vSwitch reference map

Fast operational boundaries and evidence limits for KVM / QEMU → Open vSwitch.

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
Confirmation

Confirm action

Continue?