参考https://linux.cn/article-4902-1.html
yum install -y vsftpd syslinux dnsmasq
============================dnsmasq======================================================
mv /etc/dnsmasq.conf /etc/dnsmasq.conf.backup
mkdir -p /var/tftpboot
# DHCP range-leases
dhcp-range=192.168.112.3,192.168.112.253,255.255.255.0,12h
# PXE
dhcp-boot=pxelinux.0
# Gateway
dhcp-option=3,192.168.112.2
enable-tftp
tftp-root=/var/tftpboot
cp -r /usr/share/syslinux/* /var/tftpboot
mkdir /var/tftpboot/pxelinux.cfg
touch /var/tftpboot/pxelinux.cfg/default
mkdir /var/tftpboot/centos6
mkdir /mnt/images
mount -o loop /home/CentOS-6.5-x86_64-bin-DVD1.iso /mnt/centos
cp /mnt/centos/images/pxeboot/vmlinuz /var/tftpboot/centos6
cp /mnt/centos/images/pxeboot/initrd.img /var/tftpboot/centos7
chmod -R 755 /var/tftpboot/
mkdir /var/ftp/pub/centos6.5x64
cp -rv /mnt/centos/* /var/ftp/pub/centos6.5x64/
关闭selinux
setenforce 0
# netstat -tulpn
# firewall-cmd --add-service=ftp --permanent ## Port 21
# firewall-cmd --add-service=dns --permanent ## Port 53
# firewall-cmd --add-service=dhcp --permanent ## Port 67
# firewall-cmd --add-port=69/udp --permanent ## Port for TFTP
# firewall-cmd --add-port=4011/udp --permanent ## Port for ProxyDHCP
# firewall-cmd --reload ## Apply rules
# systemctl start dnsmasq
# systemctl status dnsmasq
# systemctl start vsftpd
# systemctl status vsftpd
# systemctl enable dnsmasq
# systemctl enable vsftpd
kickstart文件 使用下面的工具生成
yum install -y system-config-kickstart
改IP
/etc/dnsmasq.conf
/var/tftpboot/pxelinux.cfg/default
/var/ftp/pub/centos6.5x64/centos6-ks.cfg
yum install -y vsftpd syslinux dnsmasq
============================dnsmasq======================================================
mv /etc/dnsmasq.conf /etc/dnsmasq.conf.backup
mkdir -p /var/tftpboot
# DHCP range-leases
dhcp-range=192.168.112.3,192.168.112.253,255.255.255.0,12h
# PXE
dhcp-boot=pxelinux.0
# Gateway
dhcp-option=3,192.168.112.2
enable-tftp
tftp-root=/var/tftpboot
cp -r /usr/share/syslinux/* /var/tftpboot
mkdir /var/tftpboot/pxelinux.cfg
touch /var/tftpboot/pxelinux.cfg/default
mkdir /var/tftpboot/centos6
mkdir /mnt/images
mount -o loop /home/CentOS-6.5-x86_64-bin-DVD1.iso /mnt/centos
cp /mnt/centos/images/pxeboot/vmlinuz /var/tftpboot/centos6
cp /mnt/centos/images/pxeboot/initrd.img /var/tftpboot/centos7
chmod -R 755 /var/tftpboot/
mkdir /var/ftp/pub/centos6.5x64
cp -rv /mnt/centos/* /var/ftp/pub/centos6.5x64/
关闭selinux
setenforce 0
# netstat -tulpn
# firewall-cmd --add-service=ftp --permanent ## Port 21
# firewall-cmd --add-service=dns --permanent ## Port 53
# firewall-cmd --add-service=dhcp --permanent ## Port 67
# firewall-cmd --add-port=69/udp --permanent ## Port for TFTP
# firewall-cmd --add-port=4011/udp --permanent ## Port for ProxyDHCP
# firewall-cmd --reload ## Apply rules
# systemctl start dnsmasq
# systemctl status dnsmasq
# systemctl start vsftpd
# systemctl status vsftpd
# systemctl enable dnsmasq
# systemctl enable vsftpd
kickstart文件 使用下面的工具生成
yum install -y system-config-kickstart
改IP
/etc/dnsmasq.conf
/var/tftpboot/pxelinux.cfg/default
/var/ftp/pub/centos6.5x64/centos6-ks.cfg
#/var/tftpboot/pxelinux.cfg/default default menu.c32 prompt 0 timeout 300 ONTIMEOUT local menu title ########## PXE Boot Menu ########## label 1 menu label ^1) Install CentOS 6 x64 with Local Repo kernel centos6/vmlinuz #append initrd=centos6/initrd.img method=ftp://192.168.112.11/pub/centos6.5x64 devfs=nomount append ks=ftp://192.168.112.11/pub/centos6.5x64/centos6-ks.cfg initrd=centos6/initrd.img devfs=nomount label 2 menu label ^2) Install CentOS 6 x64 with Local Repo using VNC password vnc123 kernel centos6/vmlinuz append initrd=centos6/initrd.img method=ftp://192.168.112.11/pub/centos6.5x64 devfs=nomount inst.vnc inst.vncpassword=vnc123 label 3 menu label ^3) Install CentOS 7 x64 with Local Repo menu default kernel centos7/vmlinuz #append initrd=centos7/initrd.img method=ftp://192.168.112.11/pub/centos7x64 devfs=nomount append ks=ftp://192.168.112.11/pub/centos7x64/centos7-ks.cfg initrd=centos7/initrd.img devfs=nomount label 4 menu label ^4) Install CentOS 7 x64 with Local Repo using VNC password vnc123 kernel centos7/vmlinuz append initrd=centos7/initrd.img method=ftp://192.168.112.11/pub/centos7x64 devfs=nomount inst.vnc inst.vncpassword=vnc123 label 5 menu label ^5) Boot from local drive
发表评论
-
linux 安装mysql多个实例
2020-03-13 15:47 366mysql5.7.28多实例 安装mysql,不要启动 创 ... -
批量替换配置文件中的URL
2020-03-11 13:35 304find -iregex ".*/sh[a-z ... -
rsync备份和删除指定文件
2018-01-02 10:23 1973文件异地备份时,需要将本地文件合并到服务器上,且不能删除服务器 ... -
linux 定时任务crontab操作
2017-12-28 16:14 587常用参数: crontab -l //查看当前用户下 ... -
iptables 日志
2017-11-15 15:06 1311centos6.5配置了iptables的nat功能,但是不知 ... -
linux删除乱码文件
2017-09-30 11:20 637系统里好多乱码文件,删除不了 这个办法挺好 [url=htt ... -
解决vsftpd中文乱码问题
2017-08-25 10:45 0vsftpd中文乱码,通过ftp工具上传的中文文件会变为乱码J ... -
LVM常用命令
2017-08-25 10:28 540lvm 查看命令 lvs vgs pvs vgdisplay ... -
Centos7 firewalld操作
2017-08-25 10:27 549启动:# systemctl start firewall ... -
centos 添加DNAT SNAT
2017-08-25 10:19 3328外网服务器IP 101.168.200.22 开放端口8310 ... -
centos6 tomcat 启动脚本 tomcat服务
2017-08-23 11:24 1371系统自动启动tomcat 复制该脚本到/etc/init.d/ ... -
CentOS6.5 整机备份与迁移恢复 五
2017-07-10 14:44 802修改网卡等配置 B服务器启动后,由于权限等原因会导至部分功能出 ... -
CentOS6.5 整机备份与迁移恢复 四
2017-07-07 16:52 810修改B系统引导器,正常启动B系统 选择系统安装或更新 ... -
CentOS6.5 整机备份与迁移恢复 三
2017-07-07 16:41 991恢复系统文件 使用光盘启动B服务器,进入rescue模式,进入 ... -
CentOS6.5 整机备份与迁移恢复 二
2017-07-07 16:05 1086恢复分区表和格式化分区 在B服务器上,使用同样的系统盘启动系统 ... -
CentOS6.5 整机备份与迁移恢复 一
2017-07-07 15:32 7507CentOS6.5的整机备份与迁 ... -
centos vsftpd 虚拟用户安装配置
2017-07-07 14:11 598安装vsftpd yum install -y vsftp ... -
openstack 虚拟机改IP
2017-03-31 17:17 1628虚拟环境搭建好以后,需要把实体服务器切换到虚拟机中,为了 ... -
编译安装openstack mitaka horizon
2017-03-15 15:19 1582由于openstack的rpm包 ... -
openstack mitaka版dashboard的BUG Security group not found for project
2017-03-15 14:44 1308在centos7系统上,按照openstack mita ...
相关推荐
CentOS+6.5下PXE+Kickstart无人值守安装操作系统
通过PXE无人值守的方式批量部署CentOS6.5 操作系统
摘要:该文档主要描述了LiveCD版本的iso系统文件如何从LegacyPXE和UEFIPXE启动,以及LiveCD版本的系统的简单定制,如打包测试工具等。引言
配置要求如下: 在服务器中安装配置bind服务,负责区域”xiangcheng.net” IP地址为10.100.100.x ,主机解析,...我们先装一个命令行提示符界面的Centos6.5,内存:512MB,硬盘:4G。 修改本地源: 以编辑模式进入Cent
安装并配置tftp服务 yum install tftp tftp-server vsftpd dhcp syslinux nfs-utils vim /etc/xinetd.d/tftp service tftp { disable = no socket_type = dgram protocol = udp wait = yes user = root ...
如何安装Centos6.5操作系统2.1基础准备2.2安装步骤3.配置PXE母机3.1关闭防火墙和SELINUX3.2配置母机IP地址3.3上传镜像4.验证批量安装系统5.写在最后如果实验未成功CRT==无法连接==PXE-Server节点 案例目标 了解...
本文档基于CentOS6.5来编写,与CentOS5不同的地方将会注明。其他RHEL5请参考CentOS5的配置,RHEL6参考CentOS6的配置。
在进行网络安装过程中总结的步骤如果感觉写的可以记得好评,我用的是CentOS6的系统 6.1-6.5都适用。
这些剧本假设您使用 cobbler 来管理和 pxe 引导您的系统并运行 CentOS-6.5。 在做任何工作之前,我获取了所有感兴趣的系统文件,包括配置、kickstart 和.bash_histories 。 我将它们放在 repo 的backup文件夹中以备...