Skip to content

Commit a450040

Browse files
Update oracle-create-upload-vhd.md
1 parent 0d6f851 commit a450040

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

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

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,14 @@ You must complete specific configuration steps in the operating system for the v
103103
The `crashkernel` option may be left configured if desired, but note that this parameter will reduce the amount of available memory in the VM by 128MB or more, which may be problematic on the smaller VM sizes.
104104

105105
10. Ensure that the SSH server is installed and configured to start at boot time. This is usually the default.
106-
1. 11. Install the Azure Linux Agent by running the following command. The latest version is 2.0.15.
106+
11. Install the Azure Linux Agent by running the following command. The latest version is 2.0.15.
107107

108-
109-
110-
111-
```bash
108+
```bash
112109
sudo yum install WALinuxAgent
113110
```
114111

115-
Note that installing the WALinuxAgent package will remove the NetworkManager and NetworkManager-gnome packages if they were not already removed as described in step 2.
112+
Note that installing the WALinuxAgent package will remove the NetworkManager and NetworkManager-gnome packages if they were not already removed as described in step 2.
113+
116114
12. Do not create swap space on the OS disk.
117115

118116
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 /etc/waagent.conf appropriately:
@@ -211,7 +209,8 @@ Preparing an Oracle Linux 7 virtual machine for Azure is very similar to Oracle
211209
The `crashkernel` option may be left configured if desired, but note that this parameter will reduce the amount of available memory in the VM by 128MB or more, which may be problematic on the smaller VM sizes.
212210

213211
10. Once you are done editing "/etc/default/grub" per above, run the following command to rebuild the grub configuration:
214-
1. ```bash
212+
213+
```bash
215214
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
216215
```
217216

@@ -258,7 +257,7 @@ Preparing an Oracle Linux 7 virtual machine for Azure is very similar to Oracle
258257
259258
260259
if [[ -f /mnt/resource/swapfile ]]; then
261-
echo Removing swapfile - RHEL uses a swapfile by default
260+
echo Removing swapfile - Oracle Linux uses a swapfile by default
262261
swapoff /mnt/resource/swapfile
263262
rm /mnt/resource/swapfile -f
264263
fi
@@ -309,14 +308,14 @@ Preparing an Oracle Linux 7 virtual machine for Azure is very similar to Oracle
309308
310309
15. Run the following commands to deprovision the virtual machine and prepare it for provisioning on Azure:
311310
312-
1. **Note:** if you are migrating a specific virtual machine and do not wish to create a generalized image, skip the deprovision step.
311+
**Note:** if you are migrating a specific virtual machine and do not wish to create a generalized image, skip the deprovision step.
313312
314-
1. ```bash
315-
sudo cloud-init clean
316-
sudo rm -f /var/log/waagent.log
317-
sudo waagent -force -deprovision
318-
sudo rm -f ~/.bash_history
319-
sudo export HISTSIZE=0
313+
```bash
314+
sudo cloud-init clean
315+
sudo rm -f /var/log/waagent.log
316+
sudo waagent -force -deprovision
317+
sudo rm -f ~/.bash_history
318+
sudo export HISTSIZE=0
320319
```
321320
322321
16. Click **Action -> Shut Down** in Hyper-V Manager. Your Linux VHD is now ready to be [**uploaded to Azure**](./upload-vhd.md#option-1-upload-a-vhd).

0 commit comments

Comments
 (0)