In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the knowledge of "detailed steps to install Cobbler under Linux". Many people will encounter this dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
A brief introduction to cobbler
Cobbler is an open source project supported by Redhat to deploy and install systems. Therefore, it is better to support Redhat series os. But the support for ubuntu is very poor. There are many settings in cobbler that are only valid for redhat, but also because the installation of different distributions is different. Cobbler seems to have a strained relationship with ubuntu.
Cobbler is not only a pxe server, it can also manage dns (bind), dhcp. In general, dhcp is not allowed in data centers or production environments, but pxe must require dhcp, so we need to allocate IP according to the mac address, so that dhcp will not affect the network.
1. Install cobbler
Configure epel source http://mirrors.ustc.edu.cn/fedora/epel/6/i386/ in advance
[root@60sec /] # yum-y install cobbler
[root@60sec /] # service httpd start
Starting httpd: [OK]
[root@60sec /] # service cobblerd start
Starting cobbler daemon: [OK]
2. Execute the cobbler check command to check the existing problems, and then follow the prompts to solve them one by one
[root@60sec /] # vim / etc/cobbler/settings
Next_server: 192.168.83.137
Server: 192.168.83.137
Manage_tftpd: 0
[root@60sec /] # yum-y install syslinux
[root@60sec /] # chkconfig rsync on
[root@60sec /] # yum-y install pykickstart
[root@60sec /] # openssl passwd-1-salt 'openssl rand-hex 4'
Password:
$1$ openssl $.oduSwbhLj6jqAwVsLo/H1
[root@60sec /] # vim / etc/cobbler/settings
Default_password_crypted: "penssl $.oduSwbhLj6jqAwVsLo / H1"
[root@60sec /] # cd / usr/share/syslinux/
[root@60sec syslinux] # cp-r. / * / var/lib/cobbler/loaders/
3. Install the dhcp service
[root@60sec /] # yum-y install dhcp
[root@60sec /] # cp/ usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample / etc/dhcp/dhcpd.conf
[root@60sec /] # vim / etc/dhcp/dhcpd.conf
Option domain-name "60sec.com"
Option domain-name-servers 192.168.83.137
Default-lease-time 43300
Max-lease-time 86500
Subnet 192.168.83.0 netmask 255.255.255.0 {
Range 192.168.83.50 192.168.83.100
Option routers 192.168.83.137
}
Next-server 192.168.83.137
Filename= "pxelinux.0"
[root@60sec /] # service dhcpd start
Starting dhcpd: [OK]
4. Enable tftp service
[root@60sec /] # chkconfig tftp on
[root@60sec /] # service xinetd start
Starting xinetd: [OK]
5. Define distro, mount the CD and import it
[root@60sec /] # mount-r / dev/cdrom / media/
[root@60sec /] # cobbler import-name=centos-6.5-x86_64-path=/media
6. If you have a kickstart file, use "--kickstart=/path/to/kickstart_file" to import, or use the following command to detect
You can use system-config-kickstart to make kickstart files. The ks files of cobbler are placed under / var/lib/cobbler/kickstarts/ by default to customize the ks files according to different requirements.
[root@60sec mnt] # ksvalidator centos6.x86_64.cfg
7. Setting up profile,profile can be understood as classifying according to installation requirements.
[root@60sec mnt] # cobbler profile add-name=CenTos-6.5-x86_64-basic-distro=centos-6.5-x86_64-kickstart=/mnt/centos6.x86_64.cfg
[root@60sec mnt] # cobbler profile list
CenTos-6.5-x86_64-basic
Centos-6.5-x86_64
[root@60sec mnt] # cobbler sync
[root@60sec mnt] # service cobblerd restart
Relevant information can be modified
[root@60sec mnt] # vim / var/lib/tftpboot/pxelinux.cfg/default
8. Recreate the virtual machine test
This is the end of the "detailed steps for installing Cobbler under Linux". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.