VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
4 Replies Last post: Sep 9, 2009 6:46 AM by substring  

How can I get the IP Address(es) of a Guest VM? posted: Jun 30, 2008 2:13 PM

Click to view sub15runner's profile Lurker 1 posts since
Jun 30, 2008

How can I get the IP Address(es) of a Guest VM?

Thanks,

-Phil

Click to view ClintD's profile Lurker 1 posts since
Oct 6, 2008

Any luck with this? I'm trying to figure this out as well.

Thank you,

-Clint

Re: an answer and a question

2. Oct 29, 2008 12:34 PM in response to: sub15runner
Click to view reapur's profile Enthusiast 39 posts since
Jul 17, 2008
I'm assuming you mean from the server.

So I finally figured this out, but with some problems.
1- I have to have vmware tools installed on the VM's I want to check
2- I have to install the vmware viperl package

/usr/lib/vmware-viperl/apps/vm/vminfo.pl --url http://target-host-server/sdk/vimService --username root --password passwd ipaddress"

this will return the VM's machine hostname, IP and the label in the GUI.

However, on some servers (3 out of 25), it fails. (I use the same image of SLES to install all my servers, and the same VM image for all VM's), and I'm very confused as to what this error is trying to tell me:

Can't locate object method "deserialize" via package "VirtualMachineVMCIDevice" (perhaps you forgot to load "VirtualMachineVMCIDevice"?) at /usr/lib/perl5/site_perl/5.8.8/VMware/VICommon.pm line 1799, <STDIN> line 2.

All servers use VMware server 2.0 with the same vmware-viperl package that I just downloaded a couple days ago.

Any ideas?
Cheers

Re: an answer and a question

3. Nov 27, 2008 4:43 AM in response to: reapur
Click to view tucsedo's profile Lurker 1 posts since
Nov 27, 2008


I have the same problem and get the " Can't locate object method "deserialize" via package "VirtualMachineVMCIDevice" " error. I have no idea what's wrong...

Cheers, Stefan

Re: an answer and a question

4. Sep 9, 2009 6:46 AM in response to: tucsedo
Click to view substring's profile Lurker 3 posts since
Jun 13, 2007

I patched VICommon.pl like this (from line 1798 on):

} else {
eval { $val = $child_class_name->deserialize($_) };

if($@) {

#print "deserialize ". $_->toString . "\n";

$val = XML::LibXML::Element->new("void");

}

Developer Social Media

Communities