packags needed

need packages:

system-config-kickstart ##自动应答脚本制作工具

syslinux ##获得pxelinux.0文件安装包

dhcp ##分配ip给客户机的服务

tftp-server ##提供tftp协议的服务

httpd ##安装源共享服务

#########################config file rules#####################################

No.1 FIST CONFIG DHCP ##配置dhcp配置文件

config /etc/dhcpd/dhcpd.conf like this:

===============================================================

option domain-name "example.com"; ##域名

option domain-name-servers 192.168.0.79; ##dns

default-lease-time 600; ##默认租约期

max-lease-time 7200; ##最长租约期

log-facility local7; ##日志级别

subnet 192.168.0.0 netmask 255.255.255.0 { ##网段,子网掩码

range 192.168.0.102 192.168.0.111; ##地址范围

option routers 192.168.0.254; ##网关

filename "pxelinux.0"; ##pxe启动程序

next-server 192.168.0.79; ##tftp主机地址

}

systemctl restart dhcpd

systemctl stop firewalld

No.2 SED CONFIG TFTP

config /etc/xinetd.d/tftp like this:

service tftp

{

socket_type        = dgram

protocol              = udp

wait                     = yes

user                    = root

server                 = /usr/sbin/in.tftpd

server_args        = -s /var/lib/tftpboot

disable                = <<<<<<<<<yes--->no>>>>>>

per_source         = 11

cps                     = 100 2

flags                   = IPv4

}

systemctl restart xinetd

virt_install.sh

No.3 TRD MAKE SOME FILES AND PXEWORKDIRECTORY

1)

cd /var/lib/tftpboot/

mkdir pxelinux.cfg

2)

mount the iso of the rhel7

