builder/vmware: disable VNC before packaging

This commit is contained in:
Mitchell Hashimoto 2015-06-22 14:50:25 -07:00
parent 1aa1399e85
commit 9bc0dfa389
1 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,9 @@ func (s StepCleanVMX) Run(state multistep.StateBag) multistep.StepAction {
vmxData[ide+"filename"] = "auto detect" vmxData[ide+"filename"] = "auto detect"
} }
ui.Message("Disabling VNC server...")
vmxData["remotedisplay.vnc.enabled"] = "FALSE"
// Rewrite the VMX // Rewrite the VMX
if err := WriteVMX(vmxPath, vmxData); err != nil { if err := WriteVMX(vmxPath, vmxData); err != nil {
state.Put("error", fmt.Errorf("Error writing VMX: %s", err)) state.Put("error", fmt.Errorf("Error writing VMX: %s", err))