Virtual network with qemu

P.U.Kruppa ulrich at pukruppa.net
Tue Jun 19 03:50:11 UTC 2007


On Mon, 18 Jun 2007, Per Hedeland wrote:

> "P.U.Kruppa" <ulrich at 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



More information about the freebsd-emulation mailing list