批量自动部署linux,使用cobbler实现批量自动部署Linux

--------------------------------------------

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 the or IP forboot

server as reachable by all machines that will use it.

修改/etc/cobbler/settings 中server选项为:

server: 192.168.1.23

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.

修改/etc/cobbler/settings 中next_server选项为:

next_server: 192.168.1.23

3 : Must enable a selinux boolean to enable vital web services components, run: setsebool -P httpd_

can_network_connect true

关闭selinux

4 : you need to set some SELinux content rules to ensure cobbler serves content correctly in your

SELinux environment, run the following: /usr/sbin/semanage fcontext -a -t public_content_t "/var/

lib/tftpboot/.*" && /usr/sbin/semanage fcontext -a -t public_content_t "/var/www/cobbler"/p_w_picpaths/.*

关闭selinux

5 : you need to set some SELinux rules if you want to use cobbler-web (an optional package), run the following:

/usr/sbin/semanage fcontext -a -t httpd_sys_content_rw_t "/var/lib/cobbler/webui_sessions/.*"

关闭selinux

6 : 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.

运行cobbler get-loaders

cobbler get-loaders   ## 前提你能上网,出现*** TASK COMPLETE *** 代表ok

7 : change 'disable' to 'no' in /etc/xinetd.d/rsync

我们不用rysnc同步文件,如果用的话修改/etc/xinetd.d/rsync

vi /etc/xinetd.d/rsync

disable = no

8 : reposync is not installed, need for cobbler reposync, install/upgrade yum-utils?

可以不用理会,因为我们不用rsync同步ISO

9 : yumdownloader is not installed, needed for cobbler repo add with --rpm-list parameter, install/upgrade yum-utils?

同上

10 : debmirror package is not installed, it will be required to manage debian deployments and repositories

我们不是debian可以不用理会

11 : ksvalidator was not found, install pykickstart

安装pykickstart

yum -y install pykickstart

12 : 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

修改cobbler的密码,防止其它正常主机由pxe启动后安装系统

openssl passwd -1 -salt 51cto laoguang   ##生成密码

$1$51cto$nTnuekFUB6sByi97bt7df/   ##将它复制到setting中

vi /etc/cobbler/settings

default_password_crypted: "$1$51cto$nTnuekFUB6sByi97bt7df/"

-----------------------------------------

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值