redhat7 网络安装 Kickstart

自己安装过程,在/root 目录下会生成安装的该配置文件

需要相应修改

该文件为 RHEL 7 网络安装的配置文件

#version=RHEL7
# System authorization information
auth --enableshadow --passalgo=sha512


# Install OS instead of upgrade
install

# Use NFS installation media
url --url="ftp://192.168.233.146/pub/"

# Use graphical install
graphical
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=sda
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8

# Network information
network  --bootproto=dhcp --device=eno16777736 --ipv6=auto --activate
network  --hostname=localhost.localdomain
repo --name="Server-HighAvailability" --baseurl=file:///run/install/repo/addons/HighAvailability
repo --name="Server-ResilientStorage" --baseurl=file:///run/install/repo/addons/ResilientStorage
# Root password
rootpw --iscrypted $6$hLH0Dv/i6ep2B8Br$wweeoddB1LzrxKe2fI4WOqRUppKZbnIf2H7q43yRK3rV/MaAMnPdy0iVbkdjUkde1FONMiY23AefUaLpThU3s1
# System timezone
timezone Asia/Shanghai --isUtc --nontp
user --groups=wheel --homedir=/home/asc16 --name=asc16 --password=$6$PJNY.Czy2Qbx.xNG$tu4hDdlzWCOyxXbU3w3RNh.UUG2wdXidgayZbwgc2INlidzYRZibJpPUAv7efebeehRLPjnB4xqwwY4dIZJIA. --iscrypted --gecos="asc16"
# X Window System configuration information
xconfig  --startxonboot
# System bootloader configuration
bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
# Partition clearing information
clearpart --all  --initlabel 
# Disk partitioning information
part /boot --fstype="ext4" --ondisk=sda --size=500
part swap --asprimary --fstype="swap" --size=4096
part pv.830 --fstype="lvmpv" --ondisk=sda  --size=1 --grow
volgroup rhel --pesize=4096 pv.830
logvol /  --fstype="ext4" --name=root --vgname=rhel --size=1 --grow

%packages
@backup-server
@base
@compat-libraries
@core
@desktop-debugging
@development
@dial-up
@dns-server
@file-server
@fonts
@ftp-server
@gnome-desktop
@guest-agents
@guest-desktop-agents
@hardware-monitoring
@identity-management-server
@infiniband
@input-methods
@internet-browser
@java-platform
@large-systems
@load-balancer
@mail-server
@mainframe-access
@multimedia
@network-file-system-client
@performance
@print-client
@remote-system-management
@security-tools
@smart-card
@virtualization-hypervisor
@x11
kexec-tools

%end

%addon com_redhat_kdump --enable --reserve-mb='auto'

%end
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值