Cobbler for automatic installation of CentOS 7.1 x86_64

Source: Internet
Author: User

1. Installation Preparation

[[email protected] ~]# yum install cobbler cobbler-web DHCP Tftp-server pykickstart httpd-y[[email protected] ~]#/etc/i NIT.D/HTTPD restart

2. Installation Configuration Cobbler

[[email protected] ~]# /etc/init.d/cobblerd start[[email protected] ~]#  cobbler check  the following are potential configuration items  that you may want to fix:1 : the  ' Server '  field in /etc /cobbler/settings must be set to something other than localhost,  Or kickstarting features will not work.  this should be a  resolvable hostname or ip 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 set to something other than 127.0.0.1, and should match  The ip of&nbSp;the boot server on the pxe  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_64 netbooting, you may ensure that you  have installed a *recent* version of the syslinux package   installed and can ignore this message entirely.  files in  this directory, should you want to support all architectures,  should include pxelinux.0, menu.c32, elilo.efi, and yaboot. The  ' Cobbler get-loaders '  command is the easiest way to resolve these  requirements.4 : change  ' disable '  to  ' no '  in /etc/xinetd.d/rsync5 : reposync is  not installed, need for cobbler reposync, install/upgrade yum-utils?6  : debmirror package is not installed, it will be required  to manage debian deployments and repositories7 : 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 be changed, try:  ' openssl passwd -1  -salt  ' random-phrase-here '   ' your-password-here ' " TO GENERATE NEW ONE8 :  fencing tools were not found, and are required to use  the  (optional)  power management features. install cman or fence-agents to use  themrestart cobblerd and then run  ' Cobbler sync '  to apply changes .

First step + Step two

Vim/etc/cobbler/settings server:10.0.0.7 next_server:10.0.0.7manage_dhcp:1

Step Three:

Cobbler Get-loaders

Fourth Step:

[[email protected] ~]# vim/etc/xinetd.d/rsyncchange ' disable ' to ' no ' [[email protected] ~]#/etc/init.d/xinetd restart

Seventh Step:

openssl passwd -1 -salt  ' Oldboy '   ' Oldboy ' default_ password_crypted:  "$1$oldboy$fxf8f078vi9j/q9xyxa8e/" [[email protected] ~]# yum  install -y debmirror yum-utils fence-agents[[email protected] ~]# /etc/ Init.d/cobblerd restart[[email protected] ~]# cobbler check[[email protected]  ~] #vim  /etc/cobbler/dhcp.templatesubnet 10.0.0.0 netmask 255.255.255.0 {      option routers              10.0.0.2;     option domain-name-servers 10.0.0.2;      option subnet-mask         255.255.255.0;      range dynamic-bootp         10.0.0.100 10.0.0.200; 

# #Cobbler同步

[Email protected] ~]# Cobbler Sync[[email protected] ~]# Cobbler import--path=/mnt/--name=centos-7.1-x86_64--arch=x86 _64
KS file put here: Cd/var/lib/cobbler/kickstarts/[[email protected] kickstarts]# mv Cobbler-centos-7.1-x86_64.cfg Centos-7.1-x86_64.cfg[[email protected] kickstarts]# Cobbler profile Edit--name=centos-7.1-x86_64--kickstart=/var/ Lib/cobbler/kickstarts/centos-7.1-x86_64.cfg[[email protected] kickstarts]# Cobbler profile Edit--name=  centos-7.1-x86_64--kopts= ' net.ifnames=0 biosdevname=0 ' #修改Cobbler提示vim/etc/cobbler/pxe/pxedefault.template MAC 00:0c:29:2b:4e:83cobbler system Add--name=oldboy--mac=00:0c:29:2b:4e:83--profile=centos-7.1-x86_64--ip-address= 10.0.0.111--subnet=255.255.255.0--gateway=10.0.0.2--interface=eth0--static=1--hostname=oldboy.example.com-- name-servers=10.0.0.2


This article is from the "architects of the Day" blog, be sure to keep this source http://wanyuetian.blog.51cto.com/3984643/1717855

Cobbler for automatic installation of CentOS 7.1 x86_64

Related Article

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.