cobller安装操作系统

Posted on   风行天下-2080  阅读(218)  评论(0编辑  收藏  举报

参考网站:https://blog.csdn.net/admin_root1/article/details/78911718

https://www.cnblogs.com/panwenbin-logs/p/7824079.html

一、安装系统开机报错 :

failed to start switch root

解决办法:https://tieba.baidu.com/p/4979358771?red_tag=1112040005

二、cobber check时出现selinux错误

修改/etc/selinux里面为disabled,然后重启电脑,再cobber check,才会消失Selinux错误。

三、关闭防火墙,关闭SELINUX

新建kickstar的xfg文件后,需要在网页的profiles里面修改duiy对应的cfg文件,才能生效

 四、启动的服务

systemctl restart httpd.service
systemctl restart cobblerd.service
systemctl restart dhcpd.service
systemctl restart rsyncd.service
systemctl restart tftp.socket

###################################################

centos7配置文件

Kickstart是一种无人值守的安装方式。

  • 详细的配置文件网上有很多模板。
  • 这里就只贴出Centos7的kickstart.cfg文件
  • 当然,咱们这个是最小化安装
auth --enableshadow --passalgo=sha512
url --url=$tree
text
firstboot --disable
firewall --disabled
ignoredisk --only-use=sda
selinux --disabled
reboot
keyboard --vckeymap=us --xlayouts='us'
lang en_US.UTF-8
network  --bootproto=dhcp --hostname=Centos7 --device=ens33  --activate
rootpw --plaintext 12345678
services --disabled="chronyd"
timezone Asia/Shanghai
bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
clearpart --none --initlabel

part /boot/efi --fstype="efi" --ondisk=sda --size=1024 --fsoptions="defaults,uid=0,gid=0,umask=0077,shortname=winnt"
part /app --fstype="xfs" --size=20480
part swap --fstype="swap" --size=2048
part / --fstype="xfs" --size=102400
part /boot --fstype="ext4" --size=1024

%pre
parted -s /dev/sda mklabel gpt
%end

%packages
@^minimal
@core
kexec-tools
%end
编辑推荐:
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?

随笔 - 618, 文章 - 0, 评论 - 6, 阅读 - 37万

Copyright © 2025 风行天下-2080
Powered by .NET 9.0 on Kubernetes

点击右上角即可分享
微信分享提示