-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RHEL6: Execution of '/sbin/start vmware-tools-services' returned 1 #40
Comments
I was having the same issue. I changed lines 319-322 in vmwaretools\manifests\init.pp from:
to:
It now works properly. |
Thank you for your advice. It now works like a charm. |
+1 |
I am having trouble replicating this on my test system. I am running CentOS 6.6 x86_64 in VMware Player 6.0.6 using razorsedge/vmwaretools module version 5.1.0 against 5.0, 5.1, 5.5, 6.0, and latest versions of the vmwaretools repository. All give the desired effect of using SysV init with 5.0 tools and Upstart with 5.1 and newer tools. |
My system is a CentOS 6.7 x86_64 minimal server, upgraded from the 6.5 minimal ISO, running on ESXi 6.0. It is running Foreman 1.9.3, I believe. We are actually migrating to a new infrastructure at work right now, so I don't even have my VM reconfigured/upgraded it yet. I can power it on and give you any additional information you need. |
@crapnicki : What razorsedge/vmwaretools module version and what parameters are you passing to that module? Output of "rpm -qa|grep vmware|sort" will be helpful. |
@razorsedge From the CHANGELOG file, I'm running 5.0.1. Relevant info from the site.pp file:
|
Sorry for the delayed response. Life keeps interfering with code. I have tried upgrading to CentOS 6.7 and tested with Puppet 2.7.26 and Puppet-agent 1.2.2. I am unable to reproduce the error with Service[vmware-tools-services]. I am starting to wonder if this is specific to ESXi 6.0 or if deployment via the Foreman has an effect. |
Life happens. :) Might want to see if one of the others that were having this issue will respond with their infrastructure to see if there is a common denominator. |
The only other thing I can think of is whether the output of " |
Hi, upgrading from 5.0.1 to 6.0.0 fixed the issue for me on the following system. No changes on this system other than the upgrade from 5.0.1 to 6.0.0. CentOS 6.6 x86_64 (CentOS 6.7 also works) puppet-code from base profile: (using defaults only)
|
@aholen And before the upgrade, you were getting the |
@razorsedge That's correct - but the picture doesn't seem so simple as in my previous post. I have a another system that failed, despite new module version: before update:
after update of all vmware-packages it started working:
After the update the puppet agent ran successfully (didn't have to reboot). The vSphere client reports: "Running (3rd-party/Independent)
|
@razorsedge
Puppet agent now runs fine. Whole update-process: Looks like a combination of yum update vmware-tools-services and using module version 6.0.0 is the fix. |
OK. I am starting to see the problem more clearly. razorsedge/vmwaretools (and I, since Foreman was mentioned) assumes a new install and determines whether to use upstart based on the URL in the YUM repository. In the case of this issue, Tools are already installed and are of a version (vmware-tools-esx-nox < 9.0.0) that still uses SysV Init and |
Can anyone confirm whether I am off my rocker here? |
Fresh RHEL 6.8 install: I was having the same issue. I changed lines 319-322 in vmwaretools\manifests\init.pp from:
to:
It now works properly. |
I'm having the same problem on a fresh install as well. @razorsedge this is because VMware in the latest versions have reverted back to using /etc/init.d/vmware-tools-services rather than an upstart init script :( Not sure exactly how you're gonna fix this, but...right now your module is broken on RHEL6. |
Oh, actually @razorsedge the problem is caused by this bug #49 Its because the URL is now installing an /old/ package version (8.7) rather than 10.x... |
It looks like VMware has changed the URL of their packages for the latest VMware Tools: |
VMware have changed the layout of packages.vmware.com necessitating a change to this module to use the new location for the latest package releases. This PR could however break users who are specifying releases before version 10, so you might want to build a more complicated change which checks the specified version if there is one and selects either esx/$version or releases/$version...
"Start", "Stop" and "Status" are generally Ubuntu commands, but adding provider => 'upstart' to the service resource on RHEL6 systems corrects the issue. I have a support case in with Puppet for further explanation. |
Running RHEL 6.7 on ESXi 6.0, using this module in version 5.0.1 throws the following error:
change from stopped to running failed: Could not start Service[vmware-tools-services]: Execution of '/sbin/start vmware-tools-services' returned 1: at /etc/puppet/environments/production/modules/vmwaretools/manifests/init.pp:324
The VM is deployed and managed by Foreman 1.8.4
The text was updated successfully, but these errors were encountered: