码迷,mamicode.com
首页 > Web开发 > 详细

net instlal centos7

时间:2016-08-26 01:14:13      阅读:216      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!