linux7 kickstart,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 of upgrade

install

#Keyboard layouts

keyboard ‘us‘

#Root password

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

#Use network installation

#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分区配置)

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值