The Packer template in this directory creates a SLES 12 AMD64 image for use with MAAS.
- A machine running Ubuntu 22.04+ with the ability to run KVM virtual machines.
- qemu-utils, libnbd-bin, nbdkit and fuse2fs
- cloud-image-utils
- Packer, v1.8.0 or newer
- The SLES JeOS 12-SP5 OpenStack/Cloud image
The deployment image may be customized using cloud-init configuration. Check the user-data file.
You can easily build the image using the Makefile:
make ISO=/PATH/TO/SLES12-SP5-JeOS.x86_64-12.5-OpenStack-Cloud-GM.qcow2Alternatively you can manually run packer. Your current working directory must be in packer-maas/sles12, where this file is located. Once in packer-maas/sles12 you can generate an image with:
packer init
PACKER_LOG=1 packer build -var 'sles_iso_path=/PATH/TO/SLES12-SP5-JeOS.x86_64-12.5-OpenStack-Cloud-GM.qcow2' .Note: sles.pkr.hcl is configured to run Packer in headless mode. Only Packer output will be seen. If you wish to see the installation output connect to the VNC port given in the packer output or change the value of headless to false in sles.pkr.hcl.
Installation is non-interactive.
The timeout to apply when building the image. The default value is set to 1h.
maas $PROFILE boot-resources create \
name='suse/sles12.5' title='SLES 12-SP5' \
architecture='amd64/generic' filetype='tgz' \
content@=sles12.tar.gzThe default username is sles