REDHAT7 Building Unattended automatic installation Linux operating system (Pxe+kickstart)

Source: Internet
Author: User

Kickstart server

ip:192.168.136.253 Mask: 255.255.255.0 gateway: 192.168.136.2 dns:192.168.136.2

    • Install and deploy the Yum source server

Reference http://www.cnblogs.com/edward2013/p/5020113.html

    • Installing the Deployment DHCP server
Yum Install DHCP

Modifying a configuration file

# vi/etc/dhcp/dhcpd.conf

# # DHCP Server Configurationfile. # See/usr/share/doc/dhcp*/dhcpd.conf.example# See dhcpd.conf (5)MansPage#log-facility Local7;subnet192.168.136.0Netmask255.255.255.0{Range192.168.136.100 192.168.136.200; #IP地址池范围 option Domain-name"example.com"; Option Domain-name-servers192.168.136.2; Option Routers192.168.136.2; #路由器IP, you can write the gateway IP default-lease- Time  -; Max-lease- Time 7200; Next-server192.168.136.253; IP address of the #TFTP Server filename"pxelinux.0"; #pxelinux start File Location}

Start the DHCP service and set it to boot

# Systemctl start dhcpd# systemctl enable DHCPD
    • Installing the Deployment TFTP server
Yum Install Tftp-server

Modifying a configuration file

# vi/etc/xinetd.d/tftp

# default:off# description:the TFTP server serves files using the trivialfileTransfer # protocol. The TFTP protocol is often used to boot diskless # workstations, download configuration files to network-aware printers, # and to start the installation process forsome operating systems.service tftp{Socket_type=Dgram Protocol=UDPwait=Yes user=Root server=/usr/sbin/inch. TFTPD Server_args=-s/var/lib/tftpboot Disable = no #把这行改成no即可per_source= OneCPS= - 2Flags=IPv4}

Start the TFTP service and set it to boot from boot

# Systemctl start tftp# systemctl enable TFTP

Copy the required startup files from the client to the TFTP server

Yum Install  cp /usr/share/syslinux/pxelinux. 0 /var/lib/tftpboot/

Copy the boot image file and boot configuration file to the TFTP shared directory

cp /content/rhel7/x86_64/dvd/isolinux/{vmlinuz,initrd.img}/var/lib/tftpboot/mkdir / var/lib/tftpboot/CP /content/rhel7/x86_64/dvd/isolinux/isolinux.cfg/var/lib/tftpboot/ pxelinux.cfg/chmod644 /var/lib/tftpboot/pxelinux.cfg/default

Modifying the startup configuration file

# Vi/var/lib/tftpboot/pxelinux.cfg/default

Linux... label Linux  7.2  kernel vmlinuz  append initrdks=http:/ /192.168.136.253/rhel7/x86_64/ks.cfg...
    • Create Kickstart Auto answer file

REDHAT7 Building Unattended automatic installation Linux operating system (Pxe+kickstart)

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.