SlideShare a Scribd company logo
1 of 8
1. Setting up a PXE kickstart server
Submitted by itchyadmin on Tue, 09/08/2009 - 10:28

Version
CentOS 5.3

Configure the tftp server
First make sure that tftp-server rpm is installed, if not then install it

# rpm -qa | grep tftp-server
# yum install tftp-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.answerstolove.com
 * updates: mirror.answerstolove.com
 * addons: mirror.answerstolove.com
 * extras: mirror.answerstolove.com
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package tftp-server.x86_64 0:0.42-3.1.el5.centos set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
=============================================================================
===
  Package                              Arch
Version                                          Repository
Size
=============================================================================
=============================================================================
===
Installing:
  tftp-server                          x86_64                           0.42-
3.1.el5.centos                              base                           29
k

Transaction Summary
=============================================================================
=============================================================================
===
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 29 k
Is this ok [y/N]: y
Downloading Packages:
tftp-server-0.42-3.1.el5.centos.x86_64.rpm
| 29 kB      00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : tftp-server                                                              [1/1]

Installed: tftp-server.x86_64 0:0.42-3.1.el5.centos
Complete!


Download and unpack the latest Syslinux bundle
The files that come with CentOS / Redhat may be quite out of date, so best to get the latest
version available. In this example we use version 3.82.

Get the files from : http://syslinux.zytor.com/wiki/index.php/The_Syslinux_Project

Now unpack them, in this example we unpack them to /tmp/syslinux/syslinux-3.82.

# cd /tmp/syslinux
# gunzip -c syslinux-3.82.tar.gz | tar xf -


Setup the tftboot directory structure
The below assumes that the CD image of disk1 of the isntall disks is mounted at
/kickstart/inst/CentOS5,3/disk1

# cd /tftpboot/
# mkdir linux-install
# mkdir linux-install/pxelinux.cfg
# mkdir linux-install/CentOS_5.3_x86_64
# cp /tmp/syslinux/syslinux-3.82/core/pxelinux.0 linux-install
# cp /tmp/syslinux/syslinux-3.82/com32/menu/menu.c32 linux-install
# cp /kickstart/inst/CentOS5.3/disk1/images/pxeboot/initrd.img linux-
install/CentOS_5.3_x86_64
# cp /kickstart/inst/CentOS5.3/disk1/images/pxeboot/vmlinuz linux-
install/CentOS_5.3_x86_64


Create / copy in a menu file into pxelinux.cfg
This is basically like grub.conf. A sample default file is below. The default file will be used if
no other files are found which are more specific to the host. This will bring up a menu allowing
different install options. In this case it just has 2 options, either to boot locally (also the default
to stop us overwriting any existing systems by accident!) and an option to install CentOS.
# cd /tftpboot/linux-install/pxelinux.cfg/
# vi default
DEFAULT menu.c32
PROMPT 0
ONTIMEOUT local
TIMEOUT 100

MENU TITLE ItchyThinking PXE Menu

LABEL local
        MENU LABEL Boot from local disk
        LOCALBOOT 0

LABEL CentOS 5.3 x86_64
        MENU LABEL Install CentOS 5.3 x86_64
        KERNEL CentOS_5.3_x86_64/vmlinuz
        APPEND ks=nfs:192.168.1.201:/kickstart/ks/
initrd=CentOS_5.3_x86_64/initrd.img ramdisk_size=100000 ip=dhcp ksdevice=eth0

The ksdevice=eth0 kernel option stops kickstart from prompting for which network device to
install from, thus keeping the install completely hands-free.

Enable tftp
Modify /etc/xinetd.d/tftp and make sure disable is set to 'no'

disable = no

then start the service

# service xinetd restart
Stopping xinetd:                                                           [   OK   ]
Starting xinetd:                                                           [   OK   ]
# chkconfig --list tftp
tftp             on


Make sure dhcp is installed
# rpm -qa | grep dhcp
dhcpv6-client-1.0.10-16.el5
# yum install dhcp.x86_64
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
...


Configure the dhcp server
Add the following to your /etc/dhcpd.conf. In this example 192.168.1.201 is the IP of the PXE
server (which is also the dhcp server in this case). Also, we are specifying the IP for each host
that we build.
#
# DHCP Server Configuration file.
#   see /usr/share/doc/dhcp*/dhcpd.conf.sample
#
ddns-update-style interim;
ignore client-updates;

