Skip to content

Commit

Permalink
Merge pull request #517 from r2d4/uuid-xhyve
Browse files Browse the repository at this point in the history
Ensures that we get the same IP between start/delete
  • Loading branch information
dlorenc committed Aug 24, 2016
2 parents 59ad726 + 7570ae1 commit 761668e
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 761668e

Please sign in to comment.