https://github.com/pelotech/packer-plugin-kubevirt
Packer plugin for provisioning operating systems in KubeVirt VMs.
https://github.com/pelotech/packer-plugin-kubevirt
kubevirt packer
Last synced: 5 months ago
JSON representation
Packer plugin for provisioning operating systems in KubeVirt VMs.
- Host: GitHub
- URL: https://github.com/pelotech/packer-plugin-kubevirt
- Owner: pelotech
- License: mpl-2.0
- Created: 2024-01-24T00:42:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-12-23T01:08:57.000Z (6 months ago)
- Last Synced: 2025-12-24T11:41:55.593Z (6 months ago)
- Topics: kubevirt, packer
- Language: Go
- Homepage:
- Size: 122 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KubeVirt Packer Plugin
This repository contains the following sections:
- Builders:
- [ISO builder](builder/iso)
- IMG builder _(to be implemented)_
- Post-processors
- [S3 Export](post-processor/s3)
- OCI Export _(to be implemented)_
- [Docs](docs)
- [Example](example)
## Build the plugin
```shell
go build .
```
## Local installation of the plugin
```shell
packer plugins install --path ./packer-plugin-kubevirt "github.com/pelotech/kubevirt"
```
## Run the plugin
```shell
# If needed, the arg '-debug' will pause the process between each step
PACKER_LOG=1 packer build -debug ./example
```
## Running Acceptance Tests
Make sure to build and setup the binary with:
```sh
# Build
go build .
# Move binary
cp packer-plugin-kubevirt ~/.packer.d/plugins/packer-plugin-kubevirt # Option 1
packer plugins install --path packer-plugin-kubevirt "github.com/pelotech/kubevirt" # Option 2
```
Once everything required is set up, run:
```
PACKER_ACC=1 go test -count 1 -v ./... -timeout=120m
```
This will run unit tests for all plugins in this set.
## Pipeline
- integration tests (packer running against KinD cluster)
- release (manual) for any documentation update
- release (tag event) for the binary