I create VirtualBox guests in a LAN where IP addresses are assigned by DHCP.
If I close
the VirtualBox guest and then choose Save the machine state
, the VirtualBox guest Bridged-Adapter IP address is not released back to the DHCP (so that if I later start the VirtualBox guest, it'll have an IP address).
My question: if I remove
(delete) the VirtualBox guest, will the IP address be released, or will it be lost to the DHCP pool?
Edit 1:
The comments I received compel me to add that when a VirtualBox guest is turned off in a save state, the IP address is kept somewhere in the VirtualBox ecosystem.
Then, if the VirtualBox guest is turned on after the DHCP has revoked the lease, then we'd have two machines on the LAN with the same IP address, to the great joy of all LAN users.
Edit 2:
From the replies, I gather that the consensus is that once the DHCP lease time is passed, regardless if there's a guest still 'holding' the IP address - the IP address will be released.
Thanks to all who took the time to reply.