CentOS 6.5 PXE One-click Install Linux operating system

Source: Internet
Author: User

#安装配置DHCPyum  -Y INSTALL DHCPCP /USR/SHARE/DOC/DHCP-4.2.5/DHCPD.CONF.EXAMPLE /ETC/DHCP /dhcpd.confvim /etc/dhcp/dhcpd.conf        subnet  192.168.3.0 netmask 255.255.255.0 {  range 192.168.3.100 192.168.3.200;   option domain-name-servers server.example.com;  option domain-name  " 8.8.8.8 ";  option routers 192.168.3.1;  option broadcast-address  192.168.3.255;  next-server 192.168.3.100;  filename  "pxelinux.0";   default-lease-time 60000;  max-lease-time 720000;} service dhcpd startchkconfig dhcpd on# Configuring XINETD Server Yum -y install syslinux  tftp-servervim /etc/xinetd.d/tftpdisable=noservice xinetd startchkconfig xinetd  on# Copy boot file cd /var/lib/tftpboot   cp /mnt/isolinux/* .cp /usr/share/syslinux/pxelinux.0 .mkdir pxelinux.cfgcd pxelinux.cfgcp /mnt/ Isolinux/isolinux.cfg ./default  vim default    label install  rhel6.5   kernel vmlinuz  append initrd=initrd.img ks=nfs :192.168.3.100:/var/lib/tftpboot/ks.cfg    #配置NFS服务yum  -y install nfs*     mkdir /rhel6mount /dev/cdrom /rhel6vim /etc/exports     /RHEL6    192.168.3.0/24 (Rw,sync) service nfs startchkconfig nfs  onyum -y install system-config-kickstgartsystem-config-kickstart# Create a one-click installation Script # Manual write script #platform=x86,  amd64, or intel em64t#version=devel# firewall configurationfirewall -- Disabled# install os instead of upgradeinstall# use nfs installation  medianfs --server=192.168.3.100 --dir=/mnt# root passwordrootpw --iscrypted $1$3x.jwnpp$90yjqkqsbqtdl4aprsgkc/ # system authorization informationauth  --useshadow  --passalgo=sha512#  use graphical installgraphicalfirstboot --disable# system keyboardkeyboard  us# system languagelang en_us# selinux configurationselinux --enforcing#  Installation logging levellogging --level=info# Reboot after  installationreboot# system timezonetimezone --isutc asia/shanghai# network  informationnetwork  --bootproto=dhcp --device=eth0 --onboot=on# system  bootloader configurationbootloader --location=mbr# clear the master boot  Recordzerombr# partition clearing informationclearpart --all --initlabel# disk  partitioning informationpart /boot&nBsp;--fstype= "Ext4"  --size=200part / --fstype= "Ext4"  --grow --size=1% Packages@basic-desktop@desktop-debugging@desktop-platform@fonts@general-desktop@graphical-admin-tools@input-methods@kde-d Esktop@legacy-x@remote-desktop-clients@x11%end


This article is from the "Wu Shanqiang" blog, make sure to keep this source http://shanqiangwu.blog.51cto.com/8067564/1653988

CentOS 6.5 PXE One-click Install Linux operating system

Related Article

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.