Skip to content

Build Incus container or VM images in a remote chroot with Packer (experimental: you probably want https://github.com/bketelsen/packer-plugin-incus)

License

Notifications You must be signed in to change notification settings

dontlaugh/packer-plugin-incuschroot

Repository files navigation

Packer Plugin Incus Chroot

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.

Installation

Using pre-built releases

Using the packer init command

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"
    }
  }
}

Development

Get the sdc tool from Hashicorp.

make install-packer-sdc

Then see HACKING.md