-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update image-generation
doc
#95
Comments
Seconding this. |
Any chance we could get an updated version of the image build process? |
The image generation is based in this repo: https://github.com/kubernetes-sigs/image-builder Generate a qemu image make build-qemu-ubuntu-2204 When the image is created, run this commands: TMP_DIR=$(mktemp -d /tmp/packer-maas-XXXX)
echo 'Binding packer qcow2 image output to nbd ...'
modprobe nbd
qemu-nbd -d /dev/nbd4
qemu-nbd -c /dev/nbd4 -n ./output/ubuntu-${OUTPUT_OS_VERSION}-kube-v${K8S_VERSION}/ubuntu-${OUTPUT_OS_VERSION}-kube-v${K8S_VERSION}
echo 'Waiting for partitions to be created...'
tries=0
while [ ! -e /dev/nbd4p1 -a $tries -lt 60 ]; do
sleep 1
tries=$((tries+1))
done
echo "mounting image..."
mount /dev/nbd4p1 $TMP_DIR
echo 'Tarring up image...'
tar -Sczpf u-${OUTPUT_OS_VERSION}-0-k-${IMAGE_K8S_VERSION}-0.tar.gz --selinux -C $TMP_DIR .
echo 'Unmounting image...'
umount $TMP_DIR
qemu-nbd -d /dev/nbd4
rmdir $TMP_DIR Of course, you need to change the variables names in this code snippet. |
A thing I forgot: If you are generating a EFI image, you need to mount the secound partition at TMP_DIR
Otherwise, you will generate a image with uefi partition |
I am trying the following configs:
also tried the EFI variant and:
but the result is:
any ideas on how to fix or debug this? |
Summary
image-generation.
In this PR #70, I see there are new image built with ubuntu 22.04 and newer k8s versions. However, the content still points out to a very stale branch in this repo: https://github.com/spectrocloud/cluster-api-provider-maas/blob/main/image-generation/Dockerfile#L10C29-L10C90
Is it possible to share what is the current packer configs to generate those ubuntu 22.04 images?
The text was updated successfully, but these errors were encountered: