Following myself up here – some progress, but still running into issues. I
created an osimage object, and it looks alright –
lsdef -t osimage ubuntu20.04_compute01
Object name: ubuntu20.04_compute01
exlist=/opt/xcat/share/xcat/netboot/ubuntu/compute.exlist
imagetype=linux
osarch=x86_64
osdistroname=ubuntu22.04.2-x86_64
osname=Linux
osvers=ubuntu22.04.2
otherpkgdir=/install/post/otherpkgs/ubuntu22.04.2/x86_64
pkgdir=/install/ubuntu22.04.2/x86_64
pkglist=/opt/xcat/share/xcat/netboot/ubuntu/compute.ubuntu22.04.2.x86_64.pkglist
postinstall=/opt/xcat/share/xcat/netboot/ubuntu/compute.postinstall
profile=compute
provmethod=statelite
rootimgdir=/install/netboot/ubuntu22.04.2/x86_64/compute
But when I run genimage, it still fails to install the extra packages, and then
crashes out without creating ramdisks. It seems like the repo data is not
getting passed into the image creation properly (or is not working for some
other reason).
Essentially every package in the pkglist fails. It is possible to probable
that I’ve got the local repo incorrectly configured. The install guide -
https://xcat-docs.readthedocs.io/en/latest/guides/install-guides/apt/prepare_mgmt_node.html#configure-the-base-os-repository
– is for Ubuntu 18.04, and I’ve been using it as a guide, but with no luck.
I’ve tried genimage with and without the -m flag with no luck.
Inside the rootimg the /etc/apt/sources.list has this entry:
deb http://<IPREDACTED>:80/install/ubuntu22.04.2/x86_64 jammy main
If I chroot to the image, apt fails, unless I bind mount the external /dev into
the image, then at least I can see the repo, and apt-update gives me some info
about packages, but there’s something off about the way it’s handling the repos
when building the image.
Any thoughts, anyone?
Jeff Berry
Computer Officer, MRC Cognition and Brain Sciences Unit
From: Jeff Berry <[email protected]>
Sent: 19 July 2023 10:19
To: xCAT Users Mailing list <[email protected]>
Subject: [xcat-user] problem with genimage ubuntu22.04 LTS
Good morning all,
We’re moving from our old xcat installation (2.14.2, CentOS 7) to a new
cluster running Ubuntu 22.04 with xcat 2.16.5, and I’m hitting a snag trying to
build the initial image. The xcat install itself seems fine –
lsxcatd -v
Version 2.16.5 (git commit b588632f2fa62f34e658f2f0b1d12ad07201f981, built Fri
Mar 3 09:07:25 EST 2023)
The first problem was that there was no .pkglist file for ubuntu22 in the
/opt/xcat/share/xcat/netboot/ubuntu directory, so I copied the file for
ubuntu20 and tried genimage again, but it keeps erroring out.
genimage -o ubuntu22.04.2 -m ubuntu20.04_compute01
OS: ubuntu22.04.2
Available Profiles for ubuntu22.04.2:
cbsu
compute
cudafull
cudaruntime
Which profile do you want to use for ubuntu22.04.2? [cbsu ] compute
Profile: compute
OPTIONAL: Which specific network interface will the image boot from? [<blank>]
No interface specified. The interface will be determined at network boot
time.
Generating image:
Then it spins for a whilte with Retrieving and Validating ...
until finally ...
Unpacking libxml2:amd64 (2.9.13+dfsg-1ubuntu0.2) over (2.9.13+dfsg-1build1) ...
Setting up libss2:amd64 (1.46.5-2ubuntu1.1) ...
Setting up libxml2:amd64 (2.9.13+dfsg-1ubuntu0.2) ...
Processing triggers for libc-bin (2.35-0ubuntu3) ...
Unable to find package list for compute! at ./genimage line 74..
There’s a rootimg where I expect it, but no ramdisks. It feels like I’m
missing something obvious, but neither my notes from a few years ago or
anything I can find in the documentation is helping me see what I’m missing ...
Can anyone point me in the right direction?
Jeff Berry
Computer Officer, MRC Cognition and Brain Sciences Unit
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user