No description
  • Go 79.7%
  • MDX 8.8%
  • Shell 5.1%
  • HCL 5.1%
  • Makefile 1.3%
Find a file
2026-04-05 20:56:20 +05:30
.github Merge pull request #28 from hashicorp/vuln_fix 2025-12-26 12:51:02 +05:30
.release [COMPLIANCE] Update Copyright and License Headers 2025-12-09 10:45:40 +00:00
.web-docs [COMPLIANCE] Update Copyright and License Headers 2025-12-09 10:45:40 +00:00
builder/kubevirt Merge pull request #20 from codingben/CNV-68447 2025-09-18 20:55:15 +05:30
docs fix the url reference to iso builder page 2025-09-16 14:12:53 +05:30
docs-partials/builder/kubevirt/iso docs: add kubevirt-iso builder 2025-09-09 17:19:23 +03:00
examples/builder/kubevirt-iso [COMPLIANCE] Update Copyright and License Headers 2025-12-09 10:45:40 +00:00
version [COMPLIANCE] Update Copyright and License Headers 2025-12-09 10:45:40 +00:00
.copywrite.hcl Initial commit 2025-05-07 18:38:55 +03:00
.gitignore chore: ignore vendor folder 2025-09-04 17:52:47 +03:00
.go-version Merge pull request #28 from hashicorp/vuln_fix 2025-12-26 12:51:02 +05:30
CHANGELOG.md Update CHANGELOG.md 2025-09-10 12:23:38 +05:30
CODEOWNERS add CODEOWNERS file 2025-08-26 12:24:31 +05:30
GNUmakefile src: cleanup packer-plugin-scaffolding 2025-06-03 20:34:17 +03:00
go.mod update go.mod 2026-03-28 23:24:35 +05:30
go.sum update go.mod 2026-03-28 23:24:35 +05:30
LICENSE [COMPLIANCE] Update Copyright and License Headers 2025-12-09 10:45:40 +00:00
main.go [COMPLIANCE] Update Copyright and License Headers 2025-12-09 10:45:40 +00:00
manifest.json add CRT workflow files 2025-08-26 12:34:51 +05:30
README.md chore: migrate codebase from kv-infra/packer-plugin-kubevirt 2025-09-04 18:48:24 +03:00

Packer Plugin KubeVirt

The KubeVirt plugin can be used with HashiCorp Packer to create KubeVirt images.

Note: This plugin is under development and is not production ready.

Packer

Packer is a tool for creating identical machine images from a single source template.

To get started, see the Packer installation guide.

Prerequisites

Plugin Features

  • HCL Templating Use HashiCorp Configuration Language (HCL2) for defining infrastructure as code.
  • ISO Installation Build VM golden images from ISO using the kubevirt-iso builder.
  • ISO Media Files Embed additional files into installation process (e.g. ks.cfg or unattend.xml).
  • Boot Command Automate the VM boot process using a set of commands (via a VNC connection).
  • Integrated SSH/WinRM Access Allows VM provisioning and customization via SSH or WinRM.

Components

  • kubevirt-iso - This builder starts from a ISO file and builds virtual machine image on a KubeVirt cluster.

Design

Design

Installation

Automatic Installation

Packer supports automatic installation of the Packer plugins.

To install this plugin, copy and paste this code into your Packer configuration:

packer {
  required_plugins {
    kubevirt = {
      source  = "github.com/hashicorp/kubevirt"
      version = ">= 0.8.0"
    }
  }
}

And now run packer init command. The plugin will be installed automatically.

Manual Installation

Download the latest release from the Releases page and then install the plugin:

$ packer plugins install --path packer-plugin-kubevirt github.com/hashicorp/kubevirt

Building From Source

Clone the repository and build the plugin from the root directory:

$ go build -ldflags="-X github.com/hashicorp/packer-plugin-kubevirt/version.Version=0.7.0" -o packer-plugin-kubevirt

Then install the compiled plugin:

$ packer plugins install --path packer-plugin-kubevirt github.com/hashicorp/kubevirt

Usage

Refer to the usage guidance in the examples of this plugin.