Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for provider_override = "qemu" #97

Open
MisterWS opened this issue Aug 10, 2023 · 0 comments
Open

Add support for provider_override = "qemu" #97

MisterWS opened this issue Aug 10, 2023 · 0 comments

Comments

@MisterWS
Copy link

I am using the 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.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant