From owner-freebsd-virtualization@FreeBSD.ORG Wed Jun 25 18:10:52 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4C553290; Wed, 25 Jun 2014 18:10:52 +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 9643C247C; Wed, 25 Jun 2014 18:10:51 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id c11so2154219lbj.13 for ; Wed, 25 Jun 2014 11:10:49 -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=qBat1SWOBgPFyPoSPYERFXg8RasuzWxnkw/vWdpOKv0=; b=TvkhRMl2c8g9x66i4s9vZr529iyHQw//BP78Smf7WYWAREsYjINANarmTn6GzC6NJr FqojNyDiAIj4ZeG6Mdt1g3GiZBaxXNpSxnRYdVzMGyFb3kPTgY9657zgZ8pNY0x6n7as rIrYFGnhAryYLLGYPfmJxtv3s2ofiBILu8F3X4jkVSpUnkdqomcEXVmn7nCJqt4Tr9iy 7OX4poTiWJBFkDdH3Dt+OPYICtNxsXYj8idFVbxTI3vf25pa/5f9j1vzejHs/Oa1vf0p cD+5bcnpPvyyDaeC5RaBS+m67rsH046nlFkOcooxXS8j1OxkPyMJb081o+17uQdpBFBi 7FhA== X-Received: by 10.152.27.66 with SMTP id r2mr6990539lag.53.1403719849386; Wed, 25 Jun 2014 11:10:49 -0700 (PDT) Received: from kloomba ([95.104.140.69]) by mx.google.com with ESMTPSA id h11sm4373022lbm.13.2014.06.25.11.10.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jun 2014 11:10:48 -0700 (PDT) Sender: Roman Bogorodskiy Date: Wed, 25 Jun 2014 22:08:12 +0400 From: Roman Bogorodskiy To: Craig Rodrigues Subject: Re: libvirt, bhyve, and Jenkins configuration problems Message-ID: <20140625180810.GB1304@kloomba> References: <20140621135159.GA47374@kloomba> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="24zk1gE8NUlDmwG9" 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: Wed, 25 Jun 2014 18:10:52 -0000 --24zk1gE8NUlDmwG9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Craig Rodrigues wrote: > On Sat, Jun 21, 2014 at 6:52 AM, Roman Bogorodskiy > wrote: >=20 > > > > > > 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. > > >=20 > OK, following your example, I have gotten further along. > I have updated my setup instructions here: >=20 > http://people.freebsd.org/~rodrigc/libvirt/libvirt-bhyve-jenkins.html >=20 > In "Step 3", when I click on "Test Connection", I see >=20 > OK: bhyve+ssh://root@localhost:22/system?no_tty=3D1 version=3D11000000 >=20 > so that seems to work. >=20 > For Step 5, when I enter the Host and Credentials information, > does this information need to be the IP address and login information > for the VM that has been spawned, and not the info for libvirt, as > specified in Step 3? Correct. > Does that mean that I need to configure my VM, so that it comes up with a > known IP, so that > it can be entered on this configuration page? Correct. Though, normally you don't need to perform any special configuration for the IP address as long as the networking configuration is correct. The VM just needs to be configured to obtain an IP address via DHCP. Later on it should be persistent in dnsmasq. An IP address could be obtained either from the dnsmasq leases file or =66rom arp cache for example. > Also, the VM, that is spawned, it must have openjdk installed? Does that > mean that > after libvirt starts the VM, Jenkins will try to SSH into the VM and start > a Jenkins job > by invoking java? Yes, it's true, it starts its agent which does the job. PS Maybe there are other ways to push Jobs to Jenkins nodes, but I didn't look close into that. Roman Bogorodskiy --24zk1gE8NUlDmwG9 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (FreeBSD) iQEcBAEBAgAGBQJTqxAKAAoJEMltX/4IwiJqRaoH/3Obhk23RlYWUbgPIxHXZZU+ n/U8bq1q29tdN8sK5tVWA74fqscPszgYSeZnSA76tVVRG5H1R7k3cZdT16uqN6Mt GPlKMttTKdO8n8aJZZbwm3/Xvu5MJTYgDC6ybIpU8T5dsbMFHzAK31DlVXZXUivi 4h+bVPhPDrnjAiHVzcerW2GxWJosp57MHu6N/DBxg+W+JZ5g4s261mgk2ABdpMjf o+pJ49bN0/LuHsKndro0VdR4Cgjfi1ZaXJ0sHrgWP7tY8V39g9a8rrLWVLfBy97j xdnQ2CxvPea+zI3Oo7s5X4ANJOqGfPZqdxYJN8qUrQuwdwh7TfeNc7HdFepqHhg= =6r/K -----END PGP SIGNATURE----- --24zk1gE8NUlDmwG9--