Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Installation and use of Cobbler system in linux

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "installation and use of Cobbler system in linux". In daily operation, I believe that many people have doubts about the installation and use of Cobbler system in linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "installation and use of Cobbler system in linux". Next, please follow the editor to study!

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 center or production environment, but pxe must need dhcp, so we need to allocate IP according to mac address, so 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

At this point, the study on "installation and use of Cobbler system in linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report