Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jun 2007 05:50:06 +0200 (CEST)
From:      "P.U.Kruppa" <ulrich@pukruppa.net>
To:        Per Hedeland <per@hedeland.org>
Cc:        freebsd-emulation@freebsd.org
Subject:   Re: Virtual network with qemu
Message-ID:  <20070619053536.Y9390@small>
In-Reply-To: <200706182049.l5IKn3ZG059270@pluto.hedeland.org>
References:  <200706182049.l5IKn3ZG059270@pluto.hedeland.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 18 Jun 2007, Per Hedeland wrote:

> "P.U.Kruppa" <ulrich@pukruppa.net> wrote:
>>
>> When now I try to connect the second virtual box, it will "steal"
>> the first box's network connection.
>
> You need to give them individual mac addresses via the 'macaddr'
> parameter to '-net nic'. I.e one of them can have the default
> (52:54:00:12:34:56) but not more than one.:-) See e.g.
Yes, but something goes wrong in my procedure:

# kldload aio kqemu if_tap bridge
# sysctl net.link.ether.bridge_cfg=rl0,tap0
# sysctl net.link.ether.bridge.enable=1
# qemu-system-x86_64 -hda Win2k.img -m 512 -localtime \
   -net tap -net nic
# qemu-system-x86_64 -hda FreeBSD.img -m 512 -localtime -net tap 
-net nic,52:54:00:12:34:57
The latter will start the virtual FreeBSD box, but without a 
working network (nothing can be ping'ed, not even the host).

What kind of qemu-ifup do you use?

Thanks,

Uli.



>
> http://docs.freebsd.org/cgi/getmsg.cgi?fetch=111250+0+archive/2007/freebsd-emulation/20070603.freebsd-emulation
>
> --Per Hedeland
>



Peter Ulrich Kruppa
Wuppertal
Germany




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