Commit e14b00c8 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/virtualbox: Look for virtualbox on the path

parent d31d5436
......@@ -6,6 +6,7 @@ import (
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
"log"
"os/exec"
)
const BuilderId = "mitchellh.virtualbox"
......@@ -73,7 +74,11 @@ func (b *Builder) Cancel() {
}
func (b *Builder) newDriver() (Driver, error) {
vboxmanagePath := "VBoxManage"
vboxmanagePath, err := exec.LookPath("VBoxManage")
if err != nil {
return nil, err
}
driver := &VBox42Driver{vboxmanagePath}
if err := driver.Verify(); err != nil {
return nil, err
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment