Configure SR-IOV for Hyper-V virtual machines on Windows Server

To configure SR-IOV for a Hyper-V virtual machine, enable SR-IOV on the host's physical network adapter, create an external virtual switch with SR-IOV turned on, and give the VM's network adapter an IOV weight above 0.

The steps below cover the hardware and firmware requirements, Hyper-V Manager and PowerShell routes, how to prove the VM is using a virtual function, and what each SR-IOV error state means.

Configure SR-IOV for Hyper-V virtual machines on Windows Server
The physical function stays with the Hyper-V host while each VM gets its own virtual function and VPort on the adapter. (Image: Microsoft)

How to enable SR-IOV in Hyper-V with PowerShell

Run these commands in an elevated PowerShell window on the Hyper-V host. Replace Ethernet 2 with your SR-IOV capable adapter and VM01 with your virtual machine.

  1. Run Get-NetAdapterSriov -Name "*" and confirm the adapter you plan to use reports SriovSupport as Supported.
  2. Run Enable-NetAdapterSriov -Name "Ethernet 2". The adapter restarts, so expect a short network drop on that port.
  3. Create the switch with New-VMSwitch -Name "SRIOV-Switch" -NetAdapterName "Ethernet 2" -EnableIov $true -AllowManagementOS $true.
  4. Connect the VM to it with Connect-VMNetworkAdapter -VMName "VM01" -SwitchName "SRIOV-Switch".
  5. Turn SR-IOV on for the VM adapter with Set-VMNetworkAdapter -VMName "VM01" -IovWeight 100 -IovQueuePairsRequested 1.
  6. Install the network adapter vendor's virtual function (VF) driver inside the guest so the VF can attach.

SR-IOV can only be switched on when the virtual switch is created. Set-VMSwitch has no IOV parameter, so an existing switch has to be replaced by a new one.

What is SR-IOV in Hyper-V?

Single Root I/O Virtualization (SR-IOV) is an extension to the PCI Express specification. It lets one network adapter split its resources into separate PCIe functions, so a VM can send traffic straight to the hardware instead of through the Hyper-V virtual switch.

Component What it is Where it lives
Physical Function (PF) The adapter's primary PCIe function. It advertises the SR-IOV capability. Hyper-V host (parent partition)
Virtual Function (VF) A lightweight PCIe function that shares the adapter's port and memory with the PF and other VFs. Assigned to one VM (child partition)
VF data path Traffic flows directly between the VF and the VM, bypassing the software switch layer. Hardware
Synthetic data path The normal NetVSC to virtual switch path. Used when no VF is attached. Hyper-V virtual switch
IOMMU Separates each function's traffic by PCIe Requester ID and applies memory and interrupt translation. Host chipset

The result is network performance close to a non-virtualized server, with lower latency and lower CPU use on the host. Microsoft positions it for latency-critical workloads such as trading platforms and real-time data processing.

SR-IOV requirements for Hyper-V on Windows Server

SR-IOV fails silently into the synthetic data path when any link in this chain is missing, so check every row before you change the switch.

Requirement Detail How to check
Processor with SLAT Intel Extended Page Tables (EPT) or AMD Nested Page Tables (NPT, also called RVI) systeminfo Hyper-V requirements section, before the role is installed
Chipset I/O remapping Interrupt remapping and DMA remapping, such as Intel VT-d or an AMD I/O MMU Get-NetAdapterSriov reports NoIoMmuSupport if missing
Access Control Services (ACS) Required on the PCI Express root port the adapter sits in MissingAcs in Get-NetAdapterSriov
Firmware settings SR-IOV, I/O virtualization and IOMMU support enabled in the BIOS or UEFI Your server vendor's firmware documentation
Network adapter and PF driver An SR-IOV capable adapter with a driver that supports SR-IOV MissingPfDriver means the driver or device lacks support
External virtual switch Created with SR-IOV enabled and bound to the SR-IOV adapter Get-VMSwitch | Format-List *Iov*
Guest operating system A supported Windows Server guest, plus the vendor's VF driver Device list inside the VM after the VF attaches
SR-IOV requirements check with systeminfo showing Hyper-V requirements all Yes
Second Level Address Translation must read Yes; run systeminfo before the Hyper-V role is installed to see this section. (Image: Microsoft)

