|
From: | Sergey Bychkov |
Subject: | Re: [Qemu-devel] FC7 and qemu + Windows server 2003 |
Date: | Thu, 21 Feb 2008 14:27:36 +0200 |
You simply should create bridge with tap device
:)
Assume You already have configured br0 device:
# qemu -net nic,model=rtl8139,macaddr=52:54:00:80:80:01 -net
tap,script=$DIR/qemu-ifup-br0,downscript=$DIR/qemu-ifdown-br0 -hda $DIR/virtw2k3
-m 384 -localtime
==start of qemu-ifup-br0==
#!/bin/sh
echo Configuring virtual interface $1
if [ "$UID" -eq "0" ] then BRIF=br0 if brctl addif $BRIF $1 then echo $1 added to $BRIF ifconfig $1 0.0.0.0 up echo $1 configured for bridge $BRIF else IP_LOCAL=169.254.1.1 echo $1 not added to $BRIF ifconfig $1 $IP_LOCAL up echo $1 configured to $IP_LOCAL \(like autoip\) # TODO: try to make real autoip fi else echo Will sudo $0 exec sudo -p "Password for $0:" $0 $* fi ==end of qemu-ifup-br0==
==start of qemu-ifdown-br0==
#!/bin/sh
#echo This script does nothing echo Deconfiguring virtual interface $1 will be done automatically ==end of qemu-ifdown-br0== |
[Prev in Thread] | Current Thread | [Next in Thread] |