Skip to content

Commit

Permalink
Ensures that we get the same IP between start/delete
Browse files Browse the repository at this point in the history
The xhyve driver added support for the UUID flag in xhyve
machine-drivers/docker-machine-driver-xhyve#133

Fixes kubernetes#516
  • Loading branch information
r2d4 committed Sep 19, 2016
1 parent 6d95c0f commit 3ef5e4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/minikube/cluster/cluster_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -64,5 +67,6 @@ func createXhyveHost(config MachineConfig) *xhyveDriver {
DiskSize: int64(config.DiskSize),
Virtio9p: true,
Virtio9pFolder: "/Users",
UUID: xhyveUUID,
}
}

0 comments on commit 3ef5e4a

Please sign in to comment.