Use internal IPs in /etc/hosts.

* internal IP is now extracted from instance
* /etc/hosts is now generated using internal IPs.

Change-Id: I96d8eb8b178c36d9222574e42f1b284dcd45d1c8