cobbler最小化安装centos8
centos8 已经发布了GA版本,迫不及待的想尝鲜了,然后现实总是那么残酷,一直安装失败,具体安装步骤如下:
假设cobbler已配置完成。
1、下载centos8 iso镜像
wget http://mirrors.aliyun.com/centos/8.0.1905/isos/x86_64/CentOS-8-x86_64-1905-dvd1.iso
2、挂载
$ mount -o loop CentOS-8-x86_64-1905-dvd1.iso /mnt/
$ cd /mnt/
$ cp -r * /iso/centos8.0/
$ cd /iso/centos8.0/AppStream BaseOS EFI images isolinux media.repo TRANS.TBL
3、配置kickstart文件
$ cat /var/lib/cobbler/kickstarts/centos8.0.ks #version=RHEL8 # System authorization information auth --enableshadow --passalgo=sha512 # System bootloader configuration bootloader --location=mbr --boot-drive=sda # Partition clearing information clearpart --all --initlabel # Use text mode install #text
graphical # Firewall configuration firewall --disabled # Run the Setup Agent on first boot firstboot --disable ignoredisk --only-use=sda # System keyboard keyboard --vckeymap=us --xlayouts='us' # System language lang en_US.UTF-8 # Use network installation url --url=$tree # If any cobbler repo definitions were referenced in the kickstart profile, include them here. $yum_repo_stanza # Network information $SNIPPET('network_config') # Reboot after installation reboot #Root password rootpw --iscrypted $default_password_crypted # SELinux configuration selinux --disabled # Do not configure the X Window System skipx # System timezone timezone --utc Asia/Shanghai # Install OS instead of upgrade install # Clear the Master Boot Record zerombr # Allow anaconda to partition the system as needed #autopart part /boot --fstype="xfs" --ondisk=sda --size=500
part swap --fstype="swap" --ondisk=sda --size=2048
part / --fstype="xfs" --ondisk=sda --size=1 --grow
part biosboot --fstype="BIOS Boot" --ondisk=sda --size=2 %pre $SNIPPET('log_ks_pre') $SNIPPET('kickstart_start') $SNIPPET('pre_install_network_config') # Enable installation monitoring $SNIPPET('pre_anamon') %end %packages @^minimal-environment
@standard %end
4、cobbler 导入
$ cobbler import --name=centos8.0 --path=/iso/centos8.0 --kickstart=/var/lib/cobbler/kickstarts/centos8.0.ks --arch=x86_64
发现报错,报错如下:
No signature matched
$ cobbler import --name=centos8.0 --path=/iso/centos8.0 --kickstart=/var/lib/cobbler/kickstarts/centos8.0.ks
task started: 2019-10-16_074659_import
task started (id=Media import, time=Wed Oct 16 07:46:59 2019)
No signature matched in /var/www/cobbler/ks_mirror/centos8.0
!!! TASK FAILED !!!
解决:
$ cobbler signature update
task started: 2019-10-16_074829_sigupdate
task started (id=Updating Signatures, time=Wed Oct 16 07:48:29 2019)
Successfully got file from https://cobbler.github.io/signatures/2.8.x/latest.json
*** TASK COMPLETE ***
5、装机
然后装机过程中报错了,截图未报错,报错信息是:报错的界面是配置"Installation Source",报错为:"Error setting up base repository",反复测试依然有问题,不知道怎么设置,没办法,只能从iso那块下手了,检查iso文件内容。
6、iso配置
iso中有AppStream和BaseOS两个目录,目录中都有Packages目录和repodata目录,将BaseOS中的 BaseOS/repodata/586a8e96ad3b73414e5c6ae94a5e4f128a087fcb0ca9837674573a8d6cac4a9c-comps-BaseOS.x86_64.xml 拷贝到 BaseOS 同级目录下,并将 AppStream/Packages 下的auth*包文件全部拷贝到BaseOS/Packages 下,然后使用 createrepo -g 586a8e96ad3b73414e5c6ae94a5e4f128a087fcb0ca9837674573a8d6cac4a9c-comps-BaseOS.x86_64.xml . 创建repodata目录。
$ cd /iso/centos8.0/
$ ls
AppStream BaseOS EFI images isolinux media.repo TRANS.TBL
$ cp AppStream/Packages/auth* BaseOS/Packages/
$ cp BaseOS/repodata/586a8e96ad3b73414e5c6ae94a5e4f128a087fcb0ca9837674573a8d6cac4a9c-comps-BaseOS.x86_64.xml ./ $ ls
586a8e96ad3b73414e5c6ae94a5e4f128a087fcb0ca9837674573a8d6cac4a9c-comps-BaseOS.x86_64.xml AppStream BaseOS EFI images isolinux media.repo TRANS.TBL $ createrepo -g 586a8e96ad3b73414e5c6ae94a5e4f128a087fcb0ca9837674573a8d6cac4a9c-comps-BaseOS.x86_64.xml .
Spawning worker 0 with 167 pkgs
Spawning worker 39 with 166 pkgs
Workers Finished
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete $ rm -rf AppStream/repodata BaseOS/repodata
重新使用cobbler import,再使用最小化安装。
当然我配置的可能哪里出了问题,导致出现了"Error setting up base repository"报错,如果哪位大神解决了这个问题,欢迎评论区告知一声。
cobbler最小化安装centos8的更多相关文章
- centos7 最小化安装没有ifconfig及修改网卡名enoxxx为ethX
问题: 1.最小化安装centos7后发现无ifconfig命令 想通过ifconfig查看ip地址发现ifconfig命令不存在,可通过命令 #ip addr //查看ip 或者 解决: ...
- centos 6.X minimal 系列最小化安装完成后,安装mono和jexus过程小记录
在使用虚拟机安装minimal版centos运行mono+jexus的时候,遇到了一些坑,记录一下,比如虚拟机访问不了网络,没wget命令没开放80端口,等等小问题,其他网上教程已经有mono+jex ...
- 生产服务器环境最小化安装后 Centos 6.5优化配置[转]
内容目录 centos6.5最小化安装后配置网络: IP地址, 网关, 主机名, DNS 更新系统源并且升级系统 系统时间更新和设定定时任 创建普通用户并进行sudo授权管理 修改SSH端口号和屏蔽r ...
- RHEL/CentOS 7最小化安装后需做的30件事情
导读 CentOS是一个工业标准的Linux发行版,是红帽企业版 Linux 的衍生版本.你安装完后马上就可以使用,但是为了更好地使用你的系统,你需要进行一些升级.安装新的软件包.配置特定服务和应用程 ...
- CentOS 7 最小化安装的网络配置
默认的最小化安装CentOS 7系统以后,是没有ipconfig这个命令的,依赖于net-tools工具包. 一.nmtui 这是一个类似于图形化的命令(和setup类似) 通过这个组件窗口可以设置各 ...
- 最小化安装centos7下配置网络
虚拟机操作系统:centos7.0 命令行模式 1.首先明确centos7在最小化安装完是不支持上网的,相应的查看网络以及修改网络参数是不能使用的,最常见的就是我们常用的ifconfig. 2.找到网 ...
- 最小化安装centos的init初始化脚本
#!/bin/bash #this script is appropriate .x(这脚本适合最小化安装6.x版本的系统) #you have already install the os read ...
- CentOS最小化安装后,增加GNOME桌面
背景:下载CentOS 7的安装包后,在虚拟机上安装. 上来就遇到一个问题:提示需要开启intel vt-x. 这个进入BIOS,在CPU的设置中开启即可. 然后怀着兴奋的心情,开始各种下一步的安装, ...
- centos7 最小化安装 无 ifconfig,netstat 的安装
centos7 最小化安装 无 ifconfig,netstat 的安装 centos7 最小化安装之后,默认是没有 ifconfig,netstat命令的: 我们可以直接使用 yum -y inst ...
随机推荐
- 【LeetCode】912. Sort an Array 解题报告(C++)
作者: 负雪明烛 id: fuxuemingzhu 个人博客: http://fuxuemingzhu.cn/ 目录 题目描述 题目大意 解题方法 库函数排序 桶排序 红黑树排序 归并排序 快速排序 ...
- 【LeetCode】908. Smallest Range I 解题报告(Python)
作者: 负雪明烛 id: fuxuemingzhu 个人博客: http://fuxuemingzhu.cn/ 目录 题目描述 题目大意 解题方法 数学计算 日期 题目地址:https://leetc ...
- 【剑指Offer】二叉树的下一个结点 解题报告(Python)
[剑指Offer]二叉树的下一个结点 解题报告(Python) 标签(空格分隔): 剑指Offer 题目地址:https://www.nowcoder.com/ta/coding-interviews ...
- Arm64架构下静态编译Nginx
这段时间,我一直忙于将 Rainbond 源码构建模块移植到 Arm64/aarch64 架构中.这一源码构建模块可以将指定代码仓库中包含的源码,拉取构建成为容器镜像,在各种容器平台中运行.目前支持的 ...
- ZOJ 1141:Closest Common Ancestors(LCA)
Closest Common Ancestors Time Limit: 10 Seconds Memory Limit: 32768 KB Write a program that tak ...
- SQL 行转列===列转行
行转列:sum+if 在长表的数据组织结构中,同一uid对应了多行,即每门课程一条记录,对应一组分数,而在宽表中需要将其变成同一uid下仅对应一行 在长表中,仅有一列记录了课程成绩,但在宽表中则每门课 ...
- WPF之AvalonEdit实现MVVM双向绑定
AvalonEdit简介 AvalonEdit是基于WPF开发的代码显示控件,默认支持多种不同语言的关键词高亮,并且可以自定义高亮配置.所以通过AvalonEdit可以快速开发出自己想要的代码编辑器. ...
- vim 个性化设置
vim 编辑器安装 yum install vim vim个性化设置 vim ~/.vimrc 复制以下代码 关闭vim一致性原则 set nocompatible 显示行号 set number 设 ...
- playwright--自动化(一):快速上手
Playwright为现代 Web 应用程序提供可靠的端到端测试. 在JavaScript 和 TypeScript.Python..NET和Java 中都可以使用 Playwright 本人选择py ...
- Python学习笔记:利用pd.get_dummies实现哑变量编码
一.理论介绍 虚拟变量(dummy variable)也叫哑变量,是一种将多分类变量转换为二分变量的一种形式. 如果多分类变量有k个类别,则可以转化为k-1个二分变量. 需要有一个参照的类别. 在非线 ...