subnet 192.168.1.0 netmask 255.255.255.0 {
        allow booting;
        allow bootp;

          option routers                           192.168.1.254;
          option subnet-mask                       255.255.255.0;

          option domain-name                       "itchythinking.com";
          option domain-name-servers               192.168.1.254;

          default-lease-time 21600;
          max-lease-time 43200;
          next-server 192.168.1.201;
          filename "/linux-install/pxelinux.0";

          host vmlinux3 {
                  hardware ethernet 00:0c:29:32:aa:aa;
                  fixed-address 192.168.1.203;
          }
}


Start the dhcp server
# chkconfig --list dhcpd
dhcpd            0:off   1:off          2:off      3:off     4:off     5:off      6:off
# service dhcpd status
dhcpd is stopped
# chkconfig dhcpd on
# chkconfig --list dhcpd
dhcpd            0:off   1:off          2:on       3:on      4:on      5:on       6:off
# service dhcpd start
Starting dhcpd:                                                            [OK]


Create a Kickstart Area
Create a kickstart area, probably a large separate filesystem, where all the RedHat/CentOS ISO
images will reside. Hence it needs to be quite large. This filesystem will also hold the kickstart
files.

Lets assume we are going to put the files under a filesystem called /kickstart which is already
mounted, but empty.

# cd /kickstart
# mkdir ks
# mkdir isos
# mkdir isos/CentOS_5.3
# mkdir isos/CentOS_5.3/x86_64

Now copy in the iso files for the distributions of RedHat / CentOS you want to install.

#   cp   /tmp/CentOS-5.3-x86_64-bin-1of7.iso         /kickstart/isos/CentOS_5.3/x86_64
#   cp   /tmp/CentOS-5.3-x86_64-bin-2of7.iso         /kickstart/isos/CentOS_5.3/x86_64
#   cp   /tmp/CentOS-5.3-x86_64-bin-3of7.iso         /kickstart/isos/CentOS_5.3/x86_64
#   cp   /tmp/CentOS-5.3-x86_64-bin-4of7.iso         /kickstart/isos/CentOS_5.3/x86_64
#   cp   /tmp/CentOS-5.3-x86_64-bin-5of7.iso         /kickstart/isos/CentOS_5.3/x86_64
#   cp   /tmp/CentOS-5.3-x86_64-bin-6of7.iso         /kickstart/isos/CentOS_5.3/x86_64
#   cp   /tmp/CentOS-5.3-x86_64-bin-7of7.iso         /kickstart/isos/CentOS_5.3/x86_64


Share the /kickstart are using nfs
In this case we set up a simple (if insecure) nfs share

# vi /etc/exports
/kickstart *(ro,sync)

Now start (or restart) the nfs server

# service nfs restart
Shutting down NFS mountd:                                                 [   OK   ]
Shutting down NFS daemon:                                                 [   OK   ]
Shutting down NFS quotas:                                                 [   OK   ]
Shutting down NFS services:                                               [   OK   ]
Starting NFS services:                                                    [   OK   ]
Starting NFS quotas:                                                      [   OK   ]
Starting NFS daemon:                                                      [   OK   ]
Starting NFS mountd:                                                      [   OK   ]


Setup Clients
You are now ready to setup and install the clients. Follow the instructions here

Here is an example kickstart file


4. Adding a Kickstart Client
Submitted by itchyadmin on Wed, 10/07/2009 - 13:56

Once kickstart is setup do the following to add a new client

Update dhcp config and restart
Assuming that the server will be assigned a particular IP address, add this to the DHCP config
# vi /etc/dhcpd.conf
          host vmlinux2 {
                  hardware ethernet 00:0c:29:aa:66:9f;
                  fixed-address 192.168.1.202;
          }

Restart the dhcp server

# service dhcpd restart
Shutting down dhcpd:                                                        [   OK   ]
Starting dhcpd:                                                             [   OK   ]


Create a kickstart file for the server
In this example we will just copy an existing kickstart file and copy the host specific entries

# cd /kickstart/ks
# cp 192.168.1.203-kickstart 192.168.1.202-kickstart
# vi 192.168.1.202-kickstart

Modify necessary entries. In this case we modify the following lines

network --device eth0 --bootproto static --ip 192.168.1.202 --netmask
255.255.255.0 --gateway 192.168.1.254 --nameserver 192.168.1.254 --hostname
vmlinux2


Boot the client over the network
Simply boot the client over the network. How you do this will depend on the hardware. All
being well the server will now build after selecting the appropriate entry from the servers
console.


