diff --git a/builder/virtualbox/builder.go b/builder/virtualbox/builder.go index 6c620a357..c082b8ba9 100644 --- a/builder/virtualbox/builder.go +++ b/builder/virtualbox/builder.go @@ -27,6 +27,7 @@ type config struct { BootCommand []string `mapstructure:"boot_command"` DiskSize uint `mapstructure:"disk_size"` FloppyFiles []string `mapstructure:"floppy_files"` + Format string `mapstructure:"format"` GuestAdditionsPath string `mapstructure:"guest_additions_path"` GuestAdditionsURL string `mapstructure:"guest_additions_url"` GuestAdditionsSHA256 string `mapstructure:"guest_additions_sha256"` @@ -48,7 +49,6 @@ type config struct { VBoxVersionFile string `mapstructure:"virtualbox_version_file"` VBoxManage [][]string `mapstructure:"vboxmanage"` VMName string `mapstructure:"vm_name"` - Format string `mapstructure:"format"` RawBootWait string `mapstructure:"boot_wait"` RawSingleISOUrl string `mapstructure:"iso_url"` diff --git a/website/source/docs/builders/virtualbox.html.markdown b/website/source/docs/builders/virtualbox.html.markdown index 409ce8dfc..b655c893a 100644 --- a/website/source/docs/builders/virtualbox.html.markdown +++ b/website/source/docs/builders/virtualbox.html.markdown @@ -82,6 +82,9 @@ Optional: be attached. The files listed in this configuration will all be put into the root directory of the floppy disk; sub-directories are not supported. +* `format` (string) - Either "ovf" or "ova", this specifies the output + format of the exported virtual machine. This defaults to "ovf". + * `guest_additions_path` (string) - The path on the guest virtual machine where the VirtualBox guest additions ISO will be uploaded. By default this is "VBoxGuestAdditions.iso" which should upload into the login directory