[External] [openhpc-users] installing extra packages in xcat kickstart #openhpc #pxe


Florian Zillner
 

Hi,

 

easiest way would be to maintain a local repo server which holds epel/whatever you need. In our case we have a VM that holds all the repos and then I mount the remote repos via NFS when needed.

 

The pkgdir attribute for one of our osimages looks like this:

 

# lsdef -t osimage centos7.6-x86_64-netboot-compute-opa-20191021 -i pkgdir

Object name: centos7.6-x86_64-netboot-compute-opa-20191021

    pkgdir=/install/download/gpfs/5.0.3.2-dm/gpfs_rpms,/install/kernels/3.10.0-957.21.3.el7.x86_64,/install/repos/repos.mounted/CentOS/7.6.1810,/install/repos/repos.mounted/OpenHPC/1.3.8/CentOS_7,/install/repos/repos.mounted/CentOS/epel/7

 

With that in place you can put whatever package your repos hold into the pkglist and it should work.

 

Best,

Florian

 

From: OpenHPC-users@groups.io <OpenHPC-users@groups.io> On Behalf Of jesse.stacey@...
Sent: Mittwoch, 25. September 2019 16:32
To: OpenHPC-users@groups.io
Subject: [External] [openhpc-users] installing extra packages in xcat kickstart #pxe #openhpc

 

Has anyone had any luck adding extra rpm's to the xcat kickstart install? I was able to add kernel-devel without an issue by adding it to /opt/xcat/share/xcat/install/centos/compute.centos7.pkglist  but if I add other packages outside the base repo, it breaks kickstart. Here is an lsdef of my osimage attributes:



Notice how xcat has a "otherpkgdir=" that doesn't exist? Anyways, I thought I'd try this yumdownload with resolving dependencies to put the packages I need in place:

yum install --downloadonly --downloaddir=/install/centos7.6/x86_64/Packages nano screen gdisk ipa-client htop mdadm

Then I can just add the package name to :

vi /opt/xcat/share/xcat/install/centos/compute.centos7.pkglist

Can I get away with doing this without adding epel-release.repo to the installer, or is there a more official way of going about this?

Thanks for your suggestions :)

root@cerebra:/install/centos7.6/x86_64/Packages # yumdownloader --destdir /install/centos7.6/x86_64/Packages --resolve nano screen gdisk ipa-client htop mdadm
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.mirror.ca.planethoster.net
 * epel: fedora-epel.mirrors.tds.net
 * extras: centos.mirror.ca.planethoster.net
 * updates: centos.mirror.ca.planethoster.net
--> Running transaction check
---> Package gdisk.x86_64 0:0.8.10-3.el7 will be reinstalled
---> Package htop.x86_64 0:2.2.0-3.el7 will be installed
---> Package ipa-client.x86_64 0:4.6.5-11.el7.centos will be installed
--> Processing Dependency: python2-ipaclient = 4.6.5-11.el7.centos for package: ipa-client-4.6.5-11.el7.centos.x86_64
--> Processing Dependency: ipa-common = 4.6.5-11.el7.centos for package: ipa-client-4.6.5-11.el7.centos.x86_64
--> Processing Dependency: ipa-client-common = 4.6.5-11.el7.centos for package: ipa-client-4.6.5-11.el7.centos.x86_64
---> Package mdadm.x86_64 0:4.1-1.el7 will be installed
---> Package nano.x86_64 0:2.3.1-10.el7 will be reinstalled
---> Package screen.x86_64 0:4.1.0-0.25.20120314git3c2946.el7 will be reinstalled
--> Running transaction check
---> Package ipa-client-common.noarch 0:4.6.4-10.el7.centos.2 will be updated
--> Processing Dependency: ipa-client-common = 4.6.4-10.el7.centos.2 for package: ipa-client-4.6.4-10.el7.centos.2.x86_64
--> Processing Dependency: ipa-client-common = 4.6.4-10.el7.centos.2 for package: ipa-server-common-4.6.4-10.el7.centos.2.noarch
---> Package ipa-client-common.noarch 0:4.6.5-11.el7.centos will be an update
---> Package ipa-common.noarch 0:4.6.4-10.el7.centos.2 will be updated
--> Processing Dependency: ipa-common = 4.6.4-10.el7.centos.2 for package: python2-ipalib-4.6.4-10.el7.centos.2.noarch
--> Processing Dependency: ipa-common = 4.6.4-10.el7.centos.2 for package: python2-ipaserver-4.6.4-10.el7.centos.2.noarch
--> Processing Dependency: ipa-common = 4.6.4-10.el7.centos.2 for package: ipa-server-4.6.4-10.el7.centos.2.x86_64
---> Package ipa-common.noarch 0:4.6.5-11.el7.centos will be an update
---> Package python2-ipaclient.noarch 0:4.6.4-10.el7.centos.2 will be updated
---> Package python2-ipaclient.noarch 0:4.6.5-11.el7.centos will be an update
--> Running transaction check
---> Package ipa-client.x86_64 0:4.6.4-10.el7.centos.2 will be updated
---> Package ipa-server.x86_64 0:4.6.4-10.el7.centos.2 will be updated
--> Processing Dependency: ipa-server = 4.6.4-10.el7.centos.2 for package: ipa-server-dns-4.6.4-10.el7.centos.2.noarch
---> Package ipa-server.x86_64 0:4.6.5-11.el7.centos will be an update
---> Package ipa-server-common.noarch 0:4.6.4-10.el7.centos.2 will be updated
---> Package ipa-server-common.noarch 0:4.6.5-11.el7.centos will be an update
---> Package python2-ipalib.noarch 0:4.6.4-10.el7.centos.2 will be updated
---> Package python2-ipalib.noarch 0:4.6.5-11.el7.centos will be an update
---> Package python2-ipaserver.noarch 0:4.6.4-10.el7.centos.2 will be updated
---> Package python2-ipaserver.noarch 0:4.6.5-11.el7.centos will be an update
--> Running transaction check
---> Package ipa-server-dns.noarch 0:4.6.4-10.el7.centos.2 will be updated
---> Package ipa-server-dns.noarch 0:4.6.5-11.el7.centos will be an update
--> Finished Dependency Resolution