PXE引导再生龙安装步骤

发布时间 : 星期四 文章PXE引导再生龙安装步骤更新完毕开始阅读

PXE引导再生龙安装步骤

使用

PXE引导再生龙可以方便机房使用再生龙软件,并且可以实现批量无人

值守安装我们的Tistone系统。 先决条件:

? 运作中的 DHCP、TFTP、及 NFS 服务器 ? ClonezillaLiveCD

本实验把NFS/DHCP/TFTP全部做在一台机器上,操作系统是centos 6.4,IP是192.168.2.151 一定要关闭firewall,否则tftp端口不能正常工作.

一、配置DHCP 服务器 1、安装DHCP服务器包。 Yum install dhcp

2、编辑DHCP服务器配置文件 /etc/dhcp.conf。 以下是一个示例:

=============+==========+===========+============+============+======= #/etc/dhcp/dhcpd.conf ddns-update-style none; option domain-name

\allowbootp; allow booting;

subnet 192.168.2.0 netmask 255.255.255.0 {

range dynamic-bootp 192.168.2.100 192.168.2.200; option routers 192.168.2.151; option subnet-mask 255.255.255.0; default-lease-time 21600; max-lease-time 43200; filename \next-server 192.168.2.151; }

3、启动DHCP服务 service dhcpd restart

二、配置TFTP服务器 1、安装TFTP服务器包。 Yum install tftp-server

2、编辑TFTP 服务器的配置文件 /etc/xinetd.d/tftp。配置文件示例如下:

=============+==========+===========+============+==========

service tftp {

socket_type = dgram protocol = udp wait = yes user = root

server = /usr/sbin/in.tftpd server_args = -s /var/lib/tftpboot

disable = no per_source = 11 cps = 100 2 flags = IPv4 }

3、重启xinetd服务 servicexinetd restart

4、创建/tftpboot目录。 mkdir /tftpboot

5、将启动镜像文件pxelinux.0复制到TFTP服务器根目录,把/isolinux中的文件都copy到/tftpboot目录中去 cp /usr/lib/syslinux/pxelinux.0 /tftpboot

6、把Clonezilla光盘上/image/pxeboot/initr.img和vmlinux 考到/tftpboot/live目录下 。

7、编辑pxelinux.0的配置文件default ,把/isolinux下的文件copy到/tftpboot目录下。 cd /tftpboot mkdir pxelinux.cfg cd pxelinux.cfg vim default

=============+==========+===========+============+==========

DEFAULT vesamenu.c32

TIMEOUT 300

LABEL Clonezilla Live

MENU LABEL Clonezilla Live kernel live/vmlinuz

append initrd=live/initrd.img boot=live config noswap nolocales edd=on nomodeset ocs_live_run=\ocs_live_extra_param=\ocs_live_keymap=\ocs_live_batch=\ocs_lang=\vga=788 nosplash netboot=nfs nfsroot=192.168.2.151:/home/iso/clonezilla

TEXT HELP

This mode will allow you run Clonezilla to Backup/Restore OS! ENDTEXT

LABEL Clonezilla Live (auto)

MENU LABEL Clonezilla Live (auto) kernel live/vmlinuz

append initrd=live/initrd.img boot=live config noswap nolocales edd=on nomodeset ocs_prerun=\

-t

nfs

192.168.2.151:/home/img

/home/partimag

-o

noatime,nodiratime,nfsvers=3\-j2

-k1

-p

true

restoredisk

default

sda\

ocs_live_extra_param=\

联系合同范文客服:xxxxx#qq.com(#替换为@)