cobbler自動部署centos系統:
說明:cobbler相當於kickstart的2次封裝,主要解決kickstart不能多系統部署的問題
建議在ubuntu 14.04系統上搭建,ubuntu 16.04上會有apache2的python和mod_wsgi模組版本衝突
安裝apache2、tftpd-hpa、kickstart略
apt-get install cobbler
netstat -ntplu (檢視服務埠,包括tcp和udp)
curl -i (驗證網頁是否能開啟)
cobbler check
apt-get install debmirror
cp -rv /usr/share/doc/debmirror/examples/debmirror.conf /etc/
vi /etc/debmirror.conf (注釋掉下面2行)
#@dists="precise";
#@arches="i386";
:wqservice cobbler restart
cobbler sync
echo "***x" | openssl passwd -1 -stdin (此次***x為客戶端的root初始密碼)
vi /etc/cobbler/settings (將上補生成的亂碼貼進去)
default_password_crypted: "$1$cobbler$nbcrhq3fbrums35rp4eux/"
:wqcobbler sync
匯入iso映象
mount -t iso9660 -r -o ro,loop centos-6.5-x86_64-bin-***1.iso /root/iso/
cobbler import --name=centos65 --arch=x86_64 --path=/root/iso
cobbler list
cobbler distro list
cobbler profile list
cobbler profile report --name=centos65-x86_64 #檢視profile設定
cobbler distro report --name=centos65-x86_64 #檢視安裝映象檔案資訊
cobbler profile remove --name=centos65-x86_64 #移除profile
cobbler profile add --name=centos65-x86_64 --distro=centos65-x86_64 --kickstart=/var/lib/cobbler/kickstarts/centos65-x86_64.ks #新增
cobbler profile edit --name=centos65-x86_64 --distro=centos65-x86_64 --kickstart=/var/lib/cobbler/kickstarts/centos65-x86_64.ks #編輯
將kickstart生成的ks.cfg拷至cobbler的kickstarts目錄下
cp -rv /var/www/html/ks/ks.cfg /var/lib/cobbler/kickstarts/centos65.ks
vi /var/lib/cobbler/kickstarts/centos65.ks
url --url
:wqcobbler profile add --name=centos65-x86_64 --kickstart="/var/lib/cobbler/kickstarts/centos65.ks"
cobbler profile getks --name centos65-x86_64 檢視centos65.ks內容(等同於cat centos65.ks)
cobbler profile report
service cobbler restart
cobbler sync
centos65.ks內容:
#generated by kickstart configurator
#platform=x86
#system language
lang en_us
#language modules to install
langsupport en_us
#system keyboard
keyboard us
#system mouse
mouse
#system timezone
timezone america/new_york
#root password
rootpw --disabled
#initial user
user super --fullname "super" --iscrypted --password $1$.ljijomi$vfiecisvr.i**3uyivv9d1
#reboot after installation
reboot
#use text mode install
text
#install os instead of upgrade
install
#use web installation
url --url
#system bootloader configuration
bootloader --location=mbr
#clear the master boot record
zerombr yes
#partition clearing information
clearpart --all --initlabel
#disk partitioning information
part / --fstype ext4 --size 50000 --asprimary
part swap --size 20000 --asprimary
part /boot/efi --fstype vfat --size 1000 --asprimary
#system authorization infomation
auth --useshadow --enablemd5
#network information
network --bootproto=dhcp --device=em1
#firewall configuration
firewall --disabled
#do not configure the x window system
skipx
yangzhimingg
Cobbler批量部署linux系統
cobbler 是乙個快速安裝linux系統的網路安裝服務套件,整合了pxe dhcp dns kickstart服務管理和yum倉庫管理工具,通過pxe網路引導安裝,配置簡單。部署準備 關閉防火牆 service iptablesstop 關閉selinux setenforce 0 安裝epel...
Cobbler 客戶端自動重灌
客戶機自動安裝失敗,設定客戶機自動重灌。請注意 不是在cobbler server上安裝koan,是在client上安裝koan root localhost ls etc yum.repos.d 檢視epel源是否有 centos base.repo centos debuginfo.repo c...
cobbler 自動安裝linux系統 233
1.安裝個元件 yum install epel rpm macros.noarch y 安裝epel源yum install y cobbler cobbler web dhcp tftp server pykickstart httpd rsync xinetd cobbler 安裝cobble...