From cb75796389b7bacf759b62c4b5a7e77a785bdb36 Mon Sep 17 00:00:00 2001 From: Victor Ronin Date: Wed, 23 Aug 2017 12:44:46 -0700 Subject: [PATCH] Show a message why VM export was skipped while building on VMWare Fusion/Workstation --- builder/vmware/iso/step_export.go | 1 + website/source/docs/builders/vmware-iso.html.md | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/builder/vmware/iso/step_export.go b/builder/vmware/iso/step_export.go index 3d055ddb4..c0d39c76f 100644 --- a/builder/vmware/iso/step_export.go +++ b/builder/vmware/iso/step_export.go @@ -45,6 +45,7 @@ func (s *StepExport) Run(state multistep.StateBag) multistep.StepAction { } if c.RemoteType != "esx5" || s.Format == "" { + ui.Say("Skipping export of virtual machine (export is allowed only for ESXi and the format needs to be specified)...") return multistep.ActionContinue } diff --git a/website/source/docs/builders/vmware-iso.html.md b/website/source/docs/builders/vmware-iso.html.md index 478c1a0b0..4d00965b7 100644 --- a/website/source/docs/builders/vmware-iso.html.md +++ b/website/source/docs/builders/vmware-iso.html.md @@ -478,7 +478,8 @@ modify as well: - `format` (string) - Either "ovf", "ova" or "vmx", this specifies the output format of the exported virtual machine. This defaults to "ovf". - Before using this option, you need to install `ovftool`. + Before using this option, you need to install `ovftool`. This option + works currently only with option remote_type set to "esx5". ### VNC port discovery