Skip to content

Commit 3c9aef1

Browse files
committed
edit pass: linux-article-batch4
1 parent 5bb987d commit 3c9aef1

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

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

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -86,19 +86,19 @@ This section assumes that you've already obtained an ISO file from the Red Hat w
8686
sudo rm -f /etc/udev/rules.d/70-persistent-net.rules
8787
```
8888

89-
> [!NOTE]
90-
> When you use Accelerated Networking, the synthetic interface that's created must be configured to be unmanaged by using a udev rule. This action prevents `NetworkManager` from assigning the same IP to it as the primary interface. <br>
91-
92-
To apply it:<br>
93-
94-
```
95-
sudo cat <<EOF>> /etc/udev/rules.d/68-azure-sriov-nm-unmanaged.rules
96-
# Accelerated Networking on Azure exposes a new SRIOV interface to the VM.
97-
# This interface is transparentlybonded to the synthetic interface,
98-
# so NetworkManager should just ignore any SRIOV interfaces.
99-
SUBSYSTEM=="net", DRIVERS=="hv_pci", ACTION=="add", ENV{NM_UNMANAGED}="1"
100-
EOF
101-
```
89+
> [!NOTE]
90+
> When you use Accelerated Networking, the synthetic interface that's created must be configured to be unmanaged by using a udev rule. This action prevents `NetworkManager` from assigning the same IP to it as the primary interface. <br>
91+
92+
To apply it:<br>
93+
94+
```
95+
sudo cat <<EOF>> /etc/udev/rules.d/68-azure-sriov-nm-unmanaged.rules
96+
# Accelerated Networking on Azure exposes a new SRIOV interface to the VM.
97+
# This interface is transparentlybonded to the synthetic interface,
98+
# so NetworkManager should just ignore any SRIOV interfaces.
99+
SUBSYSTEM=="net", DRIVERS=="hv_pci", ACTION=="add", ENV{NM_UNMANAGED}="1"
100+
EOF
101+
```
102102
103103
1. Ensure that the network service starts at boot time:
104104
@@ -271,15 +271,15 @@ EOF
271271
272272
1. Configure `waagent` for `cloud-init`:
273273
274-
```bash
275-
sudo sed -i 's/Provisioning.Agent=auto/Provisioning.Agent=auto/g' /etc/waagent.conf
276-
sudo sed -i 's/ResourceDisk.Format=y/ResourceDisk.Format=n/g' /etc/waagent.conf
277-
sudo sed -i 's/ResourceDisk.EnableSwap=y/ResourceDisk.EnableSwap=n/g' /etc/waagent.conf
278-
```
279-
280-
> [!NOTE]
281-
> If you're migrating a specific VM and don't want to create a generalized image, set `Provisioning.Agent=disabled` on the `/etc/waagent.conf` configuration.
282-
274+
```bash
275+
sudo sed -i 's/Provisioning.Agent=auto/Provisioning.Agent=auto/g' /etc/waagent.conf
276+
sudo sed -i 's/ResourceDisk.Format=y/ResourceDisk.Format=n/g' /etc/waagent.conf
277+
sudo sed -i 's/ResourceDisk.EnableSwap=y/ResourceDisk.EnableSwap=n/g' /etc/waagent.conf
278+
```
279+
280+
> [!NOTE]
281+
> If you're migrating a specific VM and don't want to create a generalized image, set `Provisioning.Agent=disabled` on the `/etc/waagent.conf` configuration.
282+
283283
1. Configure mounts:
284284
285285
```bash

0 commit comments

Comments
 (0)