From owner-freebsd-virtualization@FreeBSD.ORG Tue Jun 10 19:25:24 2014 Return-Path: Delivered-To: freebsd-virtualization@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 F0555499; Tue, 10 Jun 2014 19:25:23 +0000 (UTC) Received: from mail-lb0-x22d.google.com (mail-lb0-x22d.google.com [IPv6:2a00:1450:4010:c04::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 1C3D72A04; Tue, 10 Jun 2014 19:25:22 +0000 (UTC) Received: by mail-lb0-f173.google.com with SMTP id 10so4234344lbg.18 for ; Tue, 10 Jun 2014 12:25:21 -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=uAB/nAjMZ5ZUj4gVy+jkeVb7YvJ0e4/4pSpFKmDfpmc=; b=RGeuizuPF9VcPQRewei4WmWbwD5tAQFJA3+/S91aZLzKWMwnWWwlwYqrE+RysYsgme Opmasjlwi5CSrrqBcCGL2mMHWakKSMJmILgBF3UrZFE36rTMxfPDyrk1h2UL41VscjDM EhWGy4waqhz3ptkraDtSo+tUFa85Gi3KSt0BMugwebVoIDD96bDvOjElvlnYlr9zTyvh qus02H6nXFnGUfaek0dn2I6FKMVzs9XMS5qR0XrwxYduCKmzJtHDTQyxhndpJD26w9mM 531grJrMpvr18kfJ3Bo9RZiVYEYkanD+27Q9d57SRPOFCKtGHQ1oQhNe+B1u18oeheMw tPaw== MIME-Version: 1.0 X-Received: by 10.152.198.129 with SMTP id jc1mr2881226lac.63.1402428321065; Tue, 10 Jun 2014 12:25:21 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.112.67.73 with HTTP; Tue, 10 Jun 2014 12:25:20 -0700 (PDT) In-Reply-To: <20140610191439.GA220@kloomba> References: <20140610114342.GA11194@dev.san.ru> <20140610175420.GC61743@kloomba> <20140610191439.GA220@kloomba> Date: Tue, 10 Jun 2014 12:25:20 -0700 X-Google-Sender-Auth: rd4x9ybya1csiRclI_62D45fDyI 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-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 19:25:24 -0000 On Tue, Jun 10, 2014 at 12:15 PM, Roman Bogorodskiy wrote: > > This last line also sounds strange. > > I'm wondering if you execute 'net-list --all' will you see the 'default' > network? And if it's there, will 'net-show default' should that > Autostart is enabled for it? If I do: # virsh -c 'bhyve:///system' Welcome to virsh, the virtualization interactive terminal. Type: 'help' for help with commands 'quit' to quit virsh # net-list --all error: Failed to get the number of active networks error: this function is not supported by the connection driver: virConnectNumOfNetworks The past few times, I have been compiling the port using WITH_DEBUG=yes. However, I am not getting useful stacktraces: /usr/ports/devel/libvirt/work/libvirt-1.2.5]# file /usr/local/sbin/libvirtd /usr/local/sbin/libvirtd: ELF 64-bit LSB shared object, x86-64, version 1 (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 11.0 (1100022), not stripped # gdb /usr/local/sbin/libvirtd libvirtd.core GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"... Core was generated by `libvirtd'. Program terminated with signal 11, Segmentation fault. #0 0x0000000801aa8513 in ?? () (gdb) where #0 0x0000000801aa8513 in ?? () #1 0x0000001800000008 in ?? () #2 0x00007fffff3f9330 in ?? () #3 0x0000000809e5510c in ?? () #4 0x0000000000000007 in ?? () #5 0x0000000809e5531b in ?? () #6 0x0000000000000000 in ?? () BTW, can you give me: (1) exact git command to checkout libvirt (2) configure command you typed (3) make command you typed I want to get a working setup like you have. It looks like the port needs some fixing before it can be used fully. -- Craig