KickStart + PXE + HTTPd + DHCP + TFTP Automatic Installation of Ubuntu12.04

Source: Internet
Author: User
* Many O & M personnel are familiar with KickStart. Most of us use it to automatically install the system. Generally, RedHatLinux is automatically installed. Recently, Ubuntu needs to be installed due to business requirements, there are some differences with RedhatLinux. Record the installation steps for mutual communication and learning! I. Environment and software system: CentOS6.0, Ubuntu12.04 software: KickStart, PXE, HTTPd, TFTPp, and DHCP II

Preface *

Many O & M personnel are familiar with KickStart. Most of us use it to automatically install the system. We often use it to automatically install RedHat Linux. Recently, due to business needs, Ubuntu needs to be installed, there are some differences with Redhat Linux. Record the installation steps for mutual communication and learning!

I. Environment and software

System: CentOS 6.0, Ubuntu 12.04

Software: KickStart, PXE, HTTPd, TFTPp, DHCP

Ii. Formal Installation

This environment is based on the CentOS system to build KickStart Ubuntu to automatically install the server.

Run the following command on the server: yum install dhcp * tftp * httpd *-y

After installation, configure

1. Configure ftfp:

  1. #Default: Off
  2.  
  3. # Description: The tftp server serves files using the trivial file transfer \
  4.  
  5. # Protocol. The tftp protocol is often used to boot diskless \
  6.  
  7. # Workstations, download configuration files to network-aware printers ,\
  8.  
  9. #AndTo start the installation processForSome operating systems.
  10.  
  11. Service tftp
  12.  
  13. {
  14.  
  15. Disable = no
  16.  
  17. Socket_type = dgram
  18.  
  19. Protocol = udp
  20.  
  21. Wait = yes
  22.  
  23. User = root
  24.  
  25. Server =/usr/sbin/in. tftpd
  26.  
  27. Server_args =-s/Var/Lib/tftpboot
  28.  
  29. Per_source = 11
  30.  
  31. CPIs = 100 2
  32.  
  33. Flags = IPv4
  34.  
  35. }

Change disable = yes to disable = no!

After tftp is installed, the/tftpboot folder is generated in the/root directory by default. If not, link ln-s/var/lib/tftboot.

Mount the ubuntu12.04.iso File

Mount/dev/cdrom/mnt & cp/mnt/install/netboot/*/tftboot/

Then modify vi/tftboot/ubuntu-installer/amd64/boot-screens/txt. cfg as follows:

2. Configure httpd and kickstart:

As in step 2, there is an http: // 192.9.117.143/ubuntu/ks. cfg

The apache release directory is/var/www/html by default after installation.

Create an installation source in/var/www/html:

Mkdir-p/var/www/html/ubuntu

Then copy all the files on the ubuntu CD to/var/www/html/ubuntu.

Cp-a/mnt/*/var/www/html/ubuntu

Create the ks. cfg file in the/var/www/html/ubuntu directory and set the permission to chmod 777 ks. cfg.

Ks. cfg contains the following content:

  1. Install
  2. Text
  3. Lang en_US
  4. Langsupport en_US
  5. Keyboard us
  6. Mouse
  7. Timezone -- utc Asia/Chongqing
  8. Rootpw -- disabled
  9. User tdt-- Fullname="Tdt"-- Password wuguangke
  10. Reboot
  11. Url -- url http: // 192.9.117.143/ubuntu
  12. Bootloader-- Location=Mbr 
  13. Zerombr yes
  14. Clearpart -- all -- initlabel
  15. Part/boot -- fstype ext4 -- size 200
  16. Part swap -- size 1024
  17. Part/-- fstype ext4 -- size 1 -- grow
  18. Auth -- useshadow -- enablemd5
  19. Network-- Bootproto=Dhcp -- Device=Eth0 
  20. Firewall -- disabled
  21. Skipx
  22. % Packages
  23. Penssh-server
  24. Openssh-client
  25. Nfs-kernel-server
  26. Vim

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.