[fedora-virt] Can't use network in guests

Gianluca Sforna giallu at gmail.com
Tue Jul 28 13:40:11 UTC 2009

On Tue, Jul 28, 2009 at 1:20 PM, Mark McLoughlin<markmc at redhat.com> wrote:
> On Tue, 2009-07-28 at 12:58 +0200, Gianluca Sforna wrote:
>> On Tue, Jul 28, 2009 at 12:29 PM, Mark McLoughlin<markmc at redhat.com> wrote:
>> >
>> > Can you use 'virsh edit' to add e.g.:
>> >
>> >    <interface type='bridge'>
>> >      <mac address='54:52:00:49:73:9a'/>
>> >      <source bridge='br0'/>
>> >    </interface>
>> This leads to another traceback when starting the VM:
> Did you file a bug with the first traceback?

I just did it:

>> Traceback (most recent call last):
>>   File "/usr/share/virt-manager/virtManager/engine.py", line 493, in run_domain
>>     vm.startup()
>>   File "/usr/share/virt-manager/virtManager/domain.py", line 573, in startup
>>     self.vm.create()
>>   File "/usr/lib64/python2.6/site-packages/libvirt.py", line 287, in create
>>     if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
>> libvirtError: internal error Failed to add tap interface 'vnet%d' to
>> bridge 'br0' : No such device
> What exactly is the guest's configuration? Is 'vnet%d' mentioned
> anywhere? What version of libvirt?


<domain type='kvm'>
   <type arch='x86_64' machine='pc'>hvm</type>
   <boot dev='hd'/>
 <clock offset='utc'/>
   <disk type='file' device='disk'>
     <source file='/var/lib/libvirt/images/test.img'/>
     <target dev='hda' bus='ide'/>
   <disk type='file' device='cdrom'>
     <target dev='hdc' bus='ide'/>
   <interface type='bridge'>
     <mac address='54:52:00:49:73:9a'/>
     <source bridge='br0'/>
     <target dev='vnet%d'/>
   <serial type='pty'>
     <target port='0'/>
   <console type='pty'>
     <target port='0'/>
   <input type='mouse' bus='ps2'/>
   <graphics type='vnc' port='-1' autoport='yes'/>
   <sound model='es1370'/>

Gianluca Sforna


More information about the Fedora-virt mailing list