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
- [Email protected]/]# ifconfig
- inet 192.168.30.130 automatically assign IP addresses
- [[email protected]/]# systemctl status network.service view NIC status
- [[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
- [[email protected] ~]# smbclient-l//192.168.03.1/Scan Share
- Mount.cifs//192.168.30.1/centos/opt/Mount
- [[email protected] opt]# RPM-IVH epel-release-latest-7.noarch.rpm installed with rpm
- Link a disc to a virtual machine
- [[email protected] opt]# MOUNT/DEV/SR0/MNT disc for mounting
- The only good thing is that the Yum warehouse is written, not written.
- [[email protected] ~]# Yum list loaded on a network basis
- [[email protected] ~]# Yum install cobbler-y Environment Pack Online to have a network. Cobbler can be used to quickly build Linux network installation Environment
- [[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
- [Email protected] ~]# Vim/etc/cobbler/settings/cobbler Modify the master configuration file
- 272 next_server:192.168.30.130 to its own IP address
- 384 server:192.168.30.130 also points to himself
- 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
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