machine-drivers / docker-machine-driver-xhyve

docker-machine/minikube/minishift driver plugin for xhyve/hyperkit (native macOS hypervisor.framework)
https://godoc.org/github.com/machine-drivers/docker-machine-driver-xhyve
BSD 3-Clause "New" or "Revised" License
888 stars 74 forks source link

invalid flag argument in current master #59

Closed aybabtme closed 8 years ago

aybabtme commented 8 years ago

I've been trying for a while to get this working, but it fails to find the -F flag (introduced in an unmerged PR against xhyve):

$ docker-machine -D create -d xhyve xhyve-dev
...
(xhyve-dev) DBG | operation not supported by device
(xhyve-dev) DBG | xhyve: illegal option -- F
(xhyve-dev) DBG | Usage: xhyve [-behuwxMACHPWY] [-c vcpus] [-g <gdb port>] [-l <lpc>]
(xhyve-dev) DBG |              [-m mem] [-p vcpu:hostcpu] [-s <pci>] [-U uuid] -f <fw>
...

The full output: debug.txt

zchee commented 8 years ago

@aybabtme Thanks create a issue :)

How did you install the docker-machine-driver-xhyve?

aybabtme commented 8 years ago

like described in the README :)

$ go get -u -v -f github.com/zchee/docker-machine-driver-xhyve
$ sudo chown root:wheel $GOPATH/bin/docker-machine-driver-xhyve
$ sudo chmod u+s $GOPATH/bin/docker-machine-driver-xhyve
zchee commented 8 years ago

@aybabtme OK :)

Second question, Do you have xhyve binary?

e.g.

which -a xhyve
zchee commented 8 years ago

@aybabtme Sorry, Could you try

rm -f $(which docker-machine-driver-xhyve)
go get -u -d github.com/zchee/docker-machine-driver-xhyve
cd $GOPATH/src/github.com/zchee/docker-machine-driver-xhyve
make
make install
zchee commented 8 years ago

@aybabtme Oh, I understand.

Please

# Need Go 1.5 vendoring support
$ export GO15VENDOREXPERIMENT=1

$ go get -u -v -f github.com/zchee/docker-machine-driver-xhyve
$ sudo chown root:wheel $GOPATH/bin/docker-machine-driver-xhyve
$ sudo chmod u+s $GOPATH/bin/docker-machine-driver-xhyve
aybabtme commented 8 years ago

export GO15VENDOREXPERIMENT=1 that was it! thanks @zchee

zchee commented 8 years ago

@aybabtme :tada:

Close issue.