You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/linux/suse-create-upload-vhd.md
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ This article assumes that you have already installed a SUSE or openSUSE Leap Lin
34
34
35
35
36
36
> [!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
38
38
39
39
40
40
## Use SUSE Studio
@@ -126,7 +126,8 @@ As an alternative to building your own VHD, SUSE also publishes BYOS (Bring Your
126
126
127
127
Don't create swap space on the operating system disk.
128
128
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:
130
131
131
132
```bash
132
133
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
135
136
136
137
For more information on the waagent.conf configuration options, see the [Linux agent configuration](../extensions/agent-linux.md#configuration) documentation.
137
138
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:
139
140
* Pass this configuration in as a cloud-init config every time you create a VM.
140
141
* Use a cloud-init directive baked into the image that configures swap space every time the VM is created:
141
142
@@ -155,18 +156,18 @@ As an alternative to building your own VHD, SUSE also publishes BYOS (Bring Your
> 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)**
164
165
165
166
166
167
15. Run the following commands to deprovision the virtual machine and prepare it for provisioning on Azure:
167
168
168
169
> [!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.
170
171
171
172
```bash
172
173
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
200
201
sudo zypper ar -f http://download.opensuse.org/update/15.2 openSUSE_15.2_Updates
201
202
```
202
203
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:
204
205
205
206
```bash
206
207
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
252
253
9. Ensure that the SSH server is installed and configured to start at boot time.
253
254
10. Don't create swap space on the OS disk.
254
255
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:
256
257
257
258
```config-conf
258
259
ResourceDisk.Format=y
@@ -271,7 +272,7 @@ As an alternative to building your own VHD, SUSE also publishes BYOS (Bring Your
271
272
12. Run the following commands to deprovision the virtual machine and prepare it for provisioning on Azure:
272
273
273
274
> [!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.
275
276
276
277
```bash
277
278
sudo rm -f ~/.bash_history # Remove current user history
0 commit comments