PXE Server 搭建及配置.docxVIP

  • 25
  • 0
  • 约2.43千字
  • 约 7页
  • 2017-06-07 发布于湖北
  • 举报
PXE Server 搭建和配置搭建后的效果图:目的:因频繁要在服务器上部署XenServer ESXI RHEV 和Linux等环境,再由于版本更新较快,通过刻录,光驱安装比较繁琐,所以部署一套给内网使用的PXE安装环境。PXE 运作流程:(图片源自网络)PXE 环境准备主机I7 服务器一台操作系统CentOS release 6.4主机名pxe.haydenNetwork1 (eth1) 外网:安装DHCP TFTP Server 服务用5/24Network2(eth2) 内网: DCHP server 服务出口/24交换机24口交换机一台网络配置本服务器有3块网卡,实际使用两块,eth1 用作连接外网,eth2 用于连接内网。编辑/etc/sysconfig/network-scripts/ifcfg-eth1 /etc/sysconfig/network-scripts/ifcfg-eth2 如下:3.软件安装:3.1 DHCP 服务安装yum -y install dhcp3.2 配置dhcpvi /etc/dhcp/dhcpd.conf配置DHCP 的监听接口 vi /etc/sysconfig/dhcpd启动dhcpd服务:/etc/init.d/dhcpd start3.3 安装tftp服务:[root@pxe ~]# yum -y install tftp-server tftp[root@pxe ~]# vi /etc/xinetd.d/tftp默认tftp服务的根目录是放在/var/lib/tftpboot/ 底下,现在为了方便管理,将所有资料放在/install/ 目录下,这里的TFTP的根目录就放置于/install/tftpboot 底下[root@pxe ~]# mkdir -p /install/tftpboot/[root@pxe ~]# chcon --reference /var/lib/tftpboot/ /install/tftpboot/[root@pxe ~]# chcon --reference /var /install/[root@pxe ~]# ll -dZ /install/tftpboot/drwxr-xr-x. root root system_u:object_r:tftpdir_rw_t:s0 /install/tftpboot/启动并观察tftp服务:[root@pxe ~]# /etc/init.d/xinetd restart[root@pxe ~]# chkconfigxinetd on[root@pxe ~]# chkconfigtftp on[root@pxe ~]# netstat -tulnp |grepxinetdudp 0 0 :69 :* 17377/xinetd3.4 配置vi /etc/dhcp/dhcpd.conf与tftp server 关联3.5 使用syslinux提供的boot loader 和开机选单的一些设置项[root@pxe ~]# yum install syslinux[root@pxe syslinux]# cp /usr/share/syslinux/menu.c32 /usr/share/syslinux/vesamenu.c32 /usr/share/syslinux/pxelinux.0 /install/tftpboot/[root@pxe syslinux]# mkdir /install/tftpboot/pxelinux.cfg/4 配置PXE 安装的ISO4.1 配置PXE启动再生龙4.1.1 cloneziila介绍Clonezilla是一个很好的系统克隆工具,它可以说是吸取了 Norton Ghost 和 Partition Image 的优点。即不仅支持对整个系统进行克隆,而且也可以克隆单个的分区,这种灵活性可能更能适应备份者的需要。有需求的朋友不妨关注下Clonezilla的功能:在 GNU/Linux 端所支持的文件系统包括:ext2、ext3、reiserfs、xfs、jfs;同时,Clonezilla也支持 M$ Windows 上的 FAT、NTFS 文件系统。这意味着,你既可以使用Clonezilla克隆 GNU/Linux 系统,也能够对 M$ Windows 系统进行克隆。Clonezilla支持使用PXEBoot来进行 Multicast 克隆。这对于需要克隆大量系统的用户极为有用。CloneZilla包括一个 Live 版,让你无需对其安装即可克隆系统

文档评论(0)

1亿VIP精品文档

相关文档