hashicorp / hashicorp/packer-plugin-qemu

[feature] Allow use ova in qemu builder

Open
#7 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

builder/qemu enhancement
Dominant language
Go
Stars
85
Forks
59
PR merge metrics
No merged PRs in 30d

Description

This issue was originally opened by @yamatoRT as hashicorp/packer#9906. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.


Description

I would like import a ova in qemu builder for create vagrant box. The ova may have many disks.
Moreover, I would like select the order of disks because the disk in ova have special name.

Potential configuration

Suggestion 1 :
Add new builder with ova_url

{
"builders": [
    {
      "type": "qemu",
      "ova_url": "<ova_path>",
      "ova_checksum": "<ova_checksum>",
      "disks_order" : [ "disk_1.qcow", "disk_2.qcows"],
      "use_backing_file":true,
      "format": "qcow2",
      "accelerator": "kvm",
      "ssh_username": "root",
      "ssh_password": "root",
      "ssh_timeout": "5m",
      "net_device": "e1000",
      "disk_interface": "ide",
      "boot_wait": "10s"
    }
  ]

}

Suggestion 2 :
Use iso_url and add new option ova

{
"builders": [
    {
      "type": "qemu",
      "iso_url": "<ova_path>",
      "iso_checksum": "<ova_checksum>",
      "ova" : true,
      "disks_order" : [ "disk_1.qcow", "disk_2.qcows"],
      "use_backing_file":true,
      "format": "qcow2",
      "accelerator": "kvm",
      "ssh_username": "root",
      "ssh_password": "root",
      "ssh_timeout": "5m",
      "net_device": "e1000",
      "disk_interface": "ide",
      "boot_wait": "10s"
    }
  ]

}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the QEMU builder configuration and its existing iso_url handling, then review how disk inputs and ordering are represented. Compare the two proposed OVA configuration approaches and determine the expected behavior for multi-disk OVA files, checksums, and disk order. Done means the chosen configuration is documented and validated for creating a Vagrant box.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.