Kickstart unattended installation RHEL6.4

Source: Internet
Author: User

This experiment is a virtual machine environment built on VirtualBox. The system used is RHEL6.4 _ 64bit. Because VirtualBox does not support PXE network startup by default, it is found that it can be solved using official plug-ins.

Plug-in: http://download.virtualbox.org/virtualbox/, find the file ending with .vbox-extpackin the corresponding directory

1. Build a Yum source (Local CD image)
# Mount/dev/cdrom/media/cdrom
# Vim/etc/yum. repos. d/base. repo
[Base]
Name = base repo
Baseurl = file: // media/cdrom
Enabled = 1
Gpgcheck = 0

 

2. Install syslinux, tftp-server, and vsftpd

# Yum-y install syslinux
# Yum-y install tftp-server
# Chkconfig tftp on
# Service xinetd restart
# Yum-y install vsftpd
# Service vsftpd start
# Chkconfig vsftpd on

 

3. Copy and modify relevant PXE files
<1> copy the files required for PXE startup from the CD image
# Cp/usr/share/syslinux/pxelinux.0/var/lib/tftpboot/
# Mkdir/var/lib/tftpboot/pxelinux. cfg
# Cp/media/cdrom/isolinux. cfg/var/lib/tftpboot/pxelinux. cfg/default
# Cp/media/cdrom/isolinux/initrd. img/var/lib/tftpboot/
# Cp/media/cdrom/isolinux/vmlinuz/var/lib/tftpboot/

<2> modify the/var/lib/tftpboot/pxelinux. cfg/default file
# Vim/var/lib/tftpboot/pxelinux. cfg/default
Default linux # configure default startup
# Prompt 1
Timeout 600 # default timeout
Display boot. msg
Menu background splash.jpg
Menu title Welcome to Red Hat Enterprise Linux 6.4!
Menu color border 0 # ffffffff #00000000
Menu color sel 7 # ffffffff # ff000000
Menu color title 0 # ffffffff #00000000
Menu color tabmsg 0 # ffffffff #00000000
Menu color unsel 0 # ffffffff #00000000
Menu color hotsel 0 # ff000000 # ffffffff
Menu color hotkey 7 # ffffffff # ff000000
Menu color scrollbar 0 # ffffffff #00000000
Label linux
Menu label ^ Install or upgrade an existing system
Menu default
Kernel vmlinuz
Append initrd = initrd. img ks = ftp: // 192.168.1.100/ks. cfg # configure the kickstart installation configuration file to be read
Label vesa
Menu label Install system with ^ basic video driver
Kernel vmlinuz
Append initrd = initrd. img xdriver = vesa nomodeset
Label rescue
Menu label ^ Rescue installed system
Kernel vmlinuz
Append initrd = initrd. img rescue
Label local
Menu label Boot from ^ local drive
Localboot 0 xffff
Label memtest86
Menu label ^ Memory test
Kernel memtest
Append-

 

4. install and configure the DHCP service
<1> install the DHCP service
12 # yum-y install dhcp. x86_64 dhcp-devel.x86_64
# Cp-p/usr/share/doc/dhcp-4.1.1/dhcpd. conf. sample/etc/dhcp/dhcpd. conf

<2> Configure the DHCP service
1234567 # vim/etc/dhcp/dhcpd. conf
Subnet 192.168.1.0 netmask 255.255.255.0 {# network segment and mask
Range dynamic-bootp 192.168.1.101 192.168.1.200; # IP address pool range
Option routers 192.168.1.1; # vroip IP (GATEWAY)
Next-server 192.168.1.100; # server IP address (local)
Filename = "pxelinux.0"; # The boot file after PXE obtains the IP address
}

<3> Start the DHCP service.

# Service dhcpd start
# Chkconfig dhcpd on

 

5. Generate a kickstart configuration file
<1> install the kickstart Software Package
# Yum install system-config-kickstart

<2> Create the ks. cfg file by using a graphical Tool

# System-config-kickstart

 

Note: You can select the software package to be installed in the graphical configuration or modify the configuration file write package list.

For more details, please continue to read the 2nd page content:

 

Use PXE + DHCP + Apache + Kickstart to install CentOS5.8 x86_64

Kickstart fully automated installation of CentOS 6.3

Linux Installation notes on Kickstart

PXE/Kickstart remote automatic installation of RedHat Linux

DHCP + TFTP + HTTP + Kickstart automatic server deployment

  • 1
  • 2
  • Next Page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.