Example /etc/dhcpd.conf file
Submitted by itchyadmin on Tue, 09/08/2009 - 21:39

Version
CentOS 5.3

Example of /etc/dhcpd.conf
#
# DHCP Server Configuration file.
#   see /usr/share/doc/dhcp*/dhcpd.conf.sample
#
ddns-update-style interim;
ignore client-updates;

subnet 192.168.1.0 netmask 255.255.255.0 {
        allow booting;
        allow bootp;

         option routers                       192.168.1.254;
         option subnet-mask                   255.255.255.0;

         option domain-name                   "itchythinking.com";
         option domain-name-servers           192.168.1.254;

         default-lease-time 21600;
         max-lease-time 43200;
         next-server 192.168.1.201;
         filename "/linux-install/pxelinux.0";

         host vmlinux3 {
                 hardware ethernet 00:0c:29:32:aa:aa;
                 fixed-address 192.168.1.203;
         }
}


Example Kickstart File
Submitted by itchyadmin on Tue, 09/08/2009 - 21:32

Version
CentOS 5.3

Here is a sample kickstart file
install
text
nfs --server=192.168.1.201 --dir=/kickstart/isos/CentOS_5.3/x86_64
lang en_GB.UTF-8
keyboard uk
network --device eth0 --bootproto static --ip 192.168.1.203 --netmask
255.255.255.0 --gateway 192.168.1.254 --nameserver 192.168.1.254 --hostname
vmlinux3
rootpw --iscrypted $1$JRTd3bsM$ZGGiiFlUfGio3aJpJNMJu0
firewall --disabled
authconfig --enableshadow --enablemd5
selinux --disabled
timezone --utc Europe/London
bootloader --location=mbr --driveorder=sda --append="rhgb quiet"
clearpart --all --drives=sda --initlabel
part /boot --fstype ext3 --size=100 --ondisk=sda
part pv.3 --size=0 --grow --ondisk=sda
volgroup VolGroup00 --pesize=32768 pv.3
logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=512 --
grow --maxsize=1024
logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow

%packages
@office
@editors
@text-internet
@legacy-network-server
@dns-server
@gnome-desktop
@dialup
@core
@base
@ftp-server
@network-server
@games
@base-x
@graphics
@web-server
@smb-server
@printing
@mail-server
@server-cfg
@sound-and-video
@admin-tools
@news-server
@graphical-internet
kexec-tools
device-mapper-multipath
vnc-server
xorg-x11-server-Xnest
libsane-hpaio

More Related Content

What's hot

Domino9on centos6
Domino9on centos6Domino9on centos6
Domino9on centos6a8us
 
Lamp Server With Drupal Installation
Lamp Server With Drupal InstallationLamp Server With Drupal Installation
Lamp Server With Drupal Installationfranbow
 
Configuration of NTP Server on CentOS 8
Configuration of NTP Server on CentOS 8Configuration of NTP Server on CentOS 8
Configuration of NTP Server on CentOS 8Kaan Aslandağ
 
Document Management: Opendocman and LAMP installation on Cent OS
Document Management: Opendocman and LAMP installation on Cent OSDocument Management: Opendocman and LAMP installation on Cent OS
Document Management: Opendocman and LAMP installation on Cent OSSiddharth Ram Dinesh
 
[MathWorks] Versioning Infrastructure
[MathWorks] Versioning Infrastructure[MathWorks] Versioning Infrastructure
[MathWorks] Versioning InfrastructurePerforce
 
3. configuring a compute node for nfv
3. configuring a compute node for nfv3. configuring a compute node for nfv
3. configuring a compute node for nfvvideos
 
Free ipa installation and cluster configuration, freeipa client connection
Free ipa installation and cluster configuration, freeipa client connectionFree ipa installation and cluster configuration, freeipa client connection
Free ipa installation and cluster configuration, freeipa client connectionRustam Sariyev
 
Tested install-isp config3-ubuntu-16-04
Tested install-isp config3-ubuntu-16-04Tested install-isp config3-ubuntu-16-04
Tested install-isp config3-ubuntu-16-04SANTIAGO HERNÁNDEZ
 
Install and Configure Ubuntu for Hadoop Installation for beginners
Install and Configure Ubuntu for Hadoop Installation for beginners Install and Configure Ubuntu for Hadoop Installation for beginners
Install and Configure Ubuntu for Hadoop Installation for beginners Shilpa Hemaraj
 
