#####################################################
##如有转载,请务必保留本文链接及版权信息
##欢迎广大运维同仁一起交流linux/unix网站运维技术!
##QQ:335623998
##E-mail:[email protected]
##博客: http://dreamway.blog.51cto.com/
##weibo:http://weibo.com/zhaixiangpan
#####################################################

Cobbler部署指南》系列



1
、《Cobbler部署指南之安装篇》http://dreamway.blog.51cto.com/blog/1281816/1166589



2
、《Cobbler部署指南之配置管理篇[上文]http://dreamway.blog.51cto.com/blog/1281816/1166921



3
、《Cobbler部署指南之配置管理篇[下文]http://dreamway.blog.51cto.com/blog/1281816/1166932


4、《Cobbler部署指南之yum仓库配置管理篇》http://dreamway.blog.51cto.com/blog/1281816/1166936


5、《Cobbler部署指南之Cobbler安装操作系统篇》http://dreamway.blog.51cto.com/blog/1281816/1166947


6、《Cobbler部署指南之安装虚拟化Xen系统篇》http://dreamway.blog.51cto.com/blog/1281816/1166950


7、《Cobbler部署指南之电源管理篇》http://dreamway.blog.51cto.com/blog/1281816/1166957


8、《Cobbler部署指南之FAQ处理篇》http://dreamway.blog.51cto.com/blog/1281816/1167078


Cobbler报错处理



通过cobbler check检查出现的报错

红色标注为报错关键信息


9.1 报错一


 
  
  1. # cobbler check

  2. httpd does not appear to be running and proxying cobbler, or SELinux isin the way. Original traceback:

  3. Traceback (most recent call last):

  4. File "/usr/lib/python2.4/site-packages/cobbler/cli.py", line 184, in check_setup

  5. s.ping()

  6. File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__

  7. return self.__send(self.__name, args)

  8. File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request

  9. verbose=self.__verbose

  10. File "/usr/lib64/python2.4/xmlrpclib.py", line 1129, in request

  11. self.send_content(h, request_body)

  12. File "/usr/lib64/python2.4/xmlrpclib.py", line 1243, in send_content

  13. connection.endheaders()

  14. File "/usr/lib64/python2.4/httplib.py", line 804, in endheaders

  15. self._send_output()

  16. File "/usr/lib64/python2.4/httplib.py", line 685, in _send_output

  17. self.send(msg)

  18. File "/usr/lib64/python2.4/httplib.py", line 652, in send

  19. self.connect()

  20. File "/usr/lib64/python2.4/httplib.py", line 636, inconnect

  21. raise socket.error, msg

  22. error: (111, 'Connection refused')

解决启动httpd服务

 
  
  1. service httpd start

  2. Starting httpd: Syntax error on line 10 of /etc/httpd/conf.d/cobbler.conf:

  3. Invalid command 'WSGIScriptAliasMatch', perhaps misspelled or defined by a module not included in the server configuration

  4. [FAILED]#启动httpd时的报错,解决方法如下

解决

 
  
  1. vim /etc/httpd/conf.d/wsgi.conf

  2. 去掉注释

  3. LoadModule wsgi_module modules/mod_wsgi.so

  4. 再启动httpd服务

  5. service httpd start

  6. Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using x.x.x.x for ServerName

  7. [ OK ]

再进行一些针对apache ServerName参数配置的处理

 
  
  1. egrep "ServerName|Listen" /etc/httpd/conf/httpd.conf |grep -v '#'

  2. Listen 172.17.10.14:80

  3. ServerName 80

官方相关资料https://github.com/cobbler/cobbler/wiki/Cobbler%20web%20interface

9.2 报错二


