Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-33312

Not able to add a VM as slave from vsphere cloud

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • vmware-plugin
    • Jenkins Version: 1.647
      vSphere plugin 2.11
      Jenkins Server OS - Windows 2008 R2
      Slave OS - Win 8 32 bit
      JRE Version - Java 8 Update 73

      1.I've installed Jenkins Server on Windows 2k8 R2 and the Version is 1.647.
      2.Installed vSphere plugin 2.11. Then created a cloud as per the documentation.
      3. Added a node by selecting the option 'Slave virtual computer running under vSphere Cloud'.
      4. while adding the node, checked Test VM Connection to find the VM is present in Cloud and it found.
      5. But when trying to launch the agent getting the below error:

      Access is denied. [0x00000005]
      at org.jinterop.dcom.core.JIComServer.init(JIComServer.java:542)
      at org.jinterop.dcom.core.JIComServer.initialise(JIComServer.java:458)
      at org.jinterop.dcom.core.JIComServer.<init>(JIComServer.java:427)
      at org.jvnet.hudson.wmi.WMI.connect(WMI.java:41)
      at hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:107)
      at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:170)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: rpc.FaultException: Received fault. (unknown)
      at rpc.ConnectionOrientedEndpoint.call(ConnectionOrientedEndpoint.java:142)
      at rpc.Stub.call(Stub.java:112)
      at org.jinterop.dcom.core.JIComServer.init(JIComServer.java:538)
      ... 10 more
      6. As per the suggestion in the error went to this site: https://wiki.jenkins-ci.org/display/JENKINS/Windows+slaves+fail+to+start+via+DCOM
      and checked all the settings mentioned.
      7. But all the settings done now getting the below error:

      [adima02-8x86] Starting Virtual Machine...
      [adima02-8x86] VM already powered on
      [adima02-8x86] Waiting for VMTools
      [adima02-8x86] VM Tools are running
      [adima02-8x86] Finished wait for VMTools
      Connecting to adima02-8x86
      ERROR: Message not found for errorCode: 0xC0000034
      ha:AAAAWB+LCAAAAAAAAP9b85aBtbiIQSmjNKU4P08vOT+vOD8nVc8DzHWtSE4tKMnMz/PLL0ldFVf2c+b/lb5MDAwVRQxSaBqcITRIIQMEMIIUFgAAckCEiWAAAAA=org.jinterop.dcom.common.JIException: Message not found for errorCode: 0xC0000034
      at org.jinterop.winreg.smb.JIWinRegStub.winreg_OpenHKCR(JIWinRegStub.java:121)
      at org.jinterop.dcom.core.JIComServer.initialise(JIComServer.java:479)
      at org.jinterop.dcom.core.JIComServer.<init>(JIComServer.java:427)
      at org.jvnet.hudson.wmi.WMI.connect(WMI.java:59)
      at hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:218)
      at org.jenkinsci.plugins.vSphereCloudLauncher.launch(vSphereCloudLauncher.java:199)
      at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:253)
      at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

      I am attaching all the stack trace for reference.

            Unassigned Unassigned
            mahesh916 Mahesh Adigoppula
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: