Then, with container-name still stopped, tried starting container-name-test via:
lxc start container-name-test
And with that I receive the following error:
Error: Failed start validation for device “eth0”: MAC address “00:16:3e:e7:0a:45” already defined on another NIC
Try lxc info --show-log container-name-test for more info
There is no info in the log section of:
lxc info --show-log container-name-test
So, ultimately, I just want to be able to import the exported container-name as container-name-test so that I can verify the backup is good & works fine for re-importing it.
The problem here is that when importing the containing from the backup, it comes with a virtual NIC card with the same MAC address as the original isntance because it is preserved on the backup.
For example, copies can also suffer from this if the container has a NIC device with hwaddr set, in which case the copy would inherit the MAC address on the NIC card. This can be achieved by running:
Thus, to fix your problem you can just use lxc config device override container-name eth0 hwaddr=something to change the MAC address of one of the containers to something different than you see on the error and that way avoid the collision.
If you don’t want to mess with the device config, you can also try importing the container back into a different project.