加入收藏 | 设为首页 | 会员中心 | 我要投稿 佛山站长网 (https://www.0757zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

Centos 5.5 X86_64实战KickStart自动化安装

发布时间:2016-11-01 02:36:10 所属栏目:Linux 来源:网络整理
导读:原理和概念: 1.1 什么是PXE 严格来说,PXE 并不是一种安装方式,而是一种引导的方式。进行 PXE 安装的必要条件是要安装的计算机中包含一个 PXE 支持的网卡(NI

next-server 192.168.1.20;                                           #添加:Tftp server服务器的ip地址。

filename "/pxelinux.0";                                             #添加:Bootstrap文件。

subnet 192.168.1.0 netmask 255.255.255.0 {                          #声明KickStart ip网段.

# --- default gateway

option routers                  192.168.1.1;              #必须改成KickStart ip网段的网关地址。

option subnet-mask              255.255.255.0;

option nis-domain               "domain.org";

option domain-name              "domain.org";

option domain-name-servers      192.168.1.20;            #必须改成KickStart ip服务器正确地址。

option time-offset              -18000; # Eastern Standard Time

#       option ntp-servers              192.168.1.1;

#       option netbios-name-servers     192.168.1.1;

# --- Selects point-to-point node (default is hybrid). Don't change this unless

# -- you understand Netbios very well

#       option netbios-node-type 2;

range dynamic-bootp 192.168.1.100 192.168.1.254;            #更改:安装完系统默认分配的客户端ip地址。

default-lease-time 21600;

max-lease-time 43200;

# we want the nameserver to appear at a fixed address

host ns {

       next-server marvin.redhat.com;

       hardware ethernet 12:34:56:78:AB:CD;

       fixed-address 207.175.42.254;

}

}

[root@DZ-03 ~]# /etc/init.d/dhcpd restart                     #启动dhcpd服务器

5.  安装NFS文件系统

[root@DZ-03 ~]# yum -y install nfs-*  

[root@DZ-03 ~]# mkdir /tftpboot/ks

[root@DZ-03 ~]# vim /etc/exports                                                             #打开配置文件,添加如下:

/mnt    *(ro)

/tftpboot/ks/    *(ro)

[root@DZ-03 ~]# /etc/init.d/portmap restart

[root@DZ-03 ~]# /etc/init.d/nfs restart

[root@DZ-03 ~]# showmount  -e localhost                                                     #检查是否加载成功

Export list for localhost:

/mnt         *

/tftpboot/ks *

(编辑:佛山站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读