Skip to content

Commit 0d7c115

Browse files
authored
Update suse-create-upload-vhd.md
removed end-of- life version and made adjustments to the instruction examples.
1 parent 39af9e0 commit 0d7c115

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

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

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -221,33 +221,35 @@ As an alternative to building your own VHD, SUSE also publishes BYOS (bring your
221221
sudo rm -f ~/.bash_history
222222
```
223223
224-
## Prepare openSUSE 15.2+
224+
## Prepare openSUSE 15.4+
225225
226226
1. On the center pane of Hyper-V Manager, select the virtual machine.
227227
2. Select **Connect** to open the window for the virtual machine.
228228
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.)
229229
230230
| # | Alias | Name | Enabled | Refresh
231231
| - | :-------------------- | :-------------------- | :------ | :------
232-
| 1 | Cloud:Tools_15.2 | Cloud:Tools_15.2 | Yes | Yes
233-
| 2 | openSUSE_15.2_OSS | openSUSE_15.2_OSS | Yes | Yes
234-
| 3 | openSUSE_15.2_Updates | openSUSE_15.2_Updates | Yes | Yes
232+
| 1 | Cloud:Tools_15.4 | Cloud:Tools_15.4 | Yes | Yes
233+
| 2 | openSUSE_15.4_OSS | openSUSE_15.4_OSS | Yes | Yes
234+
| 3 | openSUSE_15.4_Updates | openSUSE_15.4_Updates | Yes | Yes
235235
236-
If the command returns "No repositories defined," use the following commands to add these repos:
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):
237239
238240
```bash
239241
sudo zypper ar -f http://download.opensuse.org/repositories/Cloud:Tools/openSUSE_15.2 Cloud:Tools_15.2
240242
sudo zypper ar -f https://download.opensuse.org/distribution/15.2/repo/oss openSUSE_15.2_OSS
241243
sudo zypper ar -f http://download.opensuse.org/update/15.2 openSUSE_15.2_Updates
242244
```
243245
244-
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:
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:
245247
246248
```bash
247249
sudo zypper mr -e [NUMBER OF REPOSITORY]
248250
```
249251
250-
4. Update the kernel to the latest available version:
252+
5. Update the kernel to the latest available version:
251253
252254
```bash
253255
sudo zypper up kernel-default
@@ -259,13 +261,13 @@ As an alternative to building your own VHD, SUSE also publishes BYOS (bring your
259261
sudo zypper update
260262
```
261263
262-
5. Install the Azure Linux Agent:
264+
6. Install the Azure Linux Agent:
263265
264266
```bash
265267
sudo zypper install WALinuxAgent
266268
```
267269
268-
6. 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+
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:
269271
270272
```config-grub
271273
console=ttyS0 earlyprintk=ttyS0
@@ -277,21 +279,21 @@ As an alternative to building your own VHD, SUSE also publishes BYOS (bring your
277279
libata.atapi_enabled=0 reserve=0x1f0,0x8
278280
```
279281
280-
7. We recommend that you edit the */etc/sysconfig/network/dhcp* file and change the `DHCLIENT_SET_HOSTNAME` parameter to the following setting:
282+
8. We recommend that you edit the */etc/sysconfig/network/dhcp* file and change the `DHCLIENT_SET_HOSTNAME` parameter to the following setting:
281283
282284
```config
283285
DHCLIENT_SET_HOSTNAME="no"
284286
```
285287
286-
8. In the */etc/sudoers* file, comment out or remove the following lines if they exist. This is an important step.
288+
9. In the */etc/sudoers* file, comment out or remove the following lines if they exist. This is an important step.
287289
288290
```output
289291
Defaults targetpw # ask for the password of the target user i.e. root
290292
ALL ALL=(ALL) ALL # WARNING! Only use this together with 'Defaults targetpw'!
291293
```
292294
293-
9. Ensure that the SSH server is installed and configured to start at boot time.
294-
10. Don't create swap space on the OS disk.
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.
295297
296298
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.
297299
@@ -305,13 +307,13 @@ As an alternative to building your own VHD, SUSE also publishes BYOS (bring your
305307
ResourceDisk.SwapSizeMB=2048 ## NOTE: set the size to whatever you need it to be.
306308
```
307309
308-
11. Ensure that the Azure Linux Agent runs at startup:
310+
12. Ensure that the Azure Linux Agent runs at startup:
309311
310312
```bash
311313
sudo systemctl enable waagent.service
312314
```
313315
314-
12. Run the following commands to deprovision the virtual machine and prepare it for provisioning on Azure.
316+
13. Run the following commands to deprovision the virtual machine and prepare it for provisioning on Azure.
315317
316318
If you're migrating a specific virtual machine and don't want to create a generalized image, skip the deprovisioning step.
317319
@@ -324,7 +326,7 @@ As an alternative to building your own VHD, SUSE also publishes BYOS (bring your
324326
sudo export HISTSIZE=0
325327
```
326328
327-
13. Select **Action** > **Shut Down** in Hyper-V Manager.
329+
14. Select **Action** > **Shut Down** in Hyper-V Manager.
328330
329331
## Next steps
330332

0 commit comments

Comments
 (0)