From 2a04f49bcae7ddaa2950bfe658e13e6531e22087 Mon Sep 17 00:00:00 2001 From: Sean Mackrory Date: Fri, 6 Sep 2013 19:08:06 -0700 Subject: [PATCH] Using the vm_name parameter to name OVA/OVF files and their attachments --- builder/virtualbox/step_export.go | 2 +- website/source/docs/builders/virtualbox.html.markdown | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/virtualbox/step_export.go b/builder/virtualbox/step_export.go index 001aac89c..fd7282c67 100644 --- a/builder/virtualbox/step_export.go +++ b/builder/virtualbox/step_export.go @@ -50,7 +50,7 @@ func (s *stepExport) Run(state multistep.StateBag) multistep.StepAction { } // Export the VM to an OVF - outputPath := filepath.Join(config.OutputDir, "packer."+config.Format) + outputPath := filepath.Join(config.OutputDir, vmName+"."+config.Format) command = []string{ "export", diff --git a/website/source/docs/builders/virtualbox.html.markdown b/website/source/docs/builders/virtualbox.html.markdown index c4cbe6a39..75e6b1943 100644 --- a/website/source/docs/builders/virtualbox.html.markdown +++ b/website/source/docs/builders/virtualbox.html.markdown @@ -191,7 +191,7 @@ Optional: By default this is ".vbox_version", which will generally upload it into the home directory. -* `vm_name` (string) - This is the name of the VMX file for the new virtual +* `vm_name` (string) - This is the name of the OVF file for the new virtual machine, without the file extension. By default this is "packer-BUILDNAME", where "BUILDNAME" is the name of the build.