How to install and configure free Hyper-V Server

Microsoft Hyper-V Server 2019 is a free, stand-alone product that contains only the Windows hypervisor, a Windows Server driver model and the virtualization components. It does not need a product key. Its mainstream support ended on January 9, 2024, and extended support ends on January 9, 2029.

On Windows Server 2016, 2019, 2022 or 2025, Hyper-V is a role you add instead. The SR-IOV steps in this article are the same on both.

  1. Open Windows PowerShell with Run as Administrator on the server.
  2. Run Install-WindowsFeature -Name Hyper-V -IncludeManagementTools -Restart. Add -ComputerName <computer_name> to install it on a remote server.
  3. Wait for the automatic restart, then run Get-WindowsFeature Hyper-V to confirm the role shows as installed.
  4. To use the GUI instead, open Server Manager, select Manage > Add Roles and Features, and choose Role-based or feature-based installation.
  5. On Select server roles, select Hyper-V, then Add Features, and continue through Create Virtual Switches, Virtual Machine Migration and Default Stores.
  6. Skip creating a switch on the Create Virtual Switches page if you plan to build an SR-IOV switch afterwards.
  7. Select Restart the destination server automatically if required, then Install.

On Server Core, -IncludeManagementTools installs only the Hyper-V module for PowerShell. Manage that host remotely from Hyper-V Manager on another computer, or run every SR-IOV command in this article in PowerShell on the host.

Install Hyper-V role on Windows Server with the Add Roles and Features Wizard
Skip the Virtual Switches page here if you plan to create an SR-IOV external switch after the restart. (Image: Microsoft)

How to enable SR-IOV on a network adapter in Windows Server

SR-IOV has to be turned on for the physical adapter before Hyper-V can hand out virtual functions from it.

  1. Turn on SR-IOV, I/O virtualization and IOMMU (Intel VT-d or AMD IOMMU) in the server's BIOS or UEFI setup, then boot Windows Server.
  2. Open PowerShell as administrator and run Get-NetAdapterSriov -Name "*" to list every SR-IOV capable adapter.
  3. Read the SriovSupport value for your adapter. Anything other than Supported is a hardware, firmware or driver problem to fix first.
  4. Run Enable-NetAdapterSriov -Name "Ethernet 2" to turn SR-IOV on. The cmdlet restarts the adapter.
  5. Run Get-NetAdapterSriov -Name "*" | Where-Object -FilterScript { $_.Enabled -Eq $true } to list only adapters where SR-IOV is now enabled.

Create an SR-IOV virtual switch in Hyper-V Manager

The Enable single-root I/O virtualization (SR-IOV) option appears only while you create an external switch. Remove or rename the old switch first if it already uses the adapter.

  1. Open Hyper-V Manager and select the host.
  2. In the Actions pane, select Virtual Switch Manager.
  3. Select External, then Create Virtual Switch.
  4. Enter a name, choose the SR-IOV capable adapter under External network, and select Enable single-root I/O virtualization (SR-IOV).
  5. Select Allow management operating system to share this network adapter only if the host also needs this port.
  6. Select OK, then Yes at the warning that network connectivity may be disrupted.

An IOV-enabled switch created with the default bandwidth mode gets None as its minimum bandwidth mode, so minimum-bandwidth QoS on its adapters is not available.

Enable SR-IOV on a Hyper-V virtual machine network adapter

Each VM adapter connected to the SR-IOV switch needs SR-IOV turned on for itself. In PowerShell this is an IOV weight from 1 to 100.

  1. In Hyper-V Manager, right-click the VM and select Settings.
  2. Select Network Adapter and set Virtual switch to the SR-IOV switch you created.
  3. Expand Network Adapter, select Hardware Acceleration, and select Enable SR-IOV.
  4. Select OK and start the VM.
  5. For PowerShell, run Set-VMNetworkAdapter -VMName "VM01" -IovWeight 100 -IovQueuePairsRequested 1 on the host.
  6. Inside the guest, install the network adapter vendor's VF driver if a new adapter appears without one.

