-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minikube should return same IP address after restarting when using hyperkit. #2416
Comments
bpasson
added a commit
to bpasson/minikube
that referenced
this issue
Jan 11, 2018
…ube configuration to be able to regenerate the same mac address for the machine after restarts to give DHCP a change of assigning the previously used IP address.
dlorenc
pushed a commit
that referenced
this issue
Jan 11, 2018
…uration to be able to regenerate the same mac address for the machine after restarts to give DHCP a change of assigning the previously used IP address.
This should be fixed with #2416 |
D'oh, #2417 fixed this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
FEATURE REQUEST
Please provide the following details:
Environment:
Minikube version (use
minikube version
): 0.24.1What happened:
After creating a minikube using
minikube start --vm-driver=hyperkit
, the minikube gets assigned an IP address. I then stop it and start it again. The minikube gets assigned a different new IP address.What you expected to happen:
I would expect the minikube to have the same IP address after restarting the minikube.
How to reproduce it (as minimally and precisely as possible):
Run the following commands:
Output of
minikube logs
(if applicable):Anything else do we need to know:
After some investigation I found the hyperkit driver to generate a new random mac-address on every start of the machine. It does this based on a random UUID it generates. Saving the UUID to the configuration and using it upon starting the machine should solve the issue as the same mac address gets generated and thus gets assigned the same IP using DHCP.
Update: I managed to get it working for the hyperkit driver and will submit a pull request.
The text was updated successfully, but these errors were encountered: