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
+33-33Lines changed: 33 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -224,32 +224,32 @@ As an alternative to building your own VHD, SUSE also publishes BYOS (bring your
224
224
## Prepare openSUSE 15.4+
225
225
226
226
1. On the center pane of Hyper-V Manager, select the virtual machine.
227
-
2. Select **Connect** to open the window for the virtual machine.
228
-
3. In a terminal, run the command `zypper lr`. If this command returns output similar to the following example, the repositories are configured as expected and no adjustments are necessary. (Version numbers might vary.)
229
-
230
-
| # | Alias | Name | Enabled | GPG Check | Refresh
If the the message "___No repositories defined___" appears from the `zypper lr` the repositories must be added manually.
227
+
1. Select **Connect** to open the window for the virtual machine.
228
+
1. In a terminal, run the command `zypper lr`. If this command returns output similar to the following example, the repositories are configured as expected and no adjustments are necessary. (Version numbers might vary.)
229
+
230
+
| # | Alias | Name | Enabled | GPG Check | Refresh
Below are examples of commands for adding these repositories (versions and links may vary):
239
-
240
-
```bash
241
-
sudo zypper ar -f https://download.opensuse.org/update/openSUSE-stable openSUSE_stable_Updates
242
-
sudo zypper ar -f https://download.opensuse.org/repositories/Cloud:/Tools/15.4 Cloud:Tools_15.4
243
-
sudo zypper ar -f https://download.opensuse.org/distribution/openSUSE-stable/repo/oss openSUSE_stable_OSS
244
-
```
245
-
246
-
You can then verify that the repositories have been added by running the command `zypper lr` again. If one of the relevant update repositories isn't enabled, enable it by using the following command:
247
-
248
-
```bash
249
-
sudo zypper mr -e [NUMBER OF REPOSITORY]
250
-
```
236
+
If the the message "___No repositories defined___" appears from the `zypper lr` the repositories must be added manually.
237
+
238
+
Below are examples of commands for adding these repositories (versions and links may vary):
239
+
240
+
```bash
241
+
sudo zypper ar -f https://download.opensuse.org/update/openSUSE-stable openSUSE_stable_Updates
242
+
sudo zypper ar -f https://download.opensuse.org/repositories/Cloud:/Tools/15.4 Cloud:Tools_15.4
243
+
sudo zypper ar -f https://download.opensuse.org/distribution/openSUSE-stable/repo/oss openSUSE_stable_OSS
244
+
```
245
+
246
+
You can then verify that the repositories have been added by running the command `zypper lr` again. If one of the relevant update repositories isn't enabled, enable it by using the following command:
247
+
248
+
```bash
249
+
sudo zypper mr -e [NUMBER OF REPOSITORY]
250
+
```
251
251
252
-
5. Update the kernel to the latest available version:
252
+
1. Update the kernel to the latest available version:
7. Modify the kernel boot line in your GRUB configuration to include other kernel parameters forAzure. To do this, open */boot/grub/menu.lst*in a text editor and ensure that the default kernel includes the following parameters:
270
+
1. Modify the kernel boot line in your GRUB configuration to include other kernel parameters forAzure. To do this, open */boot/grub/menu.lst*in a text editor and ensure that the default kernel includes the following parameters:
8. We recommend that you edit the */etc/sysconfig/network/dhcp* file and change the `DHCLIENT_SET_HOSTNAME` parameter to the following setting:
282
+
1. We recommend that you edit the */etc/sysconfig/network/dhcp* file and change the `DHCLIENT_SET_HOSTNAME` parameter to the following setting:
283
283
284
284
```config
285
285
DHCLIENT_SET_HOSTNAME="no"
286
286
```
287
287
288
-
9. In the */etc/sudoers* file, comment out or remove the following lines if they exist. This is an important step.
288
+
1. In the */etc/sudoers* file, comment out or remove the following lines if they exist. This is an important step.
289
289
290
290
```output
291
291
Defaults targetpw # ask for the password of the target user i.e. root
292
292
ALL ALL=(ALL) ALL # WARNING! Only use this together with 'Defaults targetpw'!
293
293
```
294
294
295
-
10. Ensure that the SSH server is installed and configured to start at boot time.
296
-
11. Don't create swap space on the OS disk.
295
+
1. Ensure that the SSH server is installed and configured to start at boot time.
296
+
1. Don't create swap space on the OS disk.
297
297
298
298
The Azure Linux Agent can automatically configure swap space by using the local resource disk that's attached to the VM after provisioning on Azure. The local resource disk is a *temporary* disk and will be emptied when the VM is deprovisioned.
0 commit comments