Permalink
Browse files

Added some instructions and fixed the Makefile.

  • Loading branch information...
rickard-von-essen committed Feb 14, 2014
1 parent 3cf9c4c commit 7e3e598dbaa1acb108093fc0cfd69531da6d2fb3
Showing with 15 additions and 6 deletions.
  1. +2 −2 .travis.yml
  2. +1 −1 Makefile
  3. +9 −3 README.md
  4. BIN imgs/parallels_small.png
  5. +3 −0 iso/step_create_vm.go
View
@@ -6,8 +6,8 @@ go:
install: make deps
script:
- - go test ./builder-parallels-iso/...
- - go test -race ./builder-parallels-iso/...
+ - go test ./...
+ - go test -race ./...
matrix:
allow_failures:
View
@@ -26,7 +26,7 @@ format:
go fmt ./...
test: deps
- @echo "$(OK_COLOR)==> Testing Packer...$(NO_COLOR)"
+ @echo "$(OK_COLOR)==> Testing Parallels Packer Build plugin ...$(NO_COLOR)"
go test ./...
.PHONY: all clean deps format test updatedeps
View
@@ -1,9 +1,12 @@
# Packer Parallels Plugin
-This is a custom builder plugin for [Packer](http://www.packer.io/) using [Parallels](http://www.parallels.com/).
+This is a custom builder plugin for [Packer](http://www.packer.io/) using [Parallels Desktop for Mac](http://www.parallels.com/products/desktop/).
**Current status: Alpha - BROKEN!**
+![Parallels Logo](imgs/parallels_small.png)
+
+
## Status
This is currently under development. Don't expect it to work. The only reason to run this plugin is if you wont to contribute to its development.
@@ -20,10 +23,11 @@ Install packer and add the following to ```~/.packerconfig```
}
}
```
+Then download and install this plugin. Since this depends on [Go Parallelles SDK - C API Wrapper](https://github.com/rickard-von-essen/goprlapi) which in turn requires [Parallels Virtualization SDK 9 for Mac](http://download.parallels.com//desktop/v9/pde.hf1/ParallelsVirtualizationSDK-9.0.24172.951362.dmg), download and install it first.
```
cd $GOPATH/src && git clone https://github.com/rickard-von-essen/packer-parallels
-cd packer-parallels
+cd github.com/rickard-von-essen/packer-parallels
go get -u github.com/mitchellh/gox
make
```
@@ -36,4 +40,6 @@ If you have any improvments open a pull request at [github](https://github.com/r
## License
-This code is distributed under the MIT license, see _LICENSE_.
+This code is distributed under the MIT license, see _LICENSE_.
+
+© 2014 Rickard von Essen
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -5,6 +5,7 @@ import (
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
parallelscommon "github.com/rickard-von-essen/packer-parallels/common"
+ "path/filepath"
)
// This step creates the actual virtual machine.
@@ -21,12 +22,14 @@ func (s *stepCreateVM) Run(state multistep.StateBag) multistep.StepAction {
ui := state.Get("ui").(packer.Ui)
name := config.VMName
+ path := filepath.Join(".", config.OutputDir) //, fmt.Sprintf("%s.pvm", name)
commands := make([][]string, 3)
commands[0] = []string{
"create", name,
"--ostype", config.GuestOSType,
"--distribution", config.GuestOSDistribution,
+ "--dst", path,
}
commands[1] = []string{"set", name, "--cpus", "1"}
commands[2] = []string{"set", name, "--memsize", "512"}

0 comments on commit 7e3e598

Please sign in to comment.