From owner-freebsd-testing@FreeBSD.ORG Fri Jun 13 19:18:39 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 56C1BD0B; Fri, 13 Jun 2014 19:18:39 +0000 (UTC) Received: from mail-la0-x22d.google.com (mail-la0-x22d.google.com [IPv6:2a00:1450:4010:c03::22d]) (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 75C422C8D; Fri, 13 Jun 2014 19:18:38 +0000 (UTC) Received: by mail-la0-f45.google.com with SMTP id s18so1716539lam.4 for ; Fri, 13 Jun 2014 12:18:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=OlXaqaK53DBy4/q7wAQFn3f6qRPnikclnCpqFCq6oK4=; b=0/UVCzYwp7eAx7xSkM7McqNSMu0+fK8EufiOGYBt6jHaT7LV3CJPx6ex+nGTxhfV4a FZZnIvHvmTBagodNpNhIbQre9G4Fj7cGKEP6TXF0Hwa5FbV0TFYw3mQVkJUDt5ZlAvL4 K/WEpcnClrk1iHMU1bkE7uKIMf0+WIV/YgK0bsQNsxZBA1DeWxIrsEALk05jSStZLtUO 8PPg0tHmHk1tHFX05dk8RGTwuQ4/E+OyMU0ExqaGFtmOCvKbFbw57eX6APxrnisTCepp 6gn+yRb+ETWrfnCy5XvuQ7p/aSY6NabdettPvazmhO1KnI+XFrzyiej0GcjMLQNIVwVu j1EQ== MIME-Version: 1.0 X-Received: by 10.112.217.10 with SMTP id ou10mr2769615lbc.20.1402687116441; Fri, 13 Jun 2014 12:18:36 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.112.67.73 with HTTP; Fri, 13 Jun 2014 12:18:36 -0700 (PDT) In-Reply-To: <20140612190042.GA2858@kloomba> References: <20140611182101.GD2855@kloomba> <20140611192514.GE2855@kloomba> <20140612080057.GA93486@kloomba> <20140612190042.GA2858@kloomba> Date: Fri, 13 Jun 2014 12:18:36 -0700 X-Google-Sender-Auth: 8oqqzSOMKxju4urHTSRMYuXeI5A Message-ID: Subject: Re: libvirt and bhyve problems From: Craig Rodrigues To: Roman Bogorodskiy Content-Type: text/plain; charset=ISO-8859-1 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 19:18:39 -0000 On Thu, Jun 12, 2014 at 12:00 PM, Roman Bogorodskiy wrote: > > 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? 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. I tried the steps again and got this: 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=bhyve) unexpected exit status 255 If I do ifconfig, I have no bridge or tap devices. > > Also, do you have working 'net-list' command in virsh with my version of > port? I get this: virsh # net-list Name State Autostart Persistent ---------------------------------------------------------- > > PS If you're available for some real-time conversation such as on IRC, I > think some kind of things would be faster to discuss there. You can private mail me some times when you are available. I am busy the next few days, but might have a few hours on Sunday. -- Craig