文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Bond 模式下远程安装linux系统的理论和实践(2)

Bond 模式下远程安装linux系统的理论和实践(2)

时间:2010-08-27  来源:mydear

NFS 服务器的配置

1)创建存放安装介质的目录。

  1. # mkdir – p /images/boot

2)在 /etc/exports 文件里增加如下的一行配置信息。

  1. /images/boot *(rw,no_root_squash,sync)

3)重启 NFS 服务器。

  1. # service nfsserver restart

4)确保 NFS 服务为启动项。

  1. # chkconfig --add nfs
  2. # chkconfig --add nfsserver
  3. # chkconfig --add nfsboot
  4. # chkconfig --add portmap

配置 PXE 启动环境

PXE 引导文件的配置

在 TFTP root 目录下创建 PXE 的目录结构。

1.创建目录 pxelinux.cfg。

  1. # mkdir -p /tftpboot/pxelinux.cfg

1.拷贝 PXE bootstrap 文件到 /tftpboot 目录下。

  1. # cp /usr/share/syslinux/pxelinux.0 /tftpboot

3) 创建 /tftpboot/pxelinux.cfg/default 文件 。内容如下 :

  1. prompt 1
  2. display message.txt
  3. # UBUNTU
  4. label ubuntu
  5. kernel bzimage
  6. append initrdinitrd=initrd init=/var/rammnt/bin/init
  7. splash=silent showopts
  8. netinstall=1
  9. nfsserver=192.168.0.191
  10. netmask=255.255.255.0 root=/dev/nfs
  11. gateway=192.168.0.1

修改“nfsserver=, netmask=, and gateway=”的值与实际环境一致 。

在 linux 安装介质的 /boot/isolinux/ 目录下 ,可以抓取到内核安装引导文件 bzimage 和 initrd。

为抓取到的内核安装引导文件增加权限 。

  1. # chmod 777 bzimage
  2. # chmod 777 initrd

1.最终TFTP服务器的目录结构如下:

  1. /tftpboot
  2. /tftpboot/pxelinux.0
  3. /tftpboot/initrd
  4. /tftpboot/bzimage
  5. /tftpboot/pxelinux.cfg
  6. /tftpboot/pxelinux.cfg/default

目标系统引导页面的定义

创建 /tftpboot/message.txt,用来定义PXE引导页面。

  1. Boot Options:
  2. Currently available build values:
  3. ubuntu.904
  4. EXAMPLE:
  5. To install build .904:
  6. ubuntu build=.904 ip=192.168.0.159 ethdev=eth0 bonddev=bond0
这里我们特别设置了 bonddev=bond0 用来指定网卡使用Bond模式安装。
相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载