From owner-freebsd-virtualization@FreeBSD.ORG Tue Jun 10 11:43:52 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 50050CB8; Tue, 10 Jun 2014 11:43:52 +0000 (UTC) Received: from mail-lb0-x22c.google.com (mail-lb0-x22c.google.com [IPv6:2a00:1450:4010:c04::22c]) (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 71E032A9B; Tue, 10 Jun 2014 11:43:51 +0000 (UTC) Received: by mail-lb0-f172.google.com with SMTP id l4so3845599lbv.17 for ; Tue, 10 Jun 2014 04:43: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:content-transfer-encoding :in-reply-to:user-agent; bh=q1K2dN0s2PNQSLofvWRY8FFgz38C/BLjjopc3TQBddI=; b=wovUoA9Wu9UuPxyHTRCMaIeokA7+Cn0FgGQlXY3x8acyMg5lFUtSevzxgiRMq/1qzx 0Lx52MxankEo9y33uPjAUtkXg/uYWlkVcdYybkfRiApSUMZD7J2B1hq8IYbXfCS5VC2Z Z8R1pj00wgp8KWWiSazwt09Mc/qmR8lMFcNxnyA+VnW7UFtAi4yeybhlooO8EPe5Yo0l fl2VdDgOz3g8Xbl9xQbDJgmtsBoYQO/tPckKc9xASOSJM+Rpp7b2f6WWZSrXnfdb3MKW IGBbRE189/BkARPDaEj/NCzEs3tYCAxIZr+InLBooanl65YbhF9ukammzVdMxfVToq9f hLbQ== X-Received: by 10.152.44.170 with SMTP id f10mr17291lam.87.1402400629311; Tue, 10 Jun 2014 04:43:49 -0700 (PDT) Received: from dev.san.ru (dev.san.ru. [88.147.129.60]) by mx.google.com with ESMTPSA id b6sm18446425laa.20.2014.06.10.04.43.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Jun 2014 04:43:48 -0700 (PDT) Sender: Roman Bogorodskiy Date: Tue, 10 Jun 2014 15:43:43 +0400 From: Roman Bogorodskiy To: Craig Rodrigues Subject: Re: libvirt and bhyve problems Message-ID: <20140610114342.GA11194@dev.san.ru> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: User-Agent: Mutt/1.5.22 (2013-10-16) Cc: "freebsd-testing@freebsd.org" , Roman Bogorodskiy , "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: Tue, 10 Jun 2014 11:43:52 -0000 Craig Rodrigues wrote: > Roman, >=20 > I have been reading your blog posts on using libvirt + bhyve > here: >=20 > http://empt1e.blogspot.com/ >=20 > and the libvirt bhyve documentation here: > http://libvirt.org/drvbhyve.html >=20 > but am having problems reproducing the steps. >=20 > I have a machine running: > FreeBSD 11.0-CURRENT FreeBSD 11.0-CURRENT #6 r266934M: Sat May 31 > 20:24:37 PDT 2014 > root@crodrigues.org:/usr/obj/opt2/branches/head/sys/GENERIC amd64 >=20 >=20 > I applied the following patches to the devel/libvirt port to fix > compilation problems for bhyve support: >=20 > http://lists.freebsd.org/pipermail/freebsd-virtualization/2014-June/00258= 6.html >=20 > I then did the following: >=20 > BUILD AND CONFIGURE > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > cd /usr/ports/devel/libport > make config > (I made sure bhyve and QEMU support were enabled > make > make install >=20 >=20 > LIBVIRT CONFIG > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > I created the following /tmp/bhyve.xml file: >=20 >=20 > > bhyve > df3be7e7-a104-11e3-aeb0-50e5492bd3dc > 219136 > 219136 > 1 > > hvm > > > > > > > > > > > > > > > > > > >=20 >=20 > RUNNING > =3D=3D=3D=3D=3D=3D=3D=3D >=20 > I did the following as root: >=20 > service libvirtd restart > virsh -c 'bhyve:///system' >=20 > Then I ran these commands from the virsh prompt: >=20 > virsh # define /tmp/bhyve.xml > Domain bhyve defined from /tmp/bhyve.xml >=20 > virsh # start bhyve > error: Failed to start domain bhyve > error: End of file while reading data: Input/output error > error: Failed to reconnect to the hypervisor >=20 >=20 > At this point libvirtd process crashed with a /libvirtd.core process , > but for some reason I could not get a valid stacktrace. >=20 > Can you provide assistance to get this working? >=20 > Ultimately, I want to get the Jenkins libvirt plugin ( > https://wiki.jenkins-ci.org/display/JENKINS/Libvirt+Slaves+Plugin ) > to work. >=20 > Thanks. Hi Craig, It's a little unfortunate that there's no stacktrace, though we can try to see what's going on without it. Could you please edit libvirtd.conf (should be something like /usr/local/etc/libvirtd.conf if installed from port) to add: log_level =3D 2 then run libvirtd by hand in foreground: # libvirtd=20 and then try to start the domain again and post a couple of lines it prints before crashing? Thanks, Roman Bogorodskiy