Solved

Run VMware Tools on OpenSuse 10.3 as system service

Posted on 2009-05-18
15
1,139 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
 
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …
Teach the user how to install and configure the vCenter Orchestrator virtual appliance Open vSphere Web Client: Deploy vCenter Orchestrator virtual appliance OVA file: Verify vCenter Orchestrator virtual appliance boots successfully: Connect to the …

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now