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
+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
@@ -55,14 +55,14 @@ This article assumes that you've already installed a CentOS (or similar derivati
55
55
56
56
4. Create or edit the file `/etc/sysconfig/network` and add the following text:
57
57
58
-
```output
58
+
```config
59
59
NETWORKING=yes
60
60
HOSTNAME=localhost.localdomain
61
61
```
62
62
63
63
5. Create or edit the file `/etc/sysconfig/network-scripts/ifcfg-eth0` and add the following text:
64
64
65
-
```output
65
+
```config
66
66
DEVICE=eth0
67
67
ONBOOT=yes
68
68
BOOTPROTO=dhcp
@@ -87,7 +87,7 @@ This article assumes that you've already installed a CentOS (or similar derivati
87
87
88
88
8. If you would like to use the OpenLogic mirrors that are hosted within the Azure datacenters, then replace the `/etc/yum.repos.d/CentOS-Base.repo` file with the following repositories. This will also add the **[openlogic]** repository that includes extra packages such as the Azure Linux agent:
@@ -141,7 +141,7 @@ This article assumes that you've already installed a CentOS (or similar derivati
141
141
142
142
9. Add the following line to /etc/yum.conf:
143
143
144
-
```output
144
+
```config
145
145
http_caching=packages
146
146
```
147
147
@@ -184,15 +184,15 @@ This article assumes that you've already installed a CentOS (or similar derivati
184
184
185
185
13. Modify the kernel boot line in your grub configuration to include additional kernel parameters forAzure. To do this, open `/boot/grub/menu.lst`in a text editor and ensure that the default kernel includes the following parameters:
186
186
187
-
```output
187
+
```config
188
188
console=ttyS0 earlyprintk=ttyS0 rootdelay=300
189
189
```
190
190
191
191
This will also ensure all console messages are sent to the first serial port, which can assist Azure support with debugging issues.
192
192
193
193
In addition to the above, it's recommended to *remove* the following parameters:
194
194
195
-
```output
195
+
```config
196
196
rhgb quiet crashkernel=auto
197
197
```
198
198
@@ -207,7 +207,7 @@ This article assumes that you've already installed a CentOS (or similar derivati
207
207
208
208
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:
209
209
210
-
```output
210
+
```config
211
211
ResourceDisk.Format=y
212
212
ResourceDisk.Filesystem=ext4
213
213
ResourceDisk.MountPoint=/mnt/resource
@@ -252,14 +252,14 @@ Preparing a CentOS 7 virtual machine for Azure is similar to CentOS 6, however t
252
252
253
253
3. Create or edit the file `/etc/sysconfig/network` and add the following text:
254
254
255
-
```output
255
+
```config
256
256
NETWORKING=yes
257
257
HOSTNAME=localhost.localdomain
258
258
```
259
259
260
260
4. Create or edit the file `/etc/sysconfig/network-scripts/ifcfg-eth0` and add the following text:
261
261
262
-
```output
262
+
```config
263
263
DEVICE=eth0
264
264
ONBOOT=yes
265
265
BOOTPROTO=dhcp
@@ -278,7 +278,7 @@ Preparing a CentOS 7 virtual machine for Azure is similar to CentOS 6, however t
278
278
279
279
6. If you would like to use the OpenLogic mirrors that are hosted within the Azure datacenters, then replace the `/etc/yum.repos.d/CentOS-Base.repo` file with the following repositories. This will also add the **[openlogic]** repository that includes packages for the Azure Linux agent:
280
280
281
-
```output
281
+
```confg
282
282
[openlogic]
283
283
name=CentOS-$releasever - openlogic packages for $basearch
@@ -337,13 +337,13 @@ Preparing a CentOS 7 virtual machine for Azure is similar to CentOS 6, however t
337
337
338
338
8. Modify the kernel boot line in your grub configuration to include additional kernel parameters forAzure. To do this, open `/etc/default/grub`in a text editor and edit the `GRUB_CMDLINE_LINUX` parameter, for example:
This will also ensure all console messages are sent to the first serial port, which can assist Azure support with debugging issues. It also turns off the new CentOS 7 naming conventions for NICs. In addition to the above, it's recommended to *remove* the following parameters:
345
345
346
-
```output
346
+
```config
347
347
rhgb quiet crashkernel=auto
348
348
```
349
349
@@ -365,7 +365,7 @@ Preparing a CentOS 7 virtual machine for Azure is similar to CentOS 6, however t
0 commit comments