成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

cobbler如何實(shí)現(xiàn)自動(dòng)化無人值守安裝-創(chuàng)新互聯(lián)

這篇文章主要為大家展示了“cobbler如何實(shí)現(xiàn)自動(dòng)化無人值守安裝”,內(nèi)容簡(jiǎn)而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領(lǐng)大家一起研究并學(xué)習(xí)一下“cobbler如何實(shí)現(xiàn)自動(dòng)化無人值守安裝”這篇文章吧。

目前成都創(chuàng)新互聯(lián)公司已為超過千家的企業(yè)提供了網(wǎng)站建設(shè)、域名、網(wǎng)頁空間、網(wǎng)站托管、服務(wù)器租用、企業(yè)網(wǎng)站設(shè)計(jì)、古冶網(wǎng)站維護(hù)等服務(wù),公司將堅(jiān)持客戶導(dǎo)向、應(yīng)用為本的策略,正道將秉承"和諧、參與、激情"的文化,與客戶和合作伙伴齊心協(xié)力一起成長(zhǎng),共同發(fā)展。

cobbler自動(dòng)化無人值守安裝

root@localhost ~]# yum install epel-release -y  ##安裝源碼包
##安裝必要組件
yum install  -y \
cobbler \      ##安裝cobbler\
cobbler-web \    ##網(wǎng)頁形式管理
dhcp \                ##地址分配服務(wù) 
tftp-server \       ##放壓縮和引導(dǎo)文件
pykickstart \      ##Python開發(fā)的kickstart
httpd \               ##網(wǎng)絡(luò)服務(wù)
rsync \              ##遠(yuǎn)程同步管理
xinetd               ##管理平臺(tái)

開始配置cobbler

[root@localhost ~]# cd /etc/cobbler/
[root@localhost cobbler]# ls
auth.conf         import_rsync_whitelist  pxe                 users.conf
cheetah_macros    iso                     reporting           users.digest
cobbler_bash      ldap                    rsync.exclude       version
completions       modules.conf            rsync.template      zone.template
dhcp.template     mongodb.conf            secondary.template  zone_templates
dnsmasq.template  named.template          settings
genders.template  power                   tftpd.template
[root@localhost cobbler]# vim settings 
278 next_server: 192.168.136.179  ##修改地址為服務(wù)器地址
279 server: 192.168.136.179  ##添加服務(wù)器地址
280 manage_dhcp: 1  ##開啟dhcp

[root@localhost cobbler]# systemctl start httpd.service      ##開啟http服務(wù)
[root@localhost cobbler]# systemctl start cobblerd.service ##開啟cobbler服務(wù)
[root@localhost cobbler]# systemctl stop firewalld.service  ##關(guān)閉防火墻
[root@localhost cobbler]# setenforce 0     ##關(guān)閉增強(qiáng)功能

優(yōu)化cobbler

[root@localhost cobbler]# cobbler check
[root@localhost cobbler]# vim /etc/xinetd.d/tftp

service tftp
{
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /var/lib/tftpboot
        disable                 = no  ##此處改為no
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}
[root@localhost cobbler]# systemctl enable rsyncd.service  ##優(yōu)化開啟遠(yuǎn)程同步管理服務(wù)
[root@localhost cobbler]# openssl passwd -1 -salt 'abc123''abc123'  ##設(shè)置管理員密碼
Password: 
$1$abc123ab$Z6awNYIN3LrF2YlvXPh6N. ##復(fù)制此段是鹽值加密過后的密文

[root@localhost cobbler]# vim /etc/cobbler/settings
101 default_password_crypted: "$1$abc123ab$Z6awNYIN3LrF2YlvXPh6N." ##第101行把我們剛才設(shè)置的
密碼的密文復(fù)制到此處
[root@localhost cobbler]# systemctl start rsyncd.service  ##啟動(dòng)服務(wù)
[root@localhost cobbler]# systemctl restart xinetd.service

配置DHCP服務(wù)

