From 5852bd7cd77d85128f326a19b98c09ea0ba40504 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 22 Jun 2015 17:56:35 -0700 Subject: [PATCH] builder/qemu: default acceleration to tcg on Windows [GH-2284] --- builder/qemu/builder.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/builder/qemu/builder.go b/builder/qemu/builder.go index 46b9cabd3..4ac22b59b 100644 --- a/builder/qemu/builder.go +++ b/builder/qemu/builder.go @@ -7,6 +7,7 @@ import ( "os" "os/exec" "path/filepath" + "runtime" "strings" "time" @@ -153,7 +154,11 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) { } if b.config.Accelerator == "" { - b.config.Accelerator = "kvm" + if runtime.GOOS == "windows" { + b.config.Accelerator = "tcg" + } else { + b.config.Accelerator = "kvm" + } } if b.config.HTTPPortMin == 0 {