Solved

Run VMware Tools on OpenSuse 10.3 as system service

Posted on 2009-05-18
15
1,148 Views
Last Modified: 2013-12-05
I have VMware Tools for Linux v3.5.0 installed on an OpenSuSE 10.3 VM. The tools will run if I login as a user and run the following:

vmware-toolbox  &

However when I log out, the tools shutdown. How go I get VMware Tools to run when no user is logged in, or start automatically such as when restarting the Linux server? I've tried various things in the past, but nothing has stuck so far.
0
Comment
Question by:jessc7
  • 9
  • 6
15 Comments
 
LVL 19

Expert Comment

by:vmwarun - Arun
ID: 24414474
Check what daemon is started when you run the command vmware-toolbox & and try to add that service into chkconfig
0
 
LVL 16

Author Comment

by:jessc7
ID: 24414543
Can you walk me through that a little more? Even a link to a good article would be helpful. Thanks!
0
 
LVL 19

Expert Comment

by:vmwarun - Arun
ID: 24414632
Personally I have updated the idea after scratching my brain :)

After executing vmware-toolbox &, run top inside the Virtual machine.

This would show you a list of running daemons or services inside linux.

Run the command ps -aef | grep vmware-toolbox

This would show the associated daemon which you can add to chkconfig and make it autorun everytime Linux VM starts.

I hope this works.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 16

Author Comment

by:jessc7
ID: 24415009
When I ran the ps command, I received the following...

root      7659  7624  0 14:27 pts/1    00:00:18 /usr/lib/vmware-tools/bin32/vmware-toolbox-gtk

But looking into chkconfig a little more, I noticed I already had an entry for vmware-tools:

vmware-tools              0:off  1:off  2:on   3:on   4:off  5:on   6:off

I wonder why it is not already running automatically?
0
 
LVL 16

Author Comment

by:jessc7
ID: 24415193
Bumped points since this seems to not be as straightforward as I originally thought.
0
 
LVL 19

Expert Comment

by:vmwarun - Arun
ID: 24415196
What init level does you linux vm start by default ?

This can be checked in the /etc/inittab file by running the command cat /etc/inittab.
0
 
LVL 16

Author Comment

by:jessc7
ID: 24415219
Looks like 5:

id:5:initdefault:
0
 
LVL 19

Expert Comment

by:vmwarun - Arun
ID: 24415297
Try changing the init level to 3 and check whether vmware-tools is starting automatically just for verification sake.
0
 
LVL 16

Author Comment

by:jessc7
ID: 24415359
Ok, restarted with init level 3 as default. At the login screen, I see several of the startup event logs. One of them says:

Failed services in runlevel 3:    vmware-tools
No other services are listed as failed.
0
 
LVL 19

Expert Comment

by:vmwarun - Arun
ID: 24415498
Did you use root credentials to install vmware-tools ?
0
 
LVL 16

Author Comment

by:jessc7
ID: 24415602
Yes. Just to verify (cause it's been since January), when I checked the permissions on files within /user/lib/vmware-tools/, the permissions are assigned to root root.
0
 
LVL 19

Accepted Solution

by:
vmwarun - Arun earned 500 total points
ID: 24415667
This particular VMware KB Article talks about Prevent VMware Tools from starting automatically in a Linux guest - http://kb.vmware.com/selfservice/viewContent.do?externalId=1005715&sliceId=1

Check this out and update the results.

By the way on what VMware Platform are you running this ?

I am assuming that this is an ESX Host v3.5.0
0
 
LVL 16

Author Comment

by:jessc7
ID: 24415709
We are running ESX 3.5 U3. I am not the official VMware admin on the team, but I manage several VMs.

I'll try the KB - thanks!
0
 
LVL 16

Author Comment

by:jessc7
ID: 24415829
Fixed!

After reading the KB, I ran /etc/init.d/vmware-tools status, which returned that vmware-guestd was not running (obviously).

I ran /etc/init.d/vmware-tools start, and received the following:

VMware Tools is installed, but it has not been
(correctly) configured for the running kernel.
To (re-)configure it, invoke the following command:
/usr/bin/vmware-config-tools.pl
I'm fairly certain the Linux kernel was updated in the last couple of months, so that was probably the root of the issue. I ran through configuration again, restarted in run level 5 to verify, and the VMware client is showing the VMware Tools as running. Excellent - thanks arunraju! Your troubleshooting got me there...
0
 
LVL 16

Author Closing Comment

by:jessc7
ID: 31582680
Thanks for your help!
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When converting a physical machine to a virtual machine using VMware vCenter Converter Standalone or vCenter Converter Enterprise, if an adapter type is not selected during the initial customization the resulting virtual machine may contain an IDE d…
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question