Install linux configurations using pxehttp

Source: Internet
Author: User
Install the linux configuration in pxehttp-Linux Enterprise Application-Linux server application information. For more information, see. 1. tftp and dhcp servers are required

If not, install:
# Rpm-ivh tftp-server-0.39-0.EL3.1.c0.i386.rpm
# Rpm-ivh dhcp-3.0.1-10_EL3.i386.rpm

2. Configure the tftp and dhcp servers
Configure dhcp server
# Vi/etc/dhcpd. conf

The following is a simple configuration file written by myself during the test.
#/Etc/dhcpd. conf
Ddns-update-style interim;
Ignore client-updates;
Allow booting;
Allow bootp;
Subnet 172.16.0.0 netmask 255.255.255.0.0
{
Option routers 172.16.0.1;
Option subnet-mask 255.255.0.0;
Default-lease-time 21600;
Max-lease-time 43200;
# You can also specify the CIDR blocks that can be allocated here.
Host server {
# When the tftp service is installed on the local machine, you can omit next-server.

Filename "/pxelinux.0 ";
Hardware ethernet 00: 0c: 76: 32: 02: a0;
Fixed-address 172.16.0.156;
}
}
Configure the tftp server (port 69)
# Vi/etc/xinetd. d/tftp
======================= =============
Service tftp
{
Disable = no
Socket_type = dgram
Protocol = udp
Wait = yes
User = root
Server =/usr/sbin/in. tftpd
Server_args =-u nobody-s/tftpboot
Per_source = 11
CPIs = 100 2
Flags = IPv4
}
Copy/image/pxeboot/initr. img, vmlinux, and isolinux/*. msg to the/tftpboot directory on the first installation CD of LINUX.
# Cd/tftpboot
# Mkdir pxelinux. cfg
# Vi default and save it to the created pxelinux. cfg directory
======================= =============
Default linux
Prompt 1
Timeout 600
Display boot. msg
F1 boot. msg
F2 options. msg
F3 general. msg
F4 param. msg
F5 rescue. msg
F7 snake. msg
Label linux
Kernel vmlinuz
Append initrd = initrd. img ramdisk_size = 8192
Label text
Kernel vmlinuz
Append initrd = initrd. img text ramdisk_size = 8192
Label expert
Kernel vmlinuz
Append expert initrd = initrd. img ramdisk_size = 8192
Label ks
Kernel vmlinuz
Append ks initrd = initrd. img ramdisk_size = 8192
Label lowres
Kernel vmlinuz
Append initrd = initrd. img lowres ramdisk_size = 8192
======================= =============
3. start dhcp service dhcpd start
Start tftp service xinetd restart
Check the system log to see if the startup is successful
4. Create an installation source file tree on an http, ftp, or nfs server
Take http as an example:

Centos/
|
|__ I386/
|
| |__ CentOS
|
| |__ RPMS/
| |__ Base/
|
| |__ RELEASE_NOTE_en.html
|
|__ Ks. cfg
5. Run pxe on the machine to be installed. Select http for installation and specify the directory of the CentOS folder (the absolute path of the i386 folder)


Summary: The linux methods for installing each version are basically the same.
Initr. img, vmlinux, and isolinux/*. msg can be obtained in the/tftpboot directory.

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.