Cobbler Batch Install Linux

Source: Internet
Author: User

Environment:
VMware 12 Virtual Machines
Centos 7 (firewall off and SELinux)
Epel Yum Source
Note:
The default password for the newly installed operating system is admin123
Install operating system default settings file:/VAR/LIB/COBBLER/KICKSTARTS/SAMPLE_END.KS
Cobbler log file:/var/log/cobbler/cobbler.log
Installation steps:
1. Download and install Epel yum source
Command: RPM-IVH
2. Install Cobbler cobbler-web DHCP tftp-server pykickstart httpd rsync xinetd Tree

Yum Install cobbler cobbler-web dhcp tftp-server pykickstart httpd rsync xinetd tree-y
3. Modify the Cobbler profile settings (Yum installed profile path is/etc/cobbler/settings)
Modify the following three places:



4. Cobbler Check Inspection
You may get an error after executing the command:

Start the following two services:

To perform the check command again:
Cobbler Check

5. Modify the initial password of the root user of the installation system and generate the password using the following command (the 5th after the Cobbler Check command is executed quite a step)
OpenSSL passwd-1-salt ' admin123 ' admin123 '--admin123 for system login username root password
$1$ADMIN123$EIY6RKQOARONGZVRTEO41/--encrypted key
Replace this key in the/etc/cobbler/settings file
default_password_crypted: "$1$admin123$eiy6rkqoarongzvrteo41/"--this is the root user password
6, download the boot operating system files (equivalent to the 2nd after executing the Cobbler check command in step 4)
Cobbler Get-loaders

7. Start RSYNCD Service (equivalent to the 3rd after Cobbler check execution in step 4)
Systemctl Start Rsyncd.service

8. Open the TFTP service (equivalent to the 1th after executing the Cobbler check command in step 4)
Modify the Disable=yes in the/etc/xinetd.d/tftp file to Disable=no

Restart XINETD Service
Systemctl Restart Xinetd.service

9. Generate a DHCP configuration file
Edit/etc/cobbler/dhcp.template--dhcp Service template

Generate a DHCP configuration file and start the Dhcpd.service service
Cobbler Sync
Systemctl Restart Dhcpd.service

10. Load System image (I use ISO file here)
Mount-t Iso9660-o loop/root/iso/centos-7-x86_64-minimal-1611.iso/mnt
Cobbler Import--path=/mnt/--name=centos-7-x86_64--arch=x86_64

11. View Import Results

12. Cobbler Web user settings

Generate web-side user accounts
Htdigest-c/etc/cobbler/users.digest Cobbler Root--here root is the Web login account

Enter Password two times
Restart Cobblerd, httpd service
Systemctl Restart Cobblerd.service
Systemctl Restart Httpd.service

13. Test the automatic installation of the operating system
Create a new virtual machine in VMware.






When you are finished, start the virtual machine


Automatically install the operating system after selecting.

Cobbler Batch Install Linux

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.