Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
e91421b1
Commit
e91421b1
authored
Jun 23, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
website: update docs for virtualbox_version_file
parent
85c83cbf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
builder/virtualbox/step_upload_version.go
builder/virtualbox/step_upload_version.go
+6
-0
website/source/docs/builders/virtualbox.html.markdown
website/source/docs/builders/virtualbox.html.markdown
+6
-0
No files found.
builder/virtualbox/step_upload_version.go
View file @
e91421b1
...
@@ -5,6 +5,7 @@ import (
...
@@ -5,6 +5,7 @@ import (
"fmt"
"fmt"
"github.com/mitchellh/multistep"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
"github.com/mitchellh/packer/packer"
"log"
)
)
// This step uploads a file containing the VirtualBox version, which
// This step uploads a file containing the VirtualBox version, which
...
@@ -17,6 +18,11 @@ func (s *stepUploadVersion) Run(state map[string]interface{}) multistep.StepActi
...
@@ -17,6 +18,11 @@ func (s *stepUploadVersion) Run(state map[string]interface{}) multistep.StepActi
driver
:=
state
[
"driver"
]
.
(
Driver
)
driver
:=
state
[
"driver"
]
.
(
Driver
)
ui
:=
state
[
"ui"
]
.
(
packer
.
Ui
)
ui
:=
state
[
"ui"
]
.
(
packer
.
Ui
)
if
config
.
VBoxVersionFile
==
""
{
log
.
Println
(
"VBoxVersionFile is empty. Not uploading."
)
return
multistep
.
ActionContinue
}
version
,
err
:=
driver
.
Version
()
version
,
err
:=
driver
.
Version
()
if
err
!=
nil
{
if
err
!=
nil
{
state
[
"error"
]
=
fmt
.
Errorf
(
"Error reading version for metadata upload: %s"
,
err
)
state
[
"error"
]
=
fmt
.
Errorf
(
"Error reading version for metadata upload: %s"
,
err
)
...
...
website/source/docs/builders/virtualbox.html.markdown
View file @
e91421b1
...
@@ -129,6 +129,12 @@ Optional:
...
@@ -129,6 +129,12 @@ Optional:
where the
`Name`
variable is replaced with the VM name. More details on how
where the
`Name`
variable is replaced with the VM name. More details on how
to use
`VBoxManage`
are below.
to use
`VBoxManage`
are below.
*
`virtualbox_version_file`
(string) - The path within the virtual machine
to upload a file that contains the VirtualBox version that was used to
create the machine. This information can be useful for provisioning.
By default this is ".vbox_version", which will generally upload it into
the home directory. If explicitly empty, the version file won't be uploaded.
*
`vm_name`
(string) - This is the name of the VMX file for the new virtual
*
`vm_name`
(string) - This is the name of the VMX file for the new virtual
machine, without the file extension. By default this is "packer".
machine, without the file extension. By default this is "packer".
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment