Presentation is loading. Please wait.

Presentation is loading. Please wait.

PXE+Kickstart.

Similar presentations


Presentation on theme: "PXE+Kickstart."— Presentation transcript:

1 PXE+Kickstart

2 安装dhcp软件 配置yum库 yum –y install dhcp vim /etc/dhcp/dhcpd.conf 写入以下内容:

3 配置dhcp服务器 ddns-update-style interim; ignore client-updates;
subnet netmask { option subnet-mask ; option domain-name-servers ; range dynamic-bootp ; default-lease-time ; max-lease-time ; next-server ; filename "pxelinux.0"; }

4 配置tftp服务 yum -y install tftp-server chkconfig tftp on
service xinetd restart Chkconfig xinetd on

5 部署pxe环境1 yum -y install syslinux mkdir /var/lib/tftpboot/pxelinux.cfg
cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/ cp /media/cdrom/images/pxeboot/{vmlinuz,initrd.img} /var/lib/tftpboot/ cp /media/cdrom/isolinux/isolinux.cfg /var/lib/tftpboot/pxelinux.cfg/default

6 部署pxe环境2 vim /var/lib/tftpboot/pxelinux.cfg/default label linux
menu label ^Install or upgrade an existing system menu default kernel vmlinuz append initrd=initrd.img ks=ftp:// /pub/ks.cfg

7 部署kickstart yum –y install system-config-kickstart
将制作好的文件保存至/var/ftp/pub目录,名称为ks.cfg server vsftpd restart

8 配置http服务提供安装源 vim /etc/httpd/conf/httpd.conf
DocumentRoot "/media/cdrom“ service httpd restart


Download ppt "PXE+Kickstart."

Similar presentations


Ads by Google