Applications in the guest should bind to the normal VM network adapter, not to the VF adapter. Packets reach the VF only while it is attached, and the VM keeps working on the synthetic interface when the VF is removed.

Managing Hyper-V virtual machines with PowerShell

This script turns SR-IOV on for every network adapter of several VMs and then lists their IOV settings. It uses only Hyper-V module cmdlets, so it runs on Windows Server and on Hyper-V Server.

$vms = "VM01","VM02","VM03"
Get-VM -Name $vms | Format-Table Name, State, Generation
Get-VMNetworkAdapter -VMName $vms | Connect-VMNetworkAdapter -SwitchName "SRIOV-Switch"
Get-VMNetworkAdapter -VMName $vms | Set-VMNetworkAdapter -IovWeight 100 -IovQueuePairsRequested 1
Get-VMNetworkAdapter -VMName $vms | Format-List VMName, Name, SwitchName, IovWeight, IovQueuePairsRequested

Get-VM lists the machines, Connect-VMNetworkAdapter moves their adapters onto the SR-IOV switch, and Set-VMNetworkAdapter -IovWeight 100 requests a virtual function for each one. Use Start-VM and Stop-VM with the same -Name list to cycle the machines.

You should see: Every adapter lists SwitchName as your SR-IOV switch and IovWeight as 100.

Set-VMNetworkAdapter IovWeight, IovQueuePairsRequested and IovInterruptModeration

Parameter Values What it does
-IovWeight 0 to 100 Turns SR-IOV on for the adapter and sets its relative affinity for a VF. 0 turns SR-IOV off.
-IovQueuePairsRequested 1 or more Hardware queue pairs for the VF. Request more than one when the guest needs receive-side scaling and the adapter supports RSS on VFs.
-IovInterruptModeration Default, Adaptive, Off, Low, Medium, High Interrupt moderation on the VF. Default uses the adapter vendor's setting; Adaptive follows the traffic pattern.
New-VMSwitch -EnableIov $true or $false Turns IO virtualization on for a new switch. It cannot be changed later.
New-VMSwitch -MinimumBandwidthMode Default, Weight, Absolute, None Default becomes None on an IOV-enabled switch.

How to check if SR-IOV is working in Hyper-V

  1. On the host, run Get-NetAdapterSriov -Name "*" and confirm the adapter shows Enabled as True and SriovSupport as Supported.
  2. Run Get-VMSwitch | Format-List Name, *Iov* and confirm the IOV setting is enabled on your SR-IOV switch.
  3. Run Get-VMNetworkAdapter -VMName "VM01" | Format-List Name, SwitchName, *Iov* and confirm IovWeight is above 0.
  4. Sign in to the guest and run Get-NetAdapter. A working VF shows as an extra network adapter that uses the vendor's VF driver, alongside the Hyper-V network adapter.
  5. Copy a large file or run your usual network test and compare host CPU use with the VF attached and with -IovWeight 0.

If the VF adapter never appears in the guest, the VM is still on the synthetic data path. Work through the SR-IOV error states below.

Poor network performance on Hyper-V VMs in Windows

SR-IOV is one of several fixes for slow VM networking. Microsoft's performance tuning guidance ties each one to a counter you can read in Performance Monitor.

What you see Likely bottleneck What to do
Physical NIC Bytes/sec at 90% of capacity or more The physical link is full Add network adapters, move VMs to another host, or configure Network QoS
Hyper-V Virtual Network Adapter Bytes/sec at 250 MBps or more One VM adapter is saturated Add teamed adapters in the VM, enable vRSS, and use SR-IOV
Workload misses its latency target The software switch path adds delay Enable SR-IOV so the VM uses the adapter's hardware directly
High host CPU on heavy inbound traffic Packet routing in software Use VMQ; check support with Get-NetAdapterVmq and raise -VmqWeight on busy adapters
SR-IOV enabled but no gain VM fell back to the synthetic data path Check that a VF attached; see the SR-IOV error states below

Raise the VMQ weight on host adapters that carry heavy inbound traffic, such as live migration networks or storage traffic to an iSCSI target.

Import, export and clone virtual machines in Hyper-V

SR-IOV settings belong to the VM's network adapter, but the virtual function belongs to the host. Plan the destination host's switch before you move or copy an SR-IOV VM.

  1. Export the VM with Export-VM -Name "VM01" -Path D:\Exports, or export every VM with Get-VM | Export-VM -Path D:\Exports.
  2. On the destination host, enable SR-IOV on its adapter and create an IOV-enabled external switch before you import.
  3. Import in place with Import-VM -Path 'D:\Exports\VM01\Virtual Machines\<GUID>.vmcx'. The VM is registered where its files already are.
  4. To clone, run Import-VM -Path '<path to .vmcx>' -Copy -GenerateNewId. The files are copied to the default stores and the copy gets a new ID.
  5. Run Connect-VMNetworkAdapter -VMName "VM01" -SwitchName "SRIOV-Switch" if the imported adapter is not connected to the SR-IOV switch.
  6. Run Set-VMNetworkAdapter -VMName "VM01" -IovWeight 100 on the clone, then check the guest for the VF adapter.

During a live migration the VM drops to the synthetic data path. Microsoft states the move between paths happens with minimal packet loss and without losing TCP connections. A host with too few free VFs also leaves extra VMs on the synthetic path.

SR-IOV live migration in Hyper-V: VF data path and synthetic data path
During a live migration the VM drops to the synthetic path through VMBus without losing its TCP connections. (Image: Microsoft)

Accelerated Networking in Windows Server 2025

Windows Server 2025 adds Accelerated Networking, a management layer that turns on SR-IOV for cluster VMs and checks prerequisites for you. Standalone servers and Standard edition do not support it.

Item Detail
Edition A working failover cluster on Windows Server 2025 Datacenter
Feature Network ATC, installed with Install-WindowsFeature -Name NetworkATC, with a valid Compute intent
Hardware An SR-IOV capable NIC with SR-IOV enabled in the BIOS (Enable-NetAdapterSriov)
License Windows Server Pay-as-you-go subscription or Software Assurance
Prerequisite check Get-AccelNetManagementPreReq
Turn on for the cluster Enable-AccelNetManagement -IntentName "MyIntent" (node reserve defaults to 50%)
Turn on for a VM Enable-AccelNetVM -VMName "MyVM" -Performance High (Low, Medium or High)
vCPU minimum 2 vCPUs for Low or Medium with hyperthreading off; 4 vCPUs for High, or for any level with hyperthreading on
Accelerated Networking in Windows Server 2025 compared with a virtual switch path
With Accelerated Networking, cluster VM traffic goes straight to the network card instead of through each host's virtual switch. (Image: Microsoft)

How to disable SR-IOV on a Hyper-V VM

  1. Run Set-VMNetworkAdapter -VMName "VM01" -IovWeight 0 to detach the VF. The VM keeps its connection over the synthetic data path.
  2. In Hyper-V Manager, you can instead clear Enable SR-IOV under Network Adapter > Hardware Acceleration in the VM's settings.
  3. To stop using SR-IOV on the host adapter, move every VM off the SR-IOV switch, then run Disable-NetAdapterSriov -Name "Ethernet 2".
  4. To go back to a standard switch, create a new external switch without SR-IOV and reconnect the VM adapters to it.

SR-IOV not working in Hyper-V

Start with the SriovSupport value from Get-NetAdapterSriov. Each value names the part of the chain that is missing.

SriovSupport shows NoIoMmuSupport

The processor lacks SLAT, the chipset lacks interrupt or DMA remapping, or I/O remapping is turned off.

  1. Turn on Intel VT-d or AMD IOMMU in the BIOS or UEFI.
  2. Confirm the processor supports EPT (Intel) or NPT/RVI (AMD).
  3. Restart the host and run Get-NetAdapterSriov again.

SriovSupport shows MissingAcs or NoVfBarSpace

The PCIe slot lacks Access Control Services, or the firmware has not set aside enough BAR resources for VFs.

  1. Check that SR-IOV and IOMMU support are fully enabled in the BIOS.
  2. Move the adapter to another PCI Express slot.
  3. Ask the server vendor which slots support SR-IOV on your model.

SriovSupport shows MissingPfDriver

The device or its driver does not support SR-IOV.

  1. Install the network adapter vendor's current Windows Server driver.
  2. Run Enable-NetAdapterSriov again after the driver update.

SriovSupport shows NoOscSupport, NoBusResources or Unknown

The BIOS does not hand PCI Express control to Windows, there are too few PCIe bus numbers, or the hardware does not advertise SR-IOV.

  1. Update the server BIOS from the manufacturer for NoOscSupport.
  2. Confirm I/O virtualization is enabled in the BIOS for Unknown.
  3. Contact the hardware vendor if the value does not change after a firmware update.

Enable SR-IOV option greyed out on an existing virtual switch

SR-IOV can only be chosen when a switch is created.

  1. Note the VMs connected to the old switch with Get-VMNetworkAdapter -All.
  2. Remove the old switch, or bind a new one to a different SR-IOV adapter.
  3. Create a new external switch with New-VMSwitch -EnableIov $true and reconnect the VMs.

Some VMs get a VF and others stay on the synthetic path

The adapter has fewer VFs than running VMs that request one.

  1. Set -IovWeight 0 on VMs that do not need SR-IOV to free their VFs.
  2. Give the most latency-sensitive VMs the highest IovWeight.
  3. Spread SR-IOV VMs across more adapters or hosts.
SR-IOV not working in Hyper-V: VM traffic on the synthetic data path
With no VF attached, NetVSC traffic crosses VMBus to the Hyper-V Extensible Switch instead of going straight to the adapter. (Image: Microsoft)

Hyper-V SR-IOV FAQ

What is SR-IOV in Hyper-V?

SR-IOV lets a physical network adapter present virtual functions that Hyper-V assigns directly to virtual machines. Traffic then skips the Hyper-V virtual switch, which cuts latency and host CPU use and gives near-native network performance.

Can I enable SR-IOV on an existing Hyper-V virtual switch?

No. SR-IOV is set only when the switch is created, through the Enable single-root I/O virtualization option or New-VMSwitch -EnableIov $true. Set-VMSwitch has no IOV parameter, so create a new external switch and reconnect the VMs.

Does SR-IOV work with an internal or private Hyper-V switch?

No. SR-IOV needs an external virtual switch bound to a physical SR-IOV capable adapter, because the virtual functions come from that adapter. Internal and private switches have no physical adapter to provide them.

Does live migration work with SR-IOV in Hyper-V?

Yes. During a live migration the VM's traffic moves from the VF data path to the synthetic data path, with minimal packet loss and without dropping TCP connections, so the VM keeps its network connection throughout the move.

What does IovWeight do in Set-VMNetworkAdapter?

IovWeight turns SR-IOV on for a VM network adapter and sets its relative affinity for a virtual function. Values run from 0 to 100, and 0 turns SR-IOV off for that adapter.

Which guest operating systems support SR-IOV on Hyper-V?

Microsoft lists SR-IOV as available for virtual machines running a supported Windows Server guest. The guest also needs the network adapter vendor's virtual function driver before the VF adapter can attach inside the VM.

Why does my VM not get a virtual function?

Common causes are an adapter with every VF already in use, IovWeight left at 0, a switch created without SR-IOV, or a host problem shown by SriovSupport in Get-NetAdapterSriov, such as NoIoMmuSupport or MissingPfDriver.

Is SR-IOV the same as Discrete Device Assignment?

No. SR-IOV shares one network adapter among many VMs through virtual functions, while Discrete Device Assignment passes a whole PCIe device, such as a GPU or NVMe drive, to one VM. Their host requirements are similar.

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

Your email address will not be published. Required fields are marked *