Ref url: http://offbytwo.com/2008/05/09/show-ip-address-of-vm-as-console-pre-login-message.html

# copy /etc/issue to /etc/issue-standard

cp /etc/issue /etc/issue-standard

#/usr/local/bin/get-ip-address.sh

/sbin/ifconfig | grep "inet addr" | grep -v "127.0.0.1" | awk '{ print $2 }' | awk -F: '{ print $2 }'

#/etc/network/if-up.d/show-ip-address

#!/bin/sh

if [ "$METHOD" = loopback ]; then
    exit 0
fi
# Only run from ifup.
if [ "$MODE" != start ]; then
    exit 0
fi
cp /etc/issue-standard /etc/issue
IPADDR=`/usr/local/bin/get-ip-address`
echo VM IP Address: $IPADDR >> /etc/issue