From 9a552cdab3eadfe8beb9bb633a434e9b90b70d2f Mon Sep 17 00:00:00 2001 From: Kay0u Date: Wed, 17 May 2023 12:13:08 +0200 Subject: [PATCH] fix IP address of the copy containers --- utils.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils.sh b/utils.sh index 956dab2..720f7b8 100755 --- a/utils.sh +++ b/utils.sh @@ -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 }