zoukankan      html  css  js  c++  java
  • xcat网络无盘启动

    首先,先到$osname目录下找genimage

    /opt/xcat/share/xcat/netboot/$osname

    -i 网卡,如eth1
    -n 网络驱动,如e1000
    -o 系统名,如rhel5.7
    -p 组名,这里是compute

    ./genimage -i eth1 -n e1000 -o rhel5.7 -p compute以后,生成image文件

    随后到/install/netboot/rhel5.7/x86_64/compute/rootimg/etc目录下修改fstab

    加上compute_x86_64 / tmpfs rw 0 1
    并且把/挂载点删除。

    然后用

    packimage -o rhel5.7 -p compute -a x86_64,打包所选系统

    然后用nodeset命令将节点设置为网络启动

    nodeset node04 netboot

    去检查/tftpboot/pxelinux.cfg/node04的话,会发现内容已经被更改了。

    #netboot rhel5.7-x86_64-compute
    DEFAULT xCAT
    LABEL xCAT
     KERNEL xcat/netboot/rhel5.7/x86_64/compute/kernel
     APPEND initrd=xcat/netboot/rhel5.7/x86_64/compute/initrd-stateless.gz imgurl=http://192.168.1.1//install/netboot/rhel5.7/x86_64/compute/rootimg.gz XCAT=192.168.1.1:3001 ifname=eth1:00:0c:29:b1:93:c6 netdev=eth1
      IPAPPEND 2

    重启,就通过网络无盘启动了

  • 相关阅读:
    面向对象与类
    引用数据类型
    方法
    java for 语句的用法
    java 数组
    Scanner与Random
    java基本语法
    java介绍及安装。
    数据库设计
    NFS相关、NFS服务端安装配置、exportfs命令、nfs客户端的问题
  • 原文地址:https://www.cnblogs.com/sickboy/p/2439300.html
Copyright © 2011-2022 走看看