乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      cobbler安裝配置

       jas0n_liu 2012-07-12
      ====== cobbler配置安裝 ======
      一、關(guān)閉防火墻和selinux
      二、安裝相關(guān)軟件
          # yum -y install cobbler dhcp httpd xinetd tftp-server
          如果沒有cobbler包是因為默認的Repository里找不到Cobbler,先安裝rpmforce這個Repository。很全很強大,近10000個軟件包。
          # rpm -Uvh http://apt./redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
      三、檢查配置文件
          1檢查: cobbler check
          2.根據(jù)提示修改
          把 /var/lib/cobbler/settings 中的 server 和 next_server 設(shè)為本服務(wù)器的 IP 地址,
          manage_dhcp 設(shè)為 **1**,以便管理 DHCP
          /etc/**xinetd.d**/tftp中disable = yes 改為=**no**
          cobbler自檢,如果沒有錯誤則會有如下提示,否則按照提示修改相關(guān)配置。
          [root@SVN01 ~]#cobbler check
          Manual review and editing of /var/lib/cobbler/settings is recommended to tailor cobbler to your particular configuration.
          Good luck.
      四、修改DHCP配置文件
          [root@SVN01 ~]#cp –a /etc/cobbler/dhcp.template  /etc/dhcpd.conf
          # ******************************************************************
          # Cobbler managed dhcpd.conf file
          # generated from cobbler dhcp.conf template (Tue Jul 26 16:58:54 2011)
          # ******************************************************************
          ddns-update-style interim;
          allow booting;
          allow bootp;
          ignore client-updates;
          set vendorclass = option vendor-class-identifier;
          subnet   192.168.40.0    netmask 255.255.255.0 {                          /子網(wǎng)范圍
               option routers              192.168.40.1;                                            /網(wǎng)關(guān)地址
               option subnet-mask      255.255.255.0;
               range dynamic-bootp     192.168.40.75   192.168.40.80;          /池大小
               filename                       "/pxelinux.0";                                             /啟動文件
               default-lease-time         21600;                   
               max-lease-time             43200;
               next-server                 192.168.40.2;                                                  /下一跳地址,TFTP服務(wù)器地址
          }
      五、導(dǎo)入安裝文件
          1.拷貝安裝光盤iso文件到/home目錄里下
          2.把iso文件掛載到系統(tǒng)里,
            #mount -o loop /home/CentOS-5-5.iso /mnt/
             (-o 主要用來描述設(shè)備或檔案的掛接方式.loop:用來把一個文件當(dāng)成硬盤分區(qū)掛接上系統(tǒng))
         3.#cobbler import --mirror=/mnt/ --name=CentOS-5-4-x86-64
            從 /mnt/CentOS  目錄導(dǎo)入所有安裝文件,命名為 CentOS-5-4-x86-64
          4.檢查導(dǎo)入結(jié)果
             #cobbler distro list
            顯示如下
            CentOS-5.5-bin-DVD-i386
            CentOS-5.5-bin-DVD-xen-i386  (注意xen)
      六、修改Kickstart 配置模板
            #vi /etc/cobbler/default.ks    
            Kickstart 配置模板,可以用system-config-kickstart(建議)生成,也可以安裝系統(tǒng)后在/root/anaconda-ks.cfg得到你所安裝系統(tǒng)的配置。 使用生成
          
      七、生成并同步所有配置
          [root@SVN01 ~]#cobbler sync
          sync distro: CentOS6.0-i386
          sync profile: CentOS6.0-i386
          Shutting down dhcpd:                                   [  OK  ]
          Starting dhcpd:                                            [  OK  ]
      八、啟動相關(guān)服務(wù)
          #chkconfig --level 345 httpd on
          #chkconfig --level 345 dhcpd on
          #chkconfig --level 345 xinetd on
          #chkconfig --level 345 cobblerd on
          #service xinetd restart
          #service httpd restart
          #service dhcpd restart
          #service cobblerd stop
          #service cobblerd start
      九、檢查是否正常
          http://192.168.40.2/cblr/
          顯示目錄及文件

      十、客戶端設(shè)置從pxe網(wǎng)卡啟動,出現(xiàn)boot后:輸入menu

      擴展:
          1、啟動菜單,將local有關(guān)信息注釋
          #vi /tftpboot/pxelinux.cfg/default
           DEFAULT local
           PROMPT 1
          MENU TITLE Cobbler | http://cobbler.et.
          TIMEOUT 200
          TOTALTIMEOUT 6000
          ONTIMEOUT local
          #LABEL local
          #        MENU LABEL (local)
          #        MENU DEFAULT
          #        LOCALBOOT 0
          LABEL local
                  kernel /images/CentOS_5.6-i386/vmlinuz
                  MENU LABEL CentOS_5.6-i386
          ……
          
           2、安裝選項
           # vi /var/www/cobbler/kickstarts/CentOS_5.6-i386
               #platform=x86, AMD64, or Intel EM64T
               # System authorization information
              auth --useshadow --enablemd5       
          # System bootloader configuration 
          bootloader --location=mbr
          # Partition clearing information  格式化整個磁盤
          clearpart --all        
          # Use text mode install     文本安裝無界面
          text
          # Firewall configuration防火墻
          firewall --enabled
          # Run the Setup Agent on first boot
          firstboot --disable
          # System keyboard  鍵盤
          keyboard us
          # System language  語言
          lang en_US
          # Use network installation 使用網(wǎng)絡(luò)安裝
          url --url=http:// 192.168.40.2/cblr/links/CentOS_5.6-i386  
          # If any cobbler repo definitions were referenced in the kickstart profile, include them here.
          # Network information
          network --bootproto=dhcp --device=eth0 --onboot=on
          # Reboot after installation
          reboot
          #Root password
          rootpw --iscrypted $1$1I2ZyS2z$mxnO61QoBDI95yYsm3nLY1      密碼
          # SELinux configuration
          selinux --disabled
          # Do not configure the X Window System
          skipx
          # System timezone
          timezone   America/Shanghai                     時區(qū)
          # Install OS instead of upgrade
          install
          # Clear the Master Boot Record
          zerombr
          # Magically figure out how to partition this thing
          %include /tmp/partinfo
          %pre
          # Determine how many drives we have
          set $(list-harddrives)
          let numd=$#/2
          d1=$1
          d2 = $3
          cat << EOF >> [[/tmp/partinfo]]  **磁盤分區(qū)**
          part /boot --fstype ext3 --size=100 --ondisk=$d1 --asprimary  
          part / --fstype ext3 --size=102400 --grow --ondisk=$d1 --asprimary
          part swap --size=2048 --ondisk=$d1 --asprimary
          #EOF
          %packages   軟件包
          @base
          @core
          @development-tools
          @dialup
          @editors
          @gnome-desktop
          @graphical-internet
          @graphics
          @printing
          @sound-and-video
          @text-internet
          @base-x
          keyutils
          iscsi-initiator-utils
          trousers
          fipscheck
          device-mapper-multipath
          imake
          libsane-hpaio
          xorg-x11-server-Xnest
          xorg-x11-server-Xvfb
          %post
          $yum_config_stanza
          $kickstart_done
          wget   http://192.168.40.2/cblr/watcher.py?profile_done=CentOS_5.6-i386 -b

        本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
        轉(zhuǎn)藏 分享 獻花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多