Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 May 2008 17:11:42 -0700
From:      Atanu Ghosh <atanu@icsi.berkeley.edu>
To:        stevefranks@ieee.org
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: qemu coredumps on any network activity 
Message-ID:  <46013.1210032702@tigger.icir.org>
In-Reply-To: Message from "Steve Franks" <stevefranks@ieee.org> of "Mon, 05 May 2008 12:50:41 PDT." <539c60b90805051250xac3f1ffv52a0673e16f06414@mail.gmail.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

Thanks for the info, I am also using I am on FreeBSD 7.0-stable, amd64.

       Atanu.

>>>>> "Steve" == Steve Franks <stevefranks@ieee.org> writes:

    Steve> On Mon, May 5, 2008 at 11:38 AM, Atanu Ghosh
    Steve> <atanu@icsi.berkeley.edu> wrote:
    >> Hi,
    >> 
    >> <http://monkey.org/freebsd/archive/freebsd-questions/200802/msg01649.html>;
    >> 
    >> I am seeing the same problem, did you ever get to the bottom of
    >> this?
    >> 
    >> Atanu.
    >> 

    Steve> I switched to using a "tap" bridge instead.  I have not had
    Steve> any problems with it.  FYI I am on FreeBSD 7.0-stable, amd64.

    Steve> Steve

    Steve> ~/bin/qemu.sh:

    Steve> sudo kldload kqemu if_tap if_bridge aio

    Steve> sudo sysctl net.link.tap.user_open=1 sudo sysctl
    Steve> net.link.tap.devfs_cloning=1 sudo sysctl
    Steve> net.link.tap.up_on_open=1

    Steve> # sudo ifconfig bridge0 destroy # sudo ifconfig bridge1
    Steve> destroy # sudo ifconfig tap0 destroy # sudo ifconfig tap1
    Steve> destroy # sudo ifconfig tap2 destroy # sudo ifconfig tap3
    Steve> destroy # sudo ifconfig tap4 destroy # sudo ifconfig tap5
    Steve> destroy # sudo ifconfig tap6 destroy # sudo ifconfig tap7
    Steve> destroy # sudo ifconfig tap8 destroy # sudo ifconfig tap9
    Steve> destroy

    Steve> sudo ifconfig bridge0 create sudo ifconfig bridge0 addm vr0 #
    Steve> sudo ifconfig tap0 create sudo ifconfig bridge0 addm tap0
    Steve> sudo ifconfig bridge0 addm tap1 sudo ifconfig bridge0 addm
    Steve> tap2 sudo ifconfig bridge0 addm tap3 sudo ifconfig bridge0
    Steve> addm tap4 sudo ifconfig bridge0 addm tap5 sudo ifconfig
    Steve> bridge0 addm tap6 sudo ifconfig bridge0 addm tap7 sudo
    Steve> ifconfig bridge0 addm tap8 sudo ifconfig bridge0 addm tap9
    Steve> sudo ifconfig bridge0 up sudo ifconfig vr0 up sudo ifconfig
    Steve> tap0 up sudo ifconfig tap1 up sudo ifconfig tap2 up sudo
    Steve> ifconfig tap3 up sudo ifconfig tap4 up sudo ifconfig tap5 up
    Steve> sudo ifconfig tap6 up sudo ifconfig tap7 up sudo ifconfig
    Steve> tap8 up sudo ifconfig tap9 up sudo dhclient bridge0

    Steve> sudo /etc/rc.d/devfs restart sudo /etc/rc.d/sysctl restart

    Steve> ifconfig

    Steve> qemu -m 512 -net nic -net tap -hda
    Steve> /usr/local/share/qemu/drivec.img -usb -usbdevice tablet & #
    Steve> -usbdevice disk:/dev/da0 -hdb fat:/mnt/flash -std-vga &



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46013.1210032702>