From 9bc0dfa3896e70a201e529f015dc735632993612 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 22 Jun 2015 14:50:25 -0700 Subject: [PATCH] builder/vmware: disable VNC before packaging --- builder/vmware/common/step_clean_vmx.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/builder/vmware/common/step_clean_vmx.go b/builder/vmware/common/step_clean_vmx.go index df7b42763..bf76f5863 100644 --- a/builder/vmware/common/step_clean_vmx.go +++ b/builder/vmware/common/step_clean_vmx.go @@ -55,6 +55,9 @@ func (s StepCleanVMX) Run(state multistep.StateBag) multistep.StepAction { vmxData[ide+"filename"] = "auto detect" } + ui.Message("Disabling VNC server...") + vmxData["remotedisplay.vnc.enabled"] = "FALSE" + // Rewrite the VMX if err := WriteVMX(vmxPath, vmxData); err != nil { state.Put("error", fmt.Errorf("Error writing VMX: %s", err))