Importing of VM failed because IP address of instance does not match the bridge address range

I am trying to import a VM from a different host. Unfortunately the instance IP address does not match the address range of the bridge (incusbr0).

Error: Failed importing backup: Failed creating instance record: Failed initializing instance: Invalid devices: Device validation failed for "eth0": D
evice IP address "10.238.231.101" not within network "incusbr0" subnet                                                                                

I guess still the only way to get import working is to change the address of incusbr0 to match the instance address?

E.g. incus network set incusbr0 ipv4.address=10.238.231.1/24.

See:

If you are like me, you would put some order to the randomness.
I do this on new installations of Incus. As long as it does not have conflicts with other installations, it looks beautiful too.

incus network set incusbr0 ipv4.address=10.10.10.1/24
1 Like