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/create-upload-centos.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,15 +26,15 @@ Learn to create and upload an Azure virtual hard disk (VHD) that contains a Cent
26
26
27
27
## Prerequisites
28
28
29
-
This article assumes that you already installed a CentOS (or similar derivative) Linux OS to a VHD. Multiple tools exist to create .vhd files. An example is a virtualization solution such as Hyper-V. For instructions, see [Install the Hyper-V role and configure a VM](/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/hh846766(v=ws.11)).
29
+
This article assumes that you've already installed a CentOS (or similar derivative) Linux OS to a VHD. Multiple tools exist to create .vhd files. An example is a virtualization solution such as Hyper-V. For instructions, see [Install the Hyper-V role and configure a VM](/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/hh846766(v=ws.11)).
30
30
31
31
### CentOS installation notes
32
32
33
33
* For more tips on preparing Linux for Azure, see [General Linux installation notes](create-upload-generic.md#general-linux-installation-notes).
34
34
* The VHDX format isn't supported in Azure, only *fixed VHD*. You can convert the disk to VHD format by using Hyper-V Manager or the `convert-vhd` cmdlet. If you're using VirtualBox, you select **Fixed size** as opposed to the default that's dynamically allocated when you create the disk.
35
35
* The vfat kernel module must be enabled in the kernel.
36
-
* When you install the Linux system, we recommend that you use standard partitions rather than Logical Volume Manager (LVM), which is often the default for many installations. Using partitions avoids LVM name conflicts with cloned VMs, particularly if an OS disk ever needs to be attached to another identical VM for troubleshooting. [LVM](/previous-versions/azure/virtual-machines/linux/configure-lvm) or [RAID](/previous-versions/azure/virtual-machines/linux/configure-raid)may also be used on data disks.
37
-
* Kernel support for mounting user-defined functions (UDF) file systems is necessary. At first boot on Azure, the provisioning configuration is passed to the Linux VM by using UDF-formatted media that's attached to the guest. The Azure Linux agent or cloud-init must mount the UDF file system to read its configuration and provision the VM.
36
+
* When you install the Linux system, we recommend that you use standard partitions rather than Logical Volume Manager (LVM), which is often the default for many installations. Using partitions avoids LVM name conflicts with cloned VMs, particularly if an OS disk ever needs to be attached to another identical VM for troubleshooting. [LVM](/previous-versions/azure/virtual-machines/linux/configure-lvm) or [RAID](/previous-versions/azure/virtual-machines/linux/configure-raid)can also be used on data disks.
37
+
* Kernel support for mounting user-defined functions (UDF) file systems is necessary. At first boot on Azure, the provisioning configuration is passed to the Linux VM by using UDF-formatted media that's attached to the guest. The Azure Linux agent or `cloud-init` must mount the UDF file system to read its configuration and provision the VM.
38
38
* Linux kernel versions below 2.6.37 don't support NUMA on Hyper-V with larger VM sizes. This issue primarily affects older distributions using the upstream Centos 2.6.32 kernel and was fixed in Centos 6.6 (kernel-2.6.32-504). Systems running custom kernels older than 2.6.37 or Red Hat Enterprise Linux (RHEL)-based kernels older than 2.6.32-504 must set the boot parameter `numa=off` on the kernel command line in *grub.conf*. For more information, see Red Hat [KB 436883](https://access.redhat.com/solutions/436883).
39
39
* Don't configure a swap partition on the OS disk.
40
40
* All VHDs on Azure must have a virtual size aligned to 1 MB. When you convert from a raw disk to VHD, you must ensure that the raw disk size is a multiple of 1 MB before conversion. For more information, see [Linux installation notes](create-upload-generic.md#general-linux-installation-notes).
@@ -51,7 +51,7 @@ This article assumes that you already installed a CentOS (or similar derivative)
51
51
52
52
1. Select **Connect** to open a console window for the VM.
53
53
54
-
1. In CentOS 6, `NetworkManager` can interfere with the Azure Linux agent. Uninstall this package by running the following command:
54
+
1. In CentOS 6, `NetworkManager` can interfere with the Azure Linux agent. Uninstall this package:
55
55
56
56
```bash
57
57
sudo rpm -e --nodeps NetworkManager
@@ -83,7 +83,7 @@ This article assumes that you already installed a CentOS (or similar derivative)
1. Ensure the network service starts at boot time by running the following command:
86
+
1. Ensure that the network service starts at boot time:
87
87
88
88
```bash
89
89
sudo chkconfig network on
@@ -149,7 +149,7 @@ This article assumes that you already installed a CentOS (or similar derivative)
149
149
http_caching=packages
150
150
```
151
151
152
-
1. Run the following command to clear the current yum metadata and update the system with the latest packages:
152
+
1. Clear the current yum metadata and update the system with the latest packages:
153
153
154
154
```bash
155
155
sudo yum clean all
@@ -161,7 +161,7 @@ This article assumes that you already installed a CentOS (or similar derivative)
161
161
sudo yum -y update
162
162
```
163
163
164
-
A reboot might be required after running this command.
164
+
A reboot might be required after you run this command.
165
165
166
166
1. Optional: Install the drivers for the Linux Integration Services (LIS).
167
167
@@ -199,7 +199,7 @@ This article assumes that you already installed a CentOS (or similar derivative)
199
199
rhgb quiet crashkernel=auto
200
200
```
201
201
202
-
Graphical and `quiet boot` isn't useful in a cloud environment where you want all the logs to be sent to the serial port. The `crashkernel` option can be left configured if you want. But this parameter reduces the amount of available memory in the VM by 128 MB or more, which might be a problem for smaller VM sizes.
202
+
Graphical and quiet boot aren't useful in a cloud environment where you want all the logs to be sent to the serial port. The `crashkernel` option can be left configured if you want. But this parameter reduces the amount of available memory in the VM by 128 MB or more, which might be a problem for smaller VM sizes.
203
203
204
204
> [!IMPORTANT]
205
205
> CentOS 6.5 and earlier must also set the kernel parameter `numa=off`. For more information, see Red Hat [KB 436883](https://access.redhat.com/solutions/436883).
@@ -208,7 +208,7 @@ This article assumes that you already installed a CentOS (or similar derivative)
208
208
209
209
1. Don't create swap space on the OS disk.
210
210
211
-
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 might be emptied when the VM is deprovisioned. After you install the Azure Linux agent (see the previous step), modify the following parameters in`/etc/waagent.conf` appropriately:
211
+
The Azure Linux agent can automatically configure swap space by using the local resource disk that's attached to the VM after the VM is provisioned on Azure. The local resource disk is a *temporary* disk and might be emptied when the VM is deprovisioned. After you install the Azure Linux agent (see the previous step), modify the following parameters in`/etc/waagent.conf` appropriately:
212
212
213
213
```config
214
214
ResourceDisk.Format=y
@@ -218,7 +218,7 @@ This article assumes that you already installed a CentOS (or similar derivative)
218
218
ResourceDisk.SwapSizeMB=2048 ## NOTE: set this to whatever you need it to be.
219
219
```
220
220
221
-
1. To deprovision the VM and prepare it for provisioning on Azure, run the following commands:
221
+
1. Deprovision the VM and prepare it for provisioning on Azure:
222
222
223
223
```bash
224
224
sudo waagent -force -deprovision+user
@@ -325,7 +325,7 @@ Preparing a CentOS 7 VM for Azure is similar to CentOS 6. Several significant di
325
325
> [!NOTE]
326
326
> The rest of this article assumes that you're using at least the `[openlogic]` repo, which is used to install the Azure Linux agent.
327
327
328
-
1. Run the following command to clear the current yum metadata and install any updates:
328
+
1. Clear the current yum metadata and install any updates:
329
329
330
330
```bash
331
331
sudo yum clean all
@@ -351,9 +351,9 @@ Preparing a CentOS 7 VM for Azure is similar to CentOS 6. Several significant di
351
351
rhgb quiet crashkernel=auto
352
352
```
353
353
354
-
Graphical and quiet boot isn't useful in a cloud environment where you want all the logs to be sent to the serial port. The `crashkernel` option can be left configured if you want. But this parameter reduces the amount of available memory in the VM by 128 MB or more, which might be a problem for smaller VM sizes.
354
+
Graphical and quiet boot aren't useful in a cloud environment where you want all the logs to be sent to the serial port. The `crashkernel` option can be left configured if you want. But this parameter reduces the amount of available memory in the VM by 128 MB or more, which might be a problem for smaller VM sizes.
355
355
356
-
1. After you're finished editing `/etc/default/grub`, run the following command to rebuild the grub configuration:
356
+
1. After you're finished editing `/etc/default/grub`, rebuild the grub configuration:
357
357
358
358
```bash
359
359
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
@@ -385,13 +385,13 @@ Preparing a CentOS 7 VM for Azure is similar to CentOS 6. Several significant di
385
385
sudo systemctl enable waagent
386
386
```
387
387
388
-
1. Install cloud-init to handle the provisioning:
388
+
1. Install `cloud-init` to handle the provisioning:
sudo sed -i 's/Provisioning.Agent=auto/Provisioning.Agent=auto/g' /etc/waagent.conf
@@ -436,7 +436,7 @@ Preparing a CentOS 7 VM for Azure is similar to CentOS 6. Several significant di
436
436
437
437
1. Don't create swap space on the OS disk.
438
438
439
-
Previously, the Azure Linux agent was used to automatically configure swap space by using the local resource disk that's attached to the VM after the VM is provisioned on Azure. However, cloud-init now handles this step. You *must not* use the Linux agent to format the resource disk to create the swap file. Modify the following parameters in`/etc/waagent.conf` appropriately:
439
+
Previously, the Azure Linux agent was used to automatically configure swap space by using the local resource disk that's attached to the VM after the VM is provisioned on Azure. However, `cloud-init` now handles this step. You *must not* use the Linux agent to format the resource disk to create the swap file. Modify the following parameters in`/etc/waagent.conf` appropriately:
440
440
441
441
```bash
442
442
sudo sed -i 's/ResourceDisk.Format=y/ResourceDisk.Format=n/g' /etc/waagent.conf
@@ -445,8 +445,8 @@ Preparing a CentOS 7 VM for Azure is similar to CentOS 6. Several significant di
445
445
446
446
1. If you want to mount, format, and create the swap file, you can either:
447
447
448
-
* Pass this commandin as a cloud-init config every time you create a VM.
449
-
* Use a cloud-init directive baked into the image to do this step every time the VM is created:
448
+
* Pass this commandin as a `cloud-init` configuration every time you create a VM.
449
+
* Use a `cloud-init` directive baked into the image to do this step every time the VM is created:
Copy file name to clipboardExpand all lines: articles/virtual-machines/linux/debian-create-upload-vhd.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,14 +17,14 @@ ms.reviewer: mattmcinnes
17
17
18
18
## Prerequisites
19
19
20
-
This section assumes that you already installed a Debian Linux operating system from an .iso file downloaded from the [Debian website](https://www.debian.org/distrib/) to a virtual hard disk (VHD). Multiple tools exist to create .vhd files. Hyper-V is only one example. For instructions on using Hyper-V, see [Install the Hyper-V role and configure a virtual machine (VM)](/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/hh846766(v=ws.11)).
20
+
This section assumes that you've already installed a Debian Linux operating system from an .iso file downloaded from the [Debian website](https://www.debian.org/distrib/) to a virtual hard disk (VHD). Multiple tools exist to create .vhd files. Hyper-V is only one example. For instructions on using Hyper-V, see [Install the Hyper-V role and configure a virtual machine (VM)](/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/hh846766(v=ws.11)).
21
21
22
22
## Installation notes
23
23
24
24
* For more tips on preparing Linux for Azure, see [General Linux installation notes](create-upload-generic.md#general-linux-installation-notes).
25
25
* The newer VHDX format isn't supported in Azure. You can convert the disk to VHD format by using Hyper-V Manager or the `convert-vhd` cmdlet.
26
-
* When you install the Linux system, we recommend that you use standard partitions rather than Logical Volume Manager (LVM), which is often the default for many installations. Using partitions avoids 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 also be used on data disks.
27
-
* Don't configure a swap partition on the OS disk. The Azure Linux agent can be configured to create a swap file on the temporary resource disk. More information can be found in the following steps.
26
+
* When you install the Linux system, we recommend that you use standard partitions rather than Logical Volume Manager (LVM), which is often the default for many installations. Using partitions avoids 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)can also be used on data disks.
27
+
* Don't configure a swap partition on the OS disk. The Azure Linux agent can be configured to create a swap file on the temporary resource disk. More information is available in the following steps.
28
28
* All VHDs on Azure must have a virtual size aligned to 1 MB. When you convert from a raw disk to VHD, you must ensure that the raw disk size is a multiple of 1 MB before conversion. For more information, see [Linux installation notes](create-upload-generic.md#general-linux-installation-notes).
29
29
30
30
## Prepare a Debian image for Azure
@@ -65,7 +65,7 @@ $ make image_[release]_azure_amd64
65
65
66
66
This command outputs a handful of files in the current directory, most notably the `image_[release]_azure_amd64.raw` image file.
67
67
68
-
To convert the raw image to VHD for Azure, use the following commands:
0 commit comments