hashicorp / packer

Packer is a tool for creating identical machine images for multiple platforms from a single source configuration.

Home Page:http://www.packer.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Impossible to use unbundled plugins

greg-hellings opened this issue Β· comments

Community Note

  • Please vote on this issue by adding a πŸ‘ reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Overview of the Issue

Since the arrival of the bundled plugins warnings in 1.9, I have included a required_plugins block in my template files. Before beginning work on a VM I run packer init sources/ from my project directory. Regardless of this, executing a build still gives me warnings that the bundled plugins will be used. At first this wasn't an issue, but I have since moved to using a newer feature in the Vagrant plugin that is not in step with the bundled version (architecture support) and now I'm getting an error when attempting to run because the architecture argument is not supported by the bundled Vagrant plugin.

Reproduction Steps

  1. Clone my VM build repo
  2. packer init sources
  3. packer build -only=qemu.amd64 -var-file=./distros/ubuntu/20.04/amd64.pkrvars.hcl sources (as just one example, although the error works on building any VM)
  4. Receive warning about bundled plugins, and error:
Warning: Bundled plugins used

This template relies on the use of plugins bundled into the Packer binary.
The practice of bundling external plugins into Packer will be removed in an
upcoming version.

To remove this warning, add the following section to your template:

packer {
  required_plugins {
    vmware = {
      source  = "github.com/hashicorp/vmware"
      version = "~> 1"
    }
    vagrant = {
      source  = "github.com/hashicorp/vagrant"
      version = "~> 1"
    }
    qemu = {
      source  = "github.com/hashicorp/qemu"
      version = "~> 1"
    }
  }
}

Then run 'packer init' to manage installation of the plugins


Error: Failed preparing post-processor-block "vagrant-cloud" "upload"

  on sources/build.pkr.hcl line 69:
  (source code not available)

sources/build.pkr.hcl:72,22-35: Unsupported attribute; This object does not have
an attribute named "architecture".

Packer version

@ packer version
Packer v1.9.4

Simplified Packer Template

https://github.com/greg-hellings/vms/tree/main/sources

Operating system and Environment details

NixOS
x86_64 system

Log Fragments and crash.log files

When I run with PACKER_LOG="1" set in my environment, it does show that all of the expected plugins are found. However, the validation error seems to be occurring before the plugins are all initialized based on the interleaving of outputs. Perhaps there is a race condition?

