From owner-freebsd-testing@FreeBSD.ORG Tue Jun 10 05:40:02 2014 Return-Path: Delivered-To: freebsd-testing@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 70D55E20; Tue, 10 Jun 2014 05:40:02 +0000 (UTC) Received: from mail-la0-x232.google.com (mail-la0-x232.google.com [IPv6:2a00:1450:4010:c03::232]) (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 964602A3B; Tue, 10 Jun 2014 05:40:01 +0000 (UTC) Received: by mail-la0-f50.google.com with SMTP id b8so3660945lan.9 for ; Mon, 09 Jun 2014 22:39:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:cc:content-type; bh=eKFRhzc9a7+eZZfxvSNsujNiT1HZvo1EXq+YZi6NblQ=; b=wDJOWcZHhYyxXNMMwqkwi+2Ffyzv2DT9KZh48Y8W/EqNhYNXfwzX7rH9560Qjx1rOq jekwijF9JFfHtQBIKTUP26CqwPPU47ShEAOKgpxoVXfKl1gtjLqLbpiqWs8KknLDAnOv 93/7dasIn/cIhm81/ptUjxJnUbSViKTHrg3i+A9BCuuhw2rmWl68GmNWUBzEdm2wU71N k19cg7qZH+dolOKEP28DdlFZF4KhfWJ6ddpZ8q7DVRhFwJng/DgzCoeJ5QD9Sqsd5t// ePfb8RO7T/nm1ceabb87qDjUKtpvigyzVqskfzEdp1NyDWqpJiSks6epZ7ezb7dsjhsw TaqA== MIME-Version: 1.0 X-Received: by 10.153.5.37 with SMTP id cj5mr542032lad.48.1402378799580; Mon, 09 Jun 2014 22:39:59 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.112.67.73 with HTTP; Mon, 9 Jun 2014 22:39:59 -0700 (PDT) Date: Mon, 9 Jun 2014 22:39:59 -0700 X-Google-Sender-Auth: Z42-S537V34VLd4BOGoGcInKyn0 Message-ID: Subject: libvirt and bhyve problems From: Craig Rodrigues To: Roman Bogorodskiy , Roman Bogorodskiy Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-testing@freebsd.org" , "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2014 05:40:02 -0000 Roman, I have been reading your blog posts on using libvirt + bhyve here: http://empt1e.blogspot.com/ and the libvirt bhyve documentation here: http://libvirt.org/drvbhyve.html but am having problems reproducing the steps. 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 I applied the following patches to the devel/libvirt port to fix compilation problems for bhyve support: http://lists.freebsd.org/pipermail/freebsd-virtualization/2014-June/002586.html I then did the following: BUILD AND CONFIGURE =================== cd /usr/ports/devel/libport make config (I made sure bhyve and QEMU support were enabled make make install LIBVIRT CONFIG ============== I created the following /tmp/bhyve.xml file: bhyve df3be7e7-a104-11e3-aeb0-50e5492bd3dc 219136 219136 1 hvm RUNNING ======== I did the following as root: service libvirtd restart virsh -c 'bhyve:///system' Then I ran these commands from the virsh prompt: virsh # define /tmp/bhyve.xml Domain bhyve defined from /tmp/bhyve.xml 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 At this point libvirtd process crashed with a /libvirtd.core process , but for some reason I could not get a valid stacktrace. Can you provide assistance to get this working? Ultimately, I want to get the Jenkins libvirt plugin ( https://wiki.jenkins-ci.org/display/JENKINS/Libvirt+Slaves+Plugin ) to work. Thanks. -- Craig