Linux Fully automated batch installation deployment by configuring Cobbler server

Source: Internet
Author: User
Tags rsync

Implementation purpose: Deploy Linux systems with fully automated batch installation by configuring Cobbler servers

Installing CentOS 7
The only thing to change is to choose the network address NAT mode in the network type because you want to download it in real time.

Vim/etc/sysconfig/network-scripts/ifcfg-ens33 Configure the NIC because in this is DNS auto get say there's only need to activate the NIC just fine

Onboot=yes Onboot is to indicate whether to activate the network card when the system starts, only in the active state of the network card to connect to networks, network communication

Systemctl Restart Network.service boot NIC

  1. [Email protected]/]# ifconfig
  2. inet 192.168.30.130 automatically assign IP addresses
  3. [[email protected]/]# systemctl status network.service view NIC status
  4. [[email protected]/]# Ping www.baidu.com Check to see if you can surf the Internet how to share the RPM package on the host look at the beginning.
    • Share a data update source from a host to maintain network connectivity
  5. [[email protected] ~]# smbclient-l//192.168.03.1/Scan Share
  6. Mount.cifs//192.168.30.1/centos/opt/Mount
  7. [[email protected] opt]# RPM-IVH epel-release-latest-7.noarch.rpm installed with rpm
  8. Link a disc to a virtual machine
  9. [[email protected] opt]# MOUNT/DEV/SR0/MNT disc for mounting
  10. The only good thing is that the Yum warehouse is written, not written.
  11. [[email protected] ~]# Yum list loaded on a network basis
  12. [[email protected] ~]# Yum install cobbler-y Environment Pack Online to have a network. Cobbler can be used to quickly build Linux network installation Environment
  13. [[email protected] ~]# yum install cobbler-web dhcp tftp-server pykickstart httpd rsync xinetd-y Build service Cobbler-web can be used on Web pages for tube DHCP automatically assigns IP addresses tftp-server the compression kernel and boot files httpd put the image files and detect those services have no access to the inside of the 80-Port protocol Pykickstart Unattended Automatic installation Template rsync Remote synchronization management XINETD platform Management
  14. [Email protected] ~]# Vim/etc/cobbler/settings/cobbler Modify the master configuration file
  15. 272 next_server:192.168.30.130 to its own IP address
  16. 384 server:192.168.30.130 also points to himself
  17. 2242 Manage_dhcp:1 managing DHCP Services

    • [[email protected] ~]# systemctl start httpd.service start service
    • [[email protected] ~]# systemctl start cobblerd.service start service
    • [[email protected] ~]# SYSTEMCTL status Cobblerd.service see if Open
    • [[email protected] ~]# systemctl stop Firewalld.service shut down the firewall
    • [[email protected] ~]# Setenforce 0 off Enhanced security features
    • [[email protected] ~]# Cobbler check online for inspection
    • [Email protected] ~]# vim/etc/xinetd.d/tftp
    • Disable = no (yes to No) enable TFTP-corresponding optimizations 2
    • [[email protected] ~]# systemctl enable rsyncd.service corresponding optimization 4 Open service
    • [[email protected] ~]# systemctl restart Cobblerd.service Open service
    • [[email protected] ~]# OpenSSL passwd-1-salt ' abc123 ' abc123 ' salt value encryption
      $1$ABC123$9V8Z2./E/PZIHXRVCY3II0 encryption Results Copy encryption results
      [Email protected] ~]# Vim/etc/cobbler/settings/cobbler Modify the master configuration file

101 default_password_crypted: "$1$ABC123$9V8Z2./E/PZIHXRVCY3II0" salt value encryption

  • [[email protected] ~]# systemctl start rsyncd.service start service
  • [[email protected] ~]# systemctl restart Xinetd.service Open service
  • [[email protected] ~]# vim/etc/cobbler/dhcp.template assigning IP
  • Subnet 192.168.30.0 netmask 255.255.255.0 {Modify to your own network segment
  • Option routers 192.168.30.1; Gateway
  • Option Domain-name-servers 192.168.30.2;dns
  • Range DYNAMIC-BOOTP 192.168.30.100 192.168.30.200;
    assigning IP address Pools
  • [[email protected] ~]# Cobbler Sync helps to generate DHCP profiles synchronously
  • [[email protected] ~]# Cobbler get-loaders Download

  • [[email protected] ~]# systemctl restart Dhcpd.service start DHCPD service
  • [Email protected] ~]# systemctl start dhcpd.service start service
  • [[email protected] ~]# systemctl start cobblerd.service start service
  • [[email protected] ~]# systemctl start xinetd.service start service
  • [[email protected] ~]# Cobbler Check View service There's 4 left.
  • /var/log/cobbler/cobbler.log//log file location
  • /VAR/WWW/COBBLER/KS_MIRROR/CENTOS-7-X86_64//Default Import storage location
  • [[email protected] ~]# Cobbler import--path=/mnt/--name=centos-7-x86_64--arch=x86_64 importing ISO image
  • installation after completion [[email protected] ~]# Yum install tree-y

Complete!
[[email protected] ~]# tree/var/lib/tftpboot/images view kernel and initialize files in TFTP server shared directory

    • Systemctl Restart Cobblerd.service
    • Systemctl Restart Dhcpd.service
    • Systemctl Restart Xinetd.service
    • Systemctl Restart Httpd.service
    • Restart all services then you can start the automatic installation

Linux Fully automated batch installation deployment by configuring Cobbler server

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.