此步共修复七个需要处理的提示,一个一个解决


 
  
  1. # cobbler check

  2. The following are potential configuration items that you may want to fix:

  3. 1 : service dhcpd isnot running

  4. 解决:DHCP先不处理

  5. 2 : 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. 解决:执行 cobbler get-loaders,系统将自动下载loader程序,完成提示2的修复工作。

  7. # cobbler get-loaders

  8. task started: 2013-03-10_103017_get_loaders

  9. task started (id=Download Bootloader Content, time=Sun Mar 10 10:30:17 2013)

  10. downloading http://dgoodwin.fedorapeople.org/loaders/README to /var/lib/cobbler/loaders/README

  11. downloading http://dgoodwin.fedorapeople.org/loaders/COPYING.elilo to /var/lib/cobbler/loaders/COPYING.elilo

  12. downloading http://dgoodwin.fedorapeople.org/loaders/COPYING.yaboot to /var/lib/cobbler/loaders/COPYING.yaboot

  13. downloading http://dgoodwin.fedorapeople.org/loaders/COPYING.syslinux to /var/lib/cobbler/loaders/COPYING.syslinux

  14. downloading http://dgoodwin.fedorapeople.org/loaders/elilo-3.8-ia64.efi to /var/lib/cobbler/loaders/elilo-ia64.efi

  15. downloading http://dgoodwin.fedorapeople.org/loaders/yaboot-1.3.14-12 to /var/lib/cobbler/loaders/yaboot

  16. downloading http://dgoodwin.fedorapeople.org/loaders/pxelinux.0-3.61 to /var/lib/cobbler/loaders/pxelinux.0

  17. downloading http://dgoodwin.fedorapeople.org/loaders/menu.c32-3.61 to /var/lib/cobbler/loaders/menu.c32

  18. downloading http://dgoodwin.fedorapeople.org/loaders/grub-0.97-x86.efi to /var/lib/cobbler/loaders/grub-x86.efi

  19. downloading http://dgoodwin.fedorapeople.org/loaders/grub-0.97-x86_64.efi to /var/lib/cobbler/loaders/grub-x86_64.efi

  20. *** TASK COMPLETE ***

  21. 3 : debmirror package isnot installed, it will be required to manage debian deployments and repositories

  22. 解决:提示说debmirror没安装。如果不是安装 debian之类的系统,此提示可以忽略,如果需要安装,

  23. 安装 debmirror

  24. yum -y install debmirror

  25. 编辑注释

  26. 修改 /etc/debmirror.conf 配置文件,注释掉 @dists 和 @arches 两行

  27. sed -i 's|@dists=.*|#@dists=|' /etc/debmirror.conf

  28. sed -i 's|@arches=.*|#@arches=|' /etc/debmirror.conf

  29. 4 : ksvalidator was not found, install pykickstart

  30. 解决:安装ksvalidator

  31. yum install pykickstart -y

  32. 5 : The defaultpassword used by the sample templates for newly installed machines (default_password_crypted in /etc/cobbler/settings) is still setto'cobbler'and should be changed, try: "openssl passwd -1 -salt 'random-phrase-here' 'your-password-here'"to generate new one

  33. 解决:修改cobbler用户的默认密码,可以使用如下命令生成密码,并使用生成后的密码替换/etc/cobbler/settings中 default_password_crypted 的密码。

  34. 生成密码命令:

  35. #openssl passwd -1 -salt 'random-phrase-here''[任意密码]'

  36. openssl passwd -1 -salt 'random-phrase-here''hexun'

  37. $1$random-p$Q1IN9LaNg7yhRKJuY50fV1


  38. 6 : fencing tools were not found, and are required to use the (optional) power management features. install cman or fence-agents to use them


  39. 解决:安装cman工具用于电源管理

  40. yum -y install cman

  41. Restart cobblerd andthen run 'cobbler sync'to apply changes.

  42. 修复完毕重启cobbler服务,然后运行cobbler sync

  43. 7:修复完成以上问题后,同步信息再检查

  44. /etc/init.d/cobblerd restart

  45. Stopping cobbler daemon: [ OK ]

  46. Starting cobbler daemon: [ OK ]

  47. 再次检查,又报错

  48. cobbler check

  49. The following are potential configuration items that you may want to fix:

  50. 1 : The defaultpassword used by the sample templates for newly installed machines (default_password_crypted in /etc/cobbler/settings) is still setto'cobbler'and should be changed, try: "openssl passwd -1 -salt 'random-phrase-here' 'your-password-here'"to generate new one

  51. Restart cobblerd andthen run 'cobbler sync'to apply changes.

  52. 报错原因是上面的第五个问题没完全解决,仅仅生成了密钥,没有放入cobbler主配置文件

  53. vim /etc/cobbler/settings

  54. default_password_crypted: "$1$random-p$Q1IN9LaNg7yhRKJuY50fV1"

  55. 再重启服务

  56. /etc/init.d/cobblerd restart

  57. Stopping cobbler daemon: [ OK ]

  58. Starting cobbler daemon: [ OK ]

  59. cobbler check

  60. No configuration problems found. All systems go.

  61. 执行cobbler sync

  62. cobbler sync

  63. task started: 2013-03-10_105055_sync

  64. task started (id=Sync, time=Sun Mar 10 10:50:55 2013)

  65. running pre-sync triggers

  66. cleaning trees

  67. removing: /tftpboot/pxelinux.cfg/default

  68. received on stdout: Shutting down dhcpd: [ OK ]

  69. Starting dhcpd: [ OK ]

  70. received on stderr:

  71. running shell triggers from /var/lib/cobbler/triggers/sync/post/*

  72. running python triggers from /var/lib/cobbler/triggers/change/*

  73. running python trigger cobbler.modules.scm_track

  74. running shell triggers from /var/lib/cobbler/triggers/change/*

  75. *** TASK COMPLETE ***

  76. 执行cobbler sync会重启相关服务,DHCP服务也会启动了,第一个提示也就解决了,下面也有说明

9.3 报错三


 
  
  1. [root@cobbler-1014 x86_64]# /etc/init.d/cobblerd restart

  2. Stopping cobbler daemon: [FAILED]

  3. Starting cobbler daemon: [ OK ]

  4. [root@cobbler-1014 x86_64]# cobbler check

  5. The following are potential configuration items that you may want to fix:

  6. 1 : service dhcpd isnot running

  7. Restart cobblerd andthen run 'cobbler sync'to apply changes.

执行cobbler sync即可启动dhcp服务

 
  
  1. cobbler sync

9.4 报错四


使用koan重装系统时报错


 
  
  1. koan --server=172.17.10.14 --list=profiles

  2. Traceback (most recent call last):

  3. File "/usr/bin/koan", line 18, in ?

  4. import koan.app as app

  5. File "/usr/lib/python2.4/site-packages/koan/app.py", line 64, in ?

  6. import configurator

  7. File "/usr/lib/python2.4/site-packages/koan/configurator.py", line 36, in ?

  8. import simplejson as json

  9. ImportError: No module named simplejson

解决:需要安装simplejson软件包,
最新版下载地址:http://pypi.python.org/pypi/simplejson/
最新版的simplejson要求python 2.6+以上的,CntOS5.8是Python 2.4.3,所以下载的simplejson-2.0.9.tar.gz版本
https://pypi.python.org/packages/source/s/simplejson/simplejson-2.0.9.tar.gz
安装步骤:
访问外网下载文件setuptools-0.6c7-py2.4.egg
如没有外网可以通过其他机器下载https://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c7-py2.4.egg
然后上传至客户机再继续安装

 
  
  1. tar zxf simplejson-2.0.9.tar.gz

  2. cd simplejson-2.0.9

  3. python setup.py install

建议CentOS5.8 安装此版本的koan使用可以避免此问题
ftp://rpmfind.net/linux/epel/5/i386/koan-1.6.6-1.el5.noarch.rpm

9.5 报错五


 
  
  1. koan --server=172.17.10.14 --virt-name=testvm --virt --profile=centos5.8-xen-x86_64

  2. - looking for Cobbler at http://172.17.10.14:80/cobbler_api

  3. - reading URL: http://172.17.10.14/cblr/svc/op/ks/profile/centos5.8-xen-x86_64

  4. install_tree: http://172.17.10.14/cblr/links/centos5.8-xen-x86_64

  5. xen package needs to be installed

Xen 宿主机安装虚拟机时提示没有安装xen软件包
解决:

 
  
  1. yum install xen -y

执行此命令会安装一共9个软件包,如下

 
  
  1. Running Transaction

  2. Installing : bridge-utils 1/9

  3. Installing : cyrus-sasl-md5 2/9

  4. Installing : ebtables 3/9

  5. Installing : e4fsprogs-libs 4/9

  6. Installing : xen-libs 5/9

  7. Installing : libvirt 6/9

  8. Installing : libvirt-python 7/9

  9. Installing : python-virtinst 8/9

  10. Installing : xen 9/9

9.6 报错六

 
  
  1. koan --server=172.17.10.14 --virt-name=testvm --virt --profile=centos5.8-xen-x86_64

  2. - looking for Cobbler at http://172.17.10.14:80/cobbler_api

  3. - reading URL: http://172.17.10.14/cblr/svc/op/ks/profile/centos5.8-xen-x86_64

  4. install_tree: http://172.17.10.14/cblr/links/centos5.8-xen-x86_64

  5. xend needs to be started


解决:
报错原因是xend服务没有启动,执行以下命令处理

 
  
  1. chkconfig xend on

  2. /etc/init.d/xend start

  3. #注意此过程会自动桥接网卡,可能出现短暂断网

9.7 报错七


 
  
  1. koan --server=172.17.10.14 --virt-name=testvm --virt --profile=centos5.8-xen-x86_64

  2. - looking for Cobbler at http://172.17.10.14:80/cobbler_api

  3. - reading URL: http://172.17.10.14/cblr/svc/op/ks/profile/centos5.8-xen-x86_64

  4. install_tree: http://172.17.10.14/cblr/links/centos5.8-xen-x86_64

  5. libvirtd is stopped

  6. libvirtd needs to be running

解决:

 
  
  1. chkconfig libvirtd on

  2. /etc/init.d/libvirtd start

9.8 报错八


 
  
  1. koan --server=172.17.10.14 --virt-name=testvm --virt --profile=centos5.8-xen-x86_64

  2. - looking for Cobbler at http://172.17.10.14:80/cobbler_api

  3. - reading URL: http://172.17.10.14/cblr/svc/op/ks/profile/centos5.8-xen-x86_64

  4. install_tree: http://172.17.10.14/cblr/links/centos5.8-xen-x86_64

  5. libvirtd (pid 3772) is running...

  6. downloading initrd initrd.img to /var/lib/xen/initrd.img_koan

  7. url=http://172.17.10.14/cobbler/p_w_picpaths/centos5.8-xen-x86_64/initrd.img

  8. - reading URL: http://172.17.10.14/cobbler/p_w_picpaths/centos5.8-xen-x86_64/initrd.img

  9. downloading kernel vmlinuz to /var/lib/xen/vmlinuz_koan

  10. url=http://172.17.10.14/cobbler/p_w_picpaths/centos5.8-xen-x86_64/vmlinuz

  11. - reading URL: http://172.17.10.14/cobbler/p_w_picpaths/centos5.8-xen-x86_64/vmlinuz

  12. - warning: old python-virtinst detected, a lot of features will be disabled

  13. - adding disk: /var/lib/xen/p_w_picpaths//testvm-disk0 ofsize 5 (driver type=raw)

  14. - ['virt-install', '--connect', 'xen:///', '--name', 'testvm', '--ram', '512', '--vcpus', '1', '--uuid', '42559fd2-385f-2435-80f1-9f5005a02a81', '--autostart', '--vnc', '--paravirt', '--boot', 'kernel=/var/lib/xen/vmlinuz_koan,initrd=/var/lib/xen/initrd.img_koan,kernel_args=ks=http://172.17.10.14/cblr/svc/op/ks/profile/centos5.8-xen-x86_64 ksdevice=link kssendmac lang= text ', '--os-variant', 'rhel5', '--disk', 'path=/var/lib/xen/p_w_picpaths//testvm-disk0,size=5', '--network', 'bridge=xenbr0', '--wait', '0', '--noautoconsole']

  15. usage: virt-install --name NAME --ram RAM STORAGE INSTALL [options]

  16. virt-install: error: no such option: --autostart

解决

 
  
  1. 我安装的

  2. 系统版本:CentOS5.8 64bit

  3. koan版本:koan-2.2.3-2.el5

  4. xen版本:xen-3.0.3-142.el5_9.2

  5. 通过EPEL安装的koan版本为koan-2.2.3-2.el5,使用中报错较多,后更换为koan-1.6.6-1.el5此版本比较稳定,下载链接:ftp://rpmfind.net/linux/epel/5/i386/koan-1.6.6-1.el5.noarch.rpm

9.9 报错九


 
  
  1. cobbler check

  2. The following are potential configuration items that you may want to fix:

  3. 1 : comment 'dists'on /etc/debmirror.conf for proper debian support

  4. 2 : comment 'arches'on /etc/debmirror.conf for proper debian support

  5. Restart cobblerd andthen run 'cobbler sync'to apply changes.

解决
关于debmirror编辑注释
修改 /etc/debmirror.conf 配置文件,注释掉 @dists 和 @arches 两行

 
  
  1. sed -i 's|@dists=.*|#@dists=|' /etc/debmirror.conf

  2. sed -i 's|@arches=.*|#@arches=|' /etc/debmirror.conf

9.10 报错十


 
  
  1. /usr/bin/ipmitool power status

  2. Could notopen device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory

  3. Unable to get Chassis Power Status

解决

 
  
  1. /etc/init.d/ipmi start

  2. Starting ipmi drivers: [ OK ]

  3. /etc/rc.d/init.d/ipmievd start

  4. Starting ipmievd:

  5. ipmievd: using pidfile /var/run/ipmievd.pid0

  6. chkconfig ipmi on

  7. chkconfig ipmievd on

再执行查看电源状态

 
  
  1. /usr/bin/ipmitool power status

  2. Chassis Power ison

9.11 报错十一


 
  
  1. obbler system edit --name=host-188116 --power-address=172.17.11.20 --power-type='ipmitool' --power-user=root --power-pass=djxxxx

  2. usage: cobbler [options]

  3. cobbler: error: option--power-type: invalid choice: 'ipmitool' (choose from 'ack_manual', 'apc', 'apc_snmp', 'bladecenter', 'brocade', 'bullpap', 'cisco_mds', 'cisco_ucs', 'drac', 'drac5', 'egenera', 'ifmib', 'ilo', 'ilo_mp', 'ipdu', 'ipmilan', 'lpar', 'manual', 'mcdata', 'node', 'rhevm', 'rps10', 'rsa', 'rsb', 'sanbox2', 'scsi', 'scsi_test', 'tool', 'virsh', 'vixel', 'vmware', 'vmware_helper', 'vmware_soap', 'wti', 'xvm', 'xvmd')

解决
选择合适的power类型,报错后面已经列出可选参数,我这里使用的DELL PE1950应该选择ipmilan

 
  
  1. cobbler system edit --name=host-188116 --power-address=172.17.11.20 --power-type='ipmilan' --power-user=root --power-pass=djxxxx

9.12 报错十二


电源管理相关的报错


 
  
  1. cobbler system edit --name host-xxx --power-address=172.17.11.20 --power-type="ipmitool" --power-user=root --power-pass=passwd

  2. power management type must be one of:


 
  
  1. cobbler system powerstatus --name=host-xx

  2. task started: 2013-03-28_115206_power

  3. task started (id=Power management (status), time=Thu Mar 28 11:52:06 2013)

  4. Exception occured: cobbler.cexceptions.CX

  5. Exception value: 'no power type set for system'

  6. Exception Info:

  7. File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 126, in die

  8. raise CX(msg)

  9. Exception occured: cobbler.cexceptions.CX

  10. Exception value: 'no power type set for system'

  11. Exception Info:

  12. File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 89, in run

  13. rc = self._run(self)

  14. File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 259, in runner

  15. self.remote.power_system(object_id,self.options.get("power",""),token,logger=self.logger)

  16. File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1919, in power_system

  17. rc=self.api.power_status(obj, user=None, password=None, logger=logger)

  18. File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 1041, in power_status

  19. return action_power.PowerTool(self._config, system, self, user, password, logger = logger).power("status")

  20. File "/usr/lib/python2.4/site-packages/cobbler/action_power.py", line 74, in power

  21. utils.die(self.logger,"no power type set for system")

  22. File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 134, in die

  23. raise CX(msg)

  24. !!! TASK FAILED !!!


 
  
  1. cobbler system powerstatus --name=host-188116

  2. task started: 2013-03-28_124153_power

  3. task started (id=Power management (status), time=Thu Mar 28 12:41:53 2013)

  4. cobbler power configuration is:

  5. type : ipmilan

  6. address: 172.17.11.20

  7. user : root

  8. id :

  9. running: /usr/sbin/fence_ipmilan

  10. received on stdout: Getting status of IPMI:172.17.11.20...Chassis power = On

  11. Done

  12. received on stderr:

  13. Exception occured: cobbler.cexceptions.CX

  14. Exception value: "command succeeded (rc=0), but output ('Getting status of IPMI:172.17.11.20...Chassis power = On\nDone\n') was not understood"

  15. Exception Info:

  16. File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 126, in die

  17. raise CX(msg)

  18. Exception occured: cobbler.cexceptions.CX

  19. Exception value: "command succeeded (rc=0), but output ('Getting status of IPMI:172.17.11.20...Chassis power = On\nDone\n') was not understood"

  20. Exception Info:

  21. File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 89, in run

  22. rc = self._run(self)

  23. File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 259, in runner

  24. self.remote.power_system(object_id,self.options.get("power",""),token,logger=self.logger)

  25. File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1919, in power_system

  26. rc=self.api.power_status(obj, user=None, password=None, logger=logger)

  27. File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 1041, in power_status

  28. return action_power.PowerTool(self._config, system, self, user, password, logger = logger).power("status")

  29. File "/usr/lib/python2.4/site-packages/cobbler/action_power.py", line 116, in power

  30. utils.die(self.logger,"command succeeded (rc=%s), but output ('%s') was not understood" % (rc, output))

  31. File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 134, in die

  32. raise CX(msg)

  33. !!! TASK FAILED !!!

解决方法详见步骤8.2、8.3,详细如下:

8.2 安装电源管理工具cman


yum install cman -y


Cobbler代码维护者jimi告知:某些系统版本将执行程序安装在/sbin/目录下,通过rpm -ql cman查看,CentOS5.8下如此解决即可


ln -s /sbin/fence_* /usr/sbin/


8.3 修改电源管理python脚本


备份


cp/usr/lib/python2.4/site-packages/cobbler/action_power.py /usr/lib/python2.4/site-packages/cobbler/action_power.py.$(date +%F)


编辑


vim /usr/lib/python2.4/site-packages/cobbler/action_power.py


删除或注释此文件如下代码


utils.die(self.logger,"command succeeded (rc=%s), but output ('%s') was not understood" % (rc, output))


删除文件action_power.pyo action_power.pyc


这两个文件在目录/usr/lib/python2.4/site-packages/cobbler/


重启cobbler,注意一定是重启cobbler


cobbler reboot


步骤8.28.3是我在使用电源管理中发现的问题,后通过githubCobbler代码维护者jimi沟通解决的,非常感谢他的帮助,详见


https://github.com/cobbler/cobbler/issues/426



10. DHCP非Cobbler本机

因为有的同学生产环境已有DHCP服务,Cobbler本机可以不用再安装配置DHCP,步骤如下:

配置不管理DHCP

vim /etc/cobbler/settings

manage_dhcp: 0


重启cobbler

/etc/init.d/cobblerd restart


检查配置

cobbler check


同步配置

cobbler sync

DHCP服务配置next-server 指向cobbler服务器IP即可,例如

subnet 192.168.10.0 netmask255.255.255.0 {

range 192.168.10. 192.168.10.240;

option subnet-mask 255.255.255.0;

option routers 192.168.10.254;

next-server 192.168.4.194;

filename"pxelinux.0";

}



《Cobbler部署指南》参考资料:

https://github.com/cobbler/cobbler/wiki


cobblerkoan man手册及help命令帮助



Cobbler部署指南》系列至此告一段落,更多内容请一起交流或参考Cobbler github


《Cobbler部署指南》系列文档下载:http://down.51cto.com/data/745895