CentOS 7 yum install cobbler2.8.3
安装前注意事项:
1、cobbler主机要为静态ip,否则和dhcpd服务冲突。
2、如果用虚拟机安装,client的内存请设置为2g以上,否则会报错。
3、kickstart文件中不要出现中文,大坑。。
需要关闭selinux。(重要)
centos官方源中无cobbler软件包,需要先安装epel源。然后清理yum缓存。
安装cobbler 和 cobbler-web等,启动相关服务,并且添加为开机启动。最后运行cobbler 常规检查
setenforce 0
systemctl stop firewalld.service
systemctl disable firewalld.service
yum install epel-release
yum update
yum clean all
yum install httpd tftp-server dhcp xinetd
yum install cobbler cobbler-web
systemctl start cobblerd.service
systemctl start httpd.service
systemctl start xinetd.service
systemctl start tftp.socket
systemctl start rsyncd.service
systemctl enable cobblerd.service
systemctl enable httpd.service
systemctl enable xinetd.service
systemctl enable tftp.socket
systemctl enable rsyncd.service
cobbler check
执行完cobbler check后,正常情况下输出如下结果
[root@localhost ~]# 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 the boot server on the PXE network.
3 : SELinux is enabled. Please review the following wiki page for details on ensuring cobbler works correctly in your SELinux environment:
https://github.com/cobbler/cobbler/wiki/Selinux
4 : change 'disable' to 'no' in /etc/xinetd.d/tftp
5 : 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.
6 : debmirror package is not installed, it will be required to manage debian deployments and repositories
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
8 : fencing tools were not found, and are required to use the (optional) power management features. install cman or fence-agents to use them Restart cobblerd and then run 'cobbler sync' to apply changes.
没有进行任何配置的情况下,发现了8个问题,一个个来解决
1-2:cobbler的setting配置文件中,要求server和next server的值不能设置为127.0.0.1,一般设置为cobbler所在主机的ip地址
vi /etc/cobbler/settings
server: 127.0.0.1--> server: 192.168.186.3
next_server: 127.0.0.1--> next_server: 192.168.186.3
ip地址请根据实际情况更改
3:selinux已经关闭,无视之
4:vi /etc/xinetd.d/tftp
disable = no
5:需要运行cobbler get-loaders来获取一些bootloader文件
cobbler get-loaders
6:不准备用来安装debian,可以无视之
7:我一般用kickstart配置文件来制定root密码,因此cobbler配置文件的那行不进行更改,保持默认(空)
重启cobbler,运行cobbler sync,再次运行cobbler check
systemctl restart cobblerd.service
cobbler sync
cobbler check
cobbler的安装算是初步完成了,下面就是cobbler的配置了。
一、导入系统镜像
mount /dev/cdrom /mnt
cobbler import --path=/mnt --name=CentOS-6.5-x86_64-bin-DVD1
注意命令别打错了,我一开始输错命令,等了很久它才提示我"Exception value: "invalid characters in name"... 导入完成后,可以输入cobbler list查看一下
打开浏览器,访问http://ip/cobbler看看,如果打不开,关掉防火墙试试
二、使用cobbler_web管理
改变cobbler的密码
htdigest /etc/cobbler/users.digest "Cobbler" cobbler
浏览器访问https://ip/cobbler_web访问。以前装的2.6版本cobbler可以用http来访问,不知道为啥这次装的只能用https。
三、dhcp配置
需要配置/ettc/cobbler/setting
sed -i 's/'manage_dhcp: 0/manage_dhcp: 1/' /etc/cobbler/setting
然后修改/etc/cobbler/dhcp.template,改成cobbler主机所在的子网。
修改完毕后运行cobbler sync来应用更改
附:使用图形化界面配置kickstart 。有图形环境才可以。需要安装system-config-kickstart这个软件包
===========================================================================================
Package Arch Version Repository Size
===========================================================================================
Installing:
system-config-kickstart noarch 2.9.7-1.el7 base 348 k
Installing for dependencies:
system-config-keyboard noarch 1.4.0-4.el7 base 33 k
system-config-keyboard-base noarch 1.4.0-4.el7 base 103 k
system-config-language noarch 1.4.0-9.el7 base 133 k
usermode-gtk x86_64 1.111-5.el7 base 109 k Transaction Summary
===========================================================================================
Install 1 Package (+4 Dependent packages) Total download size: 727 k
Installed size: 3.1 M
Is this ok [y/d/N]:
安装完后再控制台输入system-config-kickstart即可启动,不过我感觉这个软件貌似很老了,估计不是很兼容。
实际上启动文件和相关配置文件会放置在/usr/lib/tftpboot目录下。
CentOS 7 yum install cobbler2.8.3的更多相关文章
- centos在yum install报错:Another app is currently holding the yum lock解决方法
centos在yum install报错:Another app is currently holding the yum lock,这个问题可能是很多的新手经常遇到问题,之前也有人问我,包括本人在刚 ...
- centos 7 升级后yum install出现Exiting on user cancel
centos 7 升级后yum install出现Exiting on user cancel centos 7.x升级后用yum install进行安装时经常出现Exiting on user ca ...
- Centos yum install
http://wiki.centos.org/TipsAndTricks/BrokenVserver centos mirror: http://mirror.centos.org/centos/6 ...
- yum install mysql on centos 6.5 zz
http://www.cnblogs.com/xiaoluo501395377/archive/2013/04/07/3003278.html 1.使用yum命令进行mysql的安装 yum list ...
- vm安装centos后unknown host问题和yum install安装不成功问题
网上差了很多说要在vi /etc/sysconfig/network新增GATEWAY=192.168.0.1 还有vi /etc/sysconfig/network-scripts/ifcfg-et ...
- Centos 7下安装nginx,使用yum install nginx,提示没有可用的软件包
Centos 7下安装nginx,使用yum install nginx,提示没有可用的软件包. 18 (flaskApi) [root@67 flaskDemo]# yum -y install n ...
- 两台centos,用yum install 安装,一台成功,一台失败
记录一下问题: 两台centos,用yum install 安装软件,一台成功,一台失败 第一步:查看yum源 yum repolist enabled 疑问:centos安装的方法一致,但yum源 ...
- centos yum install redis
linux下yum安装redis以及使用 1.yum install redis --查看是否有redis yum 源 [root@localhost ~]# yum install r ...
- 【Centos】【Python3】yum install 报错
运行yum install 安装时报错 File "/usr/libexec/urlgrabber-ext-down", line 28 except OSError, e: Sy ...
随机推荐
- ul的margin撑不开想要的距离的办法
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...
- 使用Eureka作为springcloud的注册机
使用springcloud做项目的负载均衡,需要导的jar这里不再显示,具体配置如下: 作为被注册服务配置: 启动多台服务端就可以实现集群,相应的localhost需要转成真实的ip 当然一个项目还要 ...
- java集成微软的ad域,实现单点登录
1.ad域介绍: windos server 2008R2服务器下的ad域,见下图(我是在虚拟机安装到windos server) 2.连接ad域代码:(里面代码自行修改) public Result ...
- API认证&SDK&RESTful
python API的安全认证 我们根据pid加客户端的时间戳进行加密md5(pid|时间戳)得到的单向加密串,与时间戳,或者其它字段的串的url给服务端. 服务端接收到请求的url进行分析 客户 ...
- CF1093F Vasya and Array
题目链接:洛谷 以后还是要多打CF,不然就会错过这些很好的思维题了.我dp学得还是太烂,要多总结. 首先$len=1$就直接输出0. 我们考虑$dp[i][j]$表示前$i$个数的答案,而且第$i$个 ...
- 报错处理——# Creating Server TCP listening socket *:6379: bind: Address already in use
在启动redis时报错 # Creating Server TCP listening socket *:6379: bind: Address already in use 错误原因 6379地址已 ...
- 2018-2019-2 网络对抗技术 20165236 Exp6 信息搜集与漏洞扫描
2018-2019-2 网络对抗技术 20165236 Exp6 信息搜集与漏洞扫描 一.实验内容 1.实践目标 掌握信息搜集的最基础技能与常用工具的使用方法. 2.实践内容 (1)各种搜索技巧的应用 ...
- 使用TCP通信文件上传
客服端读取本地文件,吧文件上传到服务器,服务器在吧上传的文件保存到服务器硬盘上方法分析1:客户端使用本地字节输入流读取要上传的文件 2:客户端使用网络字节输出流,吧读取到的文件上传到服务器 3:服务器 ...
- Java实现RSA密钥对并在加解密、加签验签中应用的实例
一.项目结构 二.代码具体实现 1.密钥对生成的两种方式:一种生成公钥私文件,一种生成公钥私串 KeyPairGenUtil.java package com.wangjinxiang.genkey. ...
- ubuntu默认使用python2,更改默认使用python3
直接执行这两个命令即可: sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100 sudo upd ...