I want to install Redhat 5.6 on my system. I don't want to use the actual DVD but I want to install it using the ISO image stored on one of our server's hard disks.

How can I do that?

  • If you find my answer helpful and resolved your issue, Please mark the answer accepted. So that, it will come at top of other answers and will helpful to others who refer this question. – TPS Jul 3 '15 at 6:16

Here is the full procedure to setup your PXE server in RHEL 6 and it is working great for me. Also please refer to Red Hat official document before you start.

My simpler kickstart method using FTP server instead of HTTP service for installing RHEL 6:

PART 1 : Make ks.cfg file for kickstart configuration

# yum install system-config-kickstart

Run the kickstart utility as root:
# system-config-kickstart
Open file anconda-ks.cfg from /root and edit in that. My Final file looks like this after editing:
# vim /root/anconda-ks.cfg

#platform=x86, AMD64, or Intel EM64T
# Firewall configuration
firewall --disabled
# Install OS instead of upgrade
# Use network installation
url --url=""
repo --name="Red Hat Enterprise Linux" --baseurl= --cost=100
# Root password
rootpw --plaintext XXXXXX
# Network information
#network  --bootproto=dhcp --device=eth0 --onboot=on
# System authorization information
auth  --passalgo=sha512
# Use text mode install
# Run the Setup Agent on first boot
firstboot --enable
# System keyboard
keyboard us
# System language
lang en_US
# SELinux configuration
selinux --disabled
# Installation logging level
logging --level=info
# Reboot after installation
# System timezone
timezone  Asia/Kolkata
# System bootloader configuration
bootloader --append="crashkernel=auto rhgb quiet" --location=mbr --driveorder="sda"
# Partition clearing information
clearpart --none  


This is basic file, you can modify above file with respect to your own needs, many examples are also available over internet:

PART 2: Install and configure tftp, dhcp, vsftpd

# yum install –y syslinux xinetd tftp-server dhcp vsftpd

a) FTP Server:
# service vsftpd start
# chkconfig vsftpd on

b) DHCP Server:
# vi /etc/dhcp/dhcpd.conf

# Global Options
Allow booting;
Allow bootp;

# Subnet definition
subnet netmask {
# Parameters for the local subnet
option routers     ;
option subnet-mask ;
option domain-name           "cms.wesee.org";
option domain-name-servers;
default-lease-time           21600;
max-lease-time               43200;
# Client IP range
range dynamic-bootp;
filename  "pxelinux.0";

# service dhcpd restart
# chkconfig dhcpd on

c) TFTP server:

# service xinetd start
# chkconfig xinetd on
# vi /etc/xinetd.d/tftp

disable = no

# service xinetd restart

PART 3 : Copy necessary files to respective locations and modify them accordingly:
# cp /root/anaconda-ks.cfg /var/ftp/pub/el6x64/ks.cfg
# cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/
# mkdir /var/lib/tftpboot/rhel6
insert rhel dvd in dvd drive to copy data to respective locations:
# cp -ivr /media/<mount dir>/* /var/ftp/pub/el6x64/
# cp /var/ftp/pub/el6x64/images/pxeboot/vmlinuz /var/lib/tftpboot/rhel6
# cp /var/ftp/pub/el6x64/images/pxeboot/initrd.img /var/lib/tftpboot/rhel6
# cp /usr/share/syslinux/menu.c32 /var/lib/tftpboot/
# mkdir /var/lib/tftpboot/pxelinux.cfg
# vi /var/lib/tftpboot/pxelinux.cfg/default

timeout 100
default menu.c32

menu title $$$$$$Boot Menu$$$$$$
label 1
  menu label ^ 1) RHEL6
  kernel rhel6/vmlinuz
  append initrd=rhel6/initrd.img  ks= ksdevice=eth0

Now your server is ready.

| improve this answer | |
  • Oh man great life can't get easier than this I will implement this soon and will give you feedback – OmiPenguin Apr 20 '13 at 7:39

You need PXE installation for it.

| improve this answer | |
  • Ya I know we can do that by using PXE boot. But how. Because the iso image will be one main system on a network. But how to boot it from a system on which I have to install RHEL. – OmiPenguin Jan 17 '13 at 8:18

This is not possible in general: you will need to boot the installer, so you will need to load a bootloader. Either from CD/DVD or using PXE.

That said, most server hardware supports IPMI or related technology (such as HP iLO4), that will make the IPMI card mount the iso image as a virtual DVD drive even before booting, which would make this possible.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.