Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

30.2.3. 配置 Power  Systems 服务器

  1. 如果还没有安装 tftp-server,请运行 yum install tftp-server
  2. In the tftp-server config file at /etc/xinetd.d/tftp, change the disabled parameter from yes to no.
  3. Configure your DHCP server to use the boot images packaged with yaboot. (If you do not have a DHCP server installed, refer to the DHCP Servers chapter in the Red Hat Enterprise Linux Deployment Guide.)
    /etc/dhcp/dhcpd.conf 中的示例配置如下:
              host bonn {
                    filename "yaboot";
                    next-server             10.32.5.1;
                    hardware ethernet 00:0e:91:51:6a:26;
                    fixed-address 10.32.5.144;
            }
    
  4. 现在需要 ISO 映像文件中 yaboot 软件包中的 yaboot 二进制文件。要访问该文件,请作为 root 运行以下命令:
    mkdir /publicly_available_directory/yaboot-unpack
    mount -t iso9660 /path_to_image/name_of_image.iso /mount_point -o loop,ro
    cp -pr /mount_point/Packages/yaboot-version.ppc.rpm /publicly_available_directory/yaboot-unpack
    提取软件包:
    cd /publicly_available_directory/yaboot-unpack
    rpm2cpio yaboot-version.ppc.rpm | cpio -dimv
  5. tftpboot 中生成 yaboot 目录,并将 yaboot 二进制文件复制到该目录中:
    mkdir /var/lib/tftpboot/yaboot
    cp publicly_available_directory/yaboot-unpack/usr/lib/yaboot/yaboot /var/lib/tftpboot/yaboot
  6. 在这个目录中添加名为 yaboot.conf 的配置文件。示例配置文件如下:
    init-message = "\nWelcome to the Red Hat Enterprise Linux 6 installer!\n\n"
    timeout=60
    default=rhel6
    image=/rhel6/vmlinuz-RHEL6
            label=linux
            alias=rhel6
            initrd=/rhel6/initrd-RHEL6.img
            append="repo=http://10.32.5.1/mnt/archive/redhat/released/RHEL-6/6.x/Server/ppc64/os/"
            read-only
    
    关于如何指定安装源的步骤,请参考 第 7.1.3 节 “其他引导选项”
  7. 从提取的 ISO 中将引导映像复制到 tftp 根目录:
    cp /mount_point/images/ppc/ppc64/vmlinuz /var/lib/tftpboot/yaboot/rhel6/vmlinuz-RHEL6
    cp /mount_point/images/ppc/ppc64/initrd.img /var/lib/tftpboot/yaboot/rhel6/initrd-RHEL6.img
  8. 删除 yaboot-unpack 目录并卸载 iSO 进行清理:
    rm -rf /publicly_available_directory/yaboot-unpack
    umount /mount_point
  9. Boot the client system, and select the network device as your boot device when prompted.