<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                #### 任何修改后,重新同步cobbler配置,配置生效 ```shell cobbler sync ``` #### 導入安裝鏡像 **掛載光盤** ``` mount -t iso9660 -o loop /tmp/CentOS-7-x86_64-DVD-1611.iso /mnt/ ``` **掛載Centos 6.8光盤鏡像到/mnt目錄下,導入** ```shell cobbler import --name=Centos-6.8 --path=/mnt/ --arch=x86_64 ``` **掛載Centos 7.3光盤鏡像到/mnt目錄下,導入** ```shell cobbler import --name=Centos-7.3 --path=/mnt/ --arch=x86_64 ``` **掛載ESXI 5.5光盤鏡像到/mnt目錄下,導入** ```shell cobbler import --path=/mnt/ --name=ESXI-5.5.0 --arch=x86_64 ``` #### 查看distro配置 ```shell cobbler distro report ``` #### 定義自動安裝的應答文件,文件放到/var/lib/cobbler/kickstarts/目錄下 > Cobbler通過讀取該文件,執行相關安裝步驟 請查看1.5 Cobbler 配置文件 #### 為可用鏡像配置默認ks文件 **Centos 6.8** ```shell cobbler profile edit --name=Centos-6.8-x86_64 --kickstart=/var/lib/cobbler/kickstarts/Centos-6.8-x86_64.cfg ``` **Centos 7.3** ```shell cobbler profile edit --name=Centos-7.3-x86_64 --kickstart=/var/lib/cobbler/kickstarts/Centos-7.3-x86_64.cfg ``` **ESXI 5.5** ```shell cobbler profile edit --name=ESXI-5.5.0-x86_64 --kickstart=/var/lib/cobbler/kickstarts/esxi5.5.cfg ``` #### 調整網卡內核參數(標準化,名稱統一,關閉IPv6) **Centos 7.3** ```shell cobbler profile edit --name=Centos-7.3-x86_64 --kopts='net.ifnames=0 biosdevname=0 noipv6' ``` #### 查看profile配置 ```shell cobbler profile report ``` #### 建立本地yum源 **Centos 6.8** ```shell cobbler repo add --name=Centos-6-x86_64 --mirror=https://mirrors.aliyun.com/centos/6.9/os/x86_64/ --arch=x86_64 --breed=yum --keep-update=Y cobbler repo add --name=Centos-6-epel-x86_64 --mirror=https://mirrors.aliyun.com/epel/6Server/x86_64/ --arch=x86_64 --breed=yum --keep-update=Y ``` **Centos 7.x** ```shell cobbler repo add --name=Centos-7-x86_64 --mirror=https://mirrors.aliyun.com/centos/7.4.1708/os/x86_64/ --arch=x86_64 --breed=yum --keep-update=Y cobbler repo add --name=Centos-7-epel-x86_64 --mirror=https://mirrors.aliyun.com/epel/7Server/x86_64/ --arch=x86_64 --breed=yum --keep-update=Y cobbler repo add --name=zabbix3.0-Centos7 --mirror=http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/ --arch=x86_64 --breed=yum --keep-update=Y ``` #### 查看repo配置 ```shell cobbler repo report ``` **執行同步任務** ```shell cobbler reposync ``` 錯誤一例: Exception occured: <class 'cobbler.cexceptions.CX'> Exception value: 'cobbler reposync failed' 解決方法1: 把--breed=yum更換為rsync或wget **建立任務計劃,每周六同步一次** ```shell echo "0 23 * * 6 /usr/bin/cobbler reposync >> /app/log/cobbler.log 2>&1" >> /var/spool/cron/root ``` **重啟Cron** **Centos 6.8** ```shell /etc/init.d/crond restart ``` **Centos 7.3** ```shell systemctl restart crond ``` #### 為鏡像配置本隊YUM源 **Centos 6.8** ```shell cobbler profile edit --name=Centos-6.8-x86_64 --repos="Centos-6-epel-x86_64 Centos-6.8-x86_64-extras Centos-6.8-x86_64-os Centos-6.8-x86_64-updates Centos-6.8-x86_64-cr Centos-6.8-x86_64-gfs zabbix3.0-Centos6" ``` **Centos 7.3** ```shell cobbler profile edit --name=Centos-7.3-x86_64 --repos="Centos-7.3-x86_64-os Centos-7.3-x86_64-updates Centos-7.3-x86_64-extras Centos-7-epel-x86_64 Centos-7.3-x86_64-cloud-l Centos-7.3-x86_64-gfs zabbix3.0-Centos7" ``` #### 根據MAC地址零交互安裝 ** 創建一個新的自定義安裝** ```shell cobbler system add --name=odb01.prod.ding --mac=00:0c:29:34:58:f1 --profile=Centos-6.8-x86_64 --ip-address=192.168.0.20 --subnet=255.255.255.0 --gateway=192.168.0.1 --interface=eth0 --static=1 --hostname=odb01.prod.ding --name-servers="114.114.114.114" ``` #### 修改自定義安裝(name不可修改) ```shell cobbler system edit --name=odb01.prod.ding --mac=00:0c:29:34:58:f1 --profile=Centos-6.8-x86_64 --ip-address=192.168.0.20 --subnet=255.255.255.0 --gateway=192.168.0.1 --interface=eth0 --static=1 --hostname=odb01.prod.ding --name-servers="114.114.114.114" ``` #### 查看system配置 ```shell cobbler system report ``` #### 修改展示頁面內容 ```shell [root@Centos-souce kickstarts]# cat /etc/cobbler/pxe/pxedefault.template DEFAULT menu PROMPT 0 MENU TITLE Cobbler | 系統自動化部署 TIMEOUT 200 TOTALTIMEOUT 6000 ONTIMEOUT $pxe_timeout_profile LABEL local MENU LABEL (local) MENU DEFAULT LOCALBOOT -1 $pxe_menu_items MENU end ``` #### 自動重裝系統(注意:客戶機配置) 問題:雖然可以重裝系統,但是不能設置IP、DNS、主機名 解決: - 重裝時候,生成專門為這臺機器使用的一次性系統profile,用完即刪 - 將自定義操作交由saltstack或者ansible來做,但是IP地址怎么分配呢? - 通過dell的IDRAC等遠程管理卡的遠程界面,手工PXE啟動(個人推薦) **安裝epel源,安裝koan** ```shell yum install koan -y ``` **獲取Cobbler服務器上的可用系統列表** ```shell [root@openstack ~]# koan --server=192.168.0.232 --list=profiles - looking for Cobbler at http://192.168.0.232:80/cobbler_api Centos-7.3-x86_64 ``` **選擇要重裝的系統,執行安裝命令** ```shell koan --replace-self --server=192.168.0.232 --profile=Centos-7.3-x886_64 ``` #### 1.2.3 Cobbler WEB配置 ```shell https://192.168.0.232/cobbler_web ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看