QEMU networking quirkiness on 7.0
stapleton.41 at gmail.com
Thu Apr 17 15:09:09 UTC 2008
Sorry for the delayed reply, I didn't see this sent.
On Thursday 10 April 2008 22:01:32 Mario Lobo wrote
> I have a virtual Linux (Fedora 5) and winedows (XP) machines in QEMU and they
> are both network functional. I use qemu-launch because it does everything you
> need to create a virtual machine. Here are my pertinent configs:
> 1) # rc.conf
> ifconfig_re0="up polling" <- no IP here !
> autobridge_bridge0="tap0 re0" <- important even if tap0 does not exist yet
> # the bridge gets the IP
> ifconfig_bridge0="inet 10.10.10.2 netmask 255.255.255.0"
To verify, the 10.10.10.2 is the IP that everyone sees my host as on
the network, correct? That's the IP that used to be set on re0?
> 2) tell QEMU launch to open a tap device
Open a TUN/TAP interface in the network interface configuration
> 3) tap up script to run when invoking the machine(s).
> # qemu-net
> $1 = tap ifac created
> /sbin/ifconfig $1 up
> # test if tap is already added
> TEST=`ifconfig -a | grep -A 6 bridge | grep $1`
> if [ "$TEST" == "" ]; then
> /sbin/ifconfig bridge0 addm $1
> # add a route to the virtual machine
> /sbin/route add -host 10.10.10.100 -iface bridge0
This is the tun/tap configuration script, the IP on the last line is
the IP I want the guest to look like to the network (i.e.
Thanks, I'll play with this more when I get home (I don't want to mess
with my machine's network configuration while I've only got network
More information about the freebsd-questions