From owner-freebsd-testing@FreeBSD.ORG Sun Jun 15 15:22:33 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 71920AEF; Sun, 15 Jun 2014 15:22:33 +0000 (UTC) Received: from mail-lb0-x22a.google.com (mail-lb0-x22a.google.com [IPv6:2a00:1450:4010:c04::22a]) (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 7CF552387; Sun, 15 Jun 2014 15:22:32 +0000 (UTC) Received: by mail-lb0-f170.google.com with SMTP id 10so1390934lbg.1 for ; Sun, 15 Jun 2014 08:22:30 -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=7+0oghu3OKdcsfe2AkLRQsU4DA8kCON5PeA+yZy0RM8=; b=QjT+FiQz1Gk5cHLRJWSlqimyGYl2LQxvigwkGO7re2P1R0vDtMfIiYyf9z2E8p1WSm ZEg0+DUCSnMeQnxl48OS1oU3dAnT6Y1QyjcRGRkBU2F6E+erf/fN+QPxyxaLO6eXQbUg 8+RJNSRUxIAmNQ4I7i9ktBFPZMBES3se5Dejx4Mq3DMipDWpQJFUIfoD+jHMgmNFv9ta i/EacWdxw1gZ34/PxwXSJij7iZDwpMPc53UYfUmEUzVLOZErDaMThMnhzXfkOn4wV7O8 FcEOBksD0pda5qlFma5ASb5gn/MYhNIllH6ghNBQN8zhOJI9dWx2tUujXd3e+S1Ay3OW rY4Q== X-Received: by 10.152.36.134 with SMTP id q6mr10507893laj.29.1402845750233; Sun, 15 Jun 2014 08:22:30 -0700 (PDT) Received: from kloomba ([95.104.132.224]) by mx.google.com with ESMTPSA id bg4sm6414133lbb.6.2014.06.15.08.22.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Jun 2014 08:22:29 -0700 (PDT) Sender: Roman Bogorodskiy Date: Sun, 15 Jun 2014 19:20:09 +0400 From: Roman Bogorodskiy To: Craig Rodrigues Subject: Re: libvirt and bhyve problems Message-ID: <20140615152008.GA19985@kloomba> References: <20140611182101.GD2855@kloomba> <20140611192514.GE2855@kloomba> <20140612080057.GA93486@kloomba> <20140612190042.GA2858@kloomba> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wac7ysb48OaltWcw" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: "freebsd-testing@freebsd.org" , Roman Bogorodskiy , "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: Sun, 15 Jun 2014 15:22:33 -0000 --wac7ysb48OaltWcw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Craig Rodrigues wrote: > On Thu, Jun 12, 2014 at 12:00 PM, Roman Bogorodskiy w= rote: > > > > Ah. Actually, libvirt manages bridges and taps on its own. So, the > > preferred flow is that libvirt starts its networks on startup > > automatically. By default it has a network with the 'virbr0' device > > which it creates on its own. > > > > Later on it creates vnet devices (which are tap devices) automatically > > as well on VM startup and plugs them to the bridge. > > > > The configuration you have probably confuses it, could you consider > > trying without that? >=20 > OK, I removed all autobridge and cloned_interfaces entries > from my rc.conf and rebooted. I am still using your version of the > libvirt port. >=20 > I tried the steps again and got this: >=20 > 2014-06-13 19:09:10.482+0000: 34485605376: info : libvirt version: 1.2.5 > 2014-06-13 19:09:10.482+0000: 34485605376: error : > dnsmasqCapsRefreshInternal:726 : Cannot check dnsmasq binary dnsmasq: > No such file or directory > 2014-06-13 19:09:10.482+0000: 34485605376: info : > networkReloadFirewallRules:1750 : Reloading iptables rules > 2014-06-13 19:09:10.482+0000: 34485605376: info : > networkRefreshDaemons:1722 : Refreshing network daemons > 2014-06-13 19:09:10.593+0000: 34485605376: error : virExec:417 : > Cannot find 'pm-is-supported' in path: No such file or directory > 2014-06-13 19:09:10.593+0000: 34485605376: warning : > virQEMUCapsInit:948 : Failed to get host power management capabilities > 2014-06-13 19:09:10.615+0000: 34485605376: info : > virDomainObjListLoadAllConfigs:18249 : Scanning for configs in > /usr/local/var/run/libvirt/qemu > 2014-06-13 19:09:10.615+0000: 34485605376: info : > virDomainObjListLoadAllConfigs:18249 : Scanning for configs in > /usr/local/etc/libvirt/qemu > 2014-06-13 19:09:10.716+0000: 34485605376: info : > virDomainObjListLoadAllConfigs:18249 : Scanning for configs in > /usr/local/etc/libvirt/bhyve > 2014-06-13 19:09:10.716+0000: 34485605376: info : > virDomainObjListLoadAllConfigs:18273 : Loading config file 'bhyve.xml' > 2014-06-13 19:09:25.938+0000: 34485598208: error : > virNetDevTapCreate:385 : Unable to create tap device: Invalid argument > 2014-06-13 19:09:26.063+0000: 34485598208: error : virCommandWait:2426 > : internal error: Child process (/usr/sbin/bhyvectl --destroy > --vm=3Dbhyve) unexpected exit status 255 >=20 >=20 > If I do ifconfig, I have no bridge or tap devices. >=20 >=20 > > > > Also, do you have working 'net-list' command in virsh with my version of > > port? >=20 > I get this: > virsh # net-list > Name State Autostart Persistent > ---------------------------------------------------------- >=20 I have updated the port: http://people.freebsd.org/~novel/misc/libvirt_port2.tgz Changes are: * added RUN_DEPENDS on dnsmasq (required for networking) * added installation on network definition files Hopefully this will allow to bring up network on start. When the daemon starts, virsh should show the following: virsh # net-list Name State Autostart Persistent ---------------------------------------------------------- default active yes yes virsh #=20 If that's not the case, then something is still going wrong. And yes, qemu support should be enabled (networks defs seem to be installed with qemu support). Even if it doesn't work, and 'net-list --all' is empty, we could try to do it manually (but still, if it's the case, then it's something wrong with the port that needs to be fixed): in virsh # net-define /usr/local/etc/libvirt/qemu/networks/default.xml # net-start default Roman Bogorodskiy --wac7ysb48OaltWcw Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (FreeBSD) iQEcBAEBAgAGBQJTnbmoAAoJEMltX/4IwiJqJSYH/iB/li8gPsiD4tnzO7Wi7TAp hVxaStC3I2cMYfPxnKp/76dwDKzJDqveNTFSXr02gh6khQ4YilZ0h+Vi1jGcPfgH JKMWEKT7I/mcl6gkEOZr9Dwb9NKJQci+6RSaMMBkV7cjAweOByFlOz68tPJ/hV2O oiZbJj8uNA+KkbKEUYLxb/Digpo+mvdFlPWDXxtTMb02vW3J8eHnUUTy4EpvNo0r wWReT7ri57yG/LHcO/oGiK1QZ4OjeUBibD1iEKAXltX9kiN6XOK3+J/IZGKx0Ch5 hpBW9RK9g7adosdr4AZSVMqmsw6hi1mvkRJGcb+TnNym5pSEqwhQfx1OA1CWlj8= =TAba -----END PGP SIGNATURE----- --wac7ysb48OaltWcw--