Automatically install Linux system method one:

1, yum install -y system-config-kickstart

< p>Install and generate an answer file for automatically installing the operating system

2, system-config-kickstart Execute a graphical tool for generating answer files

share picture

3. Automated installation is based on network installation, and the HTTP server is configured in advance

Share a picture

4. Install boot loader

share pictures

5. Clear MBR , Delete all partitions, initialize tags, create partitions

Share a picture

< /p>

6. Add a network card: eth0, set up a DHCP server in advance

share picture

7. Disable firewall and selinux

share pictures

8. Choose the package you need to install

Share a picture

Share a picture

9. Add a post-installation script, enter the configuration you need, etc.

share picture

10. Save after setting

share picture

11. Choose the path you saved and set the file name

Share a picture

12, vim /root/ks.cfg

share picture

At the end of the answer file, add the package you want to install

13. Put the answer file on the http server

yum install httpd -y Install http

mkdir / var/www/html/ksdir

mv /root/ks.cfg /var/www/html/ksdir

systemctl start httpd

Put the answer file Go to the http server built by yourself

14. The boot process still requires CD-ROM boot; to the CD-ROM interface, press the ESC key< /p>

share picture

< p>

15. Specify the http service where the price is answered The path of the server; the premise is to connect to the http server must have an ip address, and the dhcp server must be set up in advance to get the ip address

share picture

Leave a Comment

Your email address will not be published.