kickstart文件

本文档详细介绍了如何使用Kickstart文件实现Red Hat Linux的自动化安装过程,包括网络配置、分区方案、软件包选择等关键步骤。通过指定各项参数,如安装源地址、防火墙设置、SELinux状态、系统时区等,可以实现无人值守的Linux系统部署。

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

#platform=x86, AMD64, or Intel EM64T 
#version=DEVEL 
# Firewall configuration 
firewall --disabled 
# Install OS instead of upgrade 
install 
# Use network installation 
url --url=http://192.168.111.130/cdrom/   #这个选项告诉安装程序:到服务器192.168.111.130 的HTTP根目录下的cdrom 文件夹下寻找安装介质
# Root password 
rootpw --iscrypted $1$vsvtP./e$6PVMNfJd.shq2LgFJjYfA1 
# System authorization information 
auth  --useshadow  --enablemd5 
# 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 
# Reboot after installation 
reboot 
# System timezone 
timezone  --isUtc Asia/Shanghai 
# Network information 
network  --bootproto=dhcp --device=eth0 --onboot=on 
# System bootloader configuration 
key --skip 
bootloader --append="rhgb quiet" --location=mbr --driveorder=sda 
# Clear the Master Boot Record 
zerombr 
# Partition clearing information 
clearpart --all --initlabel 
# Disk partitioning information 
part / --fstype="ext4" --size=8192 
part swap --fstype="swap" --size=1024 
part /home --fstype="ext4" --size=2048

%packages 
@base

%end
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值