您的位置:首页 > 理论基础 > 计算机网络

redhat7 网络安装 Kickstart

2016-03-25 11:10 441 查看
自己安装过程,在/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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: