Best practice and recommendations for building VM templates

May 1, 2022
65
9
13
Stockholm, Sweden
Good afternoon

I have been using Packer to build images/templates for Ubuntu and now I am looking to expand it to Debian, Rocky Linux, FreeBSD and OpenBSD.
It feels like I can't be the first person doing this and does this forum have any good documentation, links, examples and experience to share?

The current issue I have with Ubuntu is at the first time starting the image to expand the root partition and it feels like other could have had these issues.

I will gladly share my scripts if anyone if interested.
 
Hi @Veidit,


Packer is a great tool to continue building your templates - there’s plenty of documentation available, so no need to reinvent the wheel.

I’m not entirely clear on what issue you’re facing with expanding the root disk. Packer should handle that automatically, and if you’re expanding the disk further after cloning the template, CloudInit should take care of that as well.

Cheers


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox