hashicorp / packer-plugin-virtualbox

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

builder/iso: Use `--audio-driver` instead of the deprecated `--audio` parameter #119

Closed jlduran closed 1 month ago

jlduran commented 10 months ago

--audio is deprecated, use --audio-driver instead.

nywilken commented 10 months ago

Good to know, thanks! We'll try to take a look for the next release.

Do you have a link to the documentation where the audio flag was deprecated?

It would be nice to include that in the documentation, release notes.

jlduran commented 10 months ago

Do you have a link to the documentation where the audio flag was deprecated?

Yes! https://www.virtualbox.org/wiki/Changelog#v6

Audio: The "--audio" option in VBoxManage is now marked as deprecated; please use "--audio-driver" and "--audio-enabled" instead. This will allow more flexibility when changing the driver and/or controlling the audio functionality

lorengordon commented 1 month ago

@nywilken @jlduran FYI, this breaks builds using VirtualBox 6.1.x, which is still supported and only offers --audio. See #139

jlduran commented 1 month ago

@nywilken @jlduran FYI, this breaks builds using VirtualBox 6.1.x, which is still supported and only offers --audio. See #139

Ah... sorry, I hate when that happens. But, VirtualBox 6.1 has an EOL date of 2024/01. I would suggest pinning the plugin to the latest working version (i.e. 1.0.5).

lorengordon commented 1 month ago

Yeah, that's what I did. It's frustrating because the Ubuntu repos still only package Virtualbox 6.1, so there is no easy/default path to use 7.0. :( Where do you see the EOL for 6.1? The issue I linked was claiming that it is still supported...

jlduran commented 1 month ago

Where do you see the EOL for 6.1? The issue I linked was claiming that it is still supported...

https://www.virtualbox.org/wiki/Download_Old_Builds

Stromweld commented 1 month ago

you can also add the virtualbox repo for debian/ubuntu, rhel, etc... and upgrade to virtualbox 7 through your package manager. https://www.virtualbox.org/wiki/Linux_Downloads