From d1b41f2f146f3b9ab1836a01c9dc35bc0f891f84 Mon Sep 17 00:00:00 2001 From: Ben Langfeld Date: Thu, 13 Mar 2014 23:33:35 -0300 Subject: [PATCH] Pass export_options individually to VBoxManage export --- builder/virtualbox/common/step_export.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/builder/virtualbox/common/step_export.go b/builder/virtualbox/common/step_export.go index c17f8cd0b..6967af1fe 100644 --- a/builder/virtualbox/common/step_export.go +++ b/builder/virtualbox/common/step_export.go @@ -6,6 +6,7 @@ import ( "github.com/mitchellh/packer/packer" "log" "path/filepath" + "strings" "time" ) @@ -51,9 +52,10 @@ func (s *StepExport) Run(state multistep.StateBag) multistep.StepAction { vmName, "--output", outputPath, - s.ExportOpts, } + command = append(command, strings.Fields(s.ExportOpts)...) + ui.Say("Exporting virtual machine...") err := driver.VBoxManage(command...) if err != nil {