-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QEMU builder with HVF accelerator support #174
Comments
Hi @darkn3rd, I need some clarification, are you using Packer to build VM images? The samples you provided are for Vagrant only, so I wonder if your issue would not be a vagrant-qemu-provider instead? Regarding KVM, if you are looking at the first sentence of the linked documentation, it's a bit misleading honestly. The qemu builder will create qemu disk images that you can then use to run VMs, the hypervisor in the background is irrelevant, anything that qemu supports we should too. Have you looked at the |
The way the documentation is written, it seemed that only KVM accelerator was supported and HVF (both Intel and Apple Silicon) was not supported. So it would be nice to have an HVF solution path. I wanted Vagrant as an example consumer of the images, as there are not many easy paths for this, other than the plugin, or using xhyve, or maybe docker-machine (or minikube) with an xhyve or a mobykit driver. Docker Desktop uses HVF, but they use it as an embedded solution without support path to inject alternative images or for non-Docker-Desktop usages. |
Hi @darkn3rd, There is a documented option in the builder: Regarding the image itself, since it's a disk image (plus eventually some extra files like In the meantime for this plugin, I suspect the culprit here is the I'll open a PR to change this sentence, but I'm not sure what else there is we can do here, if you have a suggestion I'd be happy to hear, and if you have the time, feel free to open a PR to update the documentation, we'll happily review! |
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 HVF (intel and arm64) support for QEMU. The current version v1.1.0 according to the docs seems to only support KVM (ref)
Use Case(s)
There are a few images with qemu support on Vagrant Cloud, but it is not common, likely due to there being no support. Using the vagrant-qemu plugging, I have run systems using hvf with
perk/ubuntu-2204-arm64
and also used the emulator q35 to run images for x86_64 withgeneric/ubuntu2204
. but there seems to be no easy way to build the images.Example from a tutorial:
Potential configuration
Potential References
The text was updated successfully, but these errors were encountered: