Performing a CentOS 6 Network Installation

From Techotopia
Revision as of 20:10, 27 October 2016 by Neil (Talk | contribs) (Text replacement - "<table border="0" cellspacing="0"> " to "<table border="0" cellspacing="0" width="100%">")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
PreviousTable of ContentsNext
Installing CentOS 6 on a Clean Disk DriveInstalling CentOS 6 with Windows in Dual Boot Environment

Purchase and download the full PDF, ePub & Kindle versions of this CentOS 6 eBook for only $9.99
Kindle/ePub/PDF edition contains 39 chapters and over 240 pages.

In addition to installing directly from the physical CentOS 6 installation media (in the form of a DVD) it is also possible to perform a network based CentOS installation whereby the installation image is installed on a remote server and downloaded in packages to the destination computer system during installation. CentOS 6 currently supports network installation via HTTP, FTP and NFS. For the purposes of this tutorial we will focus on the use of HTTP (in other words the installation image is available via a web server on a remote host) though the concepts are largely the same for the other network installation options.


CentOS 6 Network Installation Requirements

Before a network installation of CentOS 6 can be performed a number of items are required. Firstly, the CentOS 6 installation image must be loaded onto the remote server and mounted. If the installation media is in the form of DVD then the image can be read from that media into a disk based ISO image file using the dd command as follows:

dd if=/dev/media of=/path/to/iso/file/rhel6-image.iso

Note that in the above example, /dev/media would be replaced by the path to the DVD device and /path/to/iso/file/ represents the path to a suitable location on the file system to create the image file. Also keep in mind that the installation media may comprise multiple disk images, each of which may need to be imported into the server.

Having created the ISO image file from the installation media, it now needs to be mounted in a location that is accessible to the web server, ftp server or NFS mount point so that it is accessible to the target system. This is achieved using the mount loopback interface:

mount -o loop rhel6_image.iso /path/to/mount/point

In this case, /path/to/mount/point is replaced by the full path to the location where the RHEL 6 installation image is to be mounted such that it can be accessed via the chosen network installation method. For example, in the case of an HTTP based installation, the chosen mount point might be /var/www/html/rhel6. Note that the specified mount point directory must already exist before executing this command.

Obtaining a Network Boot Image

Once the remote server is configured with a copy of the RHEL 6 installation image, the next step is to plan how the installation process will be initiated on the target system. Clearly we will still need to be able to boot from something locally to start the installation. The best option is to download the Network Install image from a CentOS mirror server at:

The file name containing this image is usually adopts the following format:


For example, the 32-bit installation image for CentOS 6.2 is named CentOS-6.2-i386-netinstall.iso.

This image is approximately 170 Mb in size and may be burned to a CDROM, DVD or USB flash drive.

Writing the Boot Image to a USB Flash Drive

Once the network installation ISO image has been downloaded from the CentOS web site, it may optionally be burned onto a USB flash drive and then used to boot the system on which the network installation is to be performed. This task is best performed on another Linux system using the dd command to directly write the ISO image to the flash drive.

Begin by inserting the USB flash drive into an appropriate port on the Linux system and wait for the system to detect the device and mount it. Identify the device name assigned to the drive using the mount command in a terminal window and then unmount the media. Assuming, for the sake of an example, that the mount command indicated the USB drive was assigned to device file /dev/sdb, the following command would be used to write the ISO image to the drive:

dd if=/path/to/iso/image of=/dev/sdb

Once the image has been written to the drive, take it to the target system, modify the BIOS boot settings to ensure that the system will boot from a USB device prior to any other storage devices and reboot the system.

Configuring the Network Installation

When the network installer image has booted press the Esc key on the boot menu screen, enter the following command at the boot: prompt and press the enter key:

linux askmethod

A sequence of screens will subsequently appear providing the opportunity to select a language and keyboard type. Once these settings have been defined, a screen will appear requesting the location of the installation media:

CentOS 6 imnstallation method screen

Depending on the method by which the installation images are being served by the remote system select either NFS Directory or, in the case of an FTP or HTTP based server, URL. For the purposes of this tutorial we will be assuming the use of HTTP.

Once the installation method has been selected, click OK to proceed to the TCP/IP configuration screen. If the computer has multiple network adaptors, select the one to be used during the installation. On the next screen, configure the required IPv4 and IPv6 settings for the network to which the computer is attached:

CentOS 6 network installation network settings

The next item of information that the installer needs is the URL of server containing the installation images and the path to the directory where the first installation image media was mounted. Enter this information either as a hostname or IP address before clicking OK to proceed:

CentOS 6 network installation URL settings

In the above figure, the installation media is identified via an HTTP URL to the location on the remote web server where the installation image is located. Proxy and user and password information may also be specified if required for access to the server.

Starting the CentOS 6 Network Installation

Once the network configuration settings are complete, select the OK button to begin the installation process. The network installation process will now connect to the remote server and download the first installation image file (this is typically /install.img):

A CentOS 6 network based installation in progress

The duration of this download will vary subject to the speed of the connection between the local system and the remote server hosting the installation image. Once the image has downloaded the installation will proceed as outlined in the previous chapter, with the inevitable exception that it may proceed more slowly than a comparable installation from a local media unless the remote server and client are connected via a high speed network connection such as that provided by a fiber channel.


PreviousTable of ContentsNext
Installing CentOS 6 on a Clean Disk DriveInstalling CentOS 6 with Windows in a Dual Boot Environment