Skip to content

Commit 930527a

Browse files
committed
edit pass: linux-article-batch1
1 parent b06d443 commit 930527a

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

articles/virtual-machines/linux/create-upload-centos.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ Learn to create and upload an Azure virtual hard disk (VHD) that contains a Cent
2626

2727
## Prerequisites
2828

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)).
3030

3131
### CentOS installation notes
3232

3333
* For more tips on preparing Linux for Azure, see [General Linux installation notes](create-upload-generic.md#general-linux-installation-notes).
3434
* 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.
3535
* 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.
3838
* 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).
3939
* Don't configure a swap partition on the OS disk.
4040
* 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)
5151

5252
1. Select **Connect** to open a console window for the VM.
5353

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:
5555

5656
```bash
5757
sudo rpm -e --nodeps NetworkManager
@@ -83,7 +83,7 @@ This article assumes that you already installed a CentOS (or similar derivative)
8383
sudo rm -f /etc/udev/rules.d/70-persistent-net.rules
8484
```
8585

86-
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:
8787

8888
```bash
8989
sudo chkconfig network on
@@ -149,7 +149,7 @@ This article assumes that you already installed a CentOS (or similar derivative)
149149
http_caching=packages
150150
```
151151
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:
153153
154154
```bash
155155
sudo yum clean all
@@ -161,7 +161,7 @@ This article assumes that you already installed a CentOS (or similar derivative)
161161
sudo yum -y update
162162
```
163163

164-
A reboot might be required after running this command.
164+
A reboot might be required after you run this command.
165165

166166
1. Optional: Install the drivers for the Linux Integration Services (LIS).
167167

@@ -199,7 +199,7 @@ This article assumes that you already installed a CentOS (or similar derivative)
199199
rhgb quiet crashkernel=auto
200200
```
201201
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.
203203

204204
> [!IMPORTANT]
205205
> 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)
208208

209209
1. Don't create swap space on the OS disk.
210210
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:
212212

213213
```config
214214
ResourceDisk.Format=y
@@ -218,7 +218,7 @@ This article assumes that you already installed a CentOS (or similar derivative)
218218
ResourceDisk.SwapSizeMB=2048 ## NOTE: set this to whatever you need it to be.
219219
```
220220

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:
222222

223223
```bash
224224
sudo waagent -force -deprovision+user
@@ -325,7 +325,7 @@ Preparing a CentOS 7 VM for Azure is similar to CentOS 6. Several significant di
325325
> [!NOTE]
326326
> The rest of this article assumes that you're using at least the `[openlogic]` repo, which is used to install the Azure Linux agent.
327327
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:
329329
330330
```bash
331331
sudo yum clean all
@@ -351,9 +351,9 @@ Preparing a CentOS 7 VM for Azure is similar to CentOS 6. Several significant di
351351
rhgb quiet crashkernel=auto
352352
```
353353

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.
355355
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:
357357

358358
```bash
359359
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
385385
sudo systemctl enable waagent
386386
```
387387

388-
1. Install cloud-init to handle the provisioning:
388+
1. Install `cloud-init` to handle the provisioning:
389389

390390
```bash
391391
sudo yum install -y cloud-init cloud-utils-growpart gdisk hyperv-daemons
392392
```
393393

394-
1. Configure `waagent` for cloud-init:
394+
1. Configure `waagent` for `cloud-init`:
395395

396396
```bash
397397
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
436436
437437
1. Don't create swap space on the OS disk.
438438
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:
440440
441441
```bash
442442
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
445445
446446
1. If you want to mount, format, and create the swap file, you can either:
447447
448-
* Pass this command in 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 command in 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:
450450
451451
```bash
452452
sudo echo 'DefaultEnvironment="CLOUD_CFG=/etc/cloud/cloud.cfg.d/00-azure-swap.cfg"' >> /etc/systemd/system.conf

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ ms.reviewer: mattmcinnes
1717

1818
## Prerequisites
1919

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)).
2121

2222
## Installation notes
2323

2424
* For more tips on preparing Linux for Azure, see [General Linux installation notes](create-upload-generic.md#general-linux-installation-notes).
2525
* 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.
2828
* 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).
2929

3030
## Prepare a Debian image for Azure
@@ -65,7 +65,7 @@ $ make image_[release]_azure_amd64
6565

6666
This command outputs a handful of files in the current directory, most notably the `image_[release]_azure_amd64.raw` image file.
6767

68-
To convert the raw image to VHD for Azure, use the following commands:
68+
Convert the raw image to VHD for Azure:
6969

7070
```
7171
rawdisk="image_[release]_azure_amd64.raw"

0 commit comments

Comments
 (0)