hashicorp / hashicorp/packer-plugin-vagrant

Add support for `provider_override = "qemu"`

Open
#97 1 comment 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
16
Forks
28
PR merge metrics
No merged PRs in 30d

Description

I am using the [vagrant-qemu](https://github.com/ppggff/vagrant-qemu) plugin to run QEMU boxes on macOS.

I'd like the ability to generate Vagrant boxes for this provider, such as the one below, but at present, `qemu` is not one of the allowable values for providers.

``` hcl
source "file" "fedora-coreos-qemu-aarch64" {
source = "../../artifacts/fcos-images/fedora-coreos-qemu.aarch64.qcow2"
target = "fedora-coreos-qemu.aarch64.qcow2"
}

build {
sources = ["file.fedora-coreos-qemu-aarch64"]

post-processors {
post-processor "vagrant" {
vagrantfile_template = "./qemu/Vagrantfile"
include = ["fedora-coreos-qemu.aarch64.qcow2"]
keep_input_artifact = false
provider_override = "qemu"
}
}
}
```

This fails on packer 1.9.2 with the following message:

```
Error: Failed preparing post-processor-block "vagrant" ""

on packer.pkr.hcl line 10:
(source code not available)

The given provider_override qemu is not valid. Please choose from one of docker,
digitalocean, azure, scaleway, libvirt, hyperv, parallels, google, lxc,
virtualbox, aws, vmware
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.