centos7.2 Installing the Cobbler and installing the system

Source: Internet
Author: User
Tags rsync

system CentOS7.2

To learn the CentOS6.5 system can look at this predecessor's link, here no longer introduce

Http://blog.chinaunix.net/uid-16728139-id-4174109.html

In fact, centos6.5 with 7.2 words, that is centos6.5 more than one rsync, and centos7.2 do not need to configure rsync, the other operations are the same

Let's put more of that part down.

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/83/DB/wKioL1d-ISLA40hMAABZ-1Ge358819.png-wh_500x0-wm_3 -wmp_4-s_2175948288.png "title=" clipboard (4). png "style=" Float:none; "alt=" Wkiol1d-isla40hmaabz-1ge358819.png-wh_ "/>


and the centos6.5 system (I'm using the VMware Workstation virtual way) will prompt a

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/83/DB/wKioL1d-ISXhepzwAAA8cGLfPVI723.png-wh_500x0-wm_3 -wmp_4-s_363001425.png "title=" clipboard. png "style=" Float:none; "alt=" Wkiol1d-isxhepzwaaa8cglfpvi723.png-wh_ "/>

We need you to hit the carriage return here.

Start the operation on centos7.2 below

1. Turn off SELinux

Sed-in ' s/selinux=enforcing/selinux=disabled/'/etc/selinux/configsetenforce 0


2. Turn off the firewall

Systemctl Disable Firewalld.servicesystemctl stop firewalld.servicesystemctl is-enabled firewalld.service


3. Install Epel-release, 163 source

Yum-y install Epel-release cd/etc/yum.repos.d/; Wget Http://mirrors.163.com/.help/CentOS7-Base-163.repo; Cd


4. View Cobbler Package

Yum Search All Cobbler


650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/83/DB/wKioL1d-ISaQmI3KAAB7Mr266uk341.png-wh_500x0-wm_3 -wmp_4-s_1661644947.png "title=" clipboard (). png "style=" Float:none; "alt=" Wkiol1d-isaqmi3kaab7mr266uk341.png-wh _50 "/>


5. Installing Cobbler

Yum-y Install Cobbler Cobbler-web


6. Install DHCP httpd xinetd

Yum-y Install DHCP httpd xinetd


7. Add Cobbler httpd dhcp xinetd to boot

Chkconfig cobblerd onchkconfig httpd onchkconfig dhcpd onchkconfig xinetd on


8. Configuring the Environment

Back up a profile first in case of a contingency

Cp/etc/cobbler/settings{,.bak}

next_server:10.0.0.103

server:10.0.0.103

manage_dhcp:0#设置为1时, the DHCP Manager that opens cobbler is not turned on, because the test is not turned on and there is nothing to configure the DHCPD configuration file

manage_rsync:1#设置为1时, turn on the Cobbler Rsync manager


9. Generate the password string (this password is the root password after the installation of the system)

Format:

OpenSSL passwd-1-salt "any character" "Password"

OpenSSL passwd-1-salt "Cobbler" "CentOS"

$1$cobbler$dwl2fhtharta2hj5veuzk.


Vim/etc/cobbler/settings


default_password_crypted: "$1$cobbler$dwl2fhtharta2hj5veuzk."


10. Enable xinetd

Change the value of disable to "no"


650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/83/DC/wKiom1d-ISKRcu5lAABr3cEppyU543.png-wh_500x0-wm_3 -wmp_4-s_4288542342.png "title=" clipboard (2). png "style=" Float:none; "alt=" Wkiom1d-iskrcu5laabr3ceppyu543.png-wh_ "/>

Systemctl Start Xinetd.service


11. Enable DHCP Service

Configure DHCP under the following configuration, assigned to the IP address can be directly connected to the Internet (as long as your Internet environment is not a problem)

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/83/DB/wKioL1d-ISKRZA7NAABYahkT7PE264.png-wh_500x0-wm_3 -wmp_4-s_1684363657.png "style=" Float:none; "title=" clipboard (3). png "alt=" Wkiol1d-iskrza7naabyahkt7pe264.png-wh_ "/>

Subnet 10.0.0.0 netmask 255.255.255.0 {

Option routers 10.0.0.1;

Option Domain-name-servers 114.114.114.114;

Option Subnet-mask 255.255.255.0;

Default-lease-time 21600;

Max-lease-time 43200;

Range 10.0.0.200 10.0.0.210;

Next-server 10.0.0.103;

FileName "pxelinux.0";

}

Systemctl Start Dhcpd.service


12. Start httpd cobbler then check cobbler and follow the instructions

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/83/DB/wKioL1d-ISPSuYPZAACP2gohiIc774.png-wh_500x0-wm_3 -wmp_4-s_729969727.png "style=" Float:none; "title=" clipboard (6). png "alt=" Wkiol1d-ispsuypzaacp2gohiic774.png-wh_ "/>

Systemctl start Httpd.servicesystemctl start Cobblerd.servicecobbler checkcobbler get-loaderssystemctl enable Rsyncd.serviceyum-y Install pykickstartyum-y install Fence-agentscobbler Sync

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/83/DC/wKiom1d-ISXAyd04AAAtUpTcfbs500.png-wh_500x0-wm_3 -wmp_4-s_441932309.png "title=" clipboard (a). png "style=" Float:none; "alt=" Wkiom1d-isxayd04aaatuptcfbs500.png-wh_ "/>

And the last one is for the Debian system. I don't need to install it.


13. Modify the Cobbler Web password ( This step can be omitted )

Htdigest/etc/cobbler/users.digest "Cobbler" cobbler

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/83/DC/wKiom1d-ISKCre7hAAAZNOonCnA833.png-wh_500x0-wm_3 -wmp_4-s_1925837722.png "style=" Float:none; "title=" clipboard (1). png "alt=" Wkiom1d-iskcre7haaaznooncna833.png-wh_ "/>

Systemctl Restart Httpd.servicesystemctl Restart Cobblerd.service


Note that the HTTP access protocol here is "https" note that using HTTP is not accessible

https: //10.0.0.103/cobbler_web

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/83/DC/wKiom1d-ISOg7TPeAAEvAKoMIik979.png-wh_500x0-wm_3 -wmp_4-s_4266491054.png "style=" Float:none; "title=" clipboard (5). png "alt=" Wkiom1d-isog7tpeaaevakomiik979.png-wh_ "/>


14. Mount the disk, import the system image, the centos7.2 system is imported here

Cobbler Import--path=/mnt/--name=centos7.2

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/83/DB/wKioL1d-ISPCIoVVAAC_d8pCmt8473.png-wh_500x0-wm_3 -wmp_4-s_3181087549.png "style=" Float:none; "title=" clipboard (7). png "alt=" Wkiol1d-ispciovvaac_d8pcmt8473.png-wh_ "/>


If you have a problem, check it with cobbler and you can speed up the wrong time.


650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/83/DB/wKioL1d-ISei1_j4AAHE29-vR5I903.png-wh_500x0-wm_3 -wmp_4-s_1681821760.png "title=" Clipboard.png "style=" Float:none; "alt=" Wkiol1d-isei1_j4aahe29-vr5i903.png-wh_50 " />

The KS file used above is the default, and the system that is installed is also minimized.


After doing this, you can install the system without the need for human intervention.


Here's a hint.

Sometimes you may need to install a system in bulk to copy the name of the label to the first line of the boot file.

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/83/DB/wKioL1d-ISSzf8puAACKwOrl4XE632.png-wh_500x0-wm_3 -wmp_4-s_2134447202.png "style=" Float:none; "title=" clipboard (9). png "alt=" Wkiol1d-isszf8puaackworl4xe632.png-wh_ "/>


The location of the boot program is

/var/lib/tftpboot/pxelinux.cfg/default

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/83/DB/wKioL1d-ISTgHyv4AACI8IK828c662.png-wh_500x0-wm_3 -wmp_4-s_1795509151.png "title=" clipboard (one). png "style=" Float:none; "alt=" Wkiol1d-istghyv4aaci8ik828c662.png-wh _50 "/>



Here's an explanation:

Default menu# Specifies the name of the boot entry (if specified)

PROMPT 0# whether to wait for the user to choose (1 means wait 0 to not wait) like this 650) this.width=650; src= http://s2.51cto.com/wyfs02/M02/83/DC/ Wkiom1d-issjgwpnaablancdmsu458.png-wh_500x0-wm_3-wmp_4-s_1925018290.png "title=" clipboard. png "style=" float: none; "alt=" Wkiom1d-issjgwpnaablancdmsu458.png-wh_50 "/>


LABEL ... #启动项

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/83/DC/wKiom1d-ISWCnJQPAABqoeUusB8925.png-wh_500x0-wm_3 -wmp_4-s_1138864727.png "title=" clipboard. png "style=" Float:none; "alt=" Wkiom1d-iswcnjqpaabqoeuusb8925.png-wh _50 "/>


650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/83/DB/wKioL1d-ISSBRROkAAAVn1RPgIo016.png-wh_500x0-wm_3 -wmp_4-s_1490643374.png "style=" Float:none; "title=" clipboard (8). png "alt=" Wkiol1d-issbrrokaaavn1rpgio016.png-wh_ "/>






This article is from the "Rslinux" blog, make sure to keep this source http://readshlinux.blog.51cto.com/9322509/1812402

centos7.2 Installing the Cobbler and installing the 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.