From owner-freebsd-testing@FreeBSD.ORG Fri Jun 13 16:21:09 2014 Return-Path: Delivered-To: freebsd-testing@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 14D471AE; Fri, 13 Jun 2014 16:21:09 +0000 (UTC) Received: from smtp.digiware.nl (unknown [IPv6:2001:4cb8:90:ffff::3]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 382AC2C9D; Fri, 13 Jun 2014 16:21:08 +0000 (UTC) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 65D5F1534D2; Fri, 13 Jun 2014 18:21:00 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nAHDWD0NCu0l; Fri, 13 Jun 2014 18:20:57 +0200 (CEST) Received: from [IPv6:2001:4cb8:3:1:a15d:b174:138f:d372] (unknown [IPv6:2001:4cb8:3:1:a15d:b174:138f:d372]) by smtp.digiware.nl (Postfix) with ESMTP id E7C521534C0; Fri, 13 Jun 2014 18:20:57 +0200 (CEST) Message-ID: <539B24E1.7040006@digiware.nl> Date: Fri, 13 Jun 2014 18:20:49 +0200 From: Willem Jan Withagen Organization: Digiware Management b.v. User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Craig Rodrigues , Roman Bogorodskiy Subject: Re: libvirt and bhyve problems References: <20140610175420.GC61743@kloomba> <20140610191439.GA220@kloomba> <20140611182101.GD2855@kloomba> <20140611192514.GE2855@kloomba> <20140612080057.GA93486@kloomba> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Fri, 13 Jun 2014 16:21:09 -0000 On 2014-06-12 20:33, Craig Rodrigues wrote: > On Thu, Jun 12, 2014 at 11:28 AM, Craig Rodrigues wrote: >> On Thu, Jun 12, 2014 at 1:00 AM, Roman Bogorodskiy wrote: >>> >>> http://people.freebsd.org/~novel/misc/libvirt_port_updated.tgz >>> >>> With this setup, I'm able to get networking (e.g. virsh net-list works) >>> and updated the fix for the previous problem. I was able to start a VM >>> with that setup. >> >> >> I deleted the old port from my system and took your modified port, >> built it, and installed it. >> >> I followed my previous steps in: >> http://lists.freebsd.org/pipermail/freebsd-virtualization/2014-June/002588.html >> and got this: >> >> 2014-06-12 18:23:54.328+0000: 34485605376: info : libvirt version: 1.2.5 >> 2014-06-12 18:23:54.328+0000: 34485605376: error : >> dnsmasqCapsRefreshInternal:726 : Cannot check dnsmasq binary dnsmasq: >> No such file or directory >> 2014-06-12 18:23:54.328+0000: 34485605376: info : >> networkReloadFirewallRules:1750 : Reloading iptables rules >> 2014-06-12 18:23:54.328+0000: 34485605376: info : >> networkRefreshDaemons:1722 : Refreshing network daemons >> 2014-06-12 18:23:54.438+0000: 34485605376: error : virExec:417 : >> Cannot find 'pm-is-supported' in path: No such file or directory >> 2014-06-12 18:23:54.439+0000: 34485605376: warning : >> virQEMUCapsInit:948 : Failed to get host power management capabilities >> 2014-06-12 18:23:54.460+0000: 34485605376: info : >> virDomainObjListLoadAllConfigs:18249 : Scanning for configs in >> /usr/local/var/run/libvirt/qemu >> 2014-06-12 18:23:54.461+0000: 34485605376: info : >> virDomainObjListLoadAllConfigs:18249 : Scanning for configs in >> /usr/local/etc/libvirt/qemu >> 2014-06-12 18:23:54.560+0000: 34485605376: info : >> virDomainObjListLoadAllConfigs:18249 : Scanning for configs in >> /usr/local/etc/libvirt/bhyve >> 2014-06-12 18:23:54.560+0000: 34485605376: info : >> virDomainObjListLoadAllConfigs:18273 : Loading config file 'bhyve.xml' >> 2014-06-12 18:24:17.940+0000: 34485598208: error : >> virNetDevBridgeAddPort:399 : Unable to add bridge tap0 port vnet0: >> Invalid argument >> 2014-06-12 18:24:18.056+0000: 34485598208: error : virCommandWait:2426 >> : internal error: Child process (/usr/sbin/bhyvectl --destroy >> --vm=bhyve) unexpected exit status 255 >> >> >> -- >> Craig > > > After the program fails, these are my tap and bridge devices, as shown > by ifconfig: > > bridge0: flags=8843 metric 0 mtu 1500 > ether 02:29:45:c7:8f:00 > nd6 options=9 > id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 > maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 > root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 > member: em0 flags=143 > ifmaxaddr 0 port 1 priority 128 path cost 20000 > member: tap2 flags=143 > ifmaxaddr 0 port 7 priority 128 path cost 2000000 > member: tap1 flags=143 > ifmaxaddr 0 port 6 priority 128 path cost 2000000 > member: tap0 flags=143 > ifmaxaddr 0 port 5 priority 128 path cost 2000000 > tap0: flags=8902 metric 0 mtu 1500 > options=80000 > ether 00:bd:53:27:00:00 > nd6 options=29 > media: Ethernet autoselect > status: no carrier > tap1: flags=8902 metric 0 mtu > 1500 > options=80000 > ether 00:bd:59:27:00:01 > nd6 options=29 > media: Ethernet autoselect > status: no carrier > tap2: flags=8943 > metric 0 mtu 1500 > options=80000 > ether 00:bd:5e:27:00:02 > nd6 options=29 > media: Ethernet autoselect > status: active > Opened by PID 1506 > vnet0: flags=8802 metric 0 mtu 1500 > options=80000 > ether fe:54:00:33:20:8c > nd6 options=21 > media: Ethernet autoselect > status: no carrier > > > This is in my /etc/rc.conf for creating bridge and tap devices on bootup: > > ##################################################### > # Create tap devices, one tap interface per BHyve VM. > # Add the tap interfaces to bridge0 > #################################################### > cloned_interfaces="bridge0 tap0 tap1 tap2" > > autobridge_interfaces="bridge0" > autobridge_bridge0="tap* em0" I claim to know nothing about libvirt..... But in my scripts I need to delay using the tap?? interfaces for 1-2 secs with a sleep. Because otherwise my bhyve VM fails. Could be the same here? --WjW