[오픈소스컨설팅] 프로메테우스 모니터링 살펴보고 구성하기
[오픈소스컨설팅] 프로메테우스 모니터링 살펴보고 구성하기[오픈소스컨설팅] 프로메테우스 모니터링 살펴보고 구성하기
[오픈소스컨설팅] 프로메테우스 모니터링 살펴보고 구성하기Ji-Woong Choi
 
4. open mano set up and usage
4. open mano set up and usage4. open mano set up and usage
4. open mano set up and usagevideos
 
CentOS Server Gui Initial Configuration
CentOS Server Gui Initial ConfigurationCentOS Server Gui Initial Configuration
CentOS Server Gui Initial ConfigurationKaan Aslandağ
 
Nuxeo5 - Continuous Integration
Nuxeo5 - Continuous IntegrationNuxeo5 - Continuous Integration
Nuxeo5 - Continuous IntegrationPASCAL Jean Marie
 
101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package management101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package managementAcácio Oliveira
 

What's hot (20)

Domino9on centos6
Domino9on centos6Domino9on centos6
Domino9on centos6
 
Lamp Server With Drupal Installation
Lamp Server With Drupal InstallationLamp Server With Drupal Installation
Lamp Server With Drupal Installation
 
RPM (LINUX)
RPM (LINUX)RPM (LINUX)
RPM (LINUX)
 
Configuration of NTP Server on CentOS 8
Configuration of NTP Server on CentOS 8Configuration of NTP Server on CentOS 8
Configuration of NTP Server on CentOS 8
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
Firewalld LAB
Firewalld LABFirewalld LAB
Firewalld LAB
 
Document Management: Opendocman and LAMP installation on Cent OS
Document Management: Opendocman and LAMP installation on Cent OSDocument Management: Opendocman and LAMP installation on Cent OS
Document Management: Opendocman and LAMP installation on Cent OS
 
Habilitar repositorio EPEL RHEL
Habilitar repositorio EPEL RHELHabilitar repositorio EPEL RHEL
Habilitar repositorio EPEL RHEL
 
[MathWorks] Versioning Infrastructure
[MathWorks] Versioning Infrastructure[MathWorks] Versioning Infrastructure
[MathWorks] Versioning Infrastructure
 
3. configuring a compute node for nfv
3. configuring a compute node for nfv3. configuring a compute node for nfv
3. configuring a compute node for nfv
 
Free ipa installation and cluster configuration, freeipa client connection
Free ipa installation and cluster configuration, freeipa client connectionFree ipa installation and cluster configuration, freeipa client connection
Free ipa installation and cluster configuration, freeipa client connection
 
Tested install-isp config3-ubuntu-16-04
Tested install-isp config3-ubuntu-16-04Tested install-isp config3-ubuntu-16-04
Tested install-isp config3-ubuntu-16-04
 
Install and Configure Ubuntu for Hadoop Installation for beginners
Install and Configure Ubuntu for Hadoop Installation for beginners Install and Configure Ubuntu for Hadoop Installation for beginners
Install and Configure Ubuntu for Hadoop Installation for beginners
 
[오픈소스컨설팅] 프로메테우스 모니터링 살펴보고 구성하기
[오픈소스컨설팅] 프로메테우스 모니터링 살펴보고 구성하기[오픈소스컨설팅] 프로메테우스 모니터링 살펴보고 구성하기
[오픈소스컨설팅] 프로메테우스 모니터링 살펴보고 구성하기
 
4. open mano set up and usage
4. open mano set up and usage4. open mano set up and usage
4. open mano set up and usage
 
Yum (Linux)
Yum (Linux) Yum (Linux)
Yum (Linux)
 
CentOS Server Gui Initial Configuration
CentOS Server Gui Initial ConfigurationCentOS Server Gui Initial Configuration
CentOS Server Gui Initial Configuration
 
Nuxeo5 - Continuous Integration
Nuxeo5 - Continuous IntegrationNuxeo5 - Continuous Integration
Nuxeo5 - Continuous Integration
 
101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package management101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package management
 
Sun raysetup
Sun raysetupSun raysetup
Sun raysetup
 

Viewers also liked

Pxe boot configuration in rhel5
Pxe boot configuration in rhel5Pxe boot configuration in rhel5
Pxe boot configuration in rhel5Kiriti Aryabarta
 
Semantic Web 2014/15 Course - Tools and Applications Evaluation Tasks
Semantic Web 2014/15 Course - Tools and Applications Evaluation TasksSemantic Web 2014/15 Course - Tools and Applications Evaluation Tasks
Semantic Web 2014/15 Course - Tools and Applications Evaluation TasksAnna Fensel
 
Stewart travel management flyer
Stewart travel management flyerStewart travel management flyer
Stewart travel management flyerRonnie Taylor
 
RESIDE: Renewable Energy Services on an Infrastructure for Data Exchange
RESIDE: Renewable Energy Services on an Infrastructure for Data ExchangeRESIDE: Renewable Energy Services on an Infrastructure for Data Exchange
RESIDE: Renewable Energy Services on an Infrastructure for Data ExchangeAnna Fensel
 
ESXi PXE Server-Instructions/Documentation
ESXi PXE Server-Instructions/DocumentationESXi PXE Server-Instructions/Documentation
ESXi PXE Server-Instructions/DocumentationJeremy Dixon
 
Online Grocery
Online GroceryOnline Grocery
Online Grocerysmidek82
 

Viewers also liked (8)

Pxe boot configuration in rhel5
Pxe boot configuration in rhel5Pxe boot configuration in rhel5
Pxe boot configuration in rhel5
 
Semantic Web 2014/15 Course - Tools and Applications Evaluation Tasks
Semantic Web 2014/15 Course - Tools and Applications Evaluation TasksSemantic Web 2014/15 Course - Tools and Applications Evaluation Tasks
Semantic Web 2014/15 Course - Tools and Applications Evaluation Tasks
 
Const-Gardens
Const-GardensConst-Gardens
Const-Gardens
 
Stewart travel management flyer
Stewart travel management flyerStewart travel management flyer
Stewart travel management flyer
 
Howto Pxeboot
Howto PxebootHowto Pxeboot
Howto Pxeboot
 
RESIDE: Renewable Energy Services on an Infrastructure for Data Exchange
RESIDE: Renewable Energy Services on an Infrastructure for Data ExchangeRESIDE: Renewable Energy Services on an Infrastructure for Data Exchange
RESIDE: Renewable Energy Services on an Infrastructure for Data Exchange
 
ESXi PXE Server-Instructions/Documentation
ESXi PXE Server-Instructions/DocumentationESXi PXE Server-Instructions/Documentation
ESXi PXE Server-Instructions/Documentation
 
Online Grocery
Online GroceryOnline Grocery
Online Grocery
 

Similar to Kickstart

Free radius billing server with practical vpn exmaple
Free radius billing server with practical vpn exmapleFree radius billing server with practical vpn exmaple
Free radius billing server with practical vpn exmapleChanaka Lasantha
 
Ftp configuration in rhel7
Ftp configuration in rhel7Ftp configuration in rhel7
Ftp configuration in rhel7Balamurugan M
 
Vagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptopVagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptopLorin Hochstein
 
Install nagios
Install nagiosInstall nagios
Install nagioshassandb
 
Install nagios
Install nagiosInstall nagios
Install nagioshassandb
 
Install nagios
Install nagiosInstall nagios
Install nagioshassandb
 
Linux hpc-cluster-setup-guide
Linux hpc-cluster-setup-guideLinux hpc-cluster-setup-guide
Linux hpc-cluster-setup-guidejasembo
 
Dockerfish-Tutorial
Dockerfish-TutorialDockerfish-Tutorial
Dockerfish-TutorialBrian Hood
 
kubernetes - minikube - getting started
kubernetes - minikube - getting startedkubernetes - minikube - getting started
kubernetes - minikube - getting startedMunish Mehta
 
Installation And Configuration Of DNS, Web And FTP Servers On Virtual Machine...
Installation And Configuration Of DNS, Web And FTP Servers On Virtual Machine...Installation And Configuration Of DNS, Web And FTP Servers On Virtual Machine...
Installation And Configuration Of DNS, Web And FTP Servers On Virtual Machine...JohnWilson47710
 
Membangun web server,_e-mail_server_dan_ftp_server
Membangun web server,_e-mail_server_dan_ftp_serverMembangun web server,_e-mail_server_dan_ftp_server
Membangun web server,_e-mail_server_dan_ftp_serverIwan Kurniarasa
 
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库maclean liu
 
Quick-and-Easy Deployment of a Ceph Storage Cluster with SLES
Quick-and-Easy Deployment of a Ceph Storage Cluster with SLESQuick-and-Easy Deployment of a Ceph Storage Cluster with SLES
Quick-and-Easy Deployment of a Ceph Storage Cluster with SLESJan Kalcic
 
