CentOS 6.x Server Installation

This tutorial shows how to install a basic CentOS 6.x server.
2014-11-28 UPDATE

I wrote a new tutorial for CentOS 7, you can find it here:

http://danilodellaquila.com/en/blog/centos-7-server-installation-with-raid

2014-01-21 UPDATE
Originally I wrote this HowTo for CentOS version 6.3, but I tested also on newer versions and it still valid up to the current major version which is 6.5.

1. Requirements

To install a CentOS server you will need the following:

For a basic installation you only need to download DVD 1 image file named CentOS-6.5-x86_64-bin-DVD1.iso.

There are also images for a minimal installation, network installation and a Live CD/DVD version.

2. Preliminary Note

Before to start I just want to warn you that this is a practical guide without any warranty, it was written with the purpose to help system administrators, so I won't explain technical details neither the theory behind of them.

For the purpose of this tutorial I created a Virtual Machine with VirtualBox, this means that your hardware it might differs significantly, including the hard disk drives and the network cards.

In this tutorial I will use the hostname server.example.com with the IP address 192.168.0.100 and the gateway 192.168.0.1, also these settings might differ for you, so you have to replace them where appropriate.

3. Install the Operating System

Boot from the first CentOS 6.5 DVD 1 and select Install or upgrade an existing system

Image01

I usually skip the installation media test, if it’s broken it’ll let me know anyway.

Image02

When the welcome screen of the CentOS installer appears, just click on Next

Image03

Choose your language.

Image04

Select your keyboard layout.

Image05

With this virtual machine I selected Basic Storage Devices, if you are using SANs then select Specialized Storage Devices here.

Image06

Let's do a fresh installation.

Image07

Enter the hostname of the server, then click on the Configure Network button to assign a static IP address.

Image08

In the Wired tab, select the network interface and click on Edit.

Image09

Mark the Connect automatically checkbox.

In the IPv4 Settings tab select Manual in the Method drop-down menu.

Then click on the Add button next to the Addresses area to set a static IP address.

Finally insert your DNS servers numbers separated by commas.

When you have finished with the network settings click on Apply, then Close and Next buttons.

Image10

Choose your time zone.

Image11

Enter a password for the root user.

Image12

Now it's time to do the hard drive partitioning.

As this is an empty virtual machine I choose Use All Space for simplicity, but this not a good option if you have some other operating system installed on it, in that case you might want to use Create Custom Layout.

I like to see how the hard drive is partitioned so I checked Review and modify partitioning layou.

Image13

and this is how the installer partitioned the hard drive, as you can see it creates an LVM volume.

Image14

When you're done with the partitioning click on Write changes to disk

Image15

Select where to install the boot loader.

Image16

Now you can choose a set of software to be installed.

In my case I selected Basic Server, actually CentOS and Red Hat's description of software contained in each set is a little bit vague, here a couple of links that may help you to choose the best one for you:

Image17

In the previous screen I also checked Customize now so I could add support for the Spanish language.

Image18

The installation of software packages start and it will takes few minutes.

Image19

When the installation is complete, you can remove your DVD from the computer and reboot it.

Image20

After the reboot, log in to the server as root user.

Image21

That's it! Now you have a basic CentOS 6.5 server installed.

Danilo