Is there any way to have a generic kickstart for all RHEL releases with full automation?

本文介绍了一种适用于Red Hat Enterprise Linux 6和7的全自动化Kickstart安装方法,通过避免在Kickstart文件中指定URL选项来实现跨版本安装,并提供了一个示例配置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

https://access.redhat.com/solutions/1573603

Is there any way to have a generic kickstart for all RHEL releases with full automation?

 

 SOLUTION 已验证 - 已更新 2015年八月12日16:48 - 

English 

环境

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7

问题

  • Wanted to have a full automatic kickstart installation for both Red Hat Enterprise Linux 6 and 7.
  • Don't want to specify the url option in kickstart for network installation because those will be different.
  • Currently deploying kickstart infrastructure for a new environment, and would like to have a consolidated kickstart file that will support kernel and repo selection. For example, would like one kickstart file that supports kicking both Red Hat Workstation and Red Hat Server.

决议

  • Here is the example.

Raw

install
#NO URL Mentioned
lang en_US
keyboard us
network --bootproto dhcp onboot=yes
zerombr
bootloader --location mbr
timezone America/Denver
auth --enablemd5 --enableshadow
selinux --disabled
rootpw redhat
firewall --disabled
skipx
clearpart --all --initlabel 
reboot

part /boot --fstype=ext3 --size=200 
part pv.01 --size=1000 --grow 
part swap --size=1000  --fstype=swap
volgroup myvg pv.01 
logvol /home --vgname=myvg --name=homevol --size=500
logvol / --vgname=myvg --name=rootvol --size=1000 --grow
%packages 
@base
@core
  • The above kickstart mentioned that admins wanted to get a prompt for selecting the repo, so just provide a kickstart missing the url option which tells anaconda the source of installation.
  • Else one can modify this kickstart and use it for RHEL5/6/7 for both Server as well as workstation too. Just one need to provide the repo for installation on command line as follows.

Raw

linux ks=http://path/to/hosted_kickstart.cfg repo=<network_path_to_repository>
  • For example, for RHEL6 server

Raw

linux ks=ftp://192.168.0.254/ks.cfg repo=http://192.168.0.254/RHEL6Server/
  • For RHEL6 Workstation.

Raw

linux ks=ftp://192.168.0.254/ks.cfg repo=http://192.168.0.254/RHEL6Workstation/
  • Note that the above IPs and links are dummy, one need to create their own repositories hosting RHEL6 Server and workstation DVD contents.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值