Introduction to Diskless Remote Boot in Linux
Introduction to Diskless Remote Boot in LinuxIntroduction to Diskless Remote Boot in Linux
Introduction to Diskless Remote Boot in LinuxJazz Yao-Tsung Wang
 

Similar to Kickstart (20)

Free radius billing server with practical vpn exmaple
Free radius billing server with practical vpn exmapleFree radius billing server with practical vpn exmaple
Free radius billing server with practical vpn exmaple
 
Dhcp
DhcpDhcp
Dhcp
 
Linux
LinuxLinux
Linux
 
Ftp configuration in rhel7
Ftp configuration in rhel7Ftp configuration in rhel7
Ftp configuration in rhel7
 
Nfs
NfsNfs
Nfs
 
Slim Server Practical
Slim Server PracticalSlim Server Practical
Slim Server Practical
 
Vagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptopVagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptop
 
Install nagios
Install nagiosInstall nagios
Install nagios
 
Install nagios
Install nagiosInstall nagios
Install nagios
 
Install nagios
Install nagiosInstall nagios
Install nagios
 
Squid file
Squid fileSquid file
Squid file
 
Linux hpc-cluster-setup-guide
Linux hpc-cluster-setup-guideLinux hpc-cluster-setup-guide
Linux hpc-cluster-setup-guide
 
Kickstart server
Kickstart serverKickstart server
Kickstart server
 
Dockerfish-Tutorial
Dockerfish-TutorialDockerfish-Tutorial
Dockerfish-Tutorial
 
kubernetes - minikube - getting started
kubernetes - minikube - getting startedkubernetes - minikube - getting started
kubernetes - minikube - getting started
 
Installation And Configuration Of DNS, Web And FTP Servers On Virtual Machine...
Installation And Configuration Of DNS, Web And FTP Servers On Virtual Machine...Installation And Configuration Of DNS, Web And FTP Servers On Virtual Machine...
Installation And Configuration Of DNS, Web And FTP Servers On Virtual Machine...
 
Membangun web server,_e-mail_server_dan_ftp_server
Membangun web server,_e-mail_server_dan_ftp_serverMembangun web server,_e-mail_server_dan_ftp_server
Membangun web server,_e-mail_server_dan_ftp_server
 
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
 
Quick-and-Easy Deployment of a Ceph Storage Cluster with SLES
Quick-and-Easy Deployment of a Ceph Storage Cluster with SLESQuick-and-Easy Deployment of a Ceph Storage Cluster with SLES
Quick-and-Easy Deployment of a Ceph Storage Cluster with SLES
 
Introduction to Diskless Remote Boot in Linux
Introduction to Diskless Remote Boot in LinuxIntroduction to Diskless Remote Boot in Linux
Introduction to Diskless Remote Boot in Linux
 

Recently uploaded

Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditSkynet Technologies
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 

Recently uploaded (20)

Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance Audit
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 

