Unattended, automated installation of Linux operating systems

Source: Internet
Author: User

First, use the VSFTPD service to get the system source on the remote server (System source we use the ISO CD file, copy it to the FTP server directory)
1, installation Vsftp
Yum Install Vsftp

2. Connect the system CD to the virtual machine and mount it to the/mnt directory.

3. Copy all files under the/mnt directory to the/var/ftp/pub/directory to provide the installation source.

Second, use the DHCP service to assign an IP address to the host that needs to install the system.
1. Install DHCP service
Yum Install DHCP

2, configure the DHCP server, edit the vim/etc/dhcp/dhcpd.conf file, the content is:

Subnet and netmask Specify the network segment, range indicates the extent of the segment, and option routers indicates the route

Third, the use of graphical interface to generate automated scripts (ks.cfg files), installation of System-config-kickstart tools
1. Install the graphical KS file Generation tool
Yum Install System-config-kickstart

2, System-config-kickstart & Open the graphical tool to configure, generate KS file.





Iv. self-starting ISO (using isolinux from CD-ROM as Startup disk)
1, we will copy the/mnt/isolinux directory to the/root/iso/directory, the ISO directory needs to be created
Mkdir/root/iso
cp-rf/mnt/isolinux/root/iso/
Go to the/root/iso directory to change the isolinux/isolinux.cfg file


Then force the Save to exit

2. Exit to the/root directory to make the ISO file

3. Copy the ISO file to boot.

Copy to Desktop

4. Below we start the DHCP and FTP service, turn off firewall and SELinux service
Setenforce 0
Iptables-f
Service DHCPD Restart
Service VSTFPD Restart

5, create a new virtual machine, and then use their own to do boot.iso boot boot
Ask for at least 80G of disc size, and the next step is to start the installation completely automatically.





Just wait for the installation to finish. Isn't it convenient?
This is I step by step operation, rarely introduce theory, need theoretical things can learn from other materials

Unattended, automated installation of Linux operating systems

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.