Hi,
I installed vdsm latest git version.
When trying to hotplug a new NIC the operation fails.
Here are some lines from vdsmd.log
Thread-480::DEBUG::2012-08-15 11:50:52,150::libvirtvm::1398::vm.Vm::(hotplugNic) vmId=`54028863-6910-44ac-a843-a61083e65b70`::Hotplug NIC xml: <interface type="bridge">
<mac address="00:1a:4a:1e:31:0c"/>
<model type="virtio"/>
<source bridge="ovirtmgmt"/>
</interface>
Thread-480::ERROR::2012-08-15 11:50:52,297::libvirtvm::1403::vm.Vm::(hotplugNic) vmId=`54028863-6910-44ac-a843-a61083e65b70`::Hotplug failed
Traceback (most recent call last):
File "/usr/share/vdsm/libvirtvm.py", line 1401, in hotplugNic
self._dom.attachDevice(nicXml)
File "/usr/share/vdsm/libvirtvm.py", line 487, in f
ret = attr(*args, **kwargs)
File "/usr/lib64/python2.7/site-packages/vdsm/libvirtconnection.py", line 82, in wrapper
ret = f(*args, **kwargs)
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 400, in attachDevice
if ret == -1: raise libvirtError ('virDomainAttachDevice() failed', dom=self)
libvirtError: internal error unable to execute QEMU command 'device_add': Bus 'pci.0' does not support hotplugging
OS: Fedora17
VDSM Packages: vdsm-4.10.0-0.313.git8bedc7e.fc17.x86_64 vdsm-xmlrpc-4.10.0-0.313.git8bedc7e.fc17.noarch vdsm-python-4.10.0-0.313.git8bedc7e.fc17.x86_64
Libvirt: libvirt-0.9.11.4-3.fc17.x86_64
QEMU: qemu-common-1.0.1-1.fc17.x86_64
Trying to attach the NIC using virsh fails as well:
virsh -c qemu+tcp://localhost/system attach-device vm1 --file /tmp/1.xml
error: Failed to attach device from /tmp/1.xml
error: internal error unable to execute QEMU command 'device_add': Bus 'pci.0' does not support hotplugging
When running with VDSM from ovirt repository with the following packages the hotplug of the NIC works:
vdsm-xmlrpc-4.10.0-6.fc17.noarch
vdsm-4.10.0-6.fc17.x86_64
vdsm-python-4.10.0-6.fc17.x86_64
Please advise,
Itzik