cobbler

yum install cobbler cobbler-web dhcp tftp-server pykickstart httpd -y

service httpd restart
service cobbler restart
unit not found.

[root@localhost ~]# rpm -ql cobbler #Check what files are installed, the important parts are listed below to annotate
Failed to restart cobblerd.service: Unit not found.
[root@localhost ~]# yum -y install cobbler cobbler- web
No package cobbler available. #Baidu found the answer to this sentence
No package-web cobbler available.

[root@bogon ~]# yum -yinstall cobbler cobbler-web dhcp httpd xinetd tftp-server pykickstart rsync
Loaded plugins:fastestmirror
Determining fastestmirrors
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun .com
Setting up InstallProcess
No packagecobbler available.
No packagecobbler-web available. #You can see that cobbler and cobbler_web are not installed successfully, that is because there is no package about cobbler in the regular yum source, but don't worry, we need to configure an epel source , that's it
[root@bogon ~]# yum -y install epel*
[root@bogon ~]# yummakecache
[root@bogon ~]# yum -y install cobbler cobbler-web

/**
[root@linux-node1 ~]# rpm -ql cobbler #Check what files are installed, the important parts are listed below to annotate
/etc/cobbler #Configuration file directory
/etc/cobbler/settings #cobbler main configuration file, This file is in YAML format, and cobbler is a program written in Python
/etc/cobbler/dhcp.template #DHCP service configuration template
/etc/cobbler/tftpd.template #tftp service configuration template/etc/cobbler/
rsync.template #rsync Service configuration template
/etc/cobbler/iso # iso template configuration file directory
/etc/cobbler/pxe # pxe template file directory
/etc/cobbler/power # power configuration file directory
/etc/cobbler/users.conf # Web service Authorization configuration file
/etc/cobbler/users.digest # Username and password configuration file for web access
/etc/cobbler/dnsmasq.template # DNS service configuration template
/etc/cobbler/modules.conf # Cobbler module configuration file

/var/lib/cobbler # Cobbler data directory
/var/lib/cobbler/config # Configuration file
/var/lib/cobbler/kickstarts # Kickstart file is stored
by default /var/lib/cobbler/loaders # Various boot programs stored

/var/www/cobbler # System installation mirror directory
/var/www/cobbler/ks_mirror # Imported system mirror list
/var/www/cobbler/images # Imported system mirror startup file
/var/www/cobbler/repo_mirror # yum source storage directory

/var/log/cobbler # log directory
/var/log/cobbler/install.log # client system installation log
/var/log/cobbler/cobbler.log # cobbler log
**/

[root@localhost ~]# cobbler check
httpd does not appear to be running and proxying cobbler, or SELinux is in the way. Original traceback:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cobbler/cli.py", line 251, in check_setup
s.ping()
File "/usr/lib64/python2.7/xmlrpclib.py", line 1233, in __call__
return self.__send(self.__name, args)
File "/usr/lib64/python2.7/xmlrpclib.py", line 1587, in __request
verbose=self.__verbose
File "/usr/lib64/python2.7/xmlrpclib.py", line 1273, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib64/python2.7/xmlrpclib.py", line 1321, in single_request
response.msg,
ProtocolError: <ProtocolError for 127.0.0.1:80/cobbler_api: 503 Service Unavailable>

[root@localhost ~]# setenforce 0
[root@localhost ~]# systemctl status firewalld.service
[root@localhost ~]# systemctl stop firewalld.service
[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 : enable and start rsyncd.service with systemctl
7 : debmirror package is not installed, it will be required to manage debian deployments and repositories
8 : 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
9 : 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.

[root@localhost ~]# cobbler check
httpd does not appear to be running and proxying cobbler, or SELinux is in the way. Original traceback:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cobbler/cli.py", line 251, in check_setup
s.ping()
File "/usr/lib64/python2.7/xmlrpclib.py", line 1233, in __call__
return self.__send(self.__name, args)
File "/usr/lib64/python2.7/xmlrpclib.py", line 1587, in __request
verbose=self.__verbose
File "/usr/lib64/python2.7/xmlrpclib.py", line 1273, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib64/python2.7/xmlrpclib.py", line 1301, in single_request
self.send_content(h, request_body)
File "/usr/lib64/python2.7/xmlrpclib.py", line 1448, in send_content
connection.endheaders(request_body)
File "/usr/lib64/python2.7/httplib.py", line 1013, in endheaders
self._send_output(message_body)
File "/usr/lib64/python2.7/httplib.py", line 864, in _send_output
self.send(msg)
File "/usr/lib64/python2.7/httplib.py", line 826, in send
self.connect()
File "/usr/lib64/python2.7/httplib.py", line 807, in connect
self.timeout, self.source_address)
File "/usr/lib64/python2.7/socket.py", line 571, in create_connection
raise err
error: [Errno 111] Connection refused
server和next_server必须改成服务器的ip 否则就会报上述错误

[root@localhost ~]# cobbler import --path=/mnt/ --name=CentOS-7-x86_64-Everything-1708 --arch=x86_64
task started: 2018-04-30_061137_import
task started (id=Media import, time=Mon Apr 30 06:11:37 2018)
No signature matched in /var/www/cobbler/ks_mirror/CentOS-7-x86_64-Everything-1708-x86_64
!!! TASK FAILED !!!
此问题未找到解决办法!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325070669&siteId=291194637