Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

SR-IOV

Direct answer

SR-IOV lets one physical PCIe device, usually a NIC, present many lightweight virtual functions that can be assigned to VMs directly, giving near-native networking to many VMs without dedicating a whole card to each.

When to use this

Use this when many VMs need near-native networking from one NIC.

First 30 seconds

1. SR-IOV splits one NIC into many Virtual Functions.

2. Each VF can be assigned to a VM.

3. Enable in firmware, NIC and driver.

4. VF VLAN and MAC set on the PF.

5. Live migration limited.

Operational verification

PF → VFs → assigned to VMs

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
virtualization-hardware
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.

Platformvirtualization-hardware
Key commandip link show <pf>
Scope / prerequisiteUse this when many VMs need near-native networking from one NIC.
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.

2 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 Checks Verify boundary
lspci -nn | grep -i 'Virtual Function'
cat /sys/class/net/<pf>/device/sriov_numvfs
ip link show <pf>

Enable SR-IOV in BIOS and in the NIC firmware; create VFs (echo 8 > .../sriov_numvfs) and assign them to VMs as PCI devices.

Step 2 Common mistakes Narrow the fault
  • SR-IOV enabled in the OS but not in BIOS or NIC firmware.
  • Expecting host firewall/vSwitch policy to apply to VF traffic.
  • Too few VFs configured for the VMs planned.
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
  • NIC, firmware, BIOS and driver must all support SR-IOV.
  • VFs bypass the vSwitch.
  • Migration is limited.
Key checks
  • lspci | grep -i 'virtual function' — VFs present
  • cat /sys/class/net/<pf>/device/sriov_numvfs — VF count
  • Get-NetAdapterSriov — Windows SR-IOV
ReferenceHow it works1 section · depth on demand

What SR-IOV does

SR-IOV (Single Root I/O Virtualization) lets one PCIe device — usually a NIC — expose a physical function (PF) plus many virtual functions (VFs). Each VF can be assigned to a VM, which then sends and receives directly through the NIC hardware, bypassing the host's virtual switch. This gives near-native latency and throughput with low CPU use, at the cost of live migration and host-side features such as virtual switch firewalls.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

SR-IOV (Single Root I/O Virtualization) lets one PCIe device present a Physical Function (PF, full control, used by the host) and many Virtual Functions (VFs), each a lightweight PCIe function that can be passed to a VM with near-native performance.

cat /sys/class/net/ens1f0/device/sriov_totalvfs
echo 8 > /sys/class/net/ens1f0/device/sriov_numvfs
ip link show ens1f0                        # vf 0 … MAC, vlan, spoof checking
ip link set ens1f0 vf 0 vlan 20 mac 02:00:00:00:00:10 spoofchk on

Enable SR-IOV in BIOS and NIC firmware. VF traffic bypasses the software vSwitch, so VLAN and security policy are set on the PF/VF, not on bridges.

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

Authoritative/upstream documentation reviewed for bounded claims in PCI & Device Passthrough → SR-IOV. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://docs.kernel.org/driver-api/vfio.html · confidence 94%
Confirmation

Confirm action

Continue?