VMware Communities > VMTN > VMware vCenter™ > Lab Manager > Discussions

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
10 Replies Last post: Dec 1, 2006 12:30 AM by arjanhs
Reply

Managed Server Agent install error

Nov 15, 2006 7:28 AM

Click to view Bist's profile Novice Bist 9 posts since
Feb 27, 2006
This is what I get when I try to install the agent. Did the MD5sum check and stuff. Checked versions and so on. Seems like a Perl issue

vmware-hostd validity... failed
Reply Re: Managed Server Agent install error Nov 15, 2006 9:20 AM
Click to view bbookman's profile Expert bbookman 570 posts since
Sep 29, 2006
VMware
A few other people have reported this problem, we are investigating.

There is a potential work-around:

there's a checks.cfg file in /tmp/lm-untar-xxxx directory (where the installer is untarred to)

remove the check_vmware_hostd line and save the file

run the script "install-agent.sh" in the same directory.

let me know how it goes.
Reply Re: Managed Server Agent install error Nov 15, 2006 10:43 AM
Click to view naris's profile Enthusiast naris 29 posts since
Nov 15, 2006
VMware
Hi Bist,

The vmware-hostd failure is due to missing paths if you've become root via "su".
The workaround is to enter "su -" instead (the installer runs files that are located in /usr/sbin and /sbin).

Hope this helps.

Naris
Reply Re: Managed Server Agent install error Nov 15, 2006 11:02 AM
in response to: naris
Click to view xunhuang's profile Enthusiast xunhuang 91 posts since
Oct 17, 2006
VMware
we are addressing this in RC1.
Reply Re: Managed Server Agent install error Nov 16, 2006 9:09 AM
in response to: xunhuang
Click to view jdoe@faegre.com's profile Novice jdoe@faegre.com 14 posts since
Jan 19, 2006
I am getting the same error message, attempted to do workaround and I now get the following message:

[root@fbvm4 untar-lm-2.4.0.153]# install-agent.sh
-bash: install-agent.sh: command not found
[root@fbvm4 untar-lm-2.4.0.153]# sh install-agent.sh
checking for existing installation...not detected.
starting install...
checking for running as root... ok
checking for resolvable hostname... ok
checking for vmware-hostd validity... failed

Any ideas?

Reply Re: Managed Server Agent install error Nov 16, 2006 11:05 AM
in response to: jdoe@faegre.com
Click to view bbookman's profile Expert bbookman 570 posts since
Sep 29, 2006
VMware
By workaround, you mean you tried using "su -" rather than "su" as described in this thread, or do you mean you made the modifications to checks.cfg as described in a previous part of the thread

If you have done both, and are stuck, please file a support request

http://www.vmware.com/support/sr/sr_login.jsp?followingPage=/support/sr/sr_home.jsp
Reply Re: Managed Server Agent install error Nov 16, 2006 11:08 AM
in response to: bbookman
Click to view rachit's profile Hot Shot rachit 94 posts since
Oct 11, 2005
VMware
Also make sure both /sbin and /usr/sbin are in your path.
Reply Re: Managed Server Agent install error Nov 16, 2006 12:14 PM
in response to: rachit
Click to view jdoe@faegre.com's profile Novice jdoe@faegre.com 14 posts since
Jan 19, 2006
Thanks, I just submitted the problem to support.

I'm not a linux guru but I believe I did it correctly.

Logged on as "Root", then did a command SU - Root

Browsed to the install folder typed in the following below and receive the same error message.

[root@fbvm4 root]# su - root
[root@fbvm4 root]# cd /tmp
[root@fbvm4 tmp]# dir
untar-lm-2.4.0.153 VMware-labmanager-agent-esx-2.4.0-153.sh
[root@fbvm4 tmp]# cd untar-lm-2.4.0.153
[root@fbvm4 untar-lm-2.4.0.153]# dir
autofs-4.1.3-154.i386.rpm
checks.cfg
checkversion
headers
hesiod-3.0.2-28.1.i386.rpm
install-agent.log
install-agent.sh
installer.defines
labmanager-agent-vmware-esx-30-2.4.0.153-0.i386.rpm
mono-core-1.1.17.2-0.novell.i586.rpm
mono-data-1.1.17.2-0.novell.i586.rpm
mono-extras-1.1.17.2-0.novell.i586.rpm
mono-web-1.1.17.2-0.novell.i586.rpm
mono-winforms-1.1.17.2-0.novell.i586.rpm
out.md5sum
pre-pycmd
py
rpms.manifest
uninstall-agent.sh
[root@fbvm4 untar-lm-2.4.0.153]# sh install-agent.sh
checking for existing installation...not detected.
starting install...
checking for running as root... ok
checking for resolvable hostname... ok
checking for running vmware-hostd... ok
checking for vmware-hostd validity... failed
Reply Re: Managed Server Agent install error Nov 16, 2006 2:06 PM
in response to: jdoe@faegre.com
Click to view naris's profile Enthusiast naris 29 posts since
Nov 15, 2006
VMware
Hi jdoe@faegre.com,

The check "vmware-hostd validity" verifies the ESX management daemon is running and accepting connections (/etc/rc.d/init.d/mgmt-vmware daemon). It executes a "vmware-cmd -l" and checks the error code. Can you try running "vmware-cmd -l" and see what the output is? The output should not return an error. If the installer is still failing for you, please add the /tmp/untar-lm-2.4.0.-153/install-agent.log contents to the support request and/or this thread.

The only condition that I have experienced with this sort of failure is when the labmanager agent installer is run right after the ESX boots up. The ESX management daemon can take a few minutes to start and accept connections, so running the installer before then will cause this sort of failure.
Reply Re: Managed Server Agent install error Nov 16, 2006 11:02 PM
in response to: naris
Click to view naris's profile Enthusiast naris 29 posts since
Nov 15, 2006
VMware
I just debugged an installer problem on a machine where the vmware-hostd validity check failed because of a misconfigured localhost entry line in /etc/hosts.

Verify that your /etc/hosts has the following line:
127.0.0.1 localhost.localdomain localhost
Reply Re: Managed Server Agent install error Dec 1, 2006 12:30 AM
in response to: naris
Click to view arjanhs's profile Hot Shot arjanhs 191 posts since
Sep 27, 2004
This worked out for me, now i'm able to install the Managed Server Agent, thanks.
Actions