Update : Managed to bypass 1. docker error, currently working on the #2 "Storage Configuration failed: Unable to allocate requested partition scheme" message
Junior engineer here and at my company we build up a RHEL OVF from ISO with a Kickstart file. We are picking up a new version of RHEL, and the current script we have is failing when attempting to do the automated install with Kickstart installation. We also user Packer, and Docker container to run some of these installation scripts.
We use VMware ESXi to import the VM (RHEL OS) and start configuring/installing it. Then, once it's done, we shut it down, and create a OVF from that VM.
#1. What's happening now, when I monitor the VM and RHEL installation, it starts saying Docker is not installed: Solved
- Then it tells me Storage Configuration failed: Unable to allocate requested partition scheme:
So basically , I just need to figure out how to answer these questions programmatically, so there is no prompt that messes up the automated install on the VMware ESXi.
Although, I will say I manually answered these questions just a minute ago as a test, and the VM never shut off (which its supposed to) , so it timed out, so that's going to be another problem.
Can anyone please guide me in the right direction? I'm not that much of a Linux master and new to this whole "automated" kickstart thing for RHEL.
@telcoM I will response to your comments here line-by-line
I don't see any repo keyword.(Upon review, I found the repo's were being generated during the packer installation). I do have a%post
declaration with some packages listed, but docker was actually already commented out. I removed the comment, and tried building again but it still brought up the same message. I then tried-docker
to exclude it also, but same message asking for docker package. Here is what is listed under%post
(There were some more firmware packages here but I removed them for clarity):
%packages --nobase
@core
authconfig
system-config-firewall-base
tmpwatch
bzip2
eject
time
unzip
zip
which
sos
java
bind
bind-chroot
#vim
#dos2unix
#sudo
-docker
open-vm-tools
-postfix
-rhnsd
-yum-rhn-plugin
-subscription-manager
-chrony
%end
We do have some custom repos we make that pull from our Jfrog Artifactory, right under the %packages
declaration in the kickstart file:
%post --log=/root/kickstart-post.log
set -x
cat > /etc/yum.repos.d/test.repo <<'CAT'
[test1]
name=test1
username=
password=
baseurl=https://artifactory.MyWebsite.com/artifactory/MyUrl
gpgcheck=0
enabled=1
[test2]
name=test2
baseurl=http://127.0.0.1:8080/__RHEL_VER__
gpgcheck=0
enabled=1
[test3]
name=test3
username=
password=
baseurl=https://artifactory.MyWebsite.com/artifactory/MyURL
gpgcheck=0
enabled=1
CAT
yum install -y A-Huge-List-Of-Apps-And-Libs-Here
yum install -y http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
- Regarding the partitioning and storage, this is more straight forward:
bootloader --location=mbr --driveorder=sda --append="fips=1 crashkernel=auto rhgb quiet" --password=
zerombr
clearpart --all --initlabel --drives=sda,sdb
part /boot --fstype=ext4 --size=512
part pv.01 --size=36000 --grow --ondrive=sda
part pv.02 --size=1000 --grow --ondrive=sdb
volgroup vg_root pv.01
volgroup vg_perstore pv.02
logvol / --fstype=xfs --name=lv_root --vgname=vg_root --size=7000 --grow
logvol /export/home --fstype=xfs --name=lv_home --vgname=vg_root --size=1000
logvol /opt --fstype=xfs --name=lv_opt --vgname=vg_root --size=4096
logvol /tmp --fstype=xfs --name=lv_tmp --vgname=vg_root --size=2048
logvol /var --fstype=xfs --name=lv_var --vgname=vg_root --size=2048
logvol /var/core --fstype=xfs --name=lv_core --vgname=vg_root --size=128
logvol /var/crash --fstype=xfs --name=lv_crash --vgname=vg_root --size=1000
logvol /var/getlogs --fstype=xfs --name=lv_getlogs --vgname=vg_root --size=2000
logvol /var/viewlogs --fstype=xfs --name=lv_viewlogs --vgname=vg_root --size=1000
logvol /var/log --fstype=xfs --name=lv_log --vgname=vg_root --size=1000
logvol /var/log/audit --fstype=xfs --name=lv_audit --vgname=vg_root --size=725
logvol /var/log/logins --fstype=xfs --name=lv_logins --vgname=vg_root --size=96
logvol /var/log/root_logins --fstype=xfs --name=lv_root_logins --vgname=vg_root --size=32
logvol /var/cache/yum --fstype=xfs --name=lv_repo --vgname=vg_root --size=1000
logvol /var/opt/BurgerKing --fstype=xfs --name=lv_varopt --vgname=vg_root --size=20000
logvol swap --name=lv_swap --vgname=vg_root --size=4096
logvol /var/opt/perstore --fstype=xfs --name=lv_perstore --vgname=vg_perstore --size=500 --grow
%addon com_redhat_kdump --disable
%end
Is there anything else I should be looking for here?