cobbler 安装zstack node节点报错 checking software selection
查看问题
安装zstack manager节点正常,node异常报错checking software selection
,
通过alt+f2进入命令行终端,然后查看tail /tmp/packaging 查看
分析问题
检查发现缺少libvirt的依赖,zstack 默认ks中使用了qemu-kvm-ev 的repo,并且执行相关脚本也是mount 光盘到/var/run/install/repo/,所以需要重新调整cobbler。
处理问题
配置添加nfs挂载zstack镜像
yum install nfs-utils -y
ln -s /var/www/cobbler/ks_mirror/Zstack-3.10.7-c76 /data/nfs_zstack
echo "/data/nfs_zstack 192.168.0.0/16(ro,async)" > /etc/exports
systemctl restart nfs
systemctl enable nfs
调整ks如下文件
#version=DEVEL
# System authorization information
auth --enableshadow --passalgo=sha512
# Use CDROM installation media
# cdrom
repo --name=qemu-kvm-ev --baseurl=file:///run/install/repo/Extra/qemu-kvm-ev
url --url="http://$http_server/cobbler/ks_mirror/Zstack-3.10.7-c76/"
# Use graphical install
# graphical
text
firstboot --enable
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8
# Reboot after installation
reboot
# Root password
rootpw --iscrypted $6$7qqqgX7d81Qs/cwT$EGQ5kGoBEERVOF17jFy5d2R.9HFuK9hddFuF/QAoR/v42sNrvUECfrfJiupzznhy7qH1Pb5.craRhVHlkGWtN.
# SELinux configuration
selinux --disabled
# System services
services --enabled="chronyd"
# System timezone
timezone Asia/Shanghai --isUtc
# System bootloader configuration
bootloader --location=mbr
# Partition clearing information
clearpart --all --initlabel
# Disk partitioning information
part /boot --fstype="xfs" --ondisk=sda --size=400
part biosboot --fstype=biosboot --size=1
part / --fstype="xfs" --ondisk=sda --size=1 --grow
part /data --fstype="xfs" --ondisk=sdb --size=1 --grow
%pre --logfile=/mnt/sysimage/var/log/ks_pre.log
mount -t nfs $http_server:/var/www/cobbler/ks_mirror/Zstack-3.10.7-c76 /var/run/install/repo/
bash /run/install/repo/script_bins/pre/cfg_ignoredisk.sh
%end
%post --nochroot --logfile=/mnt/sysimage/var/log/ks_post_nochroot.log
bash /run/install/repo/script_bins/post_nochroot/create_local_repo.bin
%end
%post --logfile=/var/log/ks_post.log
basearch=`uname -m`
release=`rpm -q zstack-release | awk -F '-' '{print $3}'`
local_repo="/opt/zstack-dvd/$basearch/$release"
bash "$local_repo"/script_bins/post/cfg_history.sh
bash "$local_repo"/script_bins/post/cfg_services.sh
bash "$local_repo"/script_bins/post/common_configs.sh
bash "$local_repo"/script_bins/post/export_yum0.sh
bash "$local_repo"/script_bins/post/install_tui_deps.bin
bash "$local_repo"/script_bins/post/install_zstack_scripts.bin
%end
%packages
@^zstack-host
@core
@zstack-host
chrony
kexec-tools
%end
%addon com_redhat_kdump --enable --reserve-mb='auto'
%end
本文来自博客园,作者:La0jin,转载请注明原文链接:https://www.cnblogs.com/la0jin/p/15027516.html