CentOS   发布时间:2022-04-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了centos 7 kickstart启动文件ks.cfg简单配置大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

本配置是基于system-config-kickstart软件配置并加入自己lvm分区的例子,基于ipv6地址的http源及UEFI+GPT模式的BIOS,ISO源为CentOS 7 1810 minimal 以下为ks.cfg文本: #此处为你的平台版本 #platform=x86, AMD64, 或 Intel EM64T #version=DEVEL #Install OS instead
本配置是基于system-config-kickstart软件配置并加入自己lvm分区的例子,基于ipv6地址的http源及UEFI+GPT模式的BIOS,ISO源为CentOS 7 1810 minimal

以下为ks.cfg文本:

#此处为你的平台版本

#platform=x86,AMD64,或 Intel EM64T
#version=DEVEL

#Install OS instead of upgrade

install

#Keyboard layouts

keyboard ‘us‘

#Root password

rootpw --iscrypted $1$KDsy/krS$rZJ8Droa5HvbVVwn6MAua/

#Use network installation

url --url="http://[2500:0:0:1::2]/centos/"

#System language

lang zh_CN

#System authorization information

auth --useshadow --passalgo=sha512

#Use graphical install

#graphical

#Use text mode install

text

firstboot --disable

#SELinux configuration

selinux --disabled

#Do not configure the X Window System
skipx

#Firewall configuration

firewall --disabled

#Reboot after installation

reboot

#System timezone

timezone Asia/Hong_Kong --isUtc

#System bootloader configuration

bootloader --LOCATIOn=mbr

#Clear the Master Boot Record

zerombr

#Partition clearing information

clearpart --all --initlabel

#partd disk 此处为分区 ,size后面大小为MB,pv后面为id号,认即可,软件根据自己的需求来定制,如果是完整版的iso,可以自己安装图形界面(Server With GUI)及其他开发套件组,我这里是最小安装

part /boot/efi --fstype efi --size 200 --aspriMary --ondisk sda
part /boot --fstype xfs --size 500 --ondisk sda
#part swap --size 2048 --ondisk sda
part pv.01 --size=1 --grow
volgroup centos pv.01
logvol / --vgname=centos --size=10240 --name=lv_root
logvol swap --vgname=centos --size=2048 --name=lv_swap

%packages

@^minimal

@core

%end

文件配置简单介绍:

平台版本为X86/64全新安装键盘:美国root密码为xxx通过UEFI PXE IPv6网络安装 url为自己的虚拟机内网ipv6 tftp及http 地址系统语言:中文密码采用sha512加密方式使用文本方式安装(ps:如果想以图形界面安装,请注释#text并取消注释graphical)关闭firewalld防火墙关闭selinux不安装图形界面时区为亚洲/香港bootloader为mbr(UEFI平台也可通用并自动识别)清除引导区清除所有分区配置分区(/boot及/boot/efi为普通分区及xfs文件系统,pv开始为LVM分区配置)

大佬总结

以上是大佬教程为你收集整理的centos 7 kickstart启动文件ks.cfg简单配置全部内容,希望文章能够帮你解决centos 7 kickstart启动文件ks.cfg简单配置所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。