[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



On Tue, 2009-07-28 at 15:40 +0200, Gianluca Sforna wrote:
> On Tue, Jul 28, 2009 at 1:20 PM, Mark McLoughlin<markmc 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 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:
> https://bugzilla.redhat.com/show_bug.cgi?id=514228

Thanks.

> >> 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?
> 
> libvirt-0.6.2-13.fc11.x86_64
> 
> <domain type='kvm'>
>  <name>test</name>
>  <uuid>13f7c43f-de93-4836-74b7-97b6796fae42</uuid>
>  <memory>1048576</memory>
>  <currentMemory>1048576</currentMemory>
>  <vcpu>1</vcpu>
>  <os>
>    <type arch='x86_64' machine='pc'>hvm</type>
>    <boot dev='hd'/>
>  </os>
>  <features>
>    <acpi/>
>    <apic/>
>    <pae/>
>  </features>
>  <clock offset='utc'/>
>  <on_poweroff>destroy</on_poweroff>
>  <on_reboot>restart</on_reboot>
>  <on_crash>restart</on_crash>
>  <devices>
>    <emulator>/usr/bin/qemu-kvm</emulator>
>    <disk type='file' device='disk'>
>      <source file='/var/lib/libvirt/images/test.img'/>
>      <target dev='hda' bus='ide'/>
>    </disk>
>    <disk type='file' device='cdrom'>
>      <target dev='hdc' bus='ide'/>
>      <readonly/>
>    </disk>
>    <interface type='bridge'>
>      <mac address='54:52:00:49:73:9a'/>
>      <source bridge='br0'/>
>      <target dev='vnet%d'/>

Try deleting this line

Cheers,
Mark.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]