Skip to content

Commit

Permalink
do not release IP leases
Browse files Browse the repository at this point in the history
  • Loading branch information
ngealy authored Jul 13, 2023
1 parent d9eff55 commit 82f35a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vSphere/ubuntu_2204/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ ln -s /etc/machine-id /var/lib/dbus/machine-id
#
echo "Reset Cloud-Init"
rm /etc/cloud/cloud.cfg.d/*.cfg
cloud-init clean -s -l
cloud-init clean -s -l

# Do not notify the DHCP server to release leases on graceful shutdown
/usr/bin/sed -i '/\[DHCPv4\]/a SendRelease=false' /etc/systemd/networkd.conf

0 comments on commit 82f35a4

Please sign in to comment.