vSphere plugin does not starts slave

1,215 views
Skip to first unread message

Gábor Garami

unread,
Sep 2, 2012, 7:43:59 AM9/2/12
to jenkins...@googlegroups.com
Hi!

I use VMware ESXi 4.0 with the vSphere plugin, and slave VM does not
being started. It is always stuck on Powering on VM state (at least
based on logs).

The Test VM Connection passes.

openSUSE Linux 11.4
Jenkins ver. 1.479 (installed from pkg.jenkins-ci.org/opesuse started
by the init script of the package).
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
vSphere plugins is the latest installable.

Please help me...

Garami Gábor
E-mail: gabor....@hron.me
Tel: +36 20 235 9621
MSN: hr...@vipmail.hu
Skype: hron84

Jason Swager

unread,
Sep 4, 2012, 10:32:13 PM9/4/12
to jenkins...@googlegroups.com
How is the slave agent being started?  Does the VM connect via Java Web Start?  Is Jenkins supposed to start the slave agent via SSH?

If via Java Web Start, make sure the the slave agent really did start.  

If via SSH, make sure that the VM has enough time to fully start (wait for VM Tools plus any necessary delay) so that the SSH server is online before Jenkins tries to communicate.

Gábor Garami

unread,
Sep 5, 2012, 4:51:22 AM9/5/12
to jenkins...@googlegroups.com
I set slave activation via SSH. But the main problem is VM does not
powered on. So, my problem is not the VM not boots up and connects to
master, but nobody pushes the power button on it... (and yes, because
it not powered on, it does not connects to the master :-) )

If i turn on VM manually, Jenkins recognizes it and starts slave
process correctly, however, this is not I really want (turn on VM
every case when I need it). I would like if Jenkins can turn on/off VM
on demand.

Garami Gábor
E-mail: gabor....@hron.me
Tel: +36 20 235 9621
MSN: hr...@vipmail.hu
Skype: hron84


Jason Swager

unread,
Sep 5, 2012, 9:53:25 AM9/5/12
to jenkins...@googlegroups.com
Just to confirm, we are talking about the vSphere Cloud plugin?  https://wiki.jenkins-ci.org/display/JENKINS/vSphere+Cloud+Plugin 

Assuming that you are, the Test VM Connection button does work and indicates no problems?
What are the slave settings?

Gábor Garami

unread,
Sep 5, 2012, 11:49:13 AM9/5/12
to jenkins...@googlegroups.com

Yes, that is the plugin what i use.

No, test vm connection button does not says any problems.

I cannot access my jenkins now, but i'll post screenshot about settings asap.

Garami Gábor
gabor....@hron.me
Skype: hron84

Sent from my T-Mobile G2
Ezt a levelet telefonról adták fel, ékezethibákat tartalmazhat.

Gábor Garami

unread,
Sep 7, 2012, 6:06:25 AM9/7/12
to jenkins...@googlegroups.com

Jason Swager

unread,
Sep 7, 2012, 9:31:22 AM9/7/12
to jenkins...@googlegroups.com
Your configurations all look good.  When Jenkins tries to start the slave, do you see any commands at all appearing in vSphere?  At the very least, I would hope to see a power on event.

Gábor Garami

unread,
Sep 7, 2012, 10:39:04 AM9/7/12
to jenkins...@googlegroups.com
(shake) Nothing.

Strange question, but can it cause a problem I use https in vSphere
URL? And, this is not really a vSphere cloud but a single ESXi
server...

Garami Gábor
E-mail: gabor....@hron.me
Tel: +36 20 235 9621
MSN: hr...@vipmail.hu
Skype: hron84


Jason Swager

unread,
Sep 7, 2012, 11:08:49 AM9/7/12
to jenkins...@googlegroups.com
I believe that HTTPS is the ONLY allowed way of connecting.

The plugin will work with a vCenter installation or with single ESXi hosts.  BUT - the ESXi host must be fully licensed, otherwise the remote APIs won't work, which is how the plugin works with the VMs.  If you get the free ESXi host with it's free license, the remote APIs are disabled and the plugin won't work.  I'll update the wiki page for this...

Gábor Garami

unread,
Sep 8, 2012, 7:14:40 AM9/8/12
to jenkins...@googlegroups.com

Then that's why it is not works. And there is no waz to change? I think vSphere client is stops/starts instances somehow....

I'll take a closer look, because iirc libvirt can manage free esxi hosts.

Garami Gábor
gabor....@hron.me
Skype: hron84
Tel: +36 20 235 9621

Sent from my T-Mobile G2
Ezt a levelet telefonról adták fel, ékezethibákat tartalmazhat.

Jason Swager

unread,
Sep 8, 2012, 7:33:23 PM9/8/12
to jenkins...@googlegroups.com
According to VMware, there only remote API on the free ESXi is read-only - you cannot "write", such as make changes. The vSphere client does use the
write aspect of the remote API, but HOW is not published.  All of the various APIs, both by VMware and by third parties have a clause indicating
they will work read-only with free ESXi.  That makes me rather curious as to how libvirt can manage the free ESXi - or are they just using the
read-only aspect. 

Gábor Garami

unread,
Sep 10, 2012, 8:08:01 AM9/10/12
to jenkins...@googlegroups.com

I will test it anyway as soon as i have a time for that.

Garami Gábor
gabor....@hron.me
Skype: hron84
Tel: +36 20 235 9621

Sent from my T-Mobile G2
Ezt a levelet telefonról adták fel, ékezethibákat tartalmazhat.

ryanv...@gmail.com

unread,
Mar 1, 2016, 10:33:22 PM3/1/16
to Jenkins Users
Hi Jason Swager,

I also have this problem. I'm using vsphere 6.0 and vsphere cloud plugin 2.11. But the jenkins conn't connect to the vm.



Could you help me solve this?


Many Thanks



在 2012年9月7日星期五 UTC+8下午11:08:49,Jason Swager写道:
Reply all
Reply to author
Forward
0 new messages