builder/vmware: set proper default disk type for esx

This commit is contained in:
Mitchell Hashimoto 2013-11-07 20:57:05 -08:00
parent 148d7c06ab
commit a4b54f1cf3
1 changed files with 4 additions and 0 deletions

View File

@ -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 {