You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Add a warning about the differences between using QEMU arguments from a command line versus including them as an argument in Packer. Specifically, certain special characters like semi-colons require escaping when used on the command line. Packer passes arguments directly to the QEMU executable without involving the special character interpretation of the shell. Therefore, attempts to escape these characters as you would on the command line can actually result in a bad argument being passed.
A likely small, but very important, use-case for adding an additional QEMU argument is performing cloud-init by serving files from an HTTP server. The cloud-init docs directly mention this use-case and provide an example for starting QEMU.
It shows the -smbios argument as partially quoted to avoid the interpretation of the semi-colon as a break in the command. From a shell this is necessary but from Packer it will cause the argument to essentially be rejected, only silently. So it may be very hard to notice the error.
The text was updated successfully, but these errors were encountered:
Please search the existing issues for relevant feature requests, and use the
reaction feature
(https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/)
to add upvotes to pre-existing requests.
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
Add a warning about the differences between using QEMU arguments from a command line versus including them as an argument in Packer. Specifically, certain special characters like semi-colons require escaping when used on the command line. Packer passes arguments directly to the QEMU executable without involving the special character interpretation of the shell. Therefore, attempts to escape these characters as you would on the command line can actually result in a bad argument being passed.
A likely small, but very important, use-case for adding an additional QEMU argument is performing cloud-init by serving files from an HTTP server. The cloud-init docs directly mention this use-case and provide an example for starting QEMU.
https://cloudinit.readthedocs.io/en/latest/tutorial/qemu.html#launch-a-virtual-machine-with-our-user-data
It shows the
-smbios
argument as partially quoted to avoid the interpretation of the semi-colon as a break in the command. From a shell this is necessary but from Packer it will cause the argument to essentially be rejected, only silently. So it may be very hard to notice the error.The text was updated successfully, but these errors were encountered: