Skip to content
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

Ubuntu: Building cloudimg images with custom kernel does not work #175

Closed
alanbach opened this issue Dec 5, 2023 · 0 comments · Fixed by #178
Closed

Ubuntu: Building cloudimg images with custom kernel does not work #175

alanbach opened this issue Dec 5, 2023 · 0 comments · Fixed by #178
Assignees
Labels
bug Something isn't working triaged Triaged to be addressed in a given cycle

Comments

@alanbach
Copy link
Contributor

alanbach commented Dec 5, 2023

Steps to reproduce:

  1. Clone the most recent version of packer-maas
  2. Build a custom image using a command similar to the following:
packer build -var ubuntu_series=mantic -var kernel=linux-image-6.5.0-10-generic -only='cloudimg.*' .
  1. Import the image into MAAS using a command similar to:
maas ${PROFILE} boot-resources create name='custom/mantic-2023-12-05-11-22' \
  title='Mantic 6.5 2023-12-05-11-22' architecture='amd64/generic' \
  filetype='tgz' content@=mantic-6.5-cloudimg-20231205-1122.tar.gz
  1. Deploy. The machine will not boot due to missing kernel image and initramfs in the /boot directory.

This was reported by a client and I was able to reproduce with MAAS 3.3.5. Deployment was tested using a KVM virtual machine and a DELL R240 server both configured with UEFI boot mode.

@alexsander-souza alexsander-souza added bug Something isn't working triaged Triaged to be addressed in a given cycle labels Dec 5, 2023
alanbach added a commit to alanbach/packer-maas-fork that referenced this issue Dec 6, 2023
kernels in-target at deployment time.

This fixes unbootable machines due to
missing kernel image and initrd in
/boot.

Closes: canonical#175
alexsander-souza added a commit to alexsander-souza/packer-maas that referenced this issue Dec 6, 2023
newer Ubuntu releases have a Linux Boot Loader Specification
compatible /boot partition. This should be included in the image.

fixes canonical#175
@alexsander-souza alexsander-souza self-assigned this Dec 6, 2023
alexsander-souza added a commit that referenced this issue Dec 7, 2023
newer Ubuntu releases have a Linux Boot Loader Specification compatible
/boot partition. This should be included in the image.

fixes #175
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triaged Triaged to be addressed in a given cycle
Projects
None yet
2 participants