Implemented get_vm_ip function.