Network Install Linux System

Source: Internet
Author: User

Network boot installation Detailed steps: (Two ways vsftp and NFS)

  1. Installing the Software

    Yum install TFTP tftp-server vsftpd DHCP xinetd syslinux-y

  2. Modify xinetd to open tftp

    Vim/etc/xinetd.d/tftp

    Disable = no----find this line and modify Yes to No

  3. Mount the mounting media.

    Because my installation media is placed on the physical machine windows, I set the media to a shared folder and then use the command below to mount the Windows shared folder to the Linux directory.

    Mount.cifs-o username= "Administrator", password= "111111"//192.168.80.135/ax4sp2/mnt/winf/

  4. Create a new DVD directory in the FTP pub directory, and then loop the installation media to the FTP Pub/dvd directory

    Mkdir/var/ftp/pub/dvd

    cd/mnt/winf/

    Mount-o Loop centos.iso/var/ftp/pub/dvd/

    cd/var/ftp/pub/dvd/

    LS-----View the files that are mounted.

    Documents highavailability isolinux Packages resilientstorage Server

    EFI images loadbalancer repodata scalablefilesystem TRANS. TBL

  5. Copy isolinux The following file to Tftpboot

    CD isolinux/

    CP./*/var/lib/tftpboot/-arf

  6. Copy pxelinux.0 to Tftpboot

    cd/var/lib/tftpboot/

    cp/usr/share/syslinux/pxelinux.0./-arf

  7. Create a new pxelinux.cfg directory, copy the Pxelinux.cfg file to the directory and rename it to default

    mkdir pxelinux.cfg

    CD pxelinux.cfg/

    Cp/var/ftp/pub/dvd/isolinux/isolinux.cfg Default

  8. Configure DHCP

    Vim/etc/dhcp/dhcpd.conf

    Write the following: write the IP address according to the actual situation

    Subnet 192.168.1.0 netmask 255.255.255.0----network segment, mask

    {

    Range 192.168.1.2 192.168.1.254;----Range

    FileName "pxelinux.0";

    Next-server 192.168.1.104;-----The native server address

    }

  9. Start the service:

    /ETC/INIT.D/DHCPD restart

    /etc/init.d/xinetd restart

    /ETC/INIT.D/VSFTPD restart

    Chkconfig TFTP on

  10. Boot Select network installation, you can install the system.

Note the point:

    1. If you use NFS installation, you need to edit the exports file and put the media in.

      Mkdir/iso

      Mount-o Loop Centos.iso/iso

      Vim/etc/exports---Edit enter the following content

      /iso * (RO)

      Then, start the NFS service

      /etc/init.d/rpcbind restart

      /etc/init.d/nfs restart

      Then power on select Network installation, prompted to choose the installation method when the NFS access to know.

    2. The 22nd line of the default file in the/var/lib/tftpboot/pxelinux.cfg/directory can also be added to the Ks.cfg file address to automatically install the system.

      The following format: Append ks=nfs:192.168.1.11:/opt/ks.cfg initrd=initrd.img Adding this content on line 22 allows for automatic installation of the system.

This article is from "Operation and Maintenance"!!! "Blog, be sure to keep this provenance http://oldyunwei.blog.51cto.com/6338968/1661436

Network Install Linux System

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.