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

Could not create vmnet interface, permission denied or no entitlement? #85

Closed jmreicha closed 8 years ago

jmreicha commented 8 years ago

I am using the brew installed version of the xhyve driver, running the following command to create an xhyve machine.

docker-machine create --driver xhyve --xhyve-experimental-nfs-share test

And getting the following output (and error):

docker-machine create --driver xhyve --xhyve-experimental-nfs-share test

Running pre-create checks...
Creating machine...
(test) Copying /Users/josh/.docker/machine/cache/boot2docker.iso to /Users/josh/.docker/machine/machines/test/boot2docker.iso...
(test) Creating VM...
(test) Extracting vmlinuz64 and initrd.img from boot2docker.iso...
(test) /dev/disk2                                           /Users/josh/.docker/machine/machines/test/b2d-image
(test) "disk2" unmounted.
(test) "disk2" ejected.
(test) Generating 20000MB disk image...
(test) created: /Users/josh/.docker/machine/machines/test/root-volume.sparsebundle
(test) Creating SSH key...
(test) Fix file permission...
(test) Generate UUID...
(test) Convert UUID to MAC address...
(test) Starting test...
(test) Waiting for VM to come online...
(test) Waiting on a pseudo-terminal to be ready... virtio_net: Could not create vmnet interface, permission denied or no entitlement?

Error creating machine: Error in driver during machine creation: Machine didn't return an IP after 120 seconds, aborting

When I try to bring it up again after creating.

Starting "test"...
(test) Waiting for VM to come online...
(test) Waiting on a pseudo-terminal to be ready... done
(test) Hook up your terminal emulator to /dev/ttys010 in order to connect to your VM
Machine didn't return an IP after 120 seconds, aborting

I am using binaries from the latest Docker toolbox release, docker-machine version 0.5.6, build 61388e9 with VBox 5.0.12.

jmreicha commented 8 years ago

I moved /etc/exports to /etc/exports.backupand then recreated an empty/etc/exports`.

The second time I tried to create the VM it worked.

Great work on this driver so far!

nhooey commented 7 years ago

Deleting /etc/exports and recreating an empty file didn't work for me.

I created this Stack Overflow question: xhyve error: virtio_net: Could not create vmnet interface, permission denied or no entitlement?