手机版
你好,游客 登录 注册
背景:
阅读新闻

添加 Ubuntu/Debian 到 RHEL/CentOS 7的 PXE 网络启动环境

[日期:2015-02-19] 来源:Linux中国  作者:Linux [字体:大 中 小]

步骤 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位网络启动归档包。

  1. # wget http://ftp.nl.debian.org/debian/dists/wheezy/main/installer-amd64/current/images/netboot/netboot.tar.gz

Download Debain 7 Netboot

下载Debian 7网络启动包

6. 在wget下载完成netboot.tar.gz文件后,请将其解压缩并运行以下命令拷贝debian-installer目录到tftp服务器默认路径。

  1. # tar xfz netboot.tar.gz
  2. # cp -rf debian-installer/ /var/lib/tftpboot/

Extract Debain 7 Netboot

解压缩Debian 7网络启动包

Copy Debain 7 Netboot to FTP

拷贝Debian 7网络启动文件到FTP

7. 要添加Debian Wheezy标签到PXE菜单,请用你最喜爱的文本编辑器打开PXE服务器默认配置文件并添加以下标签。

  1. # nano /var/lib/tftpboot/pxelinux.cfg/default

Debian Wheezy 64位的PXE标签菜单。

  1. label 7
  2. menu label ^7)InstallDebian7 x64
  3. kernel debian-installer/amd64/linux
  4. append vga=788 initrd=debian-installer/amd64/initrd.gz -- quiet
  5.  
  6. label 8
  7. menu label ^8)InstallDebian7 x64 Automated
  8. kernel debian-installer/amd64/linux
  9. append auto=true priority=critical vga=788 initrd=debian-installer/amd64/initrd.gz -- quiet

Add Debian to PXE Boot

添加Debian到PXE启动

注:如果你想要添加其它Debian架构,请重复上述步骤,并相应替换PXE默认菜单配置文件中的标签号和debian-installer/$architecture_name/目录。

8. 在进行客户端测试配置之前,请执行以下命令来清除Debian源文件。

  1. # cd && rm -rf debian-installer/ netboot.tar.gz pxelinux.* version.info

9. 然后通过网络启动一台客户机,选择从PXE菜单安装Debian,并像正常安装一样进一步下去。

Select Install Debian from PXE

选择从PXE安装Debian

Select Debian Install Language

选择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

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款