Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

This is the case. I want to install the Redhat 5.6 on my system. But this time i dont want to use the actual DVD but this time i want to install it using the iso image stored on one of our server HDD.

How can I do that.

share|improve this question
add comment

3 Answers

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.

EDIT :: My simpler kickstart method using FTP server instaed 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.

share|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
add comment

You need PXE installation for it.

share|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
add comment

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.

share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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