From 3ef5e4abe02104a2336b63c165395dafd8c48d21 Mon Sep 17 00:00:00 2001 From: Matt Rickard Date: Wed, 24 Aug 2016 11:27:46 -0700 Subject: [PATCH] Ensures that we get the same IP between start/delete The xhyve driver added support for the UUID flag in xhyve https://github.com/zchee/docker-machine-driver-xhyve/pull/133 Fixes https://github.com/kubernetes/minikube/issues/516 --- pkg/minikube/cluster/cluster_darwin.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/minikube/cluster/cluster_darwin.go b/pkg/minikube/cluster/cluster_darwin.go index 286a0585ab99..1e6412d60551 100644 --- a/pkg/minikube/cluster/cluster_darwin.go +++ b/pkg/minikube/cluster/cluster_darwin.go @@ -22,6 +22,9 @@ import ( "k8s.io/minikube/pkg/minikube/constants" ) +// Ensures that we get assigned the same IP across deletes/starts +const xhyveUUID = "57FD2012-FA4A-4FF7-AEFF-26E1A1D76847" + func createVMwareFusionHost(config MachineConfig) drivers.Driver { d := vmwarefusion.NewDriver(constants.MachineName, constants.Minipath).(*vmwarefusion.Driver) d.Boot2DockerURL = config.GetISOFileURI() @@ -64,5 +67,6 @@ func createXhyveHost(config MachineConfig) *xhyveDriver { DiskSize: int64(config.DiskSize), Virtio9p: true, Virtio9pFolder: "/Users", + UUID: xhyveUUID, } }