Skip to content

Commit 7eb622e

Browse files
author
m aries
authored
Update redhat-create-upload-vhd.md
1 parent 18fb4c5 commit 7eb622e

File tree

1 file changed

+34
-3
lines changed

1 file changed

+34
-3
lines changed

articles/virtual-machines/linux/redhat-create-upload-vhd.md

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.collection: linux
88
ms.workload: infrastructure-services
99
ms.tgt_pltfrm: vm-linux
1010
ms.topic: how-to
11-
ms.date: 03/15/2023
11+
ms.date: 04/25/2023
1212
ms.author: maries
1313
ms.reviewer: mattmcinnes
1414
---
@@ -85,7 +85,17 @@ This section assumes that you've already obtained an ISO file from the Red Hat w
8585
sudo ln -s /dev/null /etc/udev/rules.d/75-persistent-net-generator.rules
8686
sudo rm -f /etc/udev/rules.d/70-persistent-net.rules
8787
```
88-
88+
> [!NOTE]
89+
> ** When using Accelerated Networking (AN) the synthetic interface that is created must me configured to be unmanaged using a udev rule. This will prevents NetworkManager from assigning the same ip to it as the primary interface. <br>
90+
To apply it:<br>
91+
```
92+
sudo cat > /home/azureuser/68-azure-sriov-nm-unmanaged.rule <<EOF
93+
# Accelerated Networking on Azure exposes a new SRIOV interface to the VM.
94+
# This interface is transparently bonded to the synthetic interface,
95+
# so NetworkManager should just ignore any SRIOV interfaces.
96+
SUBSYSTEM=="net", DRIVERS=="hv_pci", ACTION=="add", ENV{NM_UNMANAGED}="1"
97+
EOF
98+
```
8999
7. Ensure that the network service will start at boot time by running the following command:
90100

91101
```bash
@@ -611,7 +621,17 @@ This section shows you how to use KVM to prepare a [RHEL 6](#rhel-6-using-kvm) o
611621
sudo ln -s /dev/null /etc/udev/rules.d/75-persistent-net-generator.rules
612622
sudo rm -f /etc/udev/rules.d/70-persistent-net.rules
613623
```
614-
624+
> [!NOTE]
625+
> ** When using Accelerated Networking (AN) the synthetic interface that is created must me configured to be unmanaged using a udev rule. This will prevents NetworkManager from assigning the same ip to it as the primary interface. <br>
626+
To apply it:<br>
627+
```
628+
sudo cat > /home/azureuser/68-azure-sriov-nm-unmanaged.rule <<EOF
629+
# Accelerated Networking on Azure exposes a new SRIOV interface to the VM.
630+
# This interface is transparently bonded to the synthetic interface,
631+
# so NetworkManager should just ignore any SRIOV interfaces.
632+
SUBSYSTEM=="net", DRIVERS=="hv_pci", ACTION=="add", ENV{NM_UNMANAGED}="1"
633+
EOF
634+
```
615635
7. Ensure that the network service will start at boot time by running the following command:
616636
617637
```bash
@@ -987,6 +1007,17 @@ This section assumes that you have already installed a RHEL virtual machine in V
9871007
sudo ln -s /dev/null /etc/udev/rules.d/75-persistent-net-generator.rules
9881008
sudo rm -f /etc/udev/rules.d/70-persistent-net.rules
9891009
```
1010+
> [!NOTE]
1011+
> ** When using Accelerated Networking (AN) the synthetic interface that is created must me configured to be unmanaged using a udev rule. This will prevents NetworkManager from assigning the same ip to it as the primary interface. <br>
1012+
To apply it:<br>
1013+
```
1014+
sudo cat > /home/azureuser/68-azure-sriov-nm-unmanaged.rule <<EOF
1015+
# Accelerated Networking on Azure exposes a new SRIOV interface to the VM.
1016+
# This interface is transparently bonded to the synthetic interface,
1017+
# so NetworkManager should just ignore any SRIOV interfaces.
1018+
SUBSYSTEM=="net", DRIVERS=="hv_pci", ACTION=="add", ENV{NM_UNMANAGED}="1"
1019+
EOF
1020+
```
9901021
9911022
5. Ensure that the network service will start at boot time by running the following command:
9921023

0 commit comments

Comments
 (0)