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
984b8835
Commit
984b8835
authored
Sep 08, 2014
by
Rickard von Essen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1468 from rickard-von-essen/issue_1466
parallels-iso: allow absolute output directory.
parents
a23eb751
365b44c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
builder/parallels/iso/step_create_vm.go
builder/parallels/iso/step_create_vm.go
+2
-4
No files found.
builder/parallels/iso/step_create_vm.go
View file @
984b8835
...
...
@@ -2,10 +2,10 @@ package iso
import
(
"fmt"
"github.com/mitchellh/multistep"
parallelscommon
"github.com/mitchellh/packer/builder/parallels/common"
"github.com/mitchellh/packer/packer"
"path/filepath"
)
// This step creates the actual virtual machine.
...
...
@@ -21,15 +21,13 @@ func (s *stepCreateVM) Run(state multistep.StateBag) multistep.StepAction {
config
:=
state
.
Get
(
"config"
)
.
(
*
config
)
driver
:=
state
.
Get
(
"driver"
)
.
(
parallelscommon
.
Driver
)
ui
:=
state
.
Get
(
"ui"
)
.
(
packer
.
Ui
)
name
:=
config
.
VMName
path
:=
filepath
.
Join
(
"."
,
config
.
OutputDir
)
commands
:=
make
([][]
string
,
8
)
commands
[
0
]
=
[]
string
{
"create"
,
name
,
"--distribution"
,
config
.
GuestOSType
,
"--dst"
,
path
,
"--dst"
,
config
.
OutputDir
,
"--vmtype"
,
"vm"
,
}
commands
[
1
]
=
[]
string
{
"set"
,
name
,
"--cpus"
,
"1"
}
...
...
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