Kickstart+ftp+tftp+dhcp+pxe

Source: Internet
Author: User

######### #yum

Less Install.log #看安装log

Yum Install system-config-kickstart*-y

Yum Install tftp*-y #TFTP

Yum Install dhcp*-y #DHCP

Yum Install vsftp*-y #ftp

Yum Install lftp*-y #lftp

######### #network

/etc/sysconfig/network-script/ifcfg-eth0

ipaddr=192.168.1.251

gateway=192.168.1.250

dns1=180.76.76.76

Service Network restart

######### #DHCP

Vim/etc/dhcp/dhcpd.conf

1:r/usr/share/doc/dhcp*/dhcp.conf.sample

2 subnet; Range Option Route;

3 next-server 192.168.0.251 filename "pxelinux.0"

Service DHCPD Restart

########## #KICKSTART

1 System-config-kickstart

2 Vim%pre%post

3 Save to/var/ftp/pub/

########## #FTP

1 cd/var/ftp/pub

2 Mount/dev/sdb4/media

3 Ln-s/media/var/ftp/pub/

########## #TFTP

1 cp/usr/share/syslinux/pxeconfig.0/var/lib/tftpboot/

1.1 cd/var/lib/tftpboot/

1.2 mkdir pxelinux.cfg

1.3 cp Isolinux.cfg Pxelinux.cfg/default

1.4 Vim Pxelinux.cfg/default

1.5 Append xxxxxx ks=ftp://192.168.1.251/ks.cfg

2 cd/media/isolinux/

2.1 CP-RF */var/lib/tftpboot/

########### #OTHER

1 iptables-f #firewall off

2 Setenforce 0 #selinux warn

3 Service vsftpd Restart

4 Service DHCPD Restart

5 Chkconfig xinetd on

5.1 Chkconfig TFTP on

5.2 Service xinetd Restart

Kickstart+ftp+tftp+dhcp+pxe

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.