cp isolinux/* /var/lib/tftpboot

3)

cp /var/lib/tftpboot/isolinux.cfg   /var/lib/tftpboot/pxelinux.cfg/default

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

所执行过的操作

4)

make a userfully install source and kickstart,my of this is in the ftp's pub

ftp://192.168.0.252/pub/rhel6

ftp://192.168.0.252/pub/ks.cfg

5)

config the file of /var/lib/tftpboot/pxelinux.cfg/default like this:

========================================================================================

default vesamenu.c32

timeout 600 ##等待时间

display boot.msg

# Clear the screen when exiting the menu, instead of leaving the menu displayed.

# For vesamenu, this means the graphical background is still displayed without

# the menu itself for as long as the screen remains in graphics mode.

menu clear

menu background splash.png

menu title Red Hat Enterprise Linux 7.0 ##大标题

menu vshift 8

menu rows 18

menu margin 8

#menu hidden

menu helpmsgrow 15

menu tabmsgrow 13

# Border Area

menu color border * #00000000 #00000000 none

# Selected item

menu color sel 0 #ffffffff #00000000 none

# Title bar

menu color title 0 #ff7ba3d0 #00000000 none

# Press [Tab] message

menu color tabmsg 0 #ff3a6496 #00000000 none

# Unselected menu item

menu color unsel 0 #84b8ffff #00000000 none

# Selected hotkey

menu color hotsel 0 #84b8ffff #00000000 none

# Unselected hotkey

menu color hotkey 0 #ffffffff #00000000 none

# Help text

menu color help 0 #ffffffff #00000000 none

# A scrollbar of some type? Not sure.

menu color scrollbar 0 #ffffffff #ff355594 none

# Timeout msg

menu color timeout 0 #ffffffff #00000000 none

menu color timeout_msg 0 #ffffffff #00000000 none

# Command prompt text

menu color cmdmark 0 #84b8ffff #00000000 none

menu color cmdline 0 #ffffffff #00000000 none

# Do not display the actual menu unless the user presses a key. All that is displayed is a timeout message.

menu tabmsg Press Tab for full configuration options on menu items.

menu separator # insert an empty line

menu separator # insert an empty line

label linux

menu label ^Install Red Hat Enterprise Linux 7.0 ##小标题

menu default ##默认标题设定

kernel vmlinuz

append initrd=initrd.img repo=http://172.25.254.100/soucre ks=http://172.25.254.100/ks.cfg ##安装源和ks

label check

menu label Test this ^media & install Red Hat Enterprise Linux 7.0

#menu default

kernel vmlinuz

append initrd=initrd.img inst.stage2=hd:LABEL=RHEL-7.0\x20Server.x86_64 rd.live.check quiet

图形界面配置ks.cfg

最后安装界面的样式

转载于:https://blog.51cto.com/13132406/1952008

运维学习之自动化安装系统的配置相关推荐

  1. kickstart自动化系统安装_系统运维|基于Kickstart自动化安装CentOS实践

    前言 因为需要在浪潮的x86服务器中集中部署CentOS搭建基于Hadoop的大数据平台,平时接触SLES(SuSE Linux Enterprise Server)较多并且已经实现基于Autoyas ...

  2. cobbler自动化安装系统及配置

    一.cobbler的作用及运行机制 1.cobbler的功能 Cobbler通过PXE的方式来快速安装系统,可以管理DHCP,DNS,TFTP.RSYNC以及yum仓库.构造系统ISO镜像.Cobbl ...

  3. Nginx运维之二 简单安装和环境搭建

    Nginx运维之二 简单安装和环境配置 安装环境 gcc 安装 PCRE pcre-devel 安装 zlib 安装 OpenSSL 安装 下载安装 配置安装 编译安装 配置编辑(案例) 启动与停止 ...

  4. 自动化运维学习--python

    2019独角兽企业重金招聘Python工程师标准>>> 环境搭建 单机环境搭建 安装python apt-get install python python-dev python-s ...

  5. 51CTO学习笔记--Linux运维故障排查思路与系统调优技巧视频课程(高俊峰)

    51CTO学习笔记--Linux运维故障排查思路与系统调优技巧视频课程 第一课 Linux运维经验分享与思路 1.一般把主机名,写到hosts下    127.0.0.1    hostname,因为 ...

  6. 自动化运维工具ansible的安装管理以及模块介绍

    自动化运维工具ansible的安装管理以及模块介绍 目录 自动化运维工具ansible的安装管理以及模块介绍 一.ansible概述 1.几种常用运维工具比较 2.Ansible简介 3.Ansibl ...

  7. python自动化运维学习笔记汇总

    定义 对于运维而言,系统链接:https://pan.baidu.com/s/1xWKqN4DqBsOVCCRsYxIs4Q  提取码:Xq4s运行过程中变化小,重复性非常高.Python 是高层语言 ...

  8. linux系统运维费用,一般Linux运维学习的费用是多少?Linux学习

    随着IT 互联网技术的发展,Linux逐渐成为中高端服务器的主要操作系统,并且目前地位不可替代.Linux运维工程师是一位"复合型人才",他集成了网络.系统.数据库.开发和安全等工 ...

  9. 自动化运维工具ansible(安装与模块介绍)

    自动化运维工具ansible(安装与模块介绍) 一.ansible运维工具概述 (一).ansible的特点 (二).ansible的原理 (三)ansible的优点 二.安装ansible 三.an ...

最新文章

  1. python主要数据变量及其类型说明_Python的数据类型和变量
  2. SpringBoot 源码解析——SpringBoot 中的日志基础服务
  3. ffmpeg学习1 音视频基本概念
  4. 计算任意两个数之间1出现的次数的思维过程
  5. mac系统快捷键大全详细介绍
  6. 移动云亮相 2021 IDC 年度盛典 共话变革与赋能
  7. python爬虫本科容易找工作吗_python爬虫基础学完了,我真的能找到一份工作吗?...
  8. sql declare用法_SQL语句的优化分析
  9. Mac OS Virtualbox 倒入 ova 镜像文件
  10. oracle如何查找谁删除了数据_php如何删除session中数据
  11. 再也不见,Itchat!
  12. 基于51单片机的电子罗盘数字指南针HCM8553原理图程序设计
  13. 分段函数的期望和方差_2014级《经济数学》课程教学大纲
  14. WORD文档不能打开的一些原因
  15. 树莓派Pico开发板MicroPython嵌入pioasm汇编混合编程技术实践
  16. 开发框架-移动开发平台: mPaaS
  17. [VBA][EXCEL]插入分页符
  18. 云安全|云原生安全概述
  19. 固态硬盘为什么比机械硬盘快
  20. python re库 详解(正则表达式)

热门文章

  1. android学习摘要(二)
  2. 转:正则表达式简介及在C++11中的简单使用
  3. 大企业中,Java面试官最爱问的问题集锦
  4. C++基础之布尔类型,什么是C++的布尔类型
  5. 微信浏览器中页面刷新
  6. Nginx 配置 SSL 证书 + 搭建 HTTPS 网站
  7. linux常用命令练习:wc、cut、|、tee、tail
  8. CSS3秘笈复习:第十一章
  9. 尺取法 POJ 3320 Jessica's Reading Problem
  10. linux的用户和组管理(第五讲)