Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Files

Latest commit

b6048b5 · May 20, 2021

History

History
This branch is 161 commits behind canonical/packer-maas:main.

rhel8

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 10, 2020
May 20, 2021
May 20, 2021
Jan 22, 2021

RHEL 8 Packer Template for MAAS

Introduction

The Packer template in this directory creates a RHEL 8 AMD64 image for use with MAAS.

Prerequisites (to create the image)

  • A machine running Ubuntu 18.04+ with the ability to run KVM virtual machines.
  • qemu-utils
  • Packer
  • The RHEL 8 DVD ISO

Requirements (to deploy the image)

Customizing the Image

The deployment image may be customized by modifying http/rhel8.ks. See the CentOS kickstart documentation for more information.

Building the image using a proxy

The Packer template pulls all packages from the DVD except for Canonical's cloud-init repository. To use a proxy during the installation add the --proxy=$HTTP_PROXY flag to every line starting with url or repo in http/rhel8.ks. Alternatively you may set the --mirrorlist values to a local mirror.

Building an image

You can easily build the image using the Makefile:

$ make ISO=/PATH/TO/rhel-8.3-x86_64-dvd.iso

Alternatively you can manually run packer. Your current working directory must be in packer-maas/rhel8, where this file is located. Once in packer-maas/rhel8 you can generate an image with:

$ sudo PACKER_LOG=1 packer build -var 'rhel8_iso_path=/PATH/TO/rhel-8.3-x86_64-dvd.iso' rhel8.json

Note: rhel8.json 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 rhel8.json.

Installation is non-interactive.

Uploading an image to MAAS

$ maas $PROFILE boot-resources create
name='rhel/8-custom' title='RHEL 8 Custom' architecture='amd64/generic' filetype='tgz' content@=rhel8.tar.gz

Default Username

The default username is cloud-user