Cobbler automatic installation of *nix system

Source: Internet
Author: User

Dependent software:

Yum install epel DHCP tftp RYSNC xinetd httpd-y

To turn off SELinux:

Temporary shutdown:

Setenforce 0

Permanently closed:

Sed-i ' s/selinux=.*/selinux=disable/g '/etc/selinux/config

Install Cobbler:

Yum Install Cobbler

Configuring XINETD Boot Tftp:/etc/xinetd.d/tftp

Configure subnets on the DHCP server


Cobbler Important Documents:

/var/lib/cobbler/kickstarts/: #默认放置ks. CFG configuration file location

/etc/cobbler/settings: #cobbler配置文件

#修改setting文件

#为了集成现有环境, cancel the Cobbler Management service with the following setting of 0

manage_dhcp:0

manage_dns:0

manage_tftpd:0

manage_rsync:0

After setting up the configuration file, start the service

Systemctl start dhcpd #67/udp systemctl start xinetd #69/udp systemctl start rsyncd systemctl start httpd Systemctl Start Cobblerd

Detection Cobbler:

Cobbler Check #此处会出现一些错误, follow the prompts to solve the problem in turn

Restart Service:

Systemctl Restart Cobblerd Cobbler Sync #同步


Mount Image:

Mount/dev/cdrom/mnt Cobbler Import--name= ' self-define_name '--path=/mnt #导入

To view the current profile:

Cobbler Profile List

Make Kickstart file:

Ks.cfg:

OpenSSL passwd-1-salt Root #生成用户密码

Download: System-config-kickstart

Production Ks.cfg:

Graphical interface:

System-config-kickstart

Modify the installed Ks.cfg file:/root/anaconda-ks.cfg

Verify the validity of the KS file:

Ksvalidator ks.cfg

Copy the configuration file to the Cobbler startup directory:

CP ks.cfg/var/lib/cobbler/kickstarts/

To import a configuration file:

Cobbler profile Add--name= ' centos-7-base '--distro= ' centos-7-x86_64 '--kickstart=/var/lib/cobbler/kickstarts/ Ks.cfg

Reference URL:

KS configuration file: http://www.osyunwei.com/archives/7577.html

Cobbler Installation: Http://www.linuxidc.com/Linux/2015-09/122945.htm

Cobbler principle: http://www.361way.com/cobbler-principle/4328.html


This article is from the Network Technology security blog, be sure to keep this source http://lizhenfen.blog.51cto.com/3178498/1750924

Cobbler automatic installation of *nix system

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.