Skip to content

Commit 6275152

Browse files
authored
adding indents and auto-numbering
1 parent 33d0b14 commit 6275152

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

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

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -224,32 +224,32 @@ As an alternative to building your own VHD, SUSE also publishes BYOS (bring your
224224
## Prepare openSUSE 15.4+
225225
226226
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
231-
| - | :------------------------------------------------------------------------------------------| :-------------| :-------| :---------| :------
232-
| 1 | Cloud:Tools_15.4 | Cloud:Tools-> | Yes | (r ) Yes | Yes
233-
| 2 | openSUSE_stable_OSS | openSUSE_st-> | Yes | (r ) Yes | Yes
234-
| 3 | openSUSE_stable_Updates | openSUSE_st-> | Yes | (r ) Yes | Yes
235-
236-
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
231+
| - | :------------------------------------------------------------------------------------------| :-------------| :-------| :---------| :------
232+
| 1 | Cloud:Tools_15.4 | Cloud:Tools-> | Yes | (r ) Yes | Yes
233+
| 2 | openSUSE_stable_OSS | openSUSE_st-> | Yes | (r ) Yes | Yes
234+
| 3 | openSUSE_stable_Updates | openSUSE_st-> | Yes | (r ) Yes | Yes
237235
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-
```
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+
```
251251

252-
5. Update the kernel to the latest available version:
252+
1. Update the kernel to the latest available version:
253253

254254
```bash
255255
sudo zypper up kernel-default
@@ -261,13 +261,13 @@ sudo zypper mr -e [NUMBER OF REPOSITORY]
261261
sudo zypper update
262262
```
263263

264-
6. Install the Azure Linux Agent:
264+
1. Install the Azure Linux Agent:
265265

266266
```bash
267267
sudo zypper install WALinuxAgent
268268
```
269269

270-
7. Modify the kernel boot line in your GRUB configuration to include other kernel parameters for Azure. 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 for Azure. To do this, open */boot/grub/menu.lst* in a text editor and ensure that the default kernel includes the following parameters:
271271

272272
```config-grub
273273
console=ttyS0 earlyprintk=ttyS0
@@ -279,21 +279,21 @@ sudo zypper mr -e [NUMBER OF REPOSITORY]
279279
libata.atapi_enabled=0 reserve=0x1f0,0x8
280280
```
281281

282-
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:
283283

284284
```config
285285
DHCLIENT_SET_HOSTNAME="no"
286286
```
287287

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.
289289

290290
```output
291291
Defaults targetpw # ask for the password of the target user i.e. root
292292
ALL ALL=(ALL) ALL # WARNING! Only use this together with 'Defaults targetpw'!
293293
```
294294

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.
297297
298298
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.
299299

@@ -307,13 +307,13 @@ sudo zypper mr -e [NUMBER OF REPOSITORY]
307307
ResourceDisk.SwapSizeMB=2048 ## NOTE: set the size to whatever you need it to be.
308308
```
309309

310-
12. Ensure that the Azure Linux Agent runs at startup:
310+
1. Ensure that the Azure Linux Agent runs at startup:
311311

312312
```bash
313313
sudo systemctl enable waagent.service
314314
```
315315

316-
13. Run the following commands to deprovision the virtual machine and prepare it for provisioning on Azure.
316+
1. Run the following commands to deprovision the virtual machine and prepare it for provisioning on Azure.
317317

318318
If you're migrating a specific virtual machine and don't want to create a generalized image, skip the deprovisioning step.
319319

@@ -326,7 +326,7 @@ sudo zypper mr -e [NUMBER OF REPOSITORY]
326326
sudo export HISTSIZE=0
327327
```
328328

329-
14. Select **Action** > **Shut Down** in Hyper-V Manager.
329+
1. Select **Action** > **Shut Down** in Hyper-V Manager.
330330

331331
## Next steps
332332

0 commit comments

Comments
 (0)