Skip to content

Commit 479117c

Browse files
authored
Merge pull request #114598 from markusries/patch-15
Update suse-create-upload-vhd.md
2 parents 09313e8 + d726db8 commit 479117c

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This article assumes that you have already installed a SUSE or openSUSE Leap Lin
3434

3535

3636
> [!NOTE]
37-
> **(_Cloud-init >= 21.2 removes the udf requirement._)** however without the udf module enabled the cdrom will not mount during provisioning preventing custom data from being applied. A workaround for this would be to apply custom data using user data however, unlike custom data user data is not encrypted. https://cloudinit.readthedocs.io/en/latest/topics/format.html
37+
> **_Cloud-init >= 21.2 removes the udf requirement_**. However, without the udf module enabled, the cdrom won't mount during provisioning, preventing custom data from being applied. A workaround for this is to apply custom data using user data. However, unlike custom data, user data isn't encrypted. https://cloudinit.readthedocs.io/en/latest/topics/format.html
3838
3939

4040
## Use SUSE Studio
@@ -126,7 +126,8 @@ As an alternative to building your own VHD, SUSE also publishes BYOS (Bring Your
126126
127127
Don't create swap space on the operating system disk.
128128

129-
Previously, the Azure Linux Agent was used to automatically configure swap space by using the local resource disk that is attached to the virtual machine after the virtual machine is provisioned on Azure. However this step is now handled by cloud-init, you **must not** use the Linux Agent to format the resource disk or create the swap file. Use these commands to modify `/etc/waagent.conf` appropriately:
129+
130+
Previously, the Azure Linux Agent was used to automatically configure swap space by using the local resource disk that is attached to the virtual machine after the virtual machine is provisioned on Azure. However, this step is now handled by cloud-init, you **must not** use the Linux Agent to format the resource disk or create the swap file. Use these commands to modify `/etc/waagent.conf` appropriately:
130131

131132
```bash
132133
sudo sed -i 's/ResourceDisk.Format=y/ResourceDisk.Format=n/g' /etc/waagent.conf
@@ -135,7 +136,7 @@ As an alternative to building your own VHD, SUSE also publishes BYOS (Bring Your
135136

136137
For more information on the waagent.conf configuration options, see the [Linux agent configuration](../extensions/agent-linux.md#configuration) documentation.
137138

138-
If you want to mount, format and create a swap partition you can either:
139+
If you want to mount, format, and create a swap partition you can either:
139140
* Pass this configuration in as a cloud-init config every time you create a VM.
140141
* Use a cloud-init directive baked into the image that configures swap space every time the VM is created:
141142

@@ -155,18 +156,18 @@ As an alternative to building your own VHD, SUSE also publishes BYOS (Bring Your
155156
- device: ephemeral0.2
156157
filesystem: swap
157158
mounts:
158-
- ["ephemeral0.1", "/mnt/ressource"]
159+
- ["ephemeral0.1", "/mnt"]
159160
- ["ephemeral0.2", "none", "swap", "sw,nofail,x-systemd.requires=cloud-init.service,x-systemd.device-timeout=2", "0", "0"]
160161
EOF
161162
```
162163
> [!NOTE]
163-
> Make sure the **'udf'** module is enabled. Blocklisting or removing it will cause a provisioning failure. **(_Cloud-init >= 21.2 removes the udf requirement. Please read top of document for more detail)**
164+
> Make sure the **'udf'** module is enabled. Removing/disabling them will cause a provisioning/boot failure. **(_Cloud-init >= 21.2 removes the udf requirement. Please read top of document for more detail)**
164165
165166
166167
15. Run the following commands to deprovision the virtual machine and prepare it for provisioning on Azure:
167168
168169
> [!NOTE]
169-
> If you're migrating a specific virtual machine and don't wish to create a generalized image, skip the deprovision step
170+
> If you're migrating a specific virtual machine and don't wish to create a generalized image, skip the deprovision step.
170171
171172
```bash
172173
sudo rm -f /var/log/waagent.log
@@ -200,7 +201,7 @@ As an alternative to building your own VHD, SUSE also publishes BYOS (Bring Your
200201
sudo zypper ar -f http://download.opensuse.org/update/15.2 openSUSE_15.2_Updates
201202
```
202203
203-
You can then verify the repositories have been added by running the command '`zypper lr`' again. If one of the relevant update repositories isn't enabled, enable it with following command:
204+
You can then verify the repositories have been added by running the command '`zypper lr`' again. If one of the relevant update repositories isn't enabled, enable it with the following command:
204205
205206
```bash
206207
sudo zypper mr -e [NUMBER OF REPOSITORY]
@@ -252,7 +253,7 @@ As an alternative to building your own VHD, SUSE also publishes BYOS (Bring Your
252253
9. Ensure that the SSH server is installed and configured to start at boot time.
253254
10. Don't create swap space on the OS disk.
254255
255-
The Azure Linux Agent can automatically configure swap space using the local resource disk that is attached to the VM after provisioning on Azure. Note that the local resource disk is a *temporary* disk, and might be emptied when the VM is deprovisioned. After installing the Azure Linux Agent (see previous step), modify the following parameters in the "/etc/waagent.conf" as follows:
256+
The Azure Linux Agent can automatically configure swap space using the local resource disk that is attached to the VM after provisioning on Azure. Note that the local resource disk is a *temporary* disk and might be emptied when the VM is deprovisioned. After installing the Azure Linux Agent (see previous step), modify the following parameters in the "/etc/waagent.conf" as follows:
256257
257258
```config-conf
258259
ResourceDisk.Format=y
@@ -271,7 +272,7 @@ As an alternative to building your own VHD, SUSE also publishes BYOS (Bring Your
271272
12. Run the following commands to deprovision the virtual machine and prepare it for provisioning on Azure:
272273
273274
> [!NOTE]
274-
> If you're migrating a specific virtual machine and don't wish to create a generalized image, skip the deprovision step
275+
> If you're migrating a specific virtual machine and don't wish to create a generalized image, skip the deprovision step.
275276
276277
```bash
277278
sudo rm -f ~/.bash_history # Remove current user history

0 commit comments

Comments
 (0)