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
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,8 +25,8 @@ This article assumes that you've already installed an Oracle Linux operating sys
25
25
* Oracle's UEK2 isn't supported on Hyper-V and Azure as it doesn't include the required drivers.
26
26
* The VHDX format is not supported in Azure, only **fixed VHD**. You can convert the disk to VHD format using Hyper-V Manager or the convert-vhd cmdlet.
27
27
***Kernel support for mounting UDF file systems is required.** At first boot on Azure, the provisioning configuration is passed to the Linux VM via UDF-formatted media that is attached to the guest. The Azure Linux agent must be able to mount the UDF file system to read its configuration and provision the VM.
28
-
* When installing the Linux system, it's recommended that you use standard partitions rather than LVM (often the default for many installations). These standard partitions avoid LVM name conflicts with cloned VMs, particularly if an OS disk ever needs to be attached to another VM for troubleshooting. [LVM](/previous-versions/azure/virtual-machines/linux/configure-lvm) or [RAID](/previous-versions/azure/virtual-machines/linux/configure-raid) may be used on data disks if preferred.
29
-
* Linux kernel versions earlier than 2.6.37 don't support NUMA on Hyper-V with larger VM sizes. This issue primarily impacts older distributions using the upstream Red Hat 2.6.32 kernel, and was fixed in Oracle Linux 6.6 and later
28
+
* When installing the Linux system, we recommend that you use standard partitions rather than LVM (often the default for many installations). These standard partitions avoid LVM name conflicts with cloned VMs, particularly if an OS disk ever needs to be attached to another VM for troubleshooting. [LVM](/previous-versions/azure/virtual-machines/linux/configure-lvm) or [RAID](/previous-versions/azure/virtual-machines/linux/configure-raid) may be used on data disks if preferred.
29
+
* Linux kernel versions earlier than 2.6.37 don't support NUMA on Hyper-V with larger VM sizes. This issue primarily impacts older distributions using the upstream Red Hat 2.6.32 kernel and was fixed in Oracle Linux 6.6 and later.
30
30
* Don't configure a swap partition on the OS disk.
31
31
* All VHDs on Azure must have a virtual size aligned to 1 MB. When converting from a raw disk to VHD, you must ensure that the raw disk size is a multiple of 1 MB before conversion. See [Linux Installation Notes](create-upload-generic.md#general-linux-installation-notes) for more information.
32
32
* Make sure that the `Addons` repository is enabled. Edit the file `/etc/yum.repos.d/public-yum-ol6.repo`(Oracle Linux 6) or `/etc/yum.repos.d/public-yum-ol7.repo`(Oracle Linux 7), and change the line `enabled=0` to `enabled=1` under **[ol6_addons]** or **[ol7_addons]** in this file.
@@ -95,13 +95,13 @@ You must complete specific configuration steps in the operating system for the v
95
95
96
96
This setting ensures all console messages are sent to the first serial port, which can assist Azure support with debugging issues.
97
97
98
-
In addition to the above, it's recommended to *remove* the following parameters:
98
+
In addition to the above, we recommend to *remove* the following parameters:
99
99
100
100
```config-grub
101
101
rhgb quiet crashkernel=auto
102
102
```
103
103
104
-
Graphical and quiet boot is not useful in a cloud environment where we want all the logs to be sent to the serial port.
104
+
Graphical and quiet boot aren't useful in a cloud environment where we want all the logs to be sent to the serial port.
105
105
106
106
The `crashkernel` option may be left configured if desired, but note that this parameter reduces the amount of available memory in the VM by 128 MB or more, which may be problematic on the smaller VM sizes.
107
107
@@ -116,12 +116,12 @@ You must complete specific configuration steps in the operating system for the v
116
116
117
117
12. Don't create swap space on the OS disk.
118
118
119
-
The Azure Linux Agent can automatically configure swap space using the local resource disk that is attached to the VM after provisioning on Azure. 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:
119
+
The Azure Linux Agent can automatically configure swap space using the local resource disk that is attached to the VM after provisioning on Azure. 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:
120
120
121
121
```config-conf
122
122
ResourceDisk.Format=y
123
123
ResourceDisk.Filesystem=ext4
124
-
ResourceDisk.MountPoint=/mnt/resource
124
+
ResourceDisk.MountPoint=/mnt
125
125
ResourceDisk.EnableSwap=y
126
126
ResourceDisk.SwapSizeMB=2048 ## NOTE: set this to whatever you need it to be.
127
127
```
@@ -140,10 +140,10 @@ You must complete specific configuration steps in the operating system for the v
140
140
## Oracle Linux 7.0 and later
141
141
**Changes in Oracle Linux 7**
142
142
143
-
Preparing an Oracle Linux 7 virtual machine for Azure is similar to Oracle Linux 6, however there are several important differences worth noting:
143
+
Preparing an Oracle Linux 7 virtual machine for Azure is similar to Oracle Linux 6, however there are several significant differences worth noting:
144
144
145
145
* Azure supports Oracle Linux with either the Unbreakable Enterprise Kernel (UEK) or the Red Hat Compatible Kernel. Oracle Linux with UEK is recommended.
146
-
* The NetworkManager package no longer conflicts with the Azure Linux agent. This package is installed by default and we recommend that it's not removed.
146
+
* The NetworkManager package no longer conflicts with the Azure Linux agent. This package is installed by default, and we recommend that it's not removed.
147
147
* GRUB2 is now used as the default bootloader, so the procedure for editing kernel parameters has changed (see below).
148
148
* XFS is now the default file system. The ext4 file system can still be used if desired.
149
149
@@ -207,7 +207,7 @@ Preparing an Oracle Linux 7 virtual machine for Azure is similar to Oracle Linux
207
207
rhgb quiet crashkernel=auto
208
208
```
209
209
210
-
Graphical and quiet boot is not useful in a cloud environment where we want all the logs to be sent to the serial port.
210
+
Graphical and quiet boot aren't useful in a cloud environment where we want all the logs to be sent to the serial port.
211
211
212
212
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 128 MB or more, which may be problematic on the smaller VM sizes.
213
213
@@ -261,8 +261,8 @@ Preparing an Oracle Linux 7 virtual machine for Azure is similar to Oracle Linux
261
261
262
262
if [[ -f /mnt/resource/swapfile ]]; then
263
263
echo Removing swapfile - Oracle Linux uses a swapfile by default
264
-
swapoff /mnt/resource/swapfile
265
-
rm /mnt/resource/swapfile -f
264
+
swapoff /mnt/swapfile
265
+
rm /mnt/swapfile -f
266
266
fi
267
267
268
268
echo "Add console log file"
@@ -277,14 +277,14 @@ Preparing an Oracle Linux 7 virtual machine for Azure is similar to Oracle Linux
277
277
278
278
15. Swap configuration. Don't create swap space on the operating system disk.
279
279
280
-
Previously, the Azure Linux Agent was used automatically to configure swap space by using the local resource disk that is attached to the virtual machine after the virtual machine is provisioned on Azure. However this is now handled by cloud-init, you **must not** use the Linux Agent to format the resource disk create the swap file, modify the following parameters in `/etc/waagent.conf` appropriately:
280
+
Previously, the Azure Linux Agent was used automatically to configure swap space by using the local resource disk that is attached to the virtual machine after the virtual machine is provisioned on Azure. However, this is now handled by cloud-init, you **must not** use the Linux Agent to format the resource disk create the swap file, modify the following parameters in`/etc/waagent.conf` appropriately:
281
281
282
282
```bash
283
283
sudo sed -i 's/ResourceDisk.Format=y/ResourceDisk.Format=n/g' /etc/waagent.conf
284
284
sudo sed -i 's/ResourceDisk.EnableSwap=y/ResourceDisk.EnableSwap=n/g' /etc/waagent.conf
285
285
```
286
286
287
-
If you want mount, format and create swap you can either:
287
+
If you want mount, format, and create swap you can either:
288
288
* Pass this in as a cloud-init config every time you create a VM
289
289
* Use a cloud-init directive baked into the image that will do this every time the VM is created:
0 commit comments