Autostart Vmware image

Hi,

I tried to setup VMWare plugin as discribed here: http://confluence.jetbrains.com/display/TW/Cloud-VMWare+plugin

When I trying to start VMWare image autmatically teamcity-vmware-clent gives following:

admin@build:~/teamcity-vmware-client> java -jar cloud-vmware-client.jar /server:http://192.168.93.63:8080 /vmrun:/usr/bin/vmrun /store:/home/admin/work/virtual_machines/ /maxInstances:3
Loading libraries from: /home/admin/teamcity-vmware-client/lib
Looking for images from: /home/admin/work/virtual_machines
Connecting to TeamCity server at: http://192.168.93.63:8080
Will use VMWare VIX from: /usr/bin/vmrun

Client is waiting for commands from TeamCity server...
[2013-03-06 12:20:56,083]   INFO - uds.vmware.client.LoggingVMRun - Server version is: 42
[2013-03-06 12:20:56,084]   INFO - uds.vmware.client.LoggingVMRun - Client version is: 42
[2013-03-06 12:21:08,112]   INFO - uds.vmware.client.LoggingVMRun - Computing local images...
[2013-03-06 12:21:08,113]   INFO - uds.vmware.client.LoggingVMRun - Found 1 local images
[2013-03-06 12:21:11,123]   INFO - uds.vmware.client.LoggingVMRun - Pinging running instances...
[2013-03-06 12:21:11,131]   INFO - are.vmrun.local.LocalVMCommand - Starting command: /usr/bin/vmrun -T player list
[2013-03-06 12:21:11,319]   INFO - are.vmrun.local.LocalVMCommand - Result: Total running VMs: 0
[2013-03-06 12:21:11,320]   INFO - are.vmrun.local.LocalVMCommand - Result:  
[2013-03-06 12:21:11,320]   INFO - are.vmrun.local.LocalVMCommand - Code: 0
[2013-03-06 12:21:11,320]   INFO - uds.vmware.client.LoggingVMRun - Found 0 running instances
[2013-03-06 12:21:29,178]   INFO - uds.vmware.client.LoggingVMRun - Computing local images...
[2013-03-06 12:21:29,179]   INFO - uds.vmware.client.LoggingVMRun - Found 1 local images
[2013-03-06 12:21:32,191]   INFO - uds.vmware.client.LoggingVMRun - Pinging running instances...
[2013-03-06 12:21:32,191]   INFO - are.vmrun.local.LocalVMCommand - Starting command: /usr/bin/vmrun -T player list
[2013-03-06 12:21:32,375]   INFO - are.vmrun.local.LocalVMCommand - Result: Total running VMs: 0
[2013-03-06 12:21:32,375]   INFO - are.vmrun.local.LocalVMCommand - Result:  
[2013-03-06 12:21:32,375]   INFO - are.vmrun.local.LocalVMCommand - Code: 0
[2013-03-06 12:21:32,375]   INFO - uds.vmware.client.LoggingVMRun - Found 0 running instances
[2013-03-06 12:21:44,236]   INFO - uds.vmware.client.LoggingVMRun - Starting new virtual machine: image: build-Windows_XP_x64
[2013-03-06 12:21:44,236]   INFO - .vmware.vmrun.local.LocalVMRun - Starting machine: VMImageInfo{myId='Windows_XP_x64', myImagePath='/home/admin/work/virtual_machines/winxp_x64/Windows_XP_x64.vmx'}
[2013-03-06 12:21:44,236]   INFO - are.vmrun.local.LocalVMCommand - Starting command: /usr/bin/vmrun -T player list
[2013-03-06 12:21:44,416]   INFO - are.vmrun.local.LocalVMCommand - Result: Total running VMs: 0
[2013-03-06 12:21:44,417]   INFO - are.vmrun.local.LocalVMCommand - Result:  
[2013-03-06 12:21:44,417]   INFO - are.vmrun.local.LocalVMCommand - Code: 0
[2013-03-06 12:21:44,417]   INFO - .vmware.vmrun.local.LocalVMRun - Currently running machines: 0 of 3
[2013-03-06 12:21:44,418]   INFO - .vmware.vmrun.local.LocalVMRun - Starting image: VMRunParameters{myImageId='build-Windows_XP_x64', myLocationId='wm-Dj9jstoazMqg9F5vn9Hz72TIPQTMVtVL', myInstanceId='build-Windows_XP_x64-i', myImageInfo=VMImageInfo{myId='Windows_XP_x64', myImagePath='/home/admin/work/virtual_machines/winxp_x64/Windows_XP_x64.vmx'}}
[2013-03-06 12:21:44,419]   INFO - are.vmrun.local.LocalVMCommand - Starting command: /usr/bin/vmrun -T player start /home/admin/work/virtual_machines/winxp_x64/Windows_XP_x64.vmx  
[2013-03-06 12:21:44,613]   INFO - are.vmrun.local.LocalVMCommand - Result: Error: One of the parameters was invalid
[2013-03-06 12:21:44,613]   INFO - are.vmrun.local.LocalVMCommand - Result:  
[2013-03-06 12:21:44,613]   INFO - are.vmrun.local.LocalVMCommand - Code: 255
[2013-03-06 12:21:44,614]   WARN - .vmware.vmrun.local.LocalVMRun - Failed to start image: VMImageInfo{myId='Windows_XP_x64', myImagePath='/home/admin/work/virtual_machines/winxp_x64/Windows_XP_x64.vmx'}. Failed to start image VMImageInfo{myId='Windows_XP_x64', myImagePath='/home/admin/work/virtual_machines/winxp_x64/Windows_XP_x64.vmx'}, resultCode was 255, Error: One of the parameters was invalid,  
jetbrains.buildServer.clouds.vmware.vmrun.local.VMRunException: Failed to start image VMImageInfo{myId='Windows_XP_x64', myImagePath='/home/admin/work/virtual_machines/winxp_x64/Windows_XP_x64.vmx'}, resultCode was 255, Error: One of the parameters was invalid,
        at jetbrains.buildServer.clouds.vmware.vmrun.local.StartCommand.processResult(StartCommand.java:48)
        at jetbrains.buildServer.clouds.vmware.vmrun.local.LocalVMCommand.startVMRun(LocalVMCommand.java:85)
        at jetbrains.buildServer.clouds.vmware.vmrun.local.LocalVMRun.doStartMachine(LocalVMRun.java:118)
        at jetbrains.buildServer.clouds.vmware.vmrun.local.LocalVMRun.lockedStartMachine(LocalVMRun.java:84)
        at jetbrains.buildServer.clouds.vmware.vmrun.local.LocalVMRun.startMachine(LocalVMRun.java:65)
        at jetbrains.buildServer.clouds.vmware.client.DownloadingVMRun.startMachine(DownloadingVMRun.java:98)
        at jetbrains.buildServer.clouds.vmware.client.LoggingVMRun.startMachine(LoggingVMRun.java:86)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at jetbrains.buildServer.clouds.vmware.vmrun.remote.client.Client$1$1.run2(Client.java:135)
        at jetbrains.buildServer.clouds.vmware.vmrun.remote.client.Client$1$1.run(Client.java:119)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)
