Article 6NZ30 Error getting packages with pxeboot/kickstart install

Error getting packages with pxeboot/kickstart install

by
Shaggy1
from LinuxQuestions.org on (#6NZ30)
System info of https server
Code:CentOS Linux release 7.6.1810 (Core)
Linux lb-cam-bca-fs 3.10.0-1160.36.2.el7.x86_64 #1 SMP Wed Jul 21 11:57:15 UTC 2021 x86_64 x86_64 x86_64 GNU/LinuxI am attempting to pxeboot an out-of-the-box centos 7 system using a kickstart file that specifies the packages I want.

I have extracted the iso and the install directory looks like:
Code: total 740
drwxr-xr-x 8 root root 4096 Jul 3 12:02 .
drwxr-xr-x 5 root root 4096 Oct 21 2022 ..
-rw-r--r-- 1 root root 14 Oct 21 2022 CentOS_BuildTag
drwxr-xr-x 3 root root 4096 Oct 21 2022 EFI
-rw-r--r-- 1 root root 227 Oct 21 2022 EULA
-rw-r--r-- 1 root root 18009 Oct 21 2022 GPL
drwxr-xr-x 3 root root 4096 Oct 21 2022 images
drwxr-xr-x 2 root root 4096 Oct 21 2022 isolinux
drwxr-xr-x 2 root root 4096 Oct 21 2022 LiveOS
drwxr-xr-x 2 root root 684032 Jun 26 11:02 Packages
drwxr-xr-x 2 root root 4096 Jun 26 11:04 repodata
-rw-r--r-- 1 root root 1690 Oct 21 2022 RPM-GPG-KEY-CentOS-7
-rw-r--r-- 1 root root 1690 Oct 21 2022 RPM-GPG-KEY-CentOS-Testing-7
-r--r--r-- 1 root root 2883 Oct 21 2022 TRANS.TBL
-rw-r--r-- 1 root root 354 Jul 3 12:02 .treeinfoThis is on an http server and I am trying to use http to do the installation.

My Pxeboot config looks like:
Code:label LAB_Centos7_x8664_netks labdefault
menu label LAB: Centos 7 x8664 labdefault
kernel pxebootCentOS7_6_1810/vmlinuz
append initrd=pxebootCentOS7_6_1810/initrd.img ip=dhcp inst.repo=http://10.168.6.206/serverinstallation/installationimages/centos/7/7.6.1810/vanilla_fromEverything ks=http://10.168.6.206/serverinstallation/installationimages/centos/kickstartfiles/labvanilla/kslabcentos7default biosdevname=0 net.ifnames=0 bootdev=link ksdevice=link selinux=0 driveorder=sda,sdb inst.cmdlineAnd the install url I am using in the kickstart is:
Code:url --url=http://10.168.6.206/serverinstallation/installationimages/centos/7/7.6.1810/vanilla_fromEverythingWhen I try to do the pxe boot all appears to go well until the extraction of the Packages when I start getting error messages:
Code:Error populating transaction, anaconda is retrying (1/10)
...
Error populating transaction, anaconda is retrying (10/10)
Error populating transaction after 10 anaconda retries: failure: Packages
/snappy-devel-1.1.0-3.el7.x86_64.rpm from anaconda: No more mirrors to tryThe logs in my http server seem to indicate the the GET request for the package fails, even though it looks like it is trying to get it from the right place:
Code:$ tail -f access_log
10.168.6.201 - - [03/Jul/2024:12:09:50 +0100] "GET /serverinstallation/installationimages/centos/7/7.6.1810/vanilla_fromEverything/repodata/a0ec5a4708a1026db100d4799c404c9ed48a9371a4bab234a1355f86628a244a-filelists.sqlite.bz2 HTTP/1.1" 200 7461122 "-" "CentOS (anaconda)/7 yum/3.4.3"
10.168.6.201 - - [03/Jul/2024:12:14:55 +0100] "GET /serverinstallation/installationimages/centos/7/7.6.1810/vanilla_fromEverything/Packages/libstoragemgmt-1.6.2-4.el7.i686.rpm HTTP/1.1" 403 325 "-" "urlgrabber/3.10 yum/3.4.3"
10.168.6.201 - - [03/Jul/2024:12:14:55 +0100] "GET /serverinstallation/installationimages/centos/7/7.6.1810/vanilla_fromEverything/Packages/libstoragemgmt-1.6.2-4.el7.i686.rpm HTTP/1.1" 403 325 "-" "urlgrabber/3.10 yum/3.4.3"
10.168.6.201 - - [03/Jul/2024:12:14:56 +0100] "GET /serverinstallation/installationimages/centos/7/7.6.1810/vanilla_fromEverything/Packages/libstoragemgmt-1.6.2-4.el7.i686.rpm HTTP/1.1" 403 325 "-" "urlgrabber/3.10 yum/3.4.3"
10.168.6.201 - - [03/Jul/2024:12:14:58 +0100] "GET /serverinstallation/installationimages/centos/7/7.6.1810/vanilla_fromEverything/Packages/libstoragemgmt-1.6.2-4.el7.i686.rpm HTTP/1.1" 403 325 "-" "urlgrabber/3.10 yum/3.4.3"
10.168.6.201 - - [03/Jul/2024:12:15:02 +0100] "GET /serverinstallation/installationimages/centos/7/7.6.1810/vanilla_fromEverything/Packages/libstoragemgmt-1.6.2-4.el7.i686.rpm HTTP/1.1" 403 325 "-" "urlgrabber/3.10 yum/3.4.3"
10.168.6.201 - - [03/Jul/2024:12:15:10 +0100] "GET /serverinstallation/installationimages/centos/7/7.6.1810/vanilla_fromEverything/Packages/libstoragemgmt-1.6.2-4.el7.i686.rpm HTTP/1.1" 403 325 "-" "urlgrabber/3.10 yum/3.4.3"
10.168.6.201 - - [03/Jul/2024:12:15:26 +0100] "GET /serverinstallation/installationimages/centos/7/7.6.1810/vanilla_fromEverything/Packages/libstoragemgmt-1.6.2-4.el7.i686.rpm HTTP/1.1" 403 325 "-" "urlgrabber/3.10 yum/3.4.3"
10.168.6.201 - - [03/Jul/2024:12:15:58 +0100] "GET /serverinstallation/installationimages/centos/7/7.6.1810/vanilla_fromEverything/Packages/libstoragemgmt-1.6.2-4.el7.i686.rpm HTTP/1.1" 403 325 "-" "urlgrabber/3.10 yum/3.4.3"
10.168.6.201 - - [03/Jul/2024:12:17:02 +0100] "GET /serverinstallation/installationimages/centos/7/7.6.1810/vanilla_fromEverything/Packages/libstoragemgmt-1.6.2-4.el7.i686.rpm HTTP/1.1" 403 325 "-" "urlgrabber/3.10 yum/3.4.3"
10.168.6.201 - - [03/Jul/2024:12:19:10 +0100] "GET /serverinstallation/installationimages/centos/7/7.6.1810/vanilla_fromEverything/Packages/libstoragemgmt-1.6.2-4.el7.i686.rpm HTTP/1.1" 403 325 "-" "urlgrabber/3.10 yum/3.4.3"I cannot see any obvious other errors in the client side logs.

When I manually do a wget for the package from another machine on the subnet it gets it ok:
Code:$ wget http://10.168.6.206/serverinstallation/installationimages/centos/7/7.6.1810/vanilla_fromEverything/Packages/libstoragemgmt-1.6.2-4.el7.i686.rpmAnd the http server log output is:
Code:10.168.6.133 - - [03/Jul/2024:13:01:13 +0100] "GET /serverinstallation/installationimages/centos/7/7.6.1810/vanilla_fromEverything/Packages/libstoragemgmt-1.6.2-4.el7.i686.rpm HTTP/1.1" 200 256492 "-" "Wget/1.14 (linux-gnu)"One further point: I thought I had this working OK a while back, but I cannot be 100% certain of that.

Anyone any idea what might be going wrong here? Or can anyone suggest how I can go about debugging it ?
How does anaconda effect the http GET request? Is it possible the tool used (urlgrabber/3.10 yum/3.4.3?) is doing something that is incompatible with my http server ?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments