script which finds out IP address of a virtual machine