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
Packer's virtualbox-ovf is not compatible with the latest (today) Ubuntu 22.04 Jammy cloud image when mounting the cd_files ISO file. When the Ubuntu cloud image is imported into VirtualBox, the IDE controller name is just "IDE" and not "IDE Controller" which is hardcoded in the packer virtualbox-ovf plugin.
If I inspect the imported Ubuntu OVA with vboxmanage list vms -l you can see the storage controller name is just "IDE":
Storage Controller Name (0): IDE
Storage Controller Type (0): PIIX4
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0): 2
Storage Controller Port Count (0): 2
Storage Controller Bootable (0): on
This issue was originally opened by @Jamie- in https://github.com/hashicorp/packer/issues/12340 and has been migrated to this repository. The original issue description is below.
Community Note
Overview of the Issue
Packer's
virtualbox-ovf
is not compatible with the latest (today) Ubuntu 22.04 Jammy cloud image when mounting thecd_files
ISO file. When the Ubuntu cloud image is imported into VirtualBox, the IDE controller name is just "IDE" and not "IDE Controller" which is hardcoded in the packer virtualbox-ovf plugin.If I inspect the imported Ubuntu OVA with
vboxmanage list vms -l
you can see the storage controller name is just "IDE":Whereas packer hardcodes the storage controller name to "IDE Controller", which I think is here: https://github.com/hashicorp/packer-plugin-virtualbox/blob/main/builder/virtualbox/common/step_attach_isos.go#L107
I tried adding a vboxmanage command to rename the controller but the CD image ISO is mounted in an earlier step to vboxmanage so this doesn't help:
Reproduction Steps
Grab the template below, create a directory
vm_data
, create any random file in it, and start a packer buildPacker version
Simplified Packer Template
Operating system and Environment details
Host OS is Ubuntu 22.04 more details below:
Log Fragments and crash.log files
Set the env var
PACKER_LOG=1
for maximum log detail.