redhat7 网络安装 Kickstart

来源:互联网 发布:python 写入txt文件 编辑:程序博客网 时间:2024/04/29 23:03

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

需要相应修改

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

#version=RHEL7# System authorization informationauth --enableshadow --passalgo=sha512# Install OS instead of upgradeinstall# Use NFS installation mediaurl --url="ftp://192.168.233.146/pub/"# Use graphical installgraphical# Run the Setup Agent on first bootfirstboot --enableignoredisk --only-use=sda# Keyboard layoutskeyboard --vckeymap=us --xlayouts='us'# System languagelang en_US.UTF-8# Network informationnetwork  --bootproto=dhcp --device=eno16777736 --ipv6=auto --activatenetwork  --hostname=localhost.localdomainrepo --name="Server-HighAvailability" --baseurl=file:///run/install/repo/addons/HighAvailabilityrepo --name="Server-ResilientStorage" --baseurl=file:///run/install/repo/addons/ResilientStorage# Root passwordrootpw --iscrypted $6$hLH0Dv/i6ep2B8Br$wweeoddB1LzrxKe2fI4WOqRUppKZbnIf2H7q43yRK3rV/MaAMnPdy0iVbkdjUkde1FONMiY23AefUaLpThU3s1# System timezonetimezone Asia/Shanghai --isUtc --nontpuser --groups=wheel --homedir=/home/asc16 --name=asc16 --password=$6$PJNY.Czy2Qbx.xNG$tu4hDdlzWCOyxXbU3w3RNh.UUG2wdXidgayZbwgc2INlidzYRZibJpPUAv7efebeehRLPjnB4xqwwY4dIZJIA. --iscrypted --gecos="asc16"# X Window System configuration informationxconfig  --startxonboot# System bootloader configurationbootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda# Partition clearing informationclearpart --all  --initlabel # Disk partitioning informationpart /boot --fstype="ext4" --ondisk=sda --size=500part swap --asprimary --fstype="swap" --size=4096part pv.830 --fstype="lvmpv" --ondisk=sda  --size=1 --growvolgroup rhel --pesize=4096 pv.830logvol /  --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@x11kexec-tools%end%addon com_redhat_kdump --enable --reserve-mb='auto'%end
1 0
原创粉丝点击