From e4c2216642ef4e34b8d21d88c6c947222bfc131b Mon Sep 17 00:00:00 2001 From: Henk Date: Sun, 4 Nov 2018 12:20:53 +0100 Subject: [PATCH 1/2] qemu: Add "hvf" as a libvirt driver To prevent post-processing from failing when running on macOS with the acceleratir set to "hvf". --- post-processor/vagrant/libvirt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post-processor/vagrant/libvirt.go b/post-processor/vagrant/libvirt.go index c20e8473b..60e274a57 100644 --- a/post-processor/vagrant/libvirt.go +++ b/post-processor/vagrant/libvirt.go @@ -39,7 +39,7 @@ func (p *LibVirtProvider) Process(ui packer.Ui, artifact packer.Artifact, dir st // Convert domain type to libvirt driver var driver string switch domainType { - case "none", "tcg": + case "none", "tcg", "hvf": driver = "qemu" case "kvm": driver = domainType From 8d807ba4bb0f1bd57604e60d6ba412d72bf745d7 Mon Sep 17 00:00:00 2001 From: Rickard von Essen Date: Sun, 4 Nov 2018 14:32:40 +0100 Subject: [PATCH 2/2] vagrant: Add some docs about supported accelerators in libvirt provider --- website/source/docs/post-processors/vagrant.html.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/website/source/docs/post-processors/vagrant.html.md b/website/source/docs/post-processors/vagrant.html.md index 024f8fbb6..c06c11fc2 100644 --- a/website/source/docs/post-processors/vagrant.html.md +++ b/website/source/docs/post-processors/vagrant.html.md @@ -142,3 +142,8 @@ The following Docker input artifacts are supported: - `docker-import` - `docker-tag` - `docker-push` + +### QEMU/libvirt + +The `libvirt` provider supports QEMU artifacts built using any these accelerators: none, +kvm, tcg, or hvf.