Skip to content

Commit c2cde15

Browse files
authored
Merge pull request #119629 from mnanakul/patch-4
Update create-vm-accelerated-networking-cli.md
2 parents 5c92d92 + 0bb3b62 commit c2cde15

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

articles/virtual-network/create-vm-accelerated-networking-cli.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,25 @@ For more information about application binding requirements, see [How Accelerate
250250

251251
<a name="enable-accelerated-networking-on-existing-vms"></a>
252252

253+
In order to ensure that your custom image or applications correctly support the dynamic binding and revocation of virtual functions, the functionality can be tested on any Windows Hyper-V server. Use a local Windows Server running Hyper-V in the following configuration:
254+
- Ensure you have a physical network adapter that supports SR-IOV.
255+
- An external virtual switch is created on top of this SR-IOV adapter with "Enable single-root I/O virtualization (SR-IOV)" checked.
256+
- A virtual machine running your operating system image or application is created/deployed.
257+
- The network adapters for this virtual machine, under Hardware Acceleration, have "Enable SR-IOV" selected.
258+
259+
Once you've verified your virtual machine and application are leveraging a network adapter using SR-IOV, you can modify the following example commands to toggle SR-IOV off/on in order to revoke and add the virtual function which will simulate what happens during Azure host servicing:
260+
261+
``` Powershell
262+
# Get the virtual network adapter to test
263+
$vmNic = Get-VMNetworkAdapter -VMName "myvm" | where {$_.MacAddress -eq "001122334455"}
264+
265+
# Enable SR-IOV on a virtual network adapter
266+
Set-VMNetworkAdapter $vmNic -IovWeight 100 -IovQueuePairsRequested 1
267+
268+
# Disable SR-IOV on a virtual network adapter
269+
Set-VMNetworkAdapter $vmNic -IovWeight 0
270+
```
271+
253272
## Manage Accelerated Networking on existing VMs
254273

255274
It's possible to enable Accelerated Networking on an existing VM. The VM must meet the following requirements to support Accelerated Networking:

0 commit comments

Comments
 (0)