Packer templates, associated scripts, and configuration for creating deployable Windows images for MAAS.
Template and scripts in this repo mostly credited to these repos:
- canonical/packer-maas
- jakobadam/packer-qemu-templates
- joefitzgerald/packer-windows
- cagyirey/packer-windows-imaging-tools
- cloudbase/cloudbase-init
- cloudbase/windows-curtin-hooks
- A machine running Ubuntu 18.04+ with the ability to run KVM virtual machines.
- qemu-utils
- Packer
- The Windows installation ISO must be downloaded manually and placed it into
files
folder. You can download it here. - Windows Curtin Hook and placed it into
files
folder. - cloudbase-init and placed it into
files
folder
- MAAS 3.2.0 or above
Run this following packer command to build the image:
sudo PACKER_LOG=1 packer build windows.json
maas $PROFILE boot-resources \
create name=windows/win2019 \
title='Windows Server 2019 Standard' \
architecture=amd64/generic \
filetype=ddtgz \
content@=windows-2019/standard.tar.gz