Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jun 2014 17:52:01 +0400
From:      Roman Bogorodskiy <novel@FreeBSD.org>
To:        Craig Rodrigues <rodrigc@FreeBSD.org>
Cc:        "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org>
Subject:   Re: libvirt, bhyve, and Jenkins configuration problems
Message-ID:  <20140621135159.GA47374@kloomba>
In-Reply-To: <CAG=rPVd1xawM8iqJfqqUcaOM_5sfT4ouTBLDpTrSpJZUsQFQRw@mail.gmail.com>
References:  <CAG=rPVd1xawM8iqJfqqUcaOM_5sfT4ouTBLDpTrSpJZUsQFQRw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--qMm9M+Fa2AknHoGS
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

  Craig Rodrigues wrote:

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

--qMm9M+Fa2AknHoGS
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (FreeBSD)

iQEcBAEBAgAGBQJTpY3/AAoJEMltX/4IwiJqBXgH/3GOEQ1HI5aVrdnlABaFfTzC
Oa0H5opoFQVmAqIfRmcxpVEf3kKezGft2W1w1oHwpxXu6GZP08hbw5eo2rMdwX6N
azRKeinxIMyPKe9krS8wlHb8USkyBmDn7kr4B3zdzS7H0IQ1KKl/4oI+Z01Gyodr
YzR30MuKQe9e46ASlK8/TYriHvBTfqq60ODfN2n+MCr3EGm1zvwNKwGBUb1kufdT
9qNAru8i6sL6oUKNPvr1nuJjLuARrQ7JKeNK9uIpCoOqpTlPW7Dqan3IiB2UvOBP
KlyWLyOuZjyTFiM5GHb2pdNfssNdjS67tLMz2ZxXc9+qUmooMnjoGdjNpVx10Q8=
=zs0W
-----END PGP SIGNATURE-----

--qMm9M+Fa2AknHoGS--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140621135159.GA47374>