设为首页 加入收藏

TOP

Centos7 下cobbler安装及配置(二)
2017-10-16 18:18:52 】 浏览:5822
Tags:Centos7 cobbler 安装 配置
mlxTxEslhRvyp/"
manage_dhcp:1
manage_tftpd:1
pxe_just_once:1
next_server:< tftp服务器的 IP 地址>
server:

4.Cobbler安装

4.1系统信息

 1 [root@localhost ~]#  cat /etc/redhat-release 
 2 CentOS Linux release 7.2.1511 (Core) 
 3 [root@localhost ~]#  uname -r
 4 3.10.0-327.el7.x86_64
 5 [root@localhost ~]#  getenforce 
 6 Disabled
 7 [root@localhost ~]#  systemctl status firewalld.service 
 8 ● firewalld.service - firewalld - dynamic firewall daemon
 9    Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
10    Active: inactive (dead)
11      Docs: man:firewalld(1)
12 [root@localhost ~]#  ifconfig eno16777736|awk -F 
		    
 
			
="color: #800000">"
[ :]+" 'NR==2 {print $3}' 13 10.0.0.101 14 [root@localhost ~]# hostname 15 localhost.localdomain 16 [root@localhost ~]#

4.2配置yum源

[root@localhost ~]## rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-10.noarch.rpm
[root@localhost ~]## yum makecache

4.3开始安装Cobbler

4.3.1安装cobbler以及相关的软件

[root@localhost ~]# yum -y install httpd dhcp tftp python-ctypes cobbler  xinetd cobbler-web

4.3.2启动相关服务

[root@localhost ~]# systemctl start httpd
[root@localhost ~]# systemctl enable httpd
[root@localhost ~]# systemct1 enable cobblerd
[root@localhost ~]# systemctl start cobblerd

4.3.3通过cobbler check 核对当前设置是否有问题

 1 [root@localhost ~]# cobbler check
 2 The following are potential configuration items that you may want to fix:
 3 
 4 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.
 5 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 the boot server on the PXE network.
 6 3 : change 'disable' to 'no' in /etc/xinetd.d/tftp
 7 4 : 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.
 8 5 : enable and start rsyncd.service with systemctl
 9 6 : debmirror package is not installed, it will be required to manage debian deployments and repositories
10 7 : 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 one
11 8 : fencing tools were not found, and are required to use the (optional) power management features. install cman or fence-agents to use them
12 
13 Restart cobblerd and then run 'cobbler sync' to apply changes.

按照提示一个一个的解决问题:

问题1:

[root@localhost ~]# sed -i 's/^server: 127.0.0.1/server: 10.0.0.101/' /etc/cobbler/settings  # 修改server的ip地址为本机ip

问题2:

[root@localhost ~]# sed -i 's/^next_server: 127.0.0.1/next_server: 10.0.0.101/' /etc/cobbler/settings # TFTP Server 的IP地址

问题3:

 1 service tftp
 2 {
 3         socket_type             = dgram
 4         protocol                = udp
 5         wait                    = yes
			
		  
编程开发网
首页 上一页 1 2 3 4 5 6 7 下一页 尾页 2/7/7
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇虚拟机+桥接模式+Host-only模式 .. 下一篇在ubuntu16.04中一键创建LAMP环境..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

array(4) { ["type"]=> int(8) ["message"]=> string(24) "Undefined variable: jobs" ["file"]=> string(32) "/mnt/wp/cppentry/do/bencandy.php" ["line"]=> int(217) }