Re: libvirt and bhyve problems

2014-06-17 Thread Craig Rodrigues
On Sun, Jun 15, 2014 at 8:20 AM, Roman Bogorodskiy wrote: > > 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 Hi, dnsmasq needs

Re: libvirt and bhyve problems

2014-06-15 Thread Roman Bogorodskiy
Craig Rodrigues wrote: > On Sun, Jun 15, 2014 at 8:20 AM, Roman Bogorodskiy wrote: > > > > I have updated the port: > > > > http://people.freebsd.org/~novel/misc/libvirt_port2.tgz > > > OK, I deinstall the old port, took your port, built it, and installed it. > > When I started libvirtd, I g

Re: libvirt and bhyve problems

2014-06-15 Thread Craig Rodrigues
On Sun, Jun 15, 2014 at 8:20 AM, Roman Bogorodskiy wrote: > > I have updated the port: > > http://people.freebsd.org/~novel/misc/libvirt_port2.tgz OK, I deinstall the old port, took your port, built it, and installed it. When I started libvirtd, I got this: 2014-06-15 18:47:07.236+: 344856

Re: libvirt and bhyve problems

2014-06-15 Thread Roman Bogorodskiy
Craig Rodrigues wrote: > 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' devic

Re: libvirt and bhyve problems

2014-06-13 Thread Craig Rodrigues
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. > >

Re: libvirt and bhyve problems

2014-06-13 Thread Willem Jan Withagen
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 work

Re: libvirt and bhyve problems

2014-06-12 Thread Roman Bogorodskiy
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-li

Re: libvirt and bhyve problems

2014-06-12 Thread Craig Rodrigues
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 pr

Re: libvirt and bhyve problems

2014-06-12 Thread Craig Rodrigues
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 d

Re: libvirt and bhyve problems

2014-06-12 Thread Roman Bogorodskiy
Craig Rodrigues wrote: > On Wed, Jun 11, 2014 at 12:25 PM, Roman Bogorodskiy wrote: > > I've attached a patch which should fix the segfault. Could you please > > let me know if it fixes the problem? > > I have incorporated your patch into the libvirt port, and provided a tarball > of the port

Re: libvirt and bhyve problems

2014-06-11 Thread Craig Rodrigues
On Wed, Jun 11, 2014 at 12:25 PM, Roman Bogorodskiy wrote: > I've attached a patch which should fix the segfault. Could you please > let me know if it fixes the problem? I have incorporated your patch into the libvirt port, and provided a tarball of the port here: http://people.freebsd.org/~rodr

Re: libvirt and bhyve problems

2014-06-11 Thread Roman Bogorodskiy
Roman Bogorodskiy wrote: > Craig Rodrigues wrote: > > > On Wed, Jun 11, 2014 at 11:21 AM, Roman Bogorodskiy > > wrote: > > > > > > Thanks for the analysis! I'll think what would be a proper fix for that > > > problem. > > > > > > Also, while thinking how to reproduce it, I did 'kldunload if

Re: libvirt and bhyve problems

2014-06-11 Thread Roman Bogorodskiy
Craig Rodrigues wrote: > On Wed, Jun 11, 2014 at 11:21 AM, Roman Bogorodskiy wrote: > > > > Thanks for the analysis! I'll think what would be a proper fix for that > > problem. > > > > Also, while thinking how to reproduce it, I did 'kldunload if_bridge' > > and started to see the same problem.

Re: libvirt and bhyve problems

2014-06-11 Thread Craig Rodrigues
On Wed, Jun 11, 2014 at 11:21 AM, Roman Bogorodskiy wrote: > > Thanks for the analysis! I'll think what would be a proper fix for that > problem. > > Also, while thinking how to reproduce it, I did 'kldunload if_bridge' > and started to see the same problem. So, as a temporary fix, could you > che

Re: libvirt and bhyve problems

2014-06-11 Thread Roman Bogorodskiy
Craig Rodrigues wrote: > On Tue, Jun 10, 2014 at 1:54 PM, Craig Rodrigues wrote: > > On Tue, Jun 10, 2014 at 12:25 PM, Craig Rodrigues > > wrote: > > lldb /usr/local/sbin/libvirtd libvirtd.core > > > > (lldb) bt > > * thread #1: tid = 0, 0x000801aa8513 > > libvirt.so.1002`virNetDevTapCrea

Re: libvirt and bhyve problems

2014-06-10 Thread Craig Rodrigues
On Tue, Jun 10, 2014 at 1:54 PM, Craig Rodrigues wrote: > On Tue, Jun 10, 2014 at 12:25 PM, Craig Rodrigues wrote: > lldb /usr/local/sbin/libvirtd libvirtd.core > > (lldb) bt > * thread #1: tid = 0, 0x000801aa8513 > libvirt.so.1002`virNetDevTapCreateInBridgePort(brname=0x00080a4211c8, > i

Re: libvirt and bhyve problems

2014-06-10 Thread Craig Rodrigues
On Tue, Jun 10, 2014 at 12:25 PM, Craig Rodrigues wrote: > > > # 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 distrib

Re: libvirt and bhyve problems

2014-06-10 Thread Craig Rodrigues
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 'bh

Re: libvirt and bhyve problems

2014-06-10 Thread Roman Bogorodskiy
Craig Rodrigues wrote: > On Tue, Jun 10, 2014 at 10:54 AM, Roman Bogorodskiy wrote: > > This warning is not critical. Actually, UML should not be built on > > FreeBSD and I would need to disable it by default. For now I think the > > proper fix is to configure with '--without-uml' flag. > > > >

Re: libvirt and bhyve problems

2014-06-10 Thread Craig Rodrigues
On Tue, Jun 10, 2014 at 10:54 AM, Roman Bogorodskiy wrote: > This warning is not critical. Actually, UML should not be built on > FreeBSD and I would need to disable it by default. For now I think the > proper fix is to configure with '--without-uml' flag. > > As for the segfault, I think I have a

Re: libvirt and bhyve problems

2014-06-10 Thread Roman Bogorodskiy
Craig Rodrigues wrote: > On Tue, Jun 10, 2014 at 8:58 AM, Craig Rodrigues wrote: > > On Tue, Jun 10, 2014 at 4:43 AM, Roman Bogorodskiy > > wrote: > >> Hi Craig, > >> > >> It's a little unfortunate that there's no stacktrace, though we can try > >> to see what's going on without it. > >> > >>

Re: libvirt and bhyve problems

2014-06-10 Thread Craig Rodrigues
On Tue, Jun 10, 2014 at 8:58 AM, Craig Rodrigues wrote: > On Tue, Jun 10, 2014 at 4:43 AM, Roman Bogorodskiy wrote: >> Hi Craig, >> >> It's a little unfortunate that there's no stacktrace, though we can try >> to see what's going on without it. >> >> Could you please edit libvirtd.conf (should be

Re: libvirt and bhyve problems

2014-06-10 Thread Craig Rodrigues
On Tue, Jun 10, 2014 at 4:43 AM, Roman Bogorodskiy wrote: > Hi Craig, > > It's a little unfortunate that there's no stacktrace, though we can try > to see what's going on without it. > > Could you please edit libvirtd.conf (should be something like > /usr/local/etc/libvirtd.conf if installed from

Re: libvirt and bhyve problems

2014-06-10 Thread Roman Bogorodskiy
Craig Rodrigues wrote: > 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 ru

libvirt and bhyve problems

2014-06-09 Thread Craig Rodrigues
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