Kickstart

  • 1. 1. Setting up a PXE kickstart server Submitted by itchyadmin on Tue, 09/08/2009 - 10:28 Version CentOS 5.3 Configure the tftp server First make sure that tftp-server rpm is installed, if not then install it # rpm -qa | grep tftp-server # yum install tftp-server Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.answerstolove.com * updates: mirror.answerstolove.com * addons: mirror.answerstolove.com * extras: mirror.answerstolove.com Setting up Install Process Parsing package install arguments Resolving Dependencies --> Running transaction check ---> Package tftp-server.x86_64 0:0.42-3.1.el5.centos set to be updated --> Finished Dependency Resolution Dependencies Resolved ============================================================================= ============================================================================= === Package Arch Version Repository Size ============================================================================= ============================================================================= === Installing: tftp-server x86_64 0.42- 3.1.el5.centos base 29 k Transaction Summary ============================================================================= ============================================================================= === Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 29 k
  • 2. Is this ok [y/N]: y Downloading Packages: tftp-server-0.42-3.1.el5.centos.x86_64.rpm | 29 kB 00:00 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : tftp-server [1/1] Installed: tftp-server.x86_64 0:0.42-3.1.el5.centos Complete! Download and unpack the latest Syslinux bundle The files that come with CentOS / Redhat may be quite out of date, so best to get the latest version available. In this example we use version 3.82. Get the files from : http://syslinux.zytor.com/wiki/index.php/The_Syslinux_Project Now unpack them, in this example we unpack them to /tmp/syslinux/syslinux-3.82. # cd /tmp/syslinux # gunzip -c syslinux-3.82.tar.gz | tar xf - Setup the tftboot directory structure The below assumes that the CD image of disk1 of the isntall disks is mounted at /kickstart/inst/CentOS5,3/disk1 # cd /tftpboot/ # mkdir linux-install # mkdir linux-install/pxelinux.cfg # mkdir linux-install/CentOS_5.3_x86_64 # cp /tmp/syslinux/syslinux-3.82/core/pxelinux.0 linux-install # cp /tmp/syslinux/syslinux-3.82/com32/menu/menu.c32 linux-install # cp /kickstart/inst/CentOS5.3/disk1/images/pxeboot/initrd.img linux- install/CentOS_5.3_x86_64 # cp /kickstart/inst/CentOS5.3/disk1/images/pxeboot/vmlinuz linux- install/CentOS_5.3_x86_64 Create / copy in a menu file into pxelinux.cfg This is basically like grub.conf. A sample default file is below. The default file will be used if no other files are found which are more specific to the host. This will bring up a menu allowing different install options. In this case it just has 2 options, either to boot locally (also the default to stop us overwriting any existing systems by accident!) and an option to install CentOS.
  • 3. # cd /tftpboot/linux-install/pxelinux.cfg/ # vi default DEFAULT menu.c32 PROMPT 0 ONTIMEOUT local TIMEOUT 100 MENU TITLE ItchyThinking PXE Menu LABEL local MENU LABEL Boot from local disk LOCALBOOT 0 LABEL CentOS 5.3 x86_64 MENU LABEL Install CentOS 5.3 x86_64 KERNEL CentOS_5.3_x86_64/vmlinuz APPEND ks=nfs:192.168.1.201:/kickstart/ks/ initrd=CentOS_5.3_x86_64/initrd.img ramdisk_size=100000 ip=dhcp ksdevice=eth0 The ksdevice=eth0 kernel option stops kickstart from prompting for which network device to install from, thus keeping the install completely hands-free. Enable tftp Modify /etc/xinetd.d/tftp and make sure disable is set to 'no' disable = no then start the service # service xinetd restart Stopping xinetd: [ OK ] Starting xinetd: [ OK ] # chkconfig --list tftp tftp on Make sure dhcp is installed # rpm -qa | grep dhcp dhcpv6-client-1.0.10-16.el5 # yum install dhcp.x86_64 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile ... Configure the dhcp server Add the following to your /etc/dhcpd.conf. In this example 192.168.1.201 is the IP of the PXE server (which is also the dhcp server in this case). Also, we are specifying the IP for each host that we build.
  • 4. # # DHCP Server Configuration file. # see /usr/share/doc/dhcp*/dhcpd.conf.sample # ddns-update-style interim; ignore client-updates; subnet 192.168.1.0 netmask 255.255.255.0 { allow booting; allow bootp; option routers 192.168.1.254; option subnet-mask 255.255.255.0; option domain-name "itchythinking.com"; option domain-name-servers 192.168.1.254; default-lease-time 21600; max-lease-time 43200; next-server 192.168.1.201; filename "/linux-install/pxelinux.0"; host vmlinux3 { hardware ethernet 00:0c:29:32:aa:aa; fixed-address 192.168.1.203; } } Start the dhcp server # chkconfig --list dhcpd dhcpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off # service dhcpd status dhcpd is stopped # chkconfig dhcpd on # chkconfig --list dhcpd dhcpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off # service dhcpd start Starting dhcpd: [OK] Create a Kickstart Area Create a kickstart area, probably a large separate filesystem, where all the RedHat/CentOS ISO images will reside. Hence it needs to be quite large. This filesystem will also hold the kickstart files. Lets assume we are going to put the files under a filesystem called /kickstart which is already mounted, but empty. # cd /kickstart # mkdir ks # mkdir isos
  • 5. # mkdir isos/CentOS_5.3 # mkdir isos/CentOS_5.3/x86_64 Now copy in the iso files for the distributions of RedHat / CentOS you want to install. # cp /tmp/CentOS-5.3-x86_64-bin-1of7.iso /kickstart/isos/CentOS_5.3/x86_64 # cp /tmp/CentOS-5.3-x86_64-bin-2of7.iso /kickstart/isos/CentOS_5.3/x86_64 # cp /tmp/CentOS-5.3-x86_64-bin-3of7.iso /kickstart/isos/CentOS_5.3/x86_64 # cp /tmp/CentOS-5.3-x86_64-bin-4of7.iso /kickstart/isos/CentOS_5.3/x86_64 # cp /tmp/CentOS-5.3-x86_64-bin-5of7.iso /kickstart/isos/CentOS_5.3/x86_64 # cp /tmp/CentOS-5.3-x86_64-bin-6of7.iso /kickstart/isos/CentOS_5.3/x86_64 # cp /tmp/CentOS-5.3-x86_64-bin-7of7.iso /kickstart/isos/CentOS_5.3/x86_64 Share the /kickstart are using nfs In this case we set up a simple (if insecure) nfs share # vi /etc/exports /kickstart *(ro,sync) Now start (or restart) the nfs server # service nfs restart Shutting down NFS mountd: [ OK ] Shutting down NFS daemon: [ OK ] Shutting down NFS quotas: [ OK ] Shutting down NFS services: [ OK ] Starting NFS services: [ OK ] Starting NFS quotas: [ OK ] Starting NFS daemon: [ OK ] Starting NFS mountd: [ OK ] Setup Clients You are now ready to setup and install the clients. Follow the instructions here Here is an example kickstart file 4. Adding a Kickstart Client Submitted by itchyadmin on Wed, 10/07/2009 - 13:56 Once kickstart is setup do the following to add a new client Update dhcp config and restart Assuming that the server will be assigned a particular IP address, add this to the DHCP config
  • 6. # vi /etc/dhcpd.conf host vmlinux2 { hardware ethernet 00:0c:29:aa:66:9f; fixed-address 192.168.1.202; } Restart the dhcp server # service dhcpd restart Shutting down dhcpd: [ OK ] Starting dhcpd: [ OK ] Create a kickstart file for the server In this example we will just copy an existing kickstart file and copy the host specific entries # cd /kickstart/ks # cp 192.168.1.203-kickstart 192.168.1.202-kickstart # vi 192.168.1.202-kickstart Modify necessary entries. In this case we modify the following lines network --device eth0 --bootproto static --ip 192.168.1.202 --netmask 255.255.255.0 --gateway 192.168.1.254 --nameserver 192.168.1.254 --hostname vmlinux2 Boot the client over the network Simply boot the client over the network. How you do this will depend on the hardware. All being well the server will now build after selecting the appropriate entry from the servers console. Example /etc/dhcpd.conf file Submitted by itchyadmin on Tue, 09/08/2009 - 21:39 Version CentOS 5.3 Example of /etc/dhcpd.conf # # DHCP Server Configuration file. # see /usr/share/doc/dhcp*/dhcpd.conf.sample #
  • 7. ddns-update-style interim; ignore client-updates; subnet 192.168.1.0 netmask 255.255.255.0 { allow booting; allow bootp; option routers 192.168.1.254; option subnet-mask 255.255.255.0; option domain-name "itchythinking.com"; option domain-name-servers 192.168.1.254; default-lease-time 21600; max-lease-time 43200; next-server 192.168.1.201; filename "/linux-install/pxelinux.0"; host vmlinux3 { hardware ethernet 00:0c:29:32:aa:aa; fixed-address 192.168.1.203; } } Example Kickstart File Submitted by itchyadmin on Tue, 09/08/2009 - 21:32 Version CentOS 5.3 Here is a sample kickstart file install text nfs --server=192.168.1.201 --dir=/kickstart/isos/CentOS_5.3/x86_64 lang en_GB.UTF-8 keyboard uk network --device eth0 --bootproto static --ip 192.168.1.203 --netmask 255.255.255.0 --gateway 192.168.1.254 --nameserver 192.168.1.254 --hostname vmlinux3 rootpw --iscrypted $1$JRTd3bsM$ZGGiiFlUfGio3aJpJNMJu0 firewall --disabled authconfig --enableshadow --enablemd5 selinux --disabled timezone --utc Europe/London bootloader --location=mbr --driveorder=sda --append="rhgb quiet" clearpart --all --drives=sda --initlabel part /boot --fstype ext3 --size=100 --ondisk=sda part pv.3 --size=0 --grow --ondisk=sda volgroup VolGroup00 --pesize=32768 pv.3
  • 8. logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=512 -- grow --maxsize=1024 logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow %packages @office @editors @text-internet @legacy-network-server @dns-server @gnome-desktop @dialup @core @base @ftp-server @network-server @games @base-x @graphics @web-server @smb-server @printing @mail-server @server-cfg @sound-and-video @admin-tools @news-server @graphical-internet kexec-tools device-mapper-multipath vnc-server xorg-x11-server-Xnest libsane-hpaio