I found that there is an exception to what the solution is here, namely that this only applies to VirtualBox 5.2. If you end up using Virtualbox 6.0, note that this won’t work. the longer term fix would be to downgrade your VirtualBox version.
I use minikube for a lot of quick troubleshooting and demos. I recently found myself in a situation where the IP address kept incrementing. Instead of the standard
192.168.99.100, every restart found the minikube VM with a new IP address, which made demos that relied on the standard IP difficult to demo.
I ended up finding the solution on Stackoverflow. To reset minikube’s IP back to normal, do the following:
- Open Virtualbox and go to “File”–>Host Network Manager
- Find the adapter that has the
192.168.99.1subnet assigned to it (likely
vbox0, though mine was
vbox2), and remove it.
That should give you the good ole
192.168.99.100 IP address that you know and love.