centos6.3+tftp+dhcp+httpd

系统环境:centos6.3*64

setenforce 0  关闭 selinux

service iptables stop  关闭iptables

1  挂载镜像

mount /dev/cdrom /mnt

cp -rf   /mnt/*   /var/www/html/

yum install -y httpd* tftp-server-* xinetd-* system-config-kickstart-* syslinux dhcp*  安装必备软件

配置tftp加载文件

vim /etc/xinetd.d/tftp

service tftp

{

socket_type            = dgram

protocol                = udp

wait                    = yes

user                    = root

server                  = /usr/sbin/in.tftpd

server_args            = -s /tftpboot    #开机必需的程序路径(根据的tftpboot路径更改)

disable                = yes      #把这边的yes改为no

per_source              = 11

cps                    = 100 2

flags                  = IPv4

}

mkdir /tftpboot

2  创建tftp目录

cp /usr/share/syslinux/pxelinux.0 /tftpboot/

cp /mnt/p_w_picpaths/pxeboot/initrd.img /tftpboot/

cp /mnt/p_w_picpaths/pxeboot/initrd.img /tftpboot/

cp /mnt/isolinux/*.msg /tftpboot/      #开机引导文件

mkdir /tftpboot/pexlinux.cfg

cp /mnt/isolinux/isolinux.cfg /tftpboot/pxelinux.cfg/default

拷贝相关文件

3  配置 DHCP server

vim /etc/dhcp/dhcpd.conf

ddns-update-style interim;ignore client-updates;next-server 192.168.1.4;  #tftp server 的ip地址filename "/pxelinux.0";subnet 192.168.1.0 netmask 255.255.255.0 {option routers          192.168.1.1;#路由地址option subnet-mask      255.255.255.0;range dynamic-bootp 192.168.1.50 192.168.1.100;default-lease-time 21600;max-lease-time 43200;}

vim /etc/httpd/conf/httpd.conf

找到 #ServerName www.example.com:80 这一行 ,把注释去掉

4 配置ks.cfg

桌面环境 运行命令 system-config-kickstart  配置ks.cfg 并拷贝到 /var/www/html 下

修改 ks.cfg

例子如下

#platform=x86, AMD64, 或 Intel EM64T
#version=DEVEL
# Firewall configuration
firewall --disabled
# Install OS instead of upgrade
install
# Use network installation
url --url="http://192.168.1.4/"
# Root password
rootpw --iscrypted $1$e8wRnTe1$eaeL5kK6Zi8MllGrUtCNk.
# System authorization information
auth  --useshadow  --passalgo=sha512
# Use graphical install
graphical
firstboot --disable
# System keyboard
keyboard us
# System language
lang zh_CN
# SELinux configuration
selinux --disabled
# Installation logging level
logging --level=info
reboot
# System timezone
timezone  Asia/Shanghai
# Network information
network  --bootproto=dhcp --device=eth0 --onboot=on
# System bootloader configuration
bootloader --location=mbr
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all
# Disk partitioning information
part /boot --fstype="ext4" --size=200
part swap --fstype="swap" --size=256
part / --fstype="ext4" --size=10000
part /usr/local --fstype="ext4" --size=10000
%packages

chmod -R 777 /tftpboot/

5

vim /tftpboot/pxelinux.cfg/default

default linux
prompt 0
timeout 10
display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
label linuxkernel vmlinuzappend initrd=initrd.img ks=http://192.168.1.4/ks.cfg   #http地址,可以通过web访问验证
label textkernel vmlinuzappend initrd=initrd.img text
label kskernel vmlinuzappend ks initrd=initrd.img
label locallocalboot 1
label memtest86kernel memtestappend -

启动服务

service httpd restart

service xinetd restart

service dhcpd restart

chkconfig httpd on

chkconfig xinetd on

chkconfig dhcpd on

转载于:https://blog.51cto.com/6545438/1530559

centos6.3配置 kickstart   无人值守安装centos6.3系统 httpd方式相关推荐

  1. 烂泥:kickstart无人值守安装CentOS6.5

    本文由秀依林枫提供友情赞助,首发于烂泥行天下. 在本次实验进行之前,首先我们要把公司的网络环境进行介绍. 注意这个网络拓扑图,也是生产环境的一个实例.同时服务器192.168.1.214已关闭ipta ...

  2. PXE远程安装和Kickstart无人值守安装

    目录 一.PXE概述 二.PXE服务的构建过程 三.配置PXE 安装并配置tftp服务 准备PXE引导镜像文件pxelinux.0 配置default菜单文件 安装ftp服务,准备centos7安装 ...

  3. Centos 6.5 Pxe+kickstart 无人值守安装操作系统

    Centos 6.5PXE+kickstart 无人值守安装操作系统 PXE一种引导方式.进行 PXE 安装的必要条件是在要安装的计算机中必须包含一个 PXE 支持的网卡(NIC),即网卡中必须要有 ...

  4. CentOS 6.4下PXE+Kickstart无人值守安装操作系统

    一.简介 1.1 什么是PXE PXE(Pre-boot Execution Environment,预启动执行环境)是由Intel公司开发的最新技术,工作于Client/Server的网络模式,支持 ...

  5. pxe和kickstart无人值守安装

    1.安装dhcp和tftpserver Yum install dhcp tftp-server 编辑tftp-server的配置文件 Vi /etc/xinetd.d/tftp 修改如下,将yes更 ...

  6. KickStart 无人值守安装系统

    一.简介 1.1 什么是PXE PXE(Pre-boot Execution Environment,预启动执行环境)是由Intel公司开发的最新技术,工作于Client/Server的网络模式,支持 ...

  7. Linux PXE批量网络装机与Kickstart 无人值守安装

    Linux PXE批量网络装机与Kickstart 无人值守安装 一.PXE批量网络装机 二.PXE的三个优点 三.搭建PXE的先前条件 四.配置PXE装机服务器 1.安装并启用 TFTP 服务 2. ...

  8. PXE高效批量安装和Kickstart无人值守安装——真正完成批量自动安装

    PXE高效批量安装和Kickstart无人值守安装--真正完成批量自动安装 一.PXE概述 二.PXE的优点 三.搭建PXE的前提 四.部署PXE远程安装服务 1.安装TFTP服务 2.修改TFTP服 ...

  9. Linux Kickstart无人值守安装(上)

    Linux Kickstart无人值守安装 在我们的网络维护生涯中,有不少朋友,感觉到自己在机械的做一件事情,在无聊.无趣和无奈中工作.尤其一些简单重复的操作更容易让大家感到工作的无趣.今天将给大家介 ...

最新文章

  1. 杭电2097--Sky数
  2. 为任务关键型Java应用优化垃圾回收
  3. CreatePipe匿名管道通信
  4. java bean jsp_JavaBean与Jsp
  5. PropertyGrid仿VS的属性事件窗口
  6. iOS WKWebview JS与OC互相调用,传递数据
  7. arcgis利用Model Builder构建器进行批量处理数据
  8. eclipse导入不到嵌套的项目
  9. dexposed框架Android在线热修复
  10. android office转pdf插件,Office自带Word转PDF插件 让office的另存为可存储为PDF文件
  11. java查询mongodb数据_从mongodb中查询数据
  12. 励磁电感公式_永磁同步电机交直轴电感计算
  13. Matlab中如何定义和使用colormap?|colormap的使用
  14. 浏览器突然无法打开微信链接解决办法
  15. [渝粤教育] 西南科技大学 物流系统规划与设计 在线考试复习资料
  16. 力扣LeetCode经典算法 礼物的最大价值
  17. uint8数据类型图片和double数据类型图片的转化和显示
  18. 面向对象编程基本概念
  19. AD10软件导入CAD图纸尺寸
  20. Python03(注释、算术运算符、程序执行原理、变量使用)

热门文章

  1. 【转】Python自动化测试 (一) Eclipse+Pydev 搭建开发环境
  2. 看看能不能发推广链接。。。。。
  3. 数据传递型情景下事件机制与消息机制的架构设计剖析(目录)
  4. jquery判断是否隐藏
  5. 我的迅雷资源博客已经开通!
  6. error: #error This file requires compiler and library support for the ISO C++ 2011 standard.
  7. 数据结构上机实践第五周项目1- 建立顺序栈算法库
  8. 数据结构笔记(九)-- 单链队列
  9. 文件与目录的默认权限与隐藏权限
  10. who i am !