kickstart+tftp部署redhat系统:

kickstart+tftp安装、配置略

mkdir /root/isorhel66

mount -t iso9660 -i -o ro,loop rhel-server-6.6-x86_64-dvd.iso /root/isorhel66/

mkdir /var/lib/tftpboot/RHEL66/

rsync -av --progress /root/isorhel66/isolinux/initrd.img /var/lib/tftpboot/RHEL66/

mkdir /var/www/html/ks/RHEL66

rsync -av --progress /root/isorhel66/* /var/www/html/ks/RHEL66/

redhat所需ks.cfg文件需先在1台redhat系统上生成(yum install system-config-kickstart,然后vnc下执行system-config-kickstart命令)

vi /var/lib/tftpboot/pxelinux.cfg/default

label 3. Install RHEL 6.6 x86_64

kernel RHEL66/vmlinuz
append ks=http://10.0.0.2/ks/ksrhel66.cfg initrd=RHEL66/initrd.img

:wq

cp -rv ksrhel66.cfg /var/www/html/ks/

vi /var/www/html/ks/ksrhel66.cfg (url、时区、selinux调整下,把软件选择部分手动加进来)

url --url="http://10.0.0.2/ks/rhel66/"

timezone Asia/Shanghai

selinux --disabled

clearpart --drives=sda --all
ignoredisk --only-use=sda

%packagesbr/>@base
@corebr/>@desktop
%end

reboot
:wq

cat /var/www/html/ks/ksrhel66.cfg

#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
#Firewall configuration
firewall --disabled
#Install OS instead of upgrade
install
#Use network installation
url --url="http://10.0.0.2/ks/rhel66/"
#Root password
rootpw --iscrypted $1$lU3654aL$oT0PwZrSEbmsCBFyQHJ5M1
#System authorization information
auth --useshadow --passalgo=sha512
#Use graphical install
graphical
firstboot --disable
#System keyboard
keyboard us
#System language
lang en_US
#SELinux configuration
selinux --disabled
#Installation logging level
logging --level=info

#System timezone
timezone Asia/Shanghai
#Network information
network --onboot=on --device=eth0 --bootproto=dhcp
#System bootloader configuration
bootloader --location=mbr
#Partition clearing information
#clearpart --linux
clearpart --drives=sda --all
ignoredisk --only-use=sda
#Disk partitioning information
part / --asprimary --fstype="ext4" --ondisk=sda --size=100000
part swap --fstype="swap" --ondisk=sda --size=10000

%packagesbr/>@base
@corebr/>@kde-desktop
@x11
%end

reboot

附:

CentOS 6.5的ks.cfg(主要在桌面部分比redhat多个basic-desktop):

#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
#Firewall configuration
firewall --disabled
#Install OS instead of upgrade
install
#Use network installation
url --url="http://10.0.0.2/ks/centos65/"
#Root password
rootpw --iscrypted $1$lU3654aL$oT0PwZrSEbmsCBFyQHJ5M1
#System authorization information
auth --useshadow --passalgo=sha512
#Use graphical install
graphical
firstboot --disable
#System keyboard
keyboard us
#System language
lang en_US
#SELinux configuration
selinux --disabled
#Installation logging level
logging --level=info

#System timezone
timezone Asia/Shanghai
#Network information
network --onboot=on --device=eth0 --bootproto=dhcp
#System bootloader configuration
bootloader --location=partition
#Partition clearing information
#clearpart --linux
clearpart --drives=sda --all
ignoredisk --only-use=sda
#Disk partitioning information
part / --asprimary --fstype="ext4" --ondisk=sda --size=100000
part swap --fstype="swap" --ondisk=sda --size=10000 --grow

%packagesbr/>@base
@corebr/>@basic-desktop
@kde-desktopbr/>@x11
%end

reboot

转载于:https://blog.51cto.com/yangzhiming/2047226

kickstart+tftp部署redhat系统相关推荐

  1. Kickstart+HTTP+DHCP+TFTP全自动批量安装部署Linux系统

    说明: Kickstart服务器系统:CentOS 6.5 64位 IP地址:192.168.0.250 需要安装部署的Linux系统:CentOS 6.5 64位 eth0(第一块网卡,用于外网)I ...

  2. PXE+KickStart自动化安装Linux系统

     PXE+kickstart模式自动安装系统  PXE介绍 预启动执行环境(Preboot eXecution Environment,PXE)也被称为预执行环境,提供了一种使用网络接口(Netw ...

  3. pxe自动化部署Linux系统

    pxe自动化部署Linux系统 实验准备:虚拟机centos 7 需要部署:DHCP服务器,TFTP服务器,HTTP服务器 准备工作 [root@centos771 tftpboot]# yum -y ...

  4. XenServer 6.5实战系列之十三:图形界面安装Linux Redhat系统

    Citrix目前已经支持发布Linux桌面,然而在XenServer上创建VM和安装图形界面系统是有一定讲究的,为此今天在此跟大家分享如何在XenServer 6.5中部署Red Hat Enterp ...

  5. Cobbler自动部署CentOS系统

    Cobbler自动部署CentOS系统: 说明:Cobbler相当于kickstart的2次封装,主要解决kickstart不能多系统部署的问题 建议在Ubuntu 14.04系统上搭建,Ubuntu ...

  6. Win2008server 环境部署 WDS,用来批量部署 windows 系统

    1.WDS的介绍 1.1什么是WDS WDS,即WindowsDeployment Services的缩写,中文含义为Windows部署服务,类似于Linux系统的PXE,可以用来批量部署Window ...

  7. WDS批量部署Windows系统

    1.WDS的介绍 1.1什么是WDS WDS,即WindowsDeployment Services的缩写,中文含义为Windows部署服务,类似于Linux系统的PXE,可以用来批量部署Window ...

  8. CentOS8 TFTP部署

    CentOS8 TFTP部署 简单文本传输协议(TFTP) TFTP服务部署 安装tftp软件包 TFTP服务配置 配置tftp服务 重启xinetd并加入开机自启 设置防火墙关于tftp规则 坑一. ...

  9. Rushcrm:企业部署CRM系统做什么

    现在很流行的一个词就是大数据,很多企业开始重视数据的开发利用.CRM在这样的环境背景下诞生了,但这并不意味着所有的企业都能很好的利用好CRM系统(客户关系管理系统).CRM带来的效益是显而易见的,但是 ...

最新文章

  1. Matlab数据的可视化 -- 图形格式的设置
  2. 学习笔记-小甲鱼Python3学习第十五讲:字符串:格式化
  3. python之父叫什么-Python之父:为什么操作符很有用?
  4. springboot单例模式注入对象_springboot 请求流程简介
  5. Python实现根据图片进行着色的词云
  6. php cannot load service mmap.,php swoole 安装失败
  7. SpringBoot 信息输出
  8. swift之Generics
  9. MPQ4573:和“讨厌”的二极管说拜拜
  10. 联想小新电脑摄像头黑屏、检测不到设备、指示灯不亮解决方案
  11. 从零开始的单片机学习(二)
  12. cv::subtract
  13. 含有ex的linux自动化工具,增加Linux自动化(RH294)和红帽认证工程师考试(EX294),附介绍...
  14. 【干货】如何利用 pandas 批量合并 Excel?
  15. notepad集成jsonviewer 查看json
  16. bandwagon centos6_x86_bbr
  17. docker部署seaweedf
  18. 深度剖析C语言结构体
  19. VS2017常用快快捷键
  20. 微软自带杀毒软件Security Essentials占电脑内存很小 推荐使用可以安装下载

热门文章

  1. 谷歌向公众开放Fuchsia OS:支持手机电脑IoT,华为鸿蒙与之对标
  2. 谁是中国CS高引第一人徐泽水?蝉联六年,36000次引用
  3. 哈佛新研究登上Science封面:这个机械外骨骼,是一条“轻功”短裤
  4. 第6章 I/O复用 select 和 poll 函数
  5. 通讯录(容量不可变)
  6. java 与 |与||的区别
  7. Go 语言:The Laws of Reflection 中文版
  8. 11、E-commerce in Your Inbox:Product Recommendations at Scale-----产品推荐(prod2vec和user2vec)...
  9. ESXi安装全过程及基本配置
  10. java-集合排序,队列,散列表map以及如何遍历