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/oracle-create-upload-vhd.md
+14-15Lines changed: 14 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,16 +103,14 @@ You must complete specific configuration steps in the operating system for the v
103
103
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.
104
104
105
105
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.
107
107
108
-
109
-
110
-
111
-
```bash
108
+
```bash
112
109
sudo yum install WALinuxAgent
113
110
```
114
111
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
+
116
114
12. Do not create swap space on the OS disk.
117
115
118
116
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
211
209
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.
212
210
213
211
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
215
214
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
216
215
```
217
216
@@ -258,7 +257,7 @@ Preparing an Oracle Linux 7 virtual machine for Azure is very similar to Oracle
258
257
259
258
260
259
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
262
261
swapoff /mnt/resource/swapfile
263
262
rm /mnt/resource/swapfile -f
264
263
fi
@@ -309,14 +308,14 @@ Preparing an Oracle Linux 7 virtual machine for Azure is very similar to Oracle
309
308
310
309
15. Run the following commands to deprovision the virtual machine and prepare it for provisioning on Azure:
311
310
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.
313
312
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
320
319
```
321
320
322
321
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