Using cobbler under Linux can quickly establish a Linux network installation environment, which greatly reduces the technical threshold for Linux network installation. How to install Cobbler on Linux system? Let's learn together.
Introduction to cobbler
cobbler is an open source project supported by Redhat for deploying and installing systems. So support for the Redhat series os is better. However, support for ubuntu is very poor. There are quite a few settings in cobbler that are only valid for redhat, and also because of the differences in the installation of different distributions. Cobbler feels as nervous as Ubuntu.
Cobbler is more than just a pxe server. He can also manage dns(bind), dhcp. In general data center or production environment, dhcp is not allowed, but pxe must be dhcp, so we need to allocate IP according to mac address, so dhcp will not affect the network.
1. Install cobbler
Configure epel source in advance http://mirrors.ustc.edu.cn/fedora/epel/6/i386/
[root@ 60sec /]# yum -y install cobbler
[root@60sec /]# service httpd start
Starting httpd: [ OK ]
[root@60sec /]# service cobblerd start
Starting cobbler daemon: [OK]
2, cobbler check command execution problem to check stored, one by one and then follow the prompts solution
[root @60sec /]# vim /etc/cobbler/settings
next_server: 192.168.83.137
server: 192.168.83.137
manage_tftpd: 0
[ Root@60sec /]# yum -y install syslinux
[root@60sec /]# chkconfig rsync on
[root@60sec /]# yum -y install pykickstart
[root@60sec /]# openssl passwd -1 -salt ‘openssl rand -hex 4’
Password:
$1$openssl $.oduSwbhLj6jqAwVsLo/H1
[roo t@60sec /]# vim /etc/cobbler/settings
default_password_crypted: “penssl $.oduSwbhLj6jqAwVsLo/H1”
[root@60sec /]# cd /usr/share/syslinux /
[root@60sec syslinux]# cp -r . /* /var/lib/cobbler/loaders/
3, install dhcp service
[root@60sec /]# yum -y install dhcp
[root@60sec /]# cp /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp/dhcpd.conf
[root@60sec /]# vim /etc/dhcp/dhcpd .conf
option domain-name <;60sec.com”;
option domain-name-servers 192.168.83.137;
default-lease-time 43300;
max-lease-time 86500;
subnet 192.168.83.0 netmask 255.255.255.0 {
range 192.168.83.50 192.168.83.100;
option routers 192.168. 83.137;
}
next-server 192.168.83.137;
filename=“pxelinux.0”;
[root@60sec /]# Service dhcpd start
Starting dhcpd: [ OK ]
4, turn on tftp service
[root@60sec /]# chkconfig tftp on
[root @60sec /]# service xinetd start
Starting xinetd: [ OK ]
5, define distro, mount the CD and import
[root@60sec /]# mount -r /dev/cdrom /media/
[root@60sec /]# cobbler import -- Name=centos-6.5-x86_64 --path=/media
6. If there is a kickstart file, use “--kickstart=/path/to/kickstart_file” to import, you can also use the following command to detect,
You can use system-config-kickstart to make a kickstart file. The cobbler ks file is placed under /var/lib/cobbler/kickstarts/by default. The ks file can be customized according to different needs.
[root@60sec mnt]# ksvalidator centos6.x86_64.cfg
7. Set profile, profile can be understood as classification according to installation requirements.
[root@60sec mnt]# cobbler profile add --name=CenTos-6.5-x86_64-basic --distro=centos-6.5-x86_64 --kickstart=/mnt/centos6.x86_64.cfg
[root@60sec mnt]# cobbler profile list
CenTos-6.5-x86_64-basic
Centos-6.5-x86_64
[root@60sec mnt] # cobbler sync
[root@60sec mnt]# service cobblerd restart
Modifyable information
[root@60sec mnt]# vim /var/lib/tftpboot/pxelinux.cfg /default
8, re-create the virtual machine test
the above is a concrete step to install cobbler under Linux, and follow the steps described above can be easily installed cobbler, Is it easy? Give it a try.
If you are unable to read and write to the disk during the Linux process, the application cannot be
Every user who has certain mastery of Linux system must start to learn some common commands of Linux
A user of the ASUS F81se series computer has an error in installing the Ubuntu 12.04 system, which c
In Linux commands, we will often use cd, ls and other commands, but commands like touch are less use
How to change the Linux default startup level
Two ways to speed up the copying speed of Linux files
Summary of screenshots under Ubuntu
What should I do if the error occurs when CentOS 5.4 adds or removes an application?
How to use the tar command correctly under Linux system
The implementation principle of Linux system TSO
Usage of Linux global variable jiffies
What if CentOS can't use the scp command?
What shortcuts do Linux systems use with Visual Studio?
How WPS makes digital band wps input with circle digital method
Run Win8 command prompt as administrator.
XP: 23 strokes to create the fastest WinXP
Reinstalling Win10 System Tutorial: Formatting C Disk Reinstalling Win10 System
Customized personality Win8 user avatar
How do you get the deep mountain wild bear meat? How to get the deep mountain wild bear meat in the
How does Win10 enable its own encryption software Bitlocker drive encryption