KajWiik
(Kaj Wiik)
August 21, 2024, 6:19am
1
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:
I restored a container from a backup on a new host via
lxc image import c1.tar.gz --alias c1
and
lxc launch c1
which worked fine.
However, the only way to set the IP of the container on the new host to match the IP on the old host was to edit
ipv4.address
via
lxc network edit lxdbr0
I changed ipv4.address on the new host to match the subnet on the old host e.g. 10.217.238.1/24 and then the Set Static IP instructions via this post (Using static IPs with LXD ) worked fine…
So my question …
simos
(Simos Xenitellis)
August 21, 2024, 8:13am
2
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