Use this when many VMs need near-native networking from one NIC.
SR-IOV
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.
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.
PF → VFs → assigned to VMs
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
ip link show <pf>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 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 · 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.
- NIC, firmware, BIOS and driver must all support SR-IOV.
- VFs bypass the vSwitch.
- Migration is limited.
lspci | grep -i 'virtual function'— VFs presentcat /sys/class/net/<pf>/device/sriov_numvfs— VF countGet-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.
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 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%