2024/11/28 10:41:18 [INFO] Packer version: 1.9.4 [go1.21.4 linux amd64]
2023/11/28 10:41:18 [TRACE] discovering plugins in /nix/store/18zjkk36212rn0g90h9a08ymi6ix45wc-packer-1.9.4/bin
2023/11/28 10:41:18 [TRACE] discovering plugins in .
2023/11/28 10:41:18 [TRACE] discovering plugins in /home/greg/.config/packer/plugins
2023/11/28 10:41:18 [INFO] Discovered potential plugin: ansible = /home/greg/.config/packer/plugins/github.com/hashicorp/ansible/packer-plugin-ansible_v1.1.1_x5.0_linux_amd64
2023/11/28 10:41:18 [INFO] Discovered potential plugin: hyperv = /home/greg/.config/packer/plugins/github.com/hashicorp/hyperv/packer-plugin-hyperv_v1.1.1_x5.0_linux_amd64
2023/11/28 10:41:18 [INFO] Discovered potential plugin: qemu = /home/greg/.config/packer/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64
2023/11/28 10:41:18 [INFO] Discovered potential plugin: vagrant = /home/greg/.config/packer/plugins/github.com/hashicorp/vagrant/packer-plugin-vagrant_v1.1.1_x5.0_linux_amd64
2023/11/28 10:41:18 [INFO] Discovered potential plugin: vmware = /home/greg/.config/packer/plugins/github.com/hashicorp/vmware/packer-plugin-vmware_v1.0.10_x5.0_linux_amd64
2023/11/28 10:41:18 found external [-packer-default-plugin-name- local] provisioner from ansible plugin
2023/11/28 10:41:18 [INFO] found external [iso vmcx] builders from hyperv plugin
2023/11/28 10:41:18 [INFO] found external [-packer-default-plugin-name-] builders from qemu plugin
2023/11/28 10:41:18 [INFO] found external [-packer-default-plugin-name-] builders from vagrant plugin
2023/11/28 10:41:18 [INFO] found external [-packer-default-plugin-name- cloud] post-processors from vagrant plugin
2023/11/28 10:41:18 [INFO] found external [iso vmx] builders from vmware plugin
2023/11/28 10:41:18 [INFO] PACKER_CONFIG env var not set; checking the default config file path
2023/11/28 10:41:18 [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/greg/.packerconfig
2023/11/28 10:41:18 [WARN] Config file doesn't exist: /home/greg/.packerconfig
2023/11/28 10:41:18 [INFO] Setting cache directory: /home/greg/.cache/packer
2023/11/28 10:41:18 [TRACE] listing potential installations for "github.com/hashicorp/hyperv" that match "= 1.1.1". plugingetter.ListInstallationsOptions{FromFolders:[]string{"/nix/store/18zjkk36212rn0g90h9a08ymi6ix45wc-packer-1.9.4/bin", ".", "/home/greg/.config/packer/plugins"}, BinaryInstallationOptions:plugingetter.BinaryInstallationOptions{APIVersionMajor:"5", APIVersionMinor:"0", OS:"linux", ARCH:"amd64", Ext:"", Checksummers:[]plugingetter.Checksummer{plugingetter.Checksummer{Type:"sha256", Hash:(*sha256.digest)(0xc000888000)}}}}
2023/11/28 10:41:18 [TRACE] Found the following "github.com/hashicorp/hyperv" installations: [{/home/greg/.config/packer/plugins/github.com/hashicorp/hyperv/packer-plugin-hyperv_v1.1.1_x5.0_linux_amd64 v1.1.1}]
2023/11/28 10:41:18 [INFO] found external [iso vmcx] builders from hyperv plugin
2023/11/28 10:41:18 [TRACE] listing potential installations for "github.com/hashicorp/qemu" that match "~> 1". plugingetter.ListInstallationsOptions{FromFolders:[]string{"/nix/store/18zjkk36212rn0g90h9a08ymi6ix45wc-packer-1.9.4/bin", ".", "/home/greg/.config/packer/plugins"}, BinaryInstallationOptions:plugingetter.BinaryInstallationOptions{APIVersionMajor:"5", APIVersionMinor:"0", OS:"linux", ARCH:"amd64", Ext:"", Checksummers:[]plugingetter.Checksummer{plugingetter.Checksummer{Type:"sha256", Hash:(*sha256.digest)(0xc000888000)}}}}
2023/11/28 10:41:18 [TRACE] Found the following "github.com/hashicorp/qemu" installations: [{/home/greg/.config/packer/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 v1.0.10}]
2023/11/28 10:41:18 [INFO] found external [-packer-default-plugin-name-] builders from qemu plugin
2023/11/28 10:41:18 [TRACE] listing potential installations for "github.com/hashicorp/ansible" that match "~> 1". plugingetter.ListInstallationsOptions{FromFolders:[]string{"/nix/store/18zjkk36212rn0g90h9a08ymi6ix45wc-packer-1.9.4/bin", ".", "/home/greg/.config/packer/plugins"}, BinaryInstallationOptions:plugingetter.BinaryInstallationOptions{APIVersionMajor:"5", APIVersionMinor:"0", OS:"linux", ARCH:"amd64", Ext:"", Checksummers:[]plugingetter.Checksummer{plugingetter.Checksummer{Type:"sha256", Hash:(*sha256.digest)(0xc000888000)}}}}
2023/11/28 10:41:18 [TRACE] Found the following "github.com/hashicorp/ansible" installations: [{/home/greg/.config/packer/plugins/github.com/hashicorp/ansible/packer-plugin-ansible_v1.1.1_x5.0_linux_amd64 v1.1.1}]
2023/11/28 10:41:18 found external [-packer-default-plugin-name- local] provisioner from ansible plugin
2023/11/28 10:41:18 [TRACE] listing potential installations for "github.com/hashicorp/vagrant" that match "= 1.1.1". plugingetter.ListInstallationsOptions{FromFolders:[]string{"/nix/store/18zjkk36212rn0g90h9a08ymi6ix45wc-packer-1.9.4/bin", ".", "/home/greg/.config/packer/plugins"}, BinaryInstallationOptions:plugingetter.BinaryInstallationOptions{APIVersionMajor:"5", APIVersionMinor:"0", OS:"linux", ARCH:"amd64", Ext:"", Checksummers:[]plugingetter.Checksummer{plugingetter.Checksummer{Type:"sha256", Hash:(*sha256.digest)(0xc000888000)}}}}
2023/11/28 10:41:18 [TRACE] Found the following "github.com/hashicorp/vagrant" installations: [{/home/greg/.config/packer/plugins/github.com/hashicorp/vagrant/packer-plugin-vagrant_v1.1.1_x5.0_linux_amd64 v1.1.1}]
2023/11/28 10:41:18 [INFO] found external [-packer-default-plugin-name-] builders from vagrant plugin
2023/11/28 10:41:18 [INFO] found external [-packer-default-plugin-name- cloud] post-processors from vagrant plugin
2023/11/28 10:41:18 [TRACE] listing potential installations for "github.com/hashicorp/vmware" that match ">= 1.0". plugingetter.ListInstallationsOptions{FromFolders:[]string{"/nix/store/18zjkk36212rn0g90h9a08ymi6ix45wc-packer-1.9.4/bin", ".", "/home/greg/.config/packer/plugins"}, BinaryInstallationOptions:plugingetter.BinaryInstallationOptions{APIVersionMajor:"5", APIVersionMinor:"0", OS:"linux", ARCH:"amd64", Ext:"", Checksummers:[]plugingetter.Checksummer{plugingetter.Checksummer{Type:"sha256", Hash:(*sha256.digest)(0xc000888000)}}}}
2023/11/28 10:41:18 [TRACE] Found the following "github.com/hashicorp/vmware" installations: [{/home/greg/.config/packer/plugins/github.com/hashicorp/vmware/packer-plugin-vmware_v1.0.10_x5.0_linux_amd64 v1.0.10}]
2023/11/28 10:41:18 [INFO] found external [iso vmx] builders from vmware plugin
2023/11/28 10:41:18 [TRACE] validateValue: not active for iso, so skipping
2023/11/28 10:41:18 [TRACE] validateValue: not active for boot_wait, so skipping
2023/11/28 10:41:18 [TRACE] validateValue: not active for http_directory, so skipping
2023/11/28 10:41:18 [TRACE] validateValue: not active for qemu_accelerator, so skipping
2023/11/28 10:41:18 [TRACE] validateValue: not active for arch, so skipping
2023/11/28 10:41:18 [TRACE] validateValue: not active for shutdown_command, so skipping
2023/11/28 10:41:18 [TRACE] validateValue: not active for cd_content, so skipping
2023/11/28 10:41:18 [TRACE] validateValue: not active for cd_label, so skipping
2023/11/28 10:41:18 [TRACE] validateValue: not active for http_files, so skipping
2023/11/28 10:41:18 [TRACE] validateValue: not active for boot_command, so skipping
2023/11/28 10:41:18 [TRACE] validateValue: not active for build, so skipping
2023/11/28 10:41:18 [TRACE] validateValue: not active for distro, so skipping
2023/11/28 10:41:18 [TRACE] validateValue: not active for version, so skipping
2023/11/28 10:41:18 [TRACE] validateValue: not active for headless, so skipping
2023/11/28 10:41:18 [TRACE] validateValue: not active for vagrant_cloud_token, so skipping
2023/11/28 10:41:18 [TRACE] validateValue: not active for cd_files, so skipping

This template relies on the use of plugins bundled into the Packer binary.
The practice of bundling external plugins into Packer will be removed in an
upcoming version.

To remove this warning, add the following section to your template:

packer {
  required_plugins {
    qemu = {
      source  = "github.com/hashicorp/qemu"
      version = "~> 1"
    }
    vmware = {
      source  = "github.com/hashicorp/vmware"
      version = "~> 1"
Warning: Bundled plugins used
    }

    vagrant = {
      source  = "github.com/hashicorp/vagrant"
      version = "~> 1"
    }
  }
}

Then run 'packer init' to manage installation of the plugins

2023/11/28 10:41:18 [INFO] Starting external plugin /home/greg/.config/packer/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 start builder -packer-default-plugin-name-
2023/11/28 10:41:18 Starting plugin: /home/greg/.config/packer/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 []string{"/home/greg/.config/packer/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64", "start", "builder", "-packer-default-plugin-name-"}
This template relies on the use of plugins bundled into the Packer binary.
The practice of bundling external plugins into Packer will be removed in an
upcoming version.

2023/11/28 10:41:18 Waiting for RPC address for: /home/greg/.config/packer/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64
To remove this warning, add the following section to your template:

packer {
  required_plugins {
    qemu = {
      source  = "github.com/hashicorp/qemu"
      version = "~> 1"
    }
    vmware = {
      source  = "github.com/hashicorp/vmware"
      version = "~> 1"
    }
    vagrant = {
      source  = "github.com/hashicorp/vagrant"
      version = "~> 1"
    }
  }
}

Then run 'packer init' to manage installation of the plugins


2023/11/28 10:41:18 Received unix RPC address for /home/greg/.config/packer/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64: addr is /tmp/packer-plugin2972878126
2023/11/28 10:41:18 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2023/11/28 10:41:18 Plugin address: unix /tmp/packer-plugin2972878126
2023/11/28 10:41:18 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2023/11/28 10:41:18 Waiting for connection...
2023/11/28 10:41:18 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2023/11/28 10:41:18 Serving a plugin connection...
2023/11/28 10:41:18 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2023/11/28 10:41:18 [TRACE] starting builder -packer-default-plugin-name-
2023/11/28 10:41:18 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2023/11/28 10:41:18 use specified accelerator: kvm
2023/11/28 10:41:18 [INFO] Starting internal plugin packer-provisioner-shell
2023/11/28 10:41:18 Starting plugin: /nix/store/18zjkk36212rn0g90h9a08ymi6ix45wc-packer-1.9.4/bin/packer []string{"/nix/store/18zjkk36212rn0g90h9a08ymi6ix45wc-packer-1.9.4/bin/packer", "plugin", "packer-provisioner-shell"}
2023/11/28 10:41:18 Waiting for RPC address for: /nix/store/18zjkk36212rn0g90h9a08ymi6ix45wc-packer-1.9.4/bin/packer
2023/11/28 10:41:18 packer-provisioner-shell plugin: [INFO] Packer version: 1.9.4 [go1.21.4 linux amd64]
2023/11/28 10:41:18 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2023/11/28 10:41:18 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/greg/.packerconfig
2023/11/28 10:41:18 packer-provisioner-shell plugin: [WARN] Config file doesn't exist: /home/greg/.packerconfig
2023/11/28 10:41:18 packer-provisioner-shell plugin: [INFO] Setting cache directory: /home/greg/.cache/packer
2023/11/28 10:41:18 packer-provisioner-shell plugin: args: []string{"packer-provisioner-shell"}
2023/11/28 10:41:18 packer-provisioner-shell plugin: Plugin address: unix /tmp/packer-plugin3722911293
2023/11/28 10:41:18 Received unix RPC address for /nix/store/18zjkk36212rn0g90h9a08ymi6ix45wc-packer-1.9.4/bin/packer: addr is /tmp/packer-plugin3722911293
2023/11/28 10:41:18 packer-provisioner-shell plugin: Waiting for connection...
2023/11/28 10:41:18 packer-provisioner-shell plugin: Serving a plugin connection...
2023/11/28 10:41:18 [INFO] Starting internal plugin packer-provisioner-shell
2023/11/28 10:41:18 Starting plugin: /nix/store/18zjkk36212rn0g90h9a08ymi6ix45wc-packer-1.9.4/bin/packer []string{"/nix/store/18zjkk36212rn0g90h9a08ymi6ix45wc-packer-1.9.4/bin/packer", "plugin", "packer-provisioner-shell"}
2023/11/28 10:41:18 Waiting for RPC address for: /nix/store/18zjkk36212rn0g90h9a08ymi6ix45wc-packer-1.9.4/bin/packer
2023/11/28 10:41:18 packer-provisioner-shell plugin: [INFO] Packer version: 1.9.4 [go1.21.4 linux amd64]
2023/11/28 10:41:18 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2023/11/28 10:41:18 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/greg/.packerconfig
2023/11/28 10:41:18 packer-provisioner-shell plugin: [WARN] Config file doesn't exist: /home/greg/.packerconfig
2023/11/28 10:41:18 packer-provisioner-shell plugin: [INFO] Setting cache directory: /home/greg/.cache/packer
2023/11/28 10:41:18 packer-provisioner-shell plugin: args: []string{"packer-provisioner-shell"}
2023/11/28 10:41:18 packer-provisioner-shell plugin: Plugin address: unix /tmp/packer-plugin1932103829
2023/11/28 10:41:18 Received unix RPC address for /nix/store/18zjkk36212rn0g90h9a08ymi6ix45wc-packer-1.9.4/bin/packer: addr is /tmp/packer-plugin1932103829
2023/11/28 10:41:18 packer-provisioner-shell plugin: Waiting for connection...
2023/11/28 10:41:18 packer-provisioner-shell plugin: Serving a plugin connection...
2023/11/28 10:41:18 [INFO] Starting external plugin /home/greg/.config/packer/plugins/github.com/hashicorp/vagrant/packer-plugin-vagrant_v1.1.1_x5.0_linux_amd64 start post-processor -packer-default-plugin-name-
2023/11/28 10:41:18 Starting plugin: /home/greg/.config/packer/plugins/github.com/hashicorp/vagrant/packer-plugin-vagrant_v1.1.1_x5.0_linux_amd64 []string{"/home/greg/.config/packer/plugins/github.com/hashicorp/vagrant/packer-plugin-vagrant_v1.1.1_x5.0_linux_amd64", "start", "post-processor", "-packer-default-plugin-name-"}
2023/11/28 10:41:18 Waiting for RPC address for: /home/greg/.config/packer/plugins/github.com/hashicorp/vagrant/packer-plugin-vagrant_v1.1.1_x5.0_linux_amd64
2023/11/28 10:41:18 Received unix RPC address for /home/greg/.config/packer/plugins/github.com/hashicorp/vagrant/packer-plugin-vagrant_v1.1.1_x5.0_linux_amd64: addr is /tmp/packer-plugin4240656217
2023/11/28 10:41:18 packer-plugin-vagrant_v1.1.1_x5.0_linux_amd64 plugin: 2023/11/28 10:41:18 Plugin address: unix /tmp/packer-plugin4240656217
2023/11/28 10:41:18 packer-plugin-vagrant_v1.1.1_x5.0_linux_amd64 plugin: 2023/11/28 10:41:18 Waiting for connection...
2023/11/28 10:41:18 packer-plugin-vagrant_v1.1.1_x5.0_linux_amd64 plugin: 2023/11/28 10:41:18 Serving a plugin connection...
2023/11/28 10:41:18 packer-plugin-vagrant_v1.1.1_x5.0_linux_amd64 plugin: 2023/11/28 10:41:18 [TRACE] starting post-processor -packer-default-plugin-name-
2023/11/28 10:41:18 [INFO] Starting external plugin /home/greg/.config/packer/plugins/github.com/hashicorp/vagrant/packer-plugin-vagrant_v1.1.1_x5.0_linux_amd64 start post-processor cloud
2023/11/28 10:41:18 Starting plugin: /home/greg/.config/packer/plugins/github.com/hashicorp/vagrant/packer-plugin-vagrant_v1.1.1_x5.0_linux_amd64 []string{"/home/greg/.config/packer/plugins/github.com/hashicorp/vagrant/packer-plugin-vagrant_v1.1.1_x5.0_linux_amd64", "start", "post-processor", "cloud"}
2023/11/28 10:41:18 Waiting for RPC address for: /home/greg/.config/packer/plugins/github.com/hashicorp/vagrant/packer-plugin-vagrant_v1.1.1_x5.0_linux_amd64
2023/11/28 10:41:18 Received unix RPC address for /home/greg/.config/packer/plugins/github.com/hashicorp/vagrant/packer-plugin-vagrant_v1.1.1_x5.0_linux_amd64: addr is /tmp/packer-plugin3566088937
2023/11/28 10:41:18 packer-plugin-vagrant_v1.1.1_x5.0_linux_amd64 plugin: 2023/11/28 10:41:18 Plugin address: unix /tmp/packer-plugin3566088937
2023/11/28 10:41:18 packer-plugin-vagrant_v1.1.1_x5.0_linux_amd64 plugin: 2023/11/28 10:41:18 Waiting for connection...
2023/11/28 10:41:18 packer-plugin-vagrant_v1.1.1_x5.0_linux_amd64 plugin: 2023/11/28 10:41:18 Serving a plugin connection...
2023/11/28 10:41:18 packer-plugin-vagrant_v1.1.1_x5.0_linux_amd64 plugin: 2023/11/28 10:41:18 [TRACE] starting post-processor cloud

  on sources/build.pkr.hcl line 69:
  (source code not available)

sources/build.pkr.hcl:72,22-35: Unsupported attribute; This object does not have
an attribute named "architecture".

Error: Failed preparing post-processor-block "vagrant-cloud" "upload"
2023/11/28 10:41:18 [INFO] (telemetry) Finalizing.

  on sources/build.pkr.hcl line 69:
  (source code not available)

sources/build.pkr.hcl:72,22-35: Unsupported attribute; This object does not have
an attribute named "architecture".


2023/11/28 10:41:18 waiting for all plugin processes to complete...
2023/11/28 10:41:18 /home/greg/.config/packer/plugins/github.com/hashicorp/vagrant/packer-plugin-vagrant_v1.1.1_x5.0_linux_amd64: plugin process exited
2023/11/28 10:41:18 /home/greg/.config/packer/plugins/github.com/hashicorp/vagrant/packer-plugin-vagrant_v1.1.1_x5.0_linux_amd64: plugin process exited
2023/11/28 10:41:18 /home/greg/.config/packer/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64: plugin process exited
2023/11/28 10:41:18 /nix/store/18zjkk36212rn0g90h9a08ymi6ix45wc-packer-1.9.4/bin/packer: plugin process exited
2023/11/28 10:41:18 /nix/store/18zjkk36212rn0g90h9a08ymi6ix45wc-packer-1.9.4/bin/packer: plugin process exited

@greg-hellings thanks for the detailed issued. This sounds like an unexpected bug for sure. Let me take a look at the provided info to see what I can figure out.

Hi @greg-hellings thanks again for your detailed issue. It was helpful in tracking down what is happening. Now I just need to understand why.

You are still seeing the bundled plugins warning referenced below because the build template is missing an entry for the virtualbox plugin. Oddly enough the plugin is not included in the outputted warning so you would not have any indication that it is the plugin causing the error.

Warning: Bundled plugins used

This template relies on the use of plugins bundled into the Packer binary.
The practice of bundling external plugins into Packer will be removed in an
upcoming version.

If you add the following required_plugin you will get rid of the bundle plugins warning entirely

   virtualbox = {
      source  = "github.com/hashicorp/virtualbox"
      version = "~> 1"
    }

Regarding the unsupported attribute error for architecture. That error is misleading. The attribute is indeed supported the issue is that the variable var.architecture is not valid. Looking at your template I see the variable name is var.arch.

If you change the name of the variable you will find things to work as expected. Please let me know if these two changes fix your issue.


As for why virtualbox is not displayed within the bundled plugins warning. I am looking into that still.

As for why virtualbox is not displayed within the bundled plugins warning. I am looking into that still.

Okay so this is a bug in Packer. Virtualbox should be listed as a known bundled plugin but it is not. This is why it is not reported in the bundled plugin warning.

This was exactly the issue, thanks for the quick turnaround!

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.