rhel7 kickstart 参考[备忘]

来源:互联网 发布:金门炮战知乎 编辑:程序博客网 时间:2024/05/17 01:03

参考下面 ananconda.cfg  原生, 直接进行分区方法

#version=RHEL7# System authorization informationauth --enableshadow --passalgo=sha512# Use CDROM installation mediacdrom# Use graphical installgraphical# Run the Setup Agent on first bootfirstboot --enableignoredisk --only-use=sdc# Keyboard layoutskeyboard --vckeymap=cn --xlayouts='cn'# System languagelang zh_CN.UTF-8# Network informationnetwork  --bootproto=dhcp --device=em1 --onboot=off --ipv6=autonetwork  --bootproto=dhcp --device=em2 --onboot=off --ipv6=autonetwork  --hostname=localhost.localdomain# Root passwordrootpw --iscrypted $6$0ZzjObEc6uDUkEH8$sx9urpyhnzSzSL3S5ggSBgbiqxmB/vP3.xq8UFc95sMFqjTxpQFzBGYL8bHbiMCCULJ8E3dPKmDUz4WHHh9/P1# System timezonetimezone Asia/Shanghai --isUtc# System bootloader configurationbootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sdc# Partition clearing informationclearpart --all --initlabel --drives=sdc# Disk partitioning informationpart swap --fstype="swap" --ondisk=sdc --size=14080part / --fstype="xfs" --ondisk=sdc --size=939288part /boot --fstype="xfs" --ondisk=sdc --size=500%packages@corekexec-tools%end%addon com_redhat_kdump --enable --reserve-mb='auto'%end

参考使用 lvm 方法

#version=RHEL7# System authorization informationauth --enableshadow --passalgo=sha512# Use CDROM installation mediacdrom# Use graphical installgraphical# Run the Setup Agent on first bootfirstboot --enableignoredisk --only-use=sda# Keyboard layoutskeyboard --vckeymap=cn --xlayouts='cn'# System languagelang zh_CN.UTF-8# Network informationnetwork  --bootproto=dhcp --device=em1 --onboot=off --ipv6=autonetwork  --bootproto=dhcp --device=em2 --onboot=off --ipv6=autonetwork  --bootproto=dhcp --device=p2p1 --onboot=off --ipv6=autonetwork  --bootproto=dhcp --device=p2p2 --onboot=off --ipv6=autonetwork  --hostname=localhost.localdomain# Root passwordrootpw --iscrypted $6$rcWbii9qAGO/qSXH$llQ1kLUvzNUBS8kIEKal1WOAqsaHON0SRKLfFtbMp.rOxbPjZUUY3fpRaT42VyFjEzqT44y21Qek4YWGgV7u51# System timezonetimezone Asia/Shanghai --isUtc# System bootloader configurationbootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda# Partition clearing informationclearpart --all --initlabel --drives=sda# Disk partitioning informationpart pv.1173 --fstype="lvmpv" --ondisk=sda --size=5721410part /boot/efi --fstype="efi" --ondisk=sda --size=200 --fsoptions="umask=0077,shortname=winnt"part /boot --fstype="xfs" --ondisk=sda --size=500volgroup centos --pesize=4096 pv.1173logvol swap  --fstype="swap" --size=4096 --name=swap --vgname=centoslogvol /  --fstype="xfs" --size=5717312 --name=root --vgname=centos%packages@corekexec-tools%end%addon com_redhat_kdump --enable --reserve-mb='auto'%end


0 0