[root@localhost cobbler]# vim /etc/cobbler/dhcp.template 
subnet 192.168.136.0 netmask 255.255.255.0 {  ##修改本地服務(wù)器的網(wǎng)段
     option routers             192.168.136.1;  
     option domain-name-servers 192.168.136.1;
     option subnet-mask         255.255.255.0;
     range dynamic-bootp        192.168.136.100 192.168.136.254;  ##地址池
[root@localhost cobbler]# cobbler sync  ##同步生成dhcp配置文件(/etc/dhcp/dhcp.conf)
task started: 2019-11-15_154150_sync
task started (id=Sync, time=Fri Nov 15 15:41:50 2019)
running pre-sync triggers
cleaning trees
[root@localhost cobbler]# systemctl restart dhcpd.service   ##啟動(dòng)dhcp服務(wù)
[root@localhost cobbler]# systemctl start cobblerd.service  ##啟動(dòng)cobbler服務(wù)
[root@localhost cobbler]# systemctl start xinetd.service      ##啟動(dòng)管理平臺(tái)服務(wù)

掛載鏡像,把鏡像生成到cobbler中

[root@localhost cobbler]# mount /dev/cdrom /mnt/  ##將鏡像掛載到mnt目錄
mount: /dev/sr0 寫保護(hù),將以只讀方式掛載
[root@localhost cobbler]# cd /mnt/
[root@localhost mnt]# ls
CentOS_BuildTag  GPL       LiveOS    RPM-GPG-KEY-CentOS-7
EFI              images    Packages  RPM-GPG-KEY-CentOS-Testing-7
EULA             isolinux  repodata  TRANS.TBL
[root@localhost mnt]# cobbler import --path=/mnt/ --name=Centos-7-x86_64 --arch=x86_64

導(dǎo)入鏡像文件指明路徑,生成名字

[root@localhost ks_mirror]# ls
Centos-7-x86_64  config
[root@localhost ks_mirror]# cobbler list    ##查看文件信息
distros:
     Centos-7-x86_64

profiles:
     Centos-7-x86_64

systems:

repos:

images:

mgmtclasses:

packages:

files:

查看壓縮內(nèi)核和引導(dǎo)文件

[root@localhost ks_mirror]# yum install tree -y   ##安裝tree工具
[root@localhost ks_mirror]# tree /var/lib/tftpboot/images    ##查看壓縮內(nèi)核和引導(dǎo)文件
/var/lib/tftpboot/images
└── Centos-7-x86_64
        ├── initrd.img    ##引導(dǎo)文件
        └── vmlinuz      ##壓縮內(nèi)核

全部重啟服務(wù)

[root@localhost ks_mirror]# systemctl restart cobblerd.service 
[root@localhost ks_mirror]# systemctl restart dhcpd.service 
[root@localhost ks_mirror]# systemctl restart xinetd.service 
[root@localhost ks_mirror]# systemctl restart httpd.service

創(chuàng)建一臺(tái)沒有系統(tǒng)的虛擬機(jī),開啟自動(dòng)安裝系統(tǒng)(字符界面)

cobbler如何實(shí)現(xiàn)自動(dòng)化無人值守安裝
cobbler如何實(shí)現(xiàn)自動(dòng)化無人值守安裝

安裝圖形界面

代碼:[root@localhost ~]#yum groupinstall "GNOME Desktop"
代碼:[root@localhost ~]# yum groupinstall 'KDE Plasma Workspaces" -y
代碼:[root@localhost ~]# yum groupinstall "X Window System" 或者"Graphical Administration Tools"

利用cobbler的web管理

[root@localhost ks_mirror]# vim /etc/cobbler/modules.conf ##配置模塊配置文件

module = authn_configfile  ##默認(rèn)開啟

[root@localhost ks_mirror]# htdigest -c /etc/cobbler/users.digest Cobbler adadmin ##創(chuàng)建用戶密碼
Adding password for adadmin in realm Cobbler.
New password:     ##輸入密碼
Re-type new password: 
[root@localhost ks_mirror]# systemctl restart cobblerd.service   ##重啟cobbler服務(wù)
[root@localhost ks_mirror]# systemctl restart httpd.service         ##重啟httpd服務(wù)

cobbler如何實(shí)現(xiàn)自動(dòng)化無人值守安裝cobbler如何實(shí)現(xiàn)自動(dòng)化無人值守安裝

啟用pam認(rèn)證,身份登錄

[root@localhost ks_mirror]# vim /etc/cobbler/modules.conf   ##修改模塊配置文件

[authentication]   
module = authn_pam    ##修改成pam認(rèn)證模塊

[authorization]
module = authz_ownership ##指定訪問權(quán)限

[root@localhost ks_mirror]# useradd webuser  ##創(chuàng)建系統(tǒng)用戶
[root@localhost ks_mirror]# passwd webuser   ##設(shè)置密碼
更改用戶 webuser 的密碼 。
新的 密碼:
無效的密碼: 密碼少于 8 個(gè)字符
重新輸入新的 密碼:
passwd:所有的身份驗(yàn)證令牌已經(jīng)成功更新。

[root@localhost ks_mirror]# vim /etc/cobbler/users.conf   ##修改cobbler下的users.conf文件

[admins]
admin = ""
cobbler = ""
webuser = ""    ##添加用戶

[root@localhost ks_mirror]# systemctl restart httpd.service   ##重啟服務(wù)
[root@localhost ks_mirror]# systemctl restart cobblerd.service

登錄web管理網(wǎng)頁

cobbler如何實(shí)現(xiàn)自動(dòng)化無人值守安裝cobbler如何實(shí)現(xiàn)自動(dòng)化無人值守安裝

以上是“cobbler如何實(shí)現(xiàn)自動(dòng)化無人值守安裝”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對(duì)大家有所幫助,如果還想學(xué)習(xí)更多知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。

網(wǎng)頁名稱:cobbler如何實(shí)現(xiàn)自動(dòng)化無人值守安裝-創(chuàng)新互聯(lián)
當(dāng)前URL:http://jinyejixie.com/article0/ddsdio.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站制作建站公司、微信公眾號(hào)品牌網(wǎng)站建設(shè)、全網(wǎng)營(yíng)銷推廣、企業(yè)建站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站托管運(yùn)營(yíng)