Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Cobbler batch install Ubuntu / CentOS system     - Oracle 11g DataGuard service to start automatically (Database)

- Python kills corresponding process according to pid (Programming)

- Linux iostat command example explanation (Linux)

- CentOS card fails to start at boot progress bar certmonger solve (Linux)

- PostgreSQL Source Customization: Online global read only (Database)

- Android using SVG vector graphics to create cool animation effects (Programming)

- Install mono offline on CentOS (Server)

- History and Statistics tuptime use tools to view Linux server system boot time (Server)

- VMware11 virtual machine Ubuntu14.10 system partition sda1 disk expansion (Linux)

- MongoDB Installation under CentOS 6.6 (Database)

- Depth understanding of C language (Programming)

- Ubuntu Linux installation GAMIT10.6 (Linux)

- Linux NIC driver and version information (Linux)

- Ubuntu simple method to track multiple time zones (Linux)

- Linux upgrade GCC 4.8.1 clear and concise tutorials (Ubuntu 12.04 64-bit version as an example) (Linux)

- Linux installation skynet issue summary (Linux)

- sudo command scenario analysis (Linux)

- MongoDB fragmentation (Cluster) (Database)

- Red Flag Linux Desktop 6.0 hard disk installation guide (Programming)

- Nine artifact control disk partition under Linux (Linux)

  Cobbler batch install Ubuntu / CentOS system
  Add Date : 2017-08-31      
  First, install and modify the configuration cobbler
1. Basic source Cobbler not CentOS, the need to import EPEL source upgrade package, ensure epel-release version of the package is the latest, most current version of 6-8:
# Rpm -Uvh http://download.Fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

2. yum install package cobbler
# Yum -y install cobbler

3. [Optional] new version of Fedora installation system located in a "testing" repository for some time to check there is no bug, if you want to install the latest version of cobbler by EPEL (not verified by the production environment there is no bug), in start -testing mode installation or upgrade.
# Sudo yum -y install --enablerepo = epel-testing cobbler
# Sudo yum -y update --enablerepo = epel-testing cobbler

4. Install dhcp service
# Yum -y install dhcp

5. Other installation services
There are additional services needed httpd rsync tftp-server xinetd, if the system is not installed, you can do the following to perform the installation.
# Yum -y install httpd rsync tftp-server xinetd

6. Turn cobbler service, restart the Apache service, set up each service boot from the start
# Service httpd start
# Service cobblerd start
# Service xinetd start
# / Sbin / chkconfig httpd on
# / Sbin / chkconfig dhcpd on
# / Sbin / chkconfig xinetd on
# / Sbin / chkconfig tftp on
# / Sbin / chkconfig cobblerd on

7. Close the SELinux and firewall
# Vi / etc / sysconfig / selinux
SELINUX = enforcing Change SELINUX = disabled
Set to become permissive mode SELinux
# Setenforce 0
Off the firewall
# /etc/init.d/iptables Stop
# Chkconfig --del iptables
Restart cobbler Service
# Service cobbler restart

8. Modify the configuration cobbler
# Vi / etc / cobbler / setting
'Next_server:' to replace the local IP address (DHCP service address)
'Server:' to replace the local IP address (cobbler service address)
'Manage_dhcp: 0' Replace 1 (cobbler management dhcp, later used to synchronize the update configuration information [cobbler sync])
'Manage_rsync: 0' Replace 1 (cobbler rsync management function)

9. loaded partially deleted network boot-loaders
# Cobbler get-loaders

10. Start the tftp service and rsync
# Vi /etc/xinetd.d/tftp
Modified: disable = no
# Vi /etc/xinetd.d/rsync
Modified: disable = no

11. Modify DHCP template, ensure that the DHCP assigned address on the same network segment and the Cobbler
# Vi /etc/cobbler/dhcp.template

ddns-update-style interim;

allow booting;
allow bootp;

