Debian packer

2020, Nov 20    

Using packer, I create my default debian image.

The basic idea is to have a base image with the minimal Debian installation, SSH access, known user and so on.

The repo is here

As of today, features are

  • Use packer to build .ova files for vmware workstation. These images should work for vmware player and virtualbox also.
  • Uses preseed file for unattended installation
  • Serial console enables to look into the installation process. This has the side effect of the resulting image having serial enabled also.
  • make is used to conditionally build the image.

Features to be implemented:

  • qemu/kvm images, ie. qcow2 and xml for libvirt import.
  • user defined in packer and not directly in the preseed file
  • saving the installation log
  • gitlab-ci mechanics. This is “simple” if yo uhave somewhere to store the resulting images.