Fixed inconsistency between vagrant-libvirt driver and packer QEMU accelerator
This commit is contained in:
parent
ac04315710
commit
12ef9bf8af
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue