canonical / multipass

Multipass orchestrates virtual Ubuntu instances
https://multipass.run
GNU General Public License v3.0
7.83k stars 650 forks source link

[list] filter out unmanaged IPs #2093

Open Saviq opened 3 years ago

Saviq commented 3 years ago

Say in:

$ multipass launch minikube
Launched: minikube

$ multipass list
Name                    State             IPv4            Image
minikube                Running           10.152.94.30    Ubuntu 20.04 LTS
                                          172.17.0.1
                                          192.168.49.1

Only the first IP is reachable from the outside, the other two are internal to the instance. We should filter out those interfaces we don't manage.

ricab commented 3 years ago

Isn't the latter the bridged one? Once cloud-init succeeds there should be one for that (besides the mgt ip).

Saviq commented 3 years ago

Sorry, I fudged the output, there's no bridge in this scenario. Both the 172. and the 192. are created by minikube.

townsend2010 commented 3 years ago

This also occurs if multipass is running nested inside an instance. The nested bridge gets shown on the outside list command:

$ multipass list
Name                    State             IPv4             Image
test-firewall           Running           10.11.18.119     Ubuntu 21.04
                                          10.165.69.1

The 10.165.69.1 IP is the nested multipass bridge.