From a4b54f1cf385244765499a8305e67d80f67a4e36 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 7 Nov 2013 20:57:05 -0800 Subject: [PATCH] builder/vmware: set proper default disk type for esx --- builder/vmware/builder.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/builder/vmware/builder.go b/builder/vmware/builder.go index 4ad033496..1e1a6af52 100644 --- a/builder/vmware/builder.go +++ b/builder/vmware/builder.go @@ -100,6 +100,10 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) { if b.config.DiskTypeId == "" { // Default is growable virtual disk split in 2GB files. b.config.DiskTypeId = "1" + + if b.config.RemoteType == "esx5" { + b.config.DiskTypeId = "zeroedthick" + } } if b.config.FloppyFiles == nil {