In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
# 1.kickstart script
Overview of Kickstart
Using kickstart, system administrators can create a file that contains answers to all common questions during installation to automatically install Red Hat Enterprise Linux
Kickstart is similar to unattended installation of Jumpstart or Microsoft Windows in Oracle solaris
The kickstart script is a script file that automatically answers all problems with the system during installation.
This file can be installed automatically.
After the system is installed, it will be generated in the root home directory of the system
The file anaconda-ks.cfg is the kickstart script generated with this system as a template.
# production of 2.kickstart script #
It is very difficult to write kickstart manually
The system-config-kickstart tool in the system can make kickstart graphically.
Production process:
Configure the environment:
Yum install system-config-kickstart-yearly # installs graphic production tools
System-config-kickstart## opens the drawing ks making tool
Start production:
Basic configuration
Installation method
Boot loader selection
Zoning
Network configuration
Firewall configuration
Perform actions after system installation
Other options choose default
Save
Vim opens the file and adds the installation package after the file
The ks file has been made.
Ksvalidator ks.cfg## detects ks syntax
# 3.kickstart file sharing # (operating in a virtual set)
Yum install httpd-y
Systemctl stop firewalld.service
Systemctl disable firewalld.service
Systemctl start httpd
Systemctl enable httpd
Cp ks.cfg / var/www/html
Access ks.cfg files in a real machine
# 4. Test ks file #
Graphics
Command
[root@foundation22 ~] # virt-install\
>-- name kstest\
>-ram 800\
>-- file / var/lib/libvirt/p_w_picpaths/kstest.qcow2\
>-- file-size 8\
>-- location ftp://172.25.254.250/pub/rhel7.2\
>-extra-args "ks= http://172.25.254.100/ks.cfg" &
Script
# add pxe network installation service #
1. Corresponding software installation
Yum install dhcp tftp-server syslinux httpd-y
Systemctl stop firewalld.service
Systemctl disable firewalld.service
Vim / etc/xinetd.d/tftp
[disable = yes] = > [disable = no]
Systemctl restart xinetd
Systemctl start httpd
Systemctl enable httpd
two。 Download and copy of required files
Cp / usr/share/syslinux/pxelinux.0 / var/lib/tftpboot/
Copy all the isolinux/* in the installation image to / var/lib/tftpboot/
Isolinux: we downloaded it from the teacher's computer
Mkdir / var/lib/tftpboot / pxelinux.cfg
Cp / var/lib/tftpboot/isolinux.cfg / var/lib/tftpboot/pxelinux.cfg/default
Configuration of the 3.dhcpd service
Subnet 172.25.254.0 netmask 255.255.255.0 {
Range 172.25.254.200 172.25.254.220
Option routers 172.25.254.254
Filename "pxelinux.0"
Next-server 172.25.254.100
}
Note:
10: default dhcp address lease
11. Maximum dhcp address lease
Delete lines 27 and 28 of the original file
30: define the dhcp network
31: define the dhcp address range
32: gateway Settin
33: specify the pxe boot file
34: specify the tftp server address
4. test
Install a virtual machine from a network boot in a real machine
Select pxe installation. The remaining steps are the same as before.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.