Cobbler automatic installation system of Linux operation and maintenance learning

Source: Internet
Author: User
Tags yum repolist

This blog post is the use of cobbler small tools to implement the automatic installation of our system, said the tool small bar, in fact, it contains a lot of tools, of course, we need to use Epel source to implement our installation, Epel the source of the modified address under/etc/yum.repos.d/, We can put the Epel source that we want to configure or the local repository's modification file under this, through the Yum clean All,yum makecache,yum repolist, to do a series of operations.

After we have installed through the Epel source, we can turn on the boot of our tools (DHCPD cobblerd httpd tftp) and some tools start immediately, because DHCP needs to be configured so that it cannot be started before it is configured, I am using a centos7 system So

Systemctl enable DHCPD cobblerd httpd TFTP//boot start systemctl start cobblerd httpd tftp//start now

Check Cobbler, cobbler check

1 : the  ' Server '  field in /etc/cobbler/settings must be set  To something other thanlocalhost, or kickstarting features will not  work. this should be a resolvable hostname orip for the  boot server as reachable by all machines that will use  it.2 : For PXE to be functional, the  ' Next_server '  field  in /etc/cobbler/settings must be setto something other than  127.0.0.1, and should match the ip of the boot server on  thepxe network.3 : some network boot-loaders are missing from  /var/lib/cobbler/loaders, you may run ' Cobbler get-loaders '  to download  them, or, if you only want to handle x86/x86_64netbooting, you may ensure that  you have installed a recent version of the syslinuxpackage  Installed and can ignore this message entirely. files in this  directory, should youwant to support all architectures, should  include pxelinux.0, menu.c32, elilo.efi, andyaboot. the  ' cobbler  Get-loaders '  command is the easiest way to resolve theserequirements.4  : change  ' disable '  to  ' no '  in /etc/xinetd.d/rsync5 : comment   ' dists '  on /etc/debmirror.conf for proper debian support6 :  comment  ' arches '  on /etc/debmirror.conf for proper debian support7 :  the default password  Used by the sample templates for newly installed machines (Default_ password_crypted in /etc/cobbler/settings)  is still set to  ' Cobbler '   and should bechanged, try:  "openssl passwd -1 -salt " Random-phrase-here '   ' your-password-here ' " togenerate new one8 : fencing  tools were not found, and are required to use the  (optional)  powermanagement features. install cman or fence-agents to use  them

Workaround: Modify these contents under File/etc/cobbler/settings, where the password I generated is 123

vim/etc/cobbler/settingsdefault_password_crypted: "$1$9/k4qnln$rpmdw8oilnafkpoa2qkth." #openssl passwd-1 generate password next_server:192.168.91.127server:192.168.91.127manage_dhcp:1 save exit systemctl Restart Cobblerd

Get the relevant startup file

Networking: Cobbler get-loaders #联网情况下会自动获取这两个文件到指定目录不联网: Cp/usr/share/syslinux/{pxelinux.0,menu.c32}/var/lib/tftpboot/

Modify the DHCP configuration file

Vim/etc/cobbler/dhcp.template Subnet 192.168.91.0 netmask 255.255.255.0 {range DYNAMIC-BOOTP 192.168.91.100 192.16 8.91.254;cobbler syncsystemctl start dhcpd #启动dhcp

Management distro

Cobbler Import--path=/misc/cd/--name=centos7.3cobbler distro list

Set individual properties of cobbler

Cp/root/ks7.cfg/var/lib/cobbler/kickstarts/cobbler profile Add--name=centos7.3-x86_64-desktop--distro= centos7.3-x86_64--kickstart=/var/lib/cobbler/kickstarts/ks7.cfgcobbler Profile Listcobbler profile Remove--name= Centos7.3-x86_64

Then we create a new virtual machine and select the host mode of a network segment on its network, and then power on select network boot from Inter E1000.

Cobbler automatic installation system of Linux operation and maintenance learning

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.