步骤 2: 添加Debian 7 Wheezy到PXE菜单
5. 添加Debian 7到PXE服务器,需要上述Ubuntu服务器版本相同的步骤。唯一不同点在于网络启动归档镜像下载链接和源目录的名称,现在改为debian-installer。
要下载Debian Wheezy网络启动归档,请转到Debian网络安装下载页,从网络启动菜单选择你想要的系统架构,然后点击目录列表中的网络启动链接,并从文件名列表中下载netboot.tar.gz归档包。
因为Debian为众多系统架构如Armel,ia64,Mips,PowerPC,Sparc等等提供了网络安装源,所以在本指南中,我将只讨论64位架构。因为其它架构的配置过程和当前的几乎一样,唯一不同的是debian-installer/$directory_architecture name。
所以,要进一步深入,以root帐号登录到你的PXE服务器,并通过以下命令抓取Debian 7 64位网络启动归档包。
- # wget http://ftp.nl.debian.org/debian/dists/wheezy/main/installer-amd64/current/images/netboot/netboot.tar.gz

下载Debian 7网络启动包
6. 在wget下载完成netboot.tar.gz文件后,请将其解压缩并运行以下命令拷贝debian-installer目录到tftp服务器默认路径。
- # tar xfz netboot.tar.gz
- # cp -rf debian-installer/ /var/lib/tftpboot/

解压缩Debian 7网络启动包

拷贝Debian 7网络启动文件到FTP
7. 要添加Debian Wheezy标签到PXE菜单,请用你最喜爱的文本编辑器打开PXE服务器默认配置文件并添加以下标签。
- # nano /var/lib/tftpboot/pxelinux.cfg/default
Debian Wheezy 64位的PXE标签菜单。
- label 7
- menu label ^7)InstallDebian7 x64
- kernel debian-installer/amd64/linux
- append vga=788 initrd=debian-installer/amd64/initrd.gz -- quiet
- label 8
- menu label ^8)InstallDebian7 x64 Automated
- kernel debian-installer/amd64/linux
- append auto=true priority=critical vga=788 initrd=debian-installer/amd64/initrd.gz -- quiet

添加Debian到PXE启动
注:如果你想要添加其它Debian架构,请重复上述步骤,并相应替换PXE默认菜单配置文件中的标签号和debian-installer/$architecture_name/目录。
8. 在进行客户端测试配置之前,请执行以下命令来清除Debian源文件。
- # cd && rm -rf debian-installer/ netboot.tar.gz pxelinux.* version.info
9. 然后通过网络启动一台客户机,选择从PXE菜单安装Debian,并像正常安装一样进一步下去。

选择从PXE安装Debian

选择Debian安装语言
以上是要求添加并从RHEL/CentOS 7 PXE服务器安装Ubuntu或Debian到客户机上的全部步骤。在我的下一篇文章中,我将讨论一种更为复杂的方法,如何使用RHEL/CentOS 7 PXE网络启动服务器来安装Windows 7到客户机。
更多RedHat相关信息见RedHat 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=10
更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2
更多CentOS相关信息见CentOS 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=14
本文永久更新链接地址:http://www.linuxidc.com/Linux/2015-02/113662.htm
