Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.83 KB

README.md

File metadata and controls

44 lines (33 loc) · 1.83 KB

Packer MAAS Windows

Packer templates, associated scripts, and configuration for creating deployable Windows images for MAAS.

Template and scripts in this repo mostly credited to these repos:

Prerequisites (to create the images)

  • 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

Requirements (to deploy the image)

  • MAAS 3.2.0 or above

Building an image

Run this following packer command to build the image:

sudo PACKER_LOG=1 packer build windows.json

Uploading an image to MAAS

maas $PROFILE boot-resources \
create name=windows/win2019 \
title='Windows Server 2019 Standard' \
architecture=amd64/generic \
filetype=ddtgz \
content@=windows-2019/standard.tar.gz