ignore client-updates;
set vendorclass = option vendor-class-identifier;
# Need to modify their own network segment
subnet netmask {
# Modify your route
     option routers;
# Domain name server address
     option domain-name-servers;
Subnet Mask #
     option subnet-mask;
# Assign IP addresses
     range dynamic-bootp;
     filename "/pxelinux.0";
     default-lease-time 21600;
     max-lease-time 43200;
     next-server $ next_server;

12. If you want to deploy Debian / Ubuntu system, you need to package debmirror
# Yum install wget
# Yum install ed patch perl perl-Compress-Zlib perl-Cwd perl-Digest-MD5 \
perl-Digest-SHA1 perl-LockFile-Simple perl-libwww-perl
# Wget ftp://fr2.rpmfind.net/linux/epel/5/ppc/debmirror-20090807-1.el5.noarch.rpm
# Rpm -ivh debmirror-20090807-1.el5.noarch.rpm

/etc/debmirror.conf Modify the configuration file, comment out the two lines @dists and @arches
# Vi /etc/debmirror.conf

# @ Dists = "sid";
@ Sections = "main, main / debian-installer, contrib, non-free";
# @ Arches = "i386";

13. Modify the default password cobbler
After generating a bunch of code added to the cobbler with openssl configuration file (/ etc / cobbler / settings), the replacement default_password_crypted fields:
# Openssl passwd -1 -salt 'random-phrase-here' '1234567890'
$ 1 $ random-p $ RkqDMTpuNlZZhJ7moLn3Q.
# Vi / etc / cobbler / settings

default_password_crypted: "$ 1 $ random-p $ RkqDMTpuNlZZhJ7moLn3Q."
Note: This saved passwords will be used for mass deployment machine, root account password.

14. Install cman start power management features
# Yum install cman

15. Check the cobbler installation environment
# Cobbler check
No configuration problems found. All systems go.
Attention must be fully part repair configuration problems, otherwise there will tftp connection timeout, cobbler can not be installed operating system batch by PXE.
# Cobbler sync

Second, import ISO files
1. Upload the ISO image to the server

2. Create a folder
# Mkdir -p /system/ubuntu12.04

3. Mount ISO image to / system /ubuntu12.04 directory

# Mount -o loop ~ / Downloads / ubuntu-12.04-server-amd64.iso /system/ubuntu12.04/

4. Import the client OS from the iso. This will automatically set the "x86_64", and name ubuntu12.04.
# Cobbler import --path = / system / ubuntu12.04 / --name = ubuntu12.04 --arch = x86_64
It takes a little time, do not worry. View /var/www/cobbler/ks_mirror/ubuntu12.04-x86_64/ directory file generation case.
# Cobbler sync
# Cobbler list


Third, the deployment test
Create a virtual machine test, the virtual machine is set to PXE network boot (and cobbler in the same network), can be seen after Cobbler boot start screen, select ubuntu12.04-x86_64 after entry interface you can see a smooth start install the system without human intervention, Cobbler boot screen as follows:

After the automated installation, using the root user account login, password in the configuration file before writing values

Fourth, the profile
cobbler There are many configuration files, but only a few basic functions need to be modified.

Settings File
Modules Configuration
Cobbler's main setting file is / etc / cobbler / settings. Cobbler2.4.0 introduced dynamic modification mode (Dynamic Settings), we only need to start this mode, you will not need to modify this file manually. The file format is YAML, if directly modify the setting file, you must restart cobbler service to take effect, but if it is modified through the CLI or Web GUI, then the changes will take effect immediately, without restarting the service.

Five Frequently Asked Questions
1, cobblerd checksum error:
cobblerd does not appear to be running / accessible
service cobblerd start
service httpd start

2, restart the httpd error:
Starting httpd: Syntax error on line 10 of /etc/httpd/conf.d/cobbler.conf:
Invalid command 'WSGIScriptAliasMatch', perhaps misspelled or defined by a module not included in the server configuration
 vi /etc/httpd/conf.d/wsgi.conf
 #LoadModule Wsgi_module modules / mod_wsgi.so remove the # sign, making it: LoadModule wsgi_module modules / mod_wsgi.so.

3, httpd, SELinux is not running:
httpd does not appear to be running and proxying cobbler, or SELinux is in the way Original traceback.:
Traceback (most recent call last):
service httpd start
vi / etc / sysconfig / selinux
SELINUX = enforcing Change SELINUX = disabled, reboot to take effect.

4, more experience cobbler check error
 Traceback (most recent call last):
  File "/ usr / bin / cobbler", line 35, in?
    sys.exit (app.main ())
  File "/usr/lib/python2.4/site-packages/cobbler/cli.py", line 558, in main
    rc = cli.run (sys.argv)
  File "/usr/lib/python2.4/site-packages/cobbler/cli.py", line 202, in run
    self.token = self.remote.login ( "", self.shared_secret)
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
    return self .__ send (self .__ name, args)
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request
    verbose = self .__ verbose
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1147, in request
    return self._parse_response (h.getfile (), sock)
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1286, in _parse_response
    return u.close ()
  File "/usr/lib64/python2.4/xmlrpclib.py", line 744, in close
    raise Fault (** self._stack [0])
Solution: This is a BUG, you can push the operation is performed.
service cobblerd restart
cobbler get-loaders
- Git version rollback (Linux)
- Linux firewall settings -DNS server articles (Server)
- Oracle table space is too large processing time (Database)
- rpm package specify the installation path (Linux)
- How do I cancel (almost) any operations in Git, (Linux)
- CentOS 6.5 using Virtualenv under development environment to build Python3 (Linux)
- Restore Oracle Database Cold backup and database reconstruction emca (Database)
- Forgot Linux root password (Linux)
- Install the latest development version of Wine on RedHat and Debian-based systems (Linux)
- Linux System Getting Started Learning: Linux command in w (Linux)
- Under CentOS Linux automatic backup MySQL database daily (Database)
- About Leetcode on Binary Tree Algorithm summary (Programming)
- Ubuntu 14.04 Trusty Tahr User How to install Banshee 2.9.1 (Linux)
- To install the mail client terminal Evolution 3.13.2 under Ubuntu 14.04 (Linux)
- Scala REPL Shell call (Programming)
- CV: Linux command displays the progress of the run command (Linux)
- State and Linux nf_conntrack TCP disconnect time (Programming)
- iptraf: A Practical TCP / UDP network monitoring tools (Linux)
- How to find the available network adapter on Ubuntu (Linux)
- Using IntelliJ IDEA Import Spark Spark latest source code and compile the source code (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.