hashicorp / packer-plugin-virtualbox

Packer plugin for VritualBox Builder
https://www.packer.io/docs/builders/virtualbox
Mozilla Public License 2.0
22 stars 37 forks source link

support platform-architecture #135

Closed ls-2018 closed 1 month ago

ls-2018 commented 1 month ago
packer build -only=virtualbox-iso.vm -var-file=os_pkrvars/ubuntu/ubuntu-22.04-aarch64.pkrvars.hcl ./packer_templates
==> virtualbox-iso.vm: Error creating VM: VBoxManage error: Oracle VM VirtualBox Command Line Management Interface Version 7.0.97
==> virtualbox-iso.vm: Copyright (C) 2005-2024 Oracle and/or its affiliates
==> virtualbox-iso.vm:
==> virtualbox-iso.vm: VBoxManage: error: Parameter --platform-architecture is required
==> virtualbox-iso.vm:
==> virtualbox-iso.vm: Usage - Create a new virtual machine:
==> virtualbox-iso.vm:
==> virtualbox-iso.vm:   VBoxManage createvm <--name=name> <--platform-architecture= x86 | arm>
==> virtualbox-iso.vm:       [--basefolder=basefolder] [--default] [--groups=group-ID [,...]]
==> virtualbox-iso.vm:       [--ostype=ostype] [--register] [--uuid=uuid] [--cipher=cipher]
==> virtualbox-iso.vm:       [--password-id=password-id] [--password=file]
==> virtualbox-iso.vm: Deleting output directory...
Build 'virtualbox-iso.vm' errored after 1 second 175 milliseconds: Error creating VM: VBoxManage error: Oracle VM VirtualBox Command Line Management Interface Version 7.0.97
Copyright (C) 2005-2024 Oracle and/or its affiliates

VBoxManage: error: Parameter --platform-architecture is required

Usage - Create a new virtual machine:

  VBoxManage createvm <--name=name> <--platform-architecture= x86 | arm>
      [--basefolder=basefolder] [--default] [--groups=group-ID [,...]]
      [--ostype=ostype] [--register] [--uuid=uuid] [--cipher=cipher]
      [--password-id=password-id] [--password=file]
nywilken commented 1 month ago

Thanks for opening up this request. I am going to move it to the appropriate plugin repository.

nywilken commented 1 month ago

Can you provide information on the version of Virtualbox you are running an a sample configuration to reproduce the issue please. I am working on releasing a new version of the plugin for Virtualbox 7.0 but I don't see platform-architecture as a parameter for vboxmanage.

Kienan6 commented 1 month ago

Adding to this - seeing the same thing on vb 7.1.0 beta release for mac arm support.