cobbler部署安装
2023-09-14 09:07:48 时间
挂载光驱
# mount /dev/cdrom /mnt/
安装cobbler所需软件
# yum install cobbler cobbler-web dhcp tftp-server pykickstart httpd -y
出现一下报错需要手动指定版本安装Django
cobbler-web-2.6.11-1.el6.noarch (epel) Requires: Django >= 1.4 # pip install Django==1.5.8
重启httpd服务
# /etc/init.d/httpd restart
启动cobbler
# /etc/init.d/cobblerd start # cobbler check 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 : 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/rsync 5 : file /etc/xinetd.d/rsync does not exist 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
修改cobbler设置的配置
vim /etc/cobbler/settings server: 10.0.0.7 next_server: 10.0.0.7 manage_dhcp: 1 # openssl passwd -1 -salt 'oldboy' 'oldboy' $1$oldboy$fXF8f078vI9J/q9XyXA8e/ default_password_crypted: "$1$oldboy$fXF8f078vI9J/q9XyXA8e/"
修改xinetd 的rsync配置
# vim /etc/xinetd.d/rsync
disable=no
重启 xinetd
# /etc/init.d/xinetd restart
重启cobbler
# /etc/init.d/cobblerd restart
再次check一下
1 : 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. 2 : file /etc/xinetd.d/rsync does not exist #其实存在忽略 3 : debmirror package is not installed, it will be required to manage debian deployments and repositories 4 : fencing tools were not found, and are required to use the (optional) power management features. install cman or fence-agents to use them 其他几个可以忽略
更dhcp模板
# vim /etc/cobbler/dhcp.template subnet 10.0.0.0 netmask 255.255.255.0 { option routers 10.0.0.2; option domain-name-servers 114.114.114.114; option subnet-mask 255.255.255.0; range dynamic-bootp 10.0.0.100 10.0.0.200;
同步配置 自动生成dhcpd.conf
# cobbler sync # cat /etc/dhcp/dhcpd.conf
cobbler日志
[root@linux-node1 cobbler]# cd /var/log/cobbler/ [root@linux-node1 cobbler]# ls anamon cobbler.log kicklog syslog tasks
导入镜像
# cobbler import --path=/mnt/ --name=CentOS-7.1-x86_64 --arch=x86_64 # cd /var/www/cobbler/ks_mirror/ # ls
上传配置文件
# cd /var/lib/cobbler/kickstarts/ # rz rz waiting to receive. Starting zmodem transfer. Press Ctrl+C to cancel. Transferring cobbler-CentOS-7.1-x86_64.cfg... 100% 1 KB 1 KB/sec 00:00:01 0 Errors
改名
cd /var/lib/cobbler/kickstarts/ # mv cobbler-CentOS-7.1-x86_64.cfg CentOS-7.1-x86_64.cfg # cobbler list # cobbler profile report # cobbler profile edit --help
设置cobbler的参数
#cobbler profile edit --name=CentOS-7.1-x86_64 --kickstart=/var/lib/cobbler/kickstarts/CentOS-7.1-x86_64.cfg
删除一个错误的镜像
# cobbler profile remove --name=CentOS-7.1-CentOS-7.1-x86_64
更改网卡名为eth0
# cobbler profile edit --name=CentOS-7.1-x86_64 --kopts='net.ifnames=0 biosdevname=0'
再次同步配置
# cobbler sync
电源固件开机
设置网卡启动 用加号控制 移到最上面 保存退出
修改Cobbler提示
# vim /etc/cobbler/pxe/pxedefault.template MENU TITLE Cobbler By BenjaminYang | http://www.cnblogs.com/benjamin77/
同步cobbler
# cobbler sync
相关文章
- ASP.NET Core 2.0 MVC 发布部署--------- linux安装.NET CORE SDK具体操作链接以及操作总细节
- Mac Pro 编译安装 Redis 的 PHP 客户端 phpredis
- RHEL 6.6安装桌面环境GNOME
- Centos7 k8s v1.5.2二进制部署安装-入门讲解
- Nginx安装详解
- CentOS安装nginx,部署vue项目
- yum安装openoffice
- Centos7安装部署openstack--nova计算服务(计算节点)
- Android 11.0 当安装多个播放器时,设置默认播放器播放歌曲
- 教你在VirtualBox 安装 Ubuntu 15.04
- 【Python笔记】图片处理库PIL的源代码安装步骤
- kafka单节点的安装,部署,使用
- lotus version 0.3.0+git1bfa2311 安装 interopnet
- HCIE-Cloud Computing LAB备考第二步:逐题攻破--第二题:FusionAccess--搭建FA实验环境之安装基础组件和初始化ITA组件
- 云计算|OpenStack|社区版OpenStack安装部署文档(十一--- 如何获取镜像---Rocky版)
- Superset 在线部署安装
- Hive安装部署
- Hadoop(2):Hadoop的安装和部署
- MPP数据库之Doris(5):Doris安装部署之Broker部署
- 【云原生 | Kubernetes 系列】---Ceph集群安装部署
- a24.ansible 生产实战案例 -- 基于kubeadm安装kubernetes v1.20 -- 集群部署(一)
- Python使用技巧(十三):图像界面设计PySide2与PyQt5的安装与使用测试
- Ceph 安装部署