Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Automate kickstart installation of linux system

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. Understand before the experiment

The operating system of the computer is also installed on the disk, which is made up of tracks and sectors

Disk partition: it is divided in the system and managed by the system, but the system is also in the disk.

The default position of the end head: the default position of track 0 at the beginning of reading.

The disk boot program bootloader causes the 0 head to read disk c and start the system

On track zero, there's a program called pxelinux.

When the computer is started, the pxelinux program guides the head to read the startup information, also known as the pxe startup service.

two。 Experimental thinking

To install a system for a server host using a virtual machine, you need to perform the following operations on a virtual machine:

Set up a dhcp server: assign dynamic ip to the new system

Enable http services: provide sharing to new systems, read ks.cfg files to install the system, and use shared Yum sources to install official and third-party software

Enable the tftp service: tftp is a simple text transfer protocol for simple text transfer. The port number of the service is 69.

Turn off the firewall: only sharing can be achieved, thus booting another host

Create pxe profile default

3. Experimental procedure

1.yum install httpd system-config-kickstart dhcp-y

Edit dhcp module

Edit http module

Edit the kickstart module (select parameters and save it in the / var/www/html/ directory of the apache share)

two。 Edit the contents of the vim / var/www/html/ks.cfg file to proceed with the time zone

3. Use ksvalidator / var/www/html/ks.cfg to check the syntax of files without checking whether your configuration is wrong.

4. Test on the browser to see if the ks.cfg file is configured successfully

5. Use virt-manager to call the graphical interface to install a new virtual machine

6. After selecting install in the following interface, press tab to write your own kickstart file, which will enter the file installation interface.

Note: the above is done in virtual environment, but if the virtual machine of your own machine does not have virtualization components installed, you can use your own real machine to install it.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report