From 12ef9bf8afe10b1dacb5b6b89546854a8ff5edf4 Mon Sep 17 00:00:00 2001 From: lxb Date: Thu, 3 Nov 2016 22:55:55 +1100 Subject: [PATCH] Fixed inconsistency between vagrant-libvirt driver and packer QEMU accelerator --- post-processor/vagrant/libvirt.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/post-processor/vagrant/libvirt.go b/post-processor/vagrant/libvirt.go index 39a4f18b0..1afdcac45 100644 --- a/post-processor/vagrant/libvirt.go +++ b/post-processor/vagrant/libvirt.go @@ -38,7 +38,9 @@ func (p *LibVirtProvider) Process(ui packer.Ui, artifact packer.Artifact, dir st // Convert domain type to libvirt driver var driver string switch domainType { - case "kvm", "qemu": + case "none", "tcg": + driver = "qemu" + case "kvm": driver = domainType default: return "", nil, fmt.Errorf("Unknown libvirt domain type: %s", domainType)