The problem is that the qemu-ifup script assumes you used the kvm script from 
the svn for bringing the bridge up. The kvm script puts the IP address on the 
bridge and also the default gw, thus the qemu-ifup script thinks your eth2 is 
the bridge.

So either use the kvm script (in the scripts directory) for setting up the 
bridge or change qemu-ifup line 
        - switch=$(ip route list | awk '/^default / { print $NF }')
        To
        Switch="bridge"

>Here there is the report:
>rpm -q bridge-utils
>bridge-utils-1.1-2
>
>
>/sbin/lsmod | grep bridge
>bridge                 98929  0
>
>/usr/sbin/brctl show
>bridge name     bridge id               STP enabled     interfaces
>
>/sbin/ip route list | grep default
>default via 158.102.66.129 dev eth2
>
>
>
>
>----- Messaggio da [EMAIL PROTECTED] ---------
>    Data: Tue, 30 Jan 2007 03:54:50 -0800
>    Da: Uri Lublin <[EMAIL PROTECTED]>
>Rispondi-A: Uri Lublin <[EMAIL PROTECTED]>
>Oggetto: RE: [kvm-devel] kvm 12 windows XP network
>      A: [EMAIL PROTECTED]
>      Cc: kvm-devel@lists.sourceforge.net
>
>
>>
>> Please run the following commands and report their output:
>>  rpm -q bridge-utils
>>  /sbin/lsmod | grep bridge
>>  /usr/sbin/brctl show
>>  /sbin/ip route list | grep default
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED] on behalf of
>> [EMAIL PROTECTED]
>> Sent: Tue 30/01/2007 13:26
>> To: Dor Laor
>> Cc: kvm-devel@lists.sourceforge.net
>> Subject: Re: [kvm-devel] kvm 12 windows XP network
>>
>>
>> Sorry, I did not understand !
>> Could me explain what I must put in the quemu-ifup script ?
>> I am using the original supplayed by kvm svn !!!
>>
>> Thanks
>>
>> ----- Messaggio da [EMAIL PROTECTED] ---------
>>    Data: Tue, 30 Jan 2007 03:08:20 -0800
>>    Da: Dor Laor <[EMAIL PROTECTED]>
>> Rispondi-A: Dor Laor <[EMAIL PROTECTED]>
>> Oggetto: RE: [kvm-devel] kvm 12 windows XP network
>>      A: [EMAIL PROTECTED], kvm-
>[EMAIL PROTECTED]
>>
>>
>>>> Good morning, I installed kvm 12 on a linux fedora core 6.
>>>> I also installed a windows XP guest but I am not able to setup bridging
>>>> network.
>>>> If I launch:
>>>> /usr/local/bin/qemu-system-x86_64 -no-acpi -hda
>>>> /root/winXP/windows_kvm.disk -boot c -m 1024  -cdrom
>>>> /root/winXP/winXP.iso -net nic -net
>>>> tap,script=/root/kvm-svn/kvm/scripts/qemu-ifup
>>>>
>>>> the following error is displayed:
>>>>
>>>> can't add ÿ to bridge eth2: Operation not supported
>>>> /root/kvm-svn/kvm/scripts/qemu-ifup: could not launch network script
>>>> Could not initialize device 'tap'
>>>>
>>>> Could anyone help me ?
>>>
>>> Seems like the bridge is not running ">can't add ÿ to bridge eth2:"
>>> It should add the tap to the bridge and not to eth2.
>>> The qemu-ifup script decides the bridge to use according to the default
>gw.
>>> You can change either the gw or the qemu-ifup script.
>>>
>>>
>>>> Thanks
>>>>
>>>>
>>>>
>>>> -----------------------------------------------------------------------
>--
>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>>>> your
>>>> opinions on IT & business topics through brief surveys - and earn cash
>>>>
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>>> _______________________________________________
>>>> kvm-devel mailing list
>>>> kvm-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/kvm-devel
>>>
>>
>>
>> ----- Fine messaggio da [EMAIL PROTECTED] -----
>>
>>
>>
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> kvm-devel mailing list
>> kvm-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/kvm-devel
>>
>>
>>
>
>
>----- Fine messaggio da [EMAIL PROTECTED] -----
>
>
>
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share
>your
>opinions on IT & business topics through brief surveys - and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>kvm-devel mailing list
>kvm-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/kvm-devel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to