From owner-freebsd-virtualization@FreeBSD.ORG Sat Jun 21 13:54:37 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 39F9BDBB; Sat, 21 Jun 2014 13:54:37 +0000 (UTC) Received: from mail-lb0-x236.google.com (mail-lb0-x236.google.com [IPv6:2a00:1450:4010:c04::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8580424B7; Sat, 21 Jun 2014 13:54:36 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id c11so2975932lbj.41 for ; Sat, 21 Jun 2014 06:54:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=7kxtJO3Okbi6E5l0FYUVUnuAyf5YEQMAl+BbOnIhYs8=; b=kaDDcTfiOgjKFl0p9wHqQRmgGvpBhISnxmN/9HWWu8wSpsqcGmWy7jsA6KUcGj+C1U yVmoXUs9pHIbzSWRNP1EuOaslTZK6hP1JWESog0elc5Fz4cnlk42rMv5vAP/KtCTuvKY FgcdvAbwEVu3tbkfA/lK9MWgTmxGfJnIewi8C/ji69NvOu0JjVSXT1eyg7Onepld1h/v xGvDnpBhHzx8qN7OlBurUG0n2wXmtUVxKiHVqpXyVcyd8Ku3+xzHnNjx/d67WfX7sTHp nkqMWa81NNpXHvfAsxRUzVQ7RxwYMcf+8BIjPB4GAY4nFridwmMuEg7q50gNkxtQ/46+ aNpw== X-Received: by 10.112.55.97 with SMTP id r1mr1667130lbp.74.1403358873441; Sat, 21 Jun 2014 06:54:33 -0700 (PDT) Received: from kloomba ([95.104.128.132]) by mx.google.com with ESMTPSA id ut18sm8977177lbb.38.2014.06.21.06.54.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Jun 2014 06:54:32 -0700 (PDT) Sender: Roman Bogorodskiy Date: Sat, 21 Jun 2014 17:52:01 +0400 From: Roman Bogorodskiy To: Craig Rodrigues Subject: Re: libvirt, bhyve, and Jenkins configuration problems Message-ID: <20140621135159.GA47374@kloomba> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qMm9M+Fa2AknHoGS" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jun 2014 13:54:37 -0000 --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--