libvirt, bhyve, and Jenkins configuration problems

Roman Bogorodskiy novel at FreeBSD.org
Sat Jun 21 13:54:37 UTC 2014


  Craig Rodrigues wrote:

> Hi,
> 
> I am trying to configure Jenkins to spawn bhyve VM's on demand
> using libvirt.
> 
> I did the following:
> 
> (1)  Looked at Roman's blog article:
> 
> http://empt1e.blogspot.com/2014/03/using-jenkins-libvirt-slave-plugin-with.html
> 
> (2)  Followed the libvirt configuration steps here:
> 
> http://people.freebsd.org/~rodrigc/libvirt/libvirt-bhyve.html
> 
> 
> Here are the screenshots of my Jenkins setp for libvirt:
> 
> http://people.freebsd.org/~rodrigc/libvirt/libvirt-bhyve-jenkins.html
> 
> However, after going through all that,
> when I tried to configure a job to run on the libvirt node,
> it did not start.
> 
> Any ideas what I am doing wrong?

Hi Craig,

Some questions:

When you configure the connection in the 'Add a new Cloud' dialog, does
'test connection' work for you? I don't see a host and credentials
specified, I'm not sure if jenkins libvirt plugin works with the local
connection.

In my setup, I have specified the host and the credentials like this:

http://people.freebsd.org/~novel/misc/jenkins-libvirt-01.png

Then, the new node screen doesn't look complete as well. There, one has
to choose one of the pre-defined domains, specify its IP address and
credentials so Jenkins could ssh to it and run its agent. Also, one has
to install JDK as the agent is Java-based. As I've described in my post,
I did it using:

 pkg install java/openjdk7

command in the guest.

Here's a config of my sample node:

http://people.freebsd.org/~novel/misc/jenkins-libvirt-02.png

After that in the node page one could start the agent and if ssh
credentials and IP address of the VM are correct, the agent will
successfully start:

http://people.freebsd.org/~novel/misc/jenkins-libvirt-03.png

Then in the nodes list it should be up and ready for the builds:

http://people.freebsd.org/~novel/misc/jenkins-libvirt-04.png

Note: depending on the policy specified for node, it might be turned off
when idle so it'll be reported down in this list until when new jobs for it
appear.

Roman Bogorodskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-virtualization/attachments/20140621/e813a1e9/attachment.sig>


More information about the freebsd-virtualization mailing list