[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:
https://bugzilla.redhat.com/show_bug.cgi?id=514228
>
>> 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'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target port='0'/>
</console>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes'/>
<sound model='es1370'/>
</devices>
</domain>
--
Gianluca Sforna
http://morefedora.blogspot.com
http://www.linkedin.com/in/gianlucasforna
More information about the Fedora-virt
mailing list