fix IP address of the copy containers

This commit is contained in:
Kay0u 2023-05-17 12:13:08 +02:00
parent 7e367e3fc7
commit 9a552cdab3
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -97,6 +97,9 @@ create_snapshot()
local instance_to_publish=$1
local snapshot=$2
# Unset the mac address to ensure the copy will get a new one and will be able to get new IP
lxc config unset "$instance_to_publish" volatile.eth0.hwaddr
# Create snapshot
lxc snapshot "$instance_to_publish" "$snapshot" --reuse
}