[2013-03-06 12:21:44,616]   WARN - are.vmrun.remote.client.Client - Failed to perform command.  
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at jetbrains.buildServer.clouds.vmware.vmrun.remote.client.Client$1$1.run2(Client.java:135)
        at jetbrains.buildServer.clouds.vmware.vmrun.remote.client.Client$1$1.run(Client.java:119)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)
Caused by: jetbrains.buildServer.clouds.vmware.vmrun.local.VMRunException: Failed to start image: VMImageInfo{myId='Windows_XP_x64', myImagePath='/home/admin/work/virtual_machines/winxp_x64/Windows_XP_x64.vmx'}. Failed to start image VMImageInfo{myId='Windows_XP_x64', myImagePath='/home/admin/work/virtual_machines/winxp_x64/Windows_XP_x64.vmx'}, resultCode was 255, Error: One of the parameters was invalid,
        at jetbrains.buildServer.clouds.vmware.vmrun.local.LocalVMRun.lockedStartMachine(LocalVMRun.java:89)
        at jetbrains.buildServer.clouds.vmware.vmrun.local.LocalVMRun.startMachine(LocalVMRun.java:65)
        at jetbrains.buildServer.clouds.vmware.client.DownloadingVMRun.startMachine(DownloadingVMRun.java:98)
        at jetbrains.buildServer.clouds.vmware.client.LoggingVMRun.startMachine(LoggingVMRun.java:86)
        ... 14 more
Caused by: jetbrains.buildServer.clouds.vmware.vmrun.local.VMRunException: Failed to start image VMImageInfo{myId='Windows_XP_x64', myImagePath='/home/admin/work/virtual_machines/winxp_x64/Windows_XP_x64.vmx'}, resultCode was 255, Error: One of the parameters was invalid,
        at jetbrains.buildServer.clouds.vmware.vmrun.local.StartCommand.processResult(StartCommand.java:48)
        at jetbrains.buildServer.clouds.vmware.vmrun.local.LocalVMCommand.startVMRun(LocalVMCommand.java:85)
        at jetbrains.buildServer.clouds.vmware.vmrun.local.LocalVMRun.doStartMachine(LocalVMRun.java:118)
        at jetbrains.buildServer.clouds.vmware.vmrun.local.LocalVMRun.lockedStartMachine(LocalVMRun.java:84)
        ... 17 more

When I start image manually it works correct.
Seems problem is in incorrect configuration, but I can't find where.
If you have any ideas, please help.

Thanks

1 comment
Comment actions Permalink

Seems that problem was in not installed JDK.

0

Please sign in to leave a comment.