Skip to content

Commit 0e35db4

Browse files
authored
Merge pull request #124617 from ameliashull-microsoft-gh/accelnet-custom-image
Accelnet custom image information
2 parents 3c5a385 + 8d7784a commit 0e35db4

File tree

2 files changed

+29
-4
lines changed

2 files changed

+29
-4
lines changed

articles/virtual-network/accelerated-networking-overview.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,18 @@ You can directly query the list of VM SKUs that support Accelerated Networking b
100100
101101
### Custom VM images
102102

103-
If you use a custom image that supports Accelerated Networking, make sure you have the required drivers to work with Mellanox ConnectX-3, ConnectX-4 Lx, and ConnectX-5 NICs on Azure. Accelerated Networking also requires network configurations that exempt configuration of the virtual functions on the mlx4_en and mlx5_core drivers.
103+
If you use a custom image that supports Accelerated Networking, make sure you meet the following requirements.
104104

105-
Images with cloud-init version 19.4 or later have networking correctly configured to support Accelerated Networking during provisioning.
105+
#### Device and driver support
106+
Any custom image supporting Accelerated Networking must include drivers that enable Single Root I/O Virtualization for the network interface cards (NIC) which are used on Azure platforms. This hardware list includes NVIDIA ConnectX-3, ConnectX-4 Lx, ConnectX-5 and the [Microsoft Azure Network Adapter (MANA)](accelerated-networking-mana-overview.md).
107+
108+
#### Dynamic binding and revocation of virtual function
109+
Accelerated Networking requires guest OS images to properly handle the virtual function being removed or added dynamically. Scenarios such as host maintenance or live migration will result in dynamic revocation of the virtual function and restoration after the maintenance event. Additionally, applications must ensure that they bind to the synthetic device and not the virtual function in order to maintain network connectivity during these events.
110+
111+
For more information about application binding requirements, see [How Accelerated Networking works in Linux and FreeBSD VMs](/create-vm-accelerated-networking-cli?tabs=windows#handle-dynamic-binding-and-revocation-of-virtual-function).
112+
113+
#### Configure drivers to be unmanaged
114+
Accelerated Networking requires network configurations that mark the NVIDIA drivers as unmanaged devices. Images with cloud-init version 19.4 or later have networking correctly configured to support Accelerated Networking during provisioning. We strongly advise that you don't run competing network interface software (such as ifupdown and networkd) on custom images, and that you don't run dhcpclient directly on multiple interfaces.
106115

107116
# [RHEL, CentOS](#tab/redhat)
108117

@@ -150,8 +159,15 @@ Unmanaged=yes
150159
EOF
151160
```
152161

153-
>[!NOTE]
154-
>We strongly advise that you don't run competing network interface software (such as ifupdown and networkd) on custom images, and that you don't run dhcpclient directly on multiple interfaces.
162+
#### Network traffic uses the Accelerated Networking data path
163+
164+
For NVIDIA drivers: Verify that the packets are flowing over the VF interface
165+
- [Linux documentation](accelerated-networking-how-it-works.md#application-usage)
166+
- [Windows documentation](create-vm-accelerated-networking-cli.md?tabs=windows#confirm-that-accelerated-networking-is-enabled)
167+
168+
For MANA driver: Verify that the traffic is flowing through MANA
169+
- [Linux documentation](accelerated-networking-mana-linux.md#verify-that-traffic-is-flowing-through-mana)
170+
- [Windows documentation](accelerated-networking-mana-windows.md#verify-that-traffic-is-flowing-through-mana)
155171

156172
---
157173

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,15 @@ Once you create the VM in Azure, connect to the VM and confirm that the Ethernet
197197

198198
The presence of the adapter confirms that Accelerated Networking is enabled for your VM.
199199

200+
1. Verify the packets are flowing over the VF interface from the output of the following command:
201+
```powershell
202+
PS C:\ > Get-NetAdapter | Where-Object InterfaceDescription –like "*Mellanox*Virtual*" | Get-NetAdapterStatistics
203+
204+
Name ReceivedBytes ReceivedUnicastPackets SentBytes SentUnicastPackets
205+
---- ------------- ---------------------- --------- ------------------
206+
Ethernet 2 492447549 347643 7468446 34991
207+
```
208+
200209
> [!NOTE]
201210
> If the Mellanox adapter fails to start, open an administrator command prompt on the remote VM and enter the following command:
202211
>

0 commit comments

Comments
 (0)