On Jul 12, 2011, at 12:32 AM, wes hayutin wrote:

Hi Wes,

> Hello, I am trying to get the ip address of a vmware guest to be
> reported in deltacloud. I am having a little trouble.
> 
> created a template that installed the rpms here
> http://packages.vmware.com/tools/esx/latest/rhel6/x86_64/
> on RHEL6 
> 
> Still getting just the mac address 
> vmwareTools01/frontend01
> IP Address: 00:50:56:a9:00:42
> State: running
> 
> I am getting the same result via dcloud
> http://sgi-xe3<snip>m:3006/api/instances/8975b038-2d7d-48c8-9dc5-5a8e41dc0b74
> Public Addresses
> 00:50:56:a9:00:42
> 
> I tried upgrading  the vmware tools on the client using the vsphere
> console, but the version is at the latest.
> 
> 
> If you have any pointers please let me know

The IP address is fetched like this:

<snip file="lib/deltacloud/drivers/vsphere/vsphere_driver.rb">

174: instance_address = vm.guest[:net].empty? ? vm.macs.values.first : 
vm.guest[:net].first[:ipAddress].first

</snip>

As you can see, first I check if there is guest tools enabled on VM and if so
I'll fetch the first IP address from it. I've tested this on Windows machine
with guest tools installed and it reports correct IP address.

So I assume that the problem exists somewhere between VSphere and VM.
Did you enable the service[1] ?

/etc/init.d/vmware-tools start

[1] http://www.electrictoolbox.com/install-vmware-tools-linux-guest/

 -- Michal
------------------------------------------------------
Michal Fojtik, [email protected]
Deltacloud API: http://deltacloud.org

Reply via email to