Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: qemu-0.15.1 from pkgsrc/emulators/qemu does not work on recent NetBSD current



From: David Young <dyoung%pobox.com@localhost>, Date: Mon, 12 Dec 2011 19:03:58 
-0600

> On Tue, Dec 13, 2011 at 03:33:04AM +0900, Ryo ONODERA wrote:
>> Hi,
>> 
>> From: David Young <dyoung%pobox.com@localhost>, Date: Mon, 12 Dec 2011 
>> 11:19:46 -0600
>> 
>> > On Tue, Dec 13, 2011 at 12:34:58AM +0900, Ryo ONODERA wrote:
>> >> Hi,
>> >> 
>> >> From: Manuel Bouyer <bouyer%antioche.eu.org@localhost>, Date: Mon, 12 Dec 
>> >> 2011 11:56:14 +0100
>> >> 
>> >> > On Sat, Dec 10, 2011 at 11:17:11PM +0900, Ryo ONODERA wrote:
>> >> >> Setting up qemu is hard work...
>> >> >> 
>> >> >> I have the following problem.
>> >> >> 
>> >> >> On NetBSD current machine,
>> >> >> # /sbin/ifconfig tap0 create
>> >> >> # /sbin/ifconfig bridge0 create
>> >> >> # /sbin/brconfig bridge0 add msk0
>> > 
>> > Is msk0's PROMISC flag set here?
>> > 
>> >> >> # /sbin/ifconfig bridge0 up
>> > 
>> > Here?
>> > 
>> >> >> # /sbin/ifconfig tap0 0.0.0.0 up
>> > 
>> > Here?
>> > 
>> >> >> # /sbin/brconfig bridge0 add tap0
>> > 
>> > Here?
>> > 
>> >> >> # dhclient tap0
>> >> >> bound to 192.168.81.5
>> > 
>> > And here?
>> 
>> 1) When msk0 has no IP address, PROMISC flag is never set.
>> 2) When msk0 has IP address (assigned before "/sbin/ifconfig tap0 create"),
>> PROMISC flag is set just after "/sbin/brconfig bridge0 add msk0" (your
>> first question), and qemu tap and bridge networking works properly.
> 
> Ok, I see what's going on.  Try the attached (compiled but untested)
> patch.

Hi,

The patch solves my problem.

When msk0 has no IP address, PROMISC flag is set just after
"/sbin/brconfig bridge0 add msk0", and qemu tap and bridge networking
works fine.

So if IP address is assigned to msk0 or not, PROMISC flag is set
just after "/sbin/brconfig bridge0 add msk0".
Two cases are same now.

--
Ryo ONODERA // ryo_on%yk.rim.or.jp@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3




Home | Main Index | Thread Index | Old Index