zoukankan      html  css  js  c++  java
  • cobbler学习

    note.youdao.com/share/?id=2f8383d6e9824929012b041f069da26e&type=note#/

    IPADDR=192.168.86.4
    
    TYPE=Ethernet
    BOOTPROTO=static
    IPADDR=192.168.86.3
    NETMASK=255.255.255.0
    GATEWAY=192.168.86.2
    DNS1=8.8.8.8
    DEFROUTE=yes
    PEERDNS=yes
    PEERROUTES=yes
    IPV4_FAILURE_FATAL=no
    IPV6INIT=yes
    IPV6_AUTOCONF=yes
    IPV6_DEFROUTE=yes
    IPV6_PEERDNS=yes
    IPV6_PEERROUTES=yes
    IPV6_FAILURE_FATAL=no
    NAME=eno16777736
    UUID=42638b5f-d2c2-49ed-bda3-9ae448720211
    DEVICE=eno16777736
    ONBOOT=yes
    
    DHCP / TFTP IP:192.168.86.4
    HTTP / FTP / NFS IP:192.168.86.3
    
    
    ddns-update-style interim; 
    ignore client-updates; 
    filename "pxelinux.0";   #pxelinux 启动文件位置;
    next-server 192.168.86.3;  #TFTP Server 的IP地址;
    
    subnet 192.168.86.0 netmask 255.255.255.0 {
            option routers                  192.168.86.130; 
            option subnet-mask              255.255.255.0;
            range dynamic-bootp 192.168.86.100 192.168.86.200; 
            default-lease-time 21600; 
            max-lease-time 43200;
    }
    
    
    subnet 192.168.86.0 netmask 255.255.255.0 {
         option routers             192.168.86.2;
         option domain-name-servers 192.168.86.2;
         option subnet-mask         255.255.255.0;
         range dynamic-bootp        192.168.86.100 192.168.86.254;
         default-lease-time         21600;
         max-lease-time             43200;
         next-server                $next_server;
         class "pxeclients" {
              match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
              if option pxe-system-type = 00:02 {
                      filename "ia64/elilo.efi";
              } else if option pxe-system-type = 00:06 {
                      filename "grub/grub-x86.efi";
              } else if option pxe-system-type = 00:07 {
                      filename "grub/grub-x86_64.efi";
              } else {
                      filename "pxelinux.0";
              }
         }
    
    }
    
    auto reinstall self OS
    yum install -y koan
    koan --server=192.168.86.3 --list=profiles
    koan --server=192.168.86.3  --replace-self --profile=CentOS7-x86_64
    
    
    
    rpm -ivh http://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpm
    
    cobbler import --path=/mnt/ --name=CentOS-7.1-x86_64 --arch=x86_64
    cobbler import --path=/mnt --name=centos6 --arch=x86_64
    
    cobbler import --path=/mnt/ --name=CentOS7 --arch=x86_64
    
    0磁道0扇区,前512k
    0-446引导部分,后64放磁盘分区信息,一块盘只能 分4个主分区,每个分区表占16k
    
    cobbler profile edit --name=centos7.1 --kopts='net.ifnames=0 biosdevname=0' --kickstart=/var/lib/cobbler/kickstarts/centos7-x64.cfg 
    
    [root@localhost ~]# openssl passwd -1 -salt 'wis' 'wis'
    $1$wis$j7vBIGrTLB7thNFfCCja10
    
    
    cobbler profile edit --name=centos6-x86_64 kickstart=
    
    
    00:50:56:28:52:29 test 192.168.86.7 255.255.255.0 192.168.86.2
    
    cobbler --
    
    
    cobbler system add --name=test1 --mac=00:50:56:28:52:29 --profile=CentOS7-x86_64 --ip-address=192.168.86.7  --subnet=255.255.255.0 --gateway=192.168.86.2 --interface=eth0 --static=1 --hostname=test1 --name-servers=192.168.86.2 --kickstart=/var/lib/cobbler/kickstarts/centos7.ks
    
    问题启动到tmpfs什么的界面,还有superblock的报错
    已经过了内核传输阶段
    client端挂载server的文件系统这个过程报的错,再查是import 系统镜像的时候估计有问题,再import一遍好了
    
    到了选软件安装的地方卡住了,估计是自定义的ks配置文件选的软件包没有满足往下走的要求
  • 相关阅读:
    CF1305 Ozon Tech Challenge 2020 游戏存档
    CF1310A Recommendations 题解
    CF755G PolandBall and Many Other Balls 题解
    关于后缀自动机
    具体数学学习笔记
    Flask-SQLAlchemy中解决1366报错
    常用的SQLalchemy 字段类型
    flask_model防止循环引用
    navicate远程访问ubuntu上的mysql数据库
    flask运行环境搭建(nginx+gunicorn)
  • 原文地址:https://www.cnblogs.com/WisWang/p/6537344.html
Copyright © 2011-2022 走看看