Caution
HEAVILY WORK IN PROGRESS - DO NOT USE
- Hashicorp Packer
- Hashicorp Terraform
- Proxmox (QEMU)
- vSphere
- openSUSE MicroOS
cd <project-dir>/packer
- Create HCL config files. Replace
VARIANT
with an available platform name.
cp openSUSE_MicroOS-selfinstall.VARIANT.pkr.hcl.dist openSUSE_MicroOS-selfinstall.pkr.hcl
cp variables.pkrvars.proxmox.VARIANT.dist variables.pkrvars.hcl
- Adjust the config values in
variables.pkrvars.hcl
accordingly. - Initialize Packer:
packer init openSUSE_MicroOS-selfinstall.pkr.hcl
- Create an SSH key-pair to let Packer access the temporary system during the build process:
ssh-keygen -t ed25519 -C "Packer" -f ./ssh_files/packer
packer build -var-file="variables.pkrvars.hcl" .
cd <project-dir>/terraform
- Create the Terraform module wrapper for your platform. Replace
VARIANT
with an available platform name. No adjustments need to be done in this file.
cp nodes.VARIANT_vm.tf.dist nodes.tf
- Create a config file to hold all custom settings:
cp terraform.tfvars.dist terraform.tfvars
- Uncomment all settings for the chosen platform and set their values in
terraform.tfvars
. - Initialize Terraform:
terraform init
terraform apply
If there's an issue when creating too many VM's at the same time with Terraform and Proxmox, try to limit parallel activities:
terraform apply -parallelism=1
URL for image downloads:
https://download.opensuse.org/tumbleweed/appliances/iso/