In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to install Cobbler, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Brief introduction
Cobbler is a free open source system installation and deployment software, which is used to automate the network installation operating system; based on Python development, it is the secondary packaging of PXE, providing the management form of CLI and Web, as well as API interface, which is convenient for secondary development.
It can not only install physical machines, but also support virtualization and GuestOS installation. In addition, Cobbler can also be combined with Puppet and other centralized management software to achieve automatic management.
Relationship between components of Cobbler:
Installation process:
Install Cobbler:
Cobbler is provided by epel source, so you need to configure yum source pointing to epel in advance. Cobbler will install dependent services together, such as tftp-server, httpd;, dncp, rsync and so on.
[root@node0 ~] # yum install cobbler pykickstart debmirror dhcp rsync cman fence-agents [root@node0 ~] # service httpd start [root@node0 ~] # chkconfig tftp on [root@node0 ~] # chkconfig rsync on
Configure Cobbler:
[root@node0 ~] # vim / etc/cobbler/settings
Server: 192.168.1.4
Next_server: 192.168.1.4
[root@node0 ~] # cobbler get-loaders
[root@node0 ~] # vim / etc/debmirror.conf
# @ dists= "sid"
# @ arches= "i386"
[root@node0 ~] # openssl passwd-1-salt `openssl rand-hex 4`
$1 $ca6a7d72 $KDte4ZK00OCLiK4PLE4tp0
[root@node0 ~] # vim / etc/cobbler/settings
Default_password_crypted: "$1 $ca6a7d72 $KDte4ZK00OCLiK4PLE4tp0"
[root@node0 ~] # service cobblerd start
[root@node0 ~] # chkconfig cobblerd on
[root@node0 ~] # cobbler sync
Configure DHCP:
[root@node0 ~] # cp/ usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample / etc/dhcp/dhcpd.conf [root@node0 ~] # vim / etc/dhcp/dhcpd.conf subnet 192.168.1.0 netmask 255.255.255.0 {range 192.168.1.1 192.168.1.100; option routers 192.168.1.1; next-server 192.168.1.4; filename "pxelinux.0" } [root@node0 ~] # service dhcpd start [root@node0 ~] # chkconfig dhcpd on
Add distro: Mount the image and add it to cobbler
[root@node0] # mount / mnt/hgfs/lin/CentOS-6.7-x86_64-bin-DVD1.iso / mnt/cdrom/ [root@node0 ~] # cobbler import-- name=CentOS-6.7-x86_64-- path=/mnt/cdrom/-- kickstart=/root/anaconda-ks.cfg task started: 2016-03-08_203724_import task started (id=Media import, time=Tue Mar 8 20:37:24 2016) Found a candidate signature: breed=redhat, version=rhel6 Found a matching signature: breed=redhat Version=rhel6 Adding distros from path / var/www/cobbler/ks_mirror/CentOS-6.7-x86_64: skipping import, as distro name already exists: CentOS-6.7-x86_64 No distros imported, bailing out! TASK FAILED!
View the current distro:
Root@node0 ~] # cobbler distro list CentOS-6.7-x86_64
Test the installation:
The above is all the contents of the article "how to install Cobbler". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.