-
Notifications
You must be signed in to change notification settings - Fork 48
Description
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 "me too" comments, 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.
Description
Currently it's only possible to customize the QEMU command line via the qemuargs option (documented under https://developer.hashicorp.com/packer/integrations/hashicorp/qemu/latest/components/builder/qemu#optional).
By using this some Packer generated command line switches are omitted (e.g. disks).
This is especially annoying when an additional drive needs to be added together with the CD configuration (https://developer.hashicorp.com/packer/integrations/hashicorp/qemu/latest/components/builder/qemu#cd-configuration) for cloud init. Since CD ROM ISO generated on the fly it's impossible to obtain this path to the ISO and mount it via qemuargs.
Proposal of this feature request is to add an additional configuration parameter which is appended to the Packer generated QEMU command line as is.
Use Case(s)
- Adding an additional drive
- Customize other QEMU behavior
Potential configuration
qemu_additional_args = [
["-drive", "file=/tmp/my-additional-drive.qcow,if=virtio"]
]