Goal: build disk images in a chroot on a pre-existing VM.
Note: this is a brand new (Sep 2024) fork of the LXD plugin. You probably want bketelsen/packer-plugin-incus.
packer init not yet supported
Starting from version 1.7, Packer supports a new packer init
command allowing
automatic installation of Packer plugins. Read the
Packer documentation for more information.
To install this plugin, copy and paste this code into your Packer configuration .
Then, run packer init
.
packer {
required_plugins {
incus = {
version = ">= 1.0.0"
source = "github.com/dontlaugh/incuschroot"
}
}
}
Get the sdc tool from Hashicorp.
make install-packer-sdc
Then see HACKING.md