Skip to content

Multipass changes used subnet across boots #359

@morphis

Description

@morphis

Yesterday I've setup two machines with multipass (beta, rev 334) and deployed them via juju successfully. Also multipass is configured to use the libvirtd driver via $ snap set multipass driver=LIBVIRT

Now today (after a reboot of the host machine) both machines have IPs of a different subnet:

They were added to juju yesterday as:

0        started  10.16.239.128  manual:10.16.239.128  xenial      Manually provisioned machine
1        started  10.16.239.209  manual:10.16.239.209  xenial      Manually provisioned machine

but are now reported as

Name                    State       IPv4             Release
ams0                    RUNNING     10.150.176.128   Ubuntu 16.04 LTS
lxd0                    RUNNING     10.150.176.209   Ubuntu 16.04 LTS

The last part of the address is still the same but the subnet has changed. I've double checked that the addresses inside the VMs are the same as reported by multipass.

Interestingly the file multipass seems to use to store the used subnet hasn't changed since yesterday

$ ls -alh /var/snap/multipass/common/data/multipassd/vm-ips/multipass_subnet
-rw-r--r-- 1 root root 10 Aug 29 08:08 /var/snap/multipass/common/data/multipassd/vm-ips/multipass_subnet

and also reports a completely different subnet as the ones above

$ sudo cat /var/snap/multipass/common/data/multipassd/vm-ips/multipass_subnet 
10.202.213

I've uploaded logs to https://pastebin.canonical.com/p/yrhWxB6dgs/ You will see manual restarts of multipass in there as it failed to startup this morning.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions