设为首页 加入收藏

TOP

Centos7 下cobbler安装及配置(三)
2017-10-16 18:18:52 】 浏览:6308
Tags:Centos7 cobbler 安装 配置
6 user = root 7 server = /usr/sbin/in.tftpd 8 server_args = -s /var/lib/tftpboot 9 disable = no # 修改为no 10 per_source = 11 11 cps = 100 2 12 flags = IPv4 13 }

问题4:

[root@localhost ~]# cobbler get-loaders  # 下载缺失的文件
task started: 2017-10-15_113824_get_loaders
task started (id=Download Bootloader Content, time=Sun Oct 15 11:38:24 2017)
downloading https://cobbler.github.io/loaders/README to /var/lib/cobbler/loaders/README
downloading https://cobbler.github.io/loaders/COPYING.elilo to /var/lib/cobbler/loaders/COPYING.elilo
downloading https://cobbler.github.io/loaders/COPYING.yaboot to /var/lib/cobbler/loaders/COPYING.yaboot
downloading https://cobbler.github.io/loaders/COPYING.syslinux to /var/lib/cobbler/loaders/COPYING.syslinux
downloading https://cobbler.github.io/loaders/elilo-3.8-ia64.efi to /var/lib/cobbler/loaders/elilo-ia64.efi
downloading https://cobbler.github.io/loaders/yaboot-1.3.17 to /var/lib/cobbler/loaders/yaboot
downloading https://cobbler.github.io/loaders/pxelinux.0-3.86 to /var/lib/cobbler/loaders/pxelinux.0
downloading https://cobbler.github.io/loaders/menu.c32-3.86 to /var/lib/cobbler/loaders/menu.c32
downloading https://cobbler.github.io/loaders/grub-0.97-x86.efi to /var/lib/cobbler/loaders/grub-x86.efi
downloading https://cobbler.github.io/loaders/grub-0.97-x86_64.efi to /var/lib/cobbler/loaders/grub-x86_64.efi
*** TASK COMPLETE ***

问题5:

# 添加rsync到自启动并启动rsync
[root@localhost ~]# systemctl enable rsyncd Created symlink from /etc/systemd/system/multi-user.target.wants/rsyncd.service to /usr/lib/systemd/system/rsyncd.service. [root@localhost ~]# systemctl start rsyncd

 问题6:

debian 相关,可以忽略

问题7:

# 修改密码为123456 ,salt后面是常用的加盐方式加密
[root@localhost ~]# openssl passwd -1 -salt '123456' '123456' $1$123456$wOSEtcyiP2N/IfIl15W6Z0 [root@localhost ~]# vim /etc/cobbler/settings # 修改settings配置文件中下面位置,把新生成的密码加进去
default_password_crypted: "$1$123456$wOSEtcyiP2N/IfIl15W6Z0

再次执行cobbler check

[root@localhost ~]# cobbler check
The following are potential configuration items that you may want to fix:

1 : debmirror package is not installed, it will be required to manage debian deployments and repositories # debian相关 2 : fencing tools were not found, and are required to use the (optional) power management features. install cman or fence-agents to use them # fence设备相关,不需要

Restart cobblerd and then run 'cobbler sync' to apply changes.

以上两个问题暂时可以忽略

4.3.4配置cobbler-DHCP

修改cobbler配置

[root@localhost ~]# vim /etc/cobbler/settings # 修改settings中参数,由cobbler控制dhcp
manage_dhcp: 1

修改dhcp.templates配置文件(仅列出修改部分)

[root@localhost ~]# 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 10.0.0.2;
     option subnet-mask         255.255.255.0;
     range dynamic-bootp        10.0.0.100 10.0.0.250;

重启服务并同步配置,改完dhcp必须要sync同步配置

 1 [root@localhost ~]# systemctl restart cobblerd.service 
 2 [root@localhost ~]# cobbler sync
 3 task started: 2017-10-15_122732_sync
 4 task started (id=Sync, time=Sun Oct 15 12:27:32 2017)
 5 running pre-sync triggers
 6 cleaning trees
 7 removing: /var/lib/tftpboot/pxelinux.cfg/default
 8 removing: /var/lib/tftpboot/grub/efidefault
 9 removing: /var/lib/tftpboot/grub/grub-x86.efi
10 removing: /var/lib/tftpboot/gr
首页 上一页 1 2 3 4 5 6 7 下一页 尾页 3/7/7
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇虚拟机+桥接模式+Host-only模式 .. 下一篇在ubuntu16.04中一键创建LAMP环境..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目