I have several CentOS virtual machines that I only fire up when I need
to test something, so I don't give them static IPs. For my own
convenience, I added the following lines in
get the IP Address that was leased to the machine by the DHCP server,
/etc/issue to display it:
This way, once the VM boots up and gets an IP from DHCP, that IP will be displayed in the hypervisor's console.