[Pkg-libvirt-maintainers] Bug#520088: Bug#520088: virt-manager: adding additional network adapter - inconsistency between libvirt and xend
Andreas Unterkircher
unki at netshadow.at
Tue Mar 17 18:58:18 UTC 2009
> Could you try to reproduce this behaviour with virsh instead of
> virt-manager? You can add new interfaces with attach-interface. This
> might be a bug in libvirt not in virt-manager itself.
I tried that now by adding an interface with virsh and powered the
domain up:
virsh # attach-interface app-vmtest-02 bridge virbr1
Interface attached successfully
virsh # start app-vmtest-02
Domain app-vmtest-02 started
The XML dump still contains just one network interface:
<domain type='xen' id='67'>
<name>app-vmtest-02</name>
<uuid>3a0e5f42-8f84-87ac-bd7d-dc64243b1e14</uuid>
<memory>524288</memory>
<currentMemory>524288</currentMemory>
<vcpu>1</vcpu>
<os>
<type>hvm</type>
<loader>/usr/lib/xen/boot/hvmloader</loader>
<boot dev='hd'/>
</os>
<features>
<pae/>
</features>
<clock offset='localtime'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
<disk type='file' device='disk'>
<driver name='file'/>
<source file='/srv/guests/bunch1/app-vmtest-02.img'/>
<target dev='hda' bus='ide'/>
</disk>
<interface type='bridge'>
<mac address='52:54:00:d8:65:c9'/>
<source bridge='virbr1'/>
<target dev='vif67.1'/>
</interface>
<serial type='pty'>
<source path='/dev/pts/6'/>
<target port='0'/>
</serial>
<console type='pty' tty='/dev/pts/6'>
<source path='/dev/pts/6'/>
<target port='0'/>
</console>
<input type='tablet' bus='usb'/>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='5905' autoport='no' listen='127.0.0.1'
keymap='en-us'/>
</devices>
</domain>
The corresponding domain file in /var/lib/xend/domains got the second
interface as it was told:
(device
(vif
(bridge br0)
(mac 00:16:36:49:d2:dc)
(script vif-bridge)
(uuid 130ee858-ca90-4d16-9be2-3b3e36f54f2a)
(backend 0)
)
)
(device
(vif
(bridge virbr1)
(mac 52:54:00:d8:65:c9)
(script vif-bridge)
(uuid 0bdde717-9966-e85c-1cdb-8e3b4f9e5f09)
(backend 0)
)
)
As libvirt does not report back the additional interface, also
virt-manager does not know about. And - as soon as I delete the first
interface (here bridge br0) via virt-manager - also virbr1 gets removed
from the xend domain file (I guess it gets rewritten then...).
Cheers,
Andreas
More information about the Pkg-libvirt-maintainers
mailing list