Hi,
The following post denotes some issues I came across when creating OL8 and OL9 images:
Setup details:
maas@maas:~/packer-maas/ol8$ packer --version
Packer v1.10.0
maas@maas:~/packer-maas/ol8$ cat /etc/*release*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04 LTS"
PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04 (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
maas@maas:~/packer-maas/ol8$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used
The procedure followed (as per https://github.com/canonical/packer-maas/tree/main/ol8 https://github.com/canonical/packer-maas/tree/main/ol9 ):
maas@maas:~/packer-maas/ol8$ make
_current_deps := libnbd-bin nbdkit packer fuse2fs
make: _current_deps: No such file or directory
make: *** [Makefile:15: check-deps] Error 127
Couldnât solve this one but i guess we are missing some file /function for dependency checks.
Trying with packer method:
packer init .
PACKER_LOG_PATH="packerlog.txt" PACKER_LOG=1 packer build .
First âerrorâ the default .ks file in repo on the folder http is named ol8.ks.in and therefore it doesnât find it, so it is just a matter of renaming the file to ol8.ks.
Next it doesnât work because it doesnât find the ${KS_PROXY} variable. In my case i didnât need a proxy so i just removed it from the kickstart file but it should be handled more gracefully i think.
After this the image was created successfully for both OL8 and OL9.
As a final step the command to upload the image to MaaS should be changed from name=âol/8.8â which to a custom distro like for instance name=âcustom/ol-8.8â otherwise it will throw the error â{ânameâ: [âUnsupport operating system ol, supported operating systems: [âubuntuâ, âubuntu-coreâ, âbootloaderâ, âcentosâ, ârhelâ, âcustomâ, âwindowsâ, âsuseâ, âcaringoâ, âesxiâ]â]}â:
maas $PROFILE boot-resources create \
name='custom/ol-8.8' title='Oracle Linux 8.8' \
architecture='amd64/generic' filetype='tgz' \
content@=ol8.tar.gz
The deploy is another story which is failing but I shall open another topic for that.
Thanks !
BR