When looking at some other issue, I saw that the internal host address was wrong:
_ _
_ _ ( ) ( )
___ ___ (_) ___ (_)| |/') _ _ | |_ __
/' _ ` _ `\| |/' _ `\| || , < ( ) ( )| '_`\ /'__`\
| ( ) ( ) || || ( ) || || |\`\ | (_) || |_) )( ___/
(_) (_) (_)(_)(_) (_)(_)(_) (_)`\___/'(_,__/'`\____)
$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 minikube
192.168.50.1 host.minikube.internal
192.168.99.121 control-plane.minikube.internal
$ ping host.minikube.internal
PING host.minikube.internal (192.168.50.1): 56 data bytes
^C
--- host.minikube.internal ping statistics ---
10 packets transmitted, 0 packets received, 100% packet loss
It was _supposed_ to be 192.168.99.1, but picked up the wrong interface (vboxnet1).
顐奥燰BoxManage list hostonlyifs
Name: vboxnet0
GUID: 786f6276-656e-4074-8000-0a0027000000
DHCP: Disabled
IPAddress: 192.168.99.124
NetworkMask: 255.255.255.0
IPV6Address: fe80::ce1a:401e:995b:f57a
IPV6NetworkMaskPrefixLength: 64
HardwareAddress: 0a:00:27:00:00:00
MediumType: Ethernet
Wireless: No
Status: Up
VBoxNetworkName: HostInterfaceNetworking-vboxnet0
Name: vboxnet1
GUID: 786f6276-656e-4174-8000-0a0027000001
DHCP: Disabled
IPAddress: 192.168.50.1
NetworkMask: 255.255.255.0
IPV6Address:
IPV6NetworkMaskPrefixLength: 0
HardwareAddress: 0a:00:27:00:00:01
MediumType: Ethernet
Wireless: No
Status: Down
VBoxNetworkName: HostInterfaceNetworking-vboxnet1
There needs to be some code that matches the name of the interfaces.
Instead of just taking the last one and hoping for the best, like now ?
I'd be happy to take a look
@11janci : You will find the code in pkg/minikube/cluster/ip.go,
function HostIP under case driver.VirtualBox. Thanks!
Most helpful comment
@11janci : You will find the code in
pkg/minikube/cluster/ip.go,function
HostIPundercase driver.VirtualBox. Thanks!