Implementation of automated installation system based on cobbler

Source: Internet
Author: User

Implementation of automated installation system based on cobbler



Environment Introduction centos6.8


Two NICs for centos6.8 (not necessary)

One piece for bridging for easy Xshell connection and testing

A piece for Vmnet3: Used to build dhcp,tftp, and to provide cobbler services for clients



(Make sure to install Tftp,dhcp,rsync)

# yum Install httpd cobbler cobbler-web Pykickstart debmirror


1. Start the corresponding service

# service httpd start# service Cobblerd start


2. Detecting The Cobbler Environment

# Cobbler Check ... Output omitted ...


Omit the output and make the appropriate changes as prompted

Note: You need to reboot after each modification to complete a step and then do the testing

Modifications involving modified IPs we should all be 192.168.100.100. Addresses that do not use bridged NICs


There is an error message that needs to be explained below

(1): Some network boot-loaders is missing from/var/lib/cobbler/loaders, you may run ' cobbler get-loaders '

To download them, or, if you are want to handle x86/x86_64 netbooting

Installed a *recent* version of the Syslinux package installed and can ignore this message entirely.

Files in the This directory, should want to support all architectures, should include pxelinux.0, MENU.C32, Elilo.efi,

and Yaboot. The ' Cobbler get-loaders ' command is the easiest-to resolve these requirements.


There are two ways to resolve this error


# Cobbler Get-loaders-on-premise needs to be able to connect to the Internet

# yum-y Install Syslinux--if you can't connect to the Internet (if the Yum source is configured well)


Some unimportant issues can be ignored.



3. Synchronizing Data

# Cobbler Sync



4. Configure DHCP

# vim/etc/dhcp/dhcpd.confsubnet 192.168.100.0 netmask 255.255.255.0 {range 192.168.100.1 192.168.100.10;        Option routers 192.168.100.100;        Next-server 192.168.100.100; FileName "pxelinux.0";} # Service DHCPD Restart



5. Start TFTP

# chkconfig xinetd on# chkconfig tftp on# service xinetd start


6. Import the installation tree with import because our kernel and INITRD files are local (if not local to import with distro)

Import the root file system # Cobbler Import--name= "centos6.8-x86.64"--path=/misc/cd the location of the disc mount


Import other distributions in the same way (the gourd can be drawn)


This step requires disk space of the same size as the disc to ensure sufficient disk space

# Cobbler Distro List centos6.8.64-x86_64--Import successful
# ls/etc/httpd/conf.d/cobbler*/etc/httpd/conf.d/cobbler.conf/etc/httpd/conf.d/cobbler_web.conf# ls/var/www/ cobbler*-d/var/www/cobbler/var/www/cobbler_webui_content//generated files


650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/8B/0B/wKioL1hCy5ez05qEAACbqEJSKsU860.png-wh_500x0-wm_3 -wmp_4-s_4014782205.png "title=" 1.png "alt=" Wkiol1hcy5ez05qeaacbqejsksu860.png-wh_50 "/>



7. Define profile (import Ks.cfg)

# cp/root/ks.cfg/var/lib/cobbler/kickstarts/# Cobbler profile Add--name= "Centos6.8-x86.64_first" >--distro= " Centos6.8.64-x86_64 "--kickstart=/var/lib/cobbler/kickstarts/ks.cfg # Cobbler Profile List



8. Data synchronization

# Cobbler Sync



9. Test (another virtual machine's NIC is Vmnet3)


Prerequisite: Modify for network boot


650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/8B/0F/wKiom1hCy8GCLFaWAAAecJsN6sg753.png-wh_500x0-wm_3 -wmp_4-s_3805141637.png "title=" 2.png "alt=" Wkiom1hcy8gclfawaaaecjsn6sg753.png-wh_50 "/>


650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/8B/0B/wKioL1hCy82z6KaUAAA5P1pmPRQ559.png-wh_500x0-wm_3 -wmp_4-s_2043282263.png "title=" 3.png "alt=" Wkiol1hcy82z6kauaaa5p1pmprq559.png-wh_50 "/>


10. Add another installation tree (you can use a different ks.cfg file)

# Cobbler Profile Add--name= "Centos6.8-x86.64_second" >--distro= "centos6.8.64-x86_64"--kickstart=/var/lib/  cobbler/kickstarts/ks2.cfg# Cobbler Profile List Centos6.8-x86.64_first Centos6.8-x86.64_second-A second installation tree import succeeded # vim /var/lib/tftpboot/pxelinux.cfg/default


650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/8B/0F/wKiom1hCy_KxRrcqAABEmC_F1UU376.png-wh_500x0-wm_3 -wmp_4-s_623507817.png "title=" 4.png "alt=" Wkiom1hcy_kxrrcqaabemc_f1uu376.png-wh_50 "/>



650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/8B/0B/wKioL1hCzAOTL0PRAAAP4sCaYbI572.png-wh_500x0-wm_3 -wmp_4-s_2969195580.png "title=" 5.png "alt=" Wkiol1hczaotl0praaap4scaybi572.png-wh_50 "/>



This article is from the "Homecoming" blog, make sure to keep this source http://sixijie123.blog.51cto.com/11880770/1879221

Implementation of automated installation system based on cobbler

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.