首页 > Web开发 > 详细

net instlal centos7

时间:2016-08-26 01:11:33      阅读:161      评论:0      收藏:0      [点我收藏+]


yum -y install tftp-server
yum -y install xinetd
yum -y install syslinux
cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/

mkdir -p /var/pxe/centos7
mkdir /var/lib/tftpboot/centos7
mount -t iso9660 -o loop /home/iso/CentOS-7-x86_64-DVD-1503-01.iso /var/pxe/centos7

cp /var/pxe/centos7/images/pxeboot/vmlinuz /var/lib/tftpboot/centos7/

cp /var/pxe/centos7/images/pxeboot/initrd.img /var/lib/tftpboot/centos7/

cp /usr/share/syslinux/menu.c32 /var/lib/tftpboot/

vi /var/lib/tftpboot/pxelinux.cfg/default
# create new
timeout 100
default menu.c32

menu title ########## PXE Boot Menu ##########
label 1
   menu label ^1) Install CentOS 7
   kernel centos7/vmlinuz
   append initrd=centos7/initrd.img method=http://10.0.0.30/centos7 devfs=nomount

label 2
   menu label ^2) Boot from local drive
   localboot

   
 vi /etc/httpd/conf.d/pxeboot.conf
# create new

Alias /centos7 /var/pxe/centos7
<Directory /var/pxe/centos7>
    Options Indexes FollowSymLinks
    # IP address you allow to access

    Require ip 127.0.0.1 10.0.0.0/24
</Directory>

net instlal centos7

原文:http://www.cnblogs.com/anjuncc/p/5808748.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!