Error NIC adding

Hi,

When I `m trying to add a NIC to existing VM, get this error.
What Is the problem?

Sat Mar 19 14:37:17 2016 [Z0][VMM][I]: ExitCode: 0
Sat Mar 19 14:37:17 2016 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Sat Mar 19 14:37:18 2016 [Z0][VMM][I]: Command execution fail: /var/tmp/one/vmm/kvm/attach_nic 'one-626' '02:00:5b:69:ef:35' 'brbond0' '-' 'dummy' 626 KVMServer-1
Sat Mar 19 14:37:18 2016 [Z0][VMM][E]: attach_nic: Command "virsh --connect qemu:///system attach-device one-626 <(
Sat Mar 19 14:37:18 2016 [Z0][VMM][I]: cat <<EOT
Sat Mar 19 14:37:18 2016 [Z0][VMM][I]: <interface type='bridge'>
Sat Mar 19 14:37:18 2016 [Z0][VMM][I]: <source bridge='brbond0'/>
Sat Mar 19 14:37:18 2016 [Z0][VMM][I]: <mac address='02:00:5b:69:ef:35'/>
Sat Mar 19 14:37:18 2016 [Z0][VMM][I]: 
Sat Mar 19 14:37:18 2016 [Z0][VMM][I]: 
Sat Mar 19 14:37:18 2016 [Z0][VMM][I]: </interface>
Sat Mar 19 14:37:18 2016 [Z0][VMM][I]: EOT
Sat Mar 19 14:37:18 2016 [Z0][VMM][I]: )" failed: error: Failed to attach device from /dev/fd/63
Sat Mar 19 14:37:18 2016 [Z0][VMM][I]: error: internal error: No more available PCI slots
Sat Mar 19 14:37:18 2016 [Z0][VMM][E]: Could not attach () to one-626
Sat Mar 19 14:37:18 2016 [Z0][VMM][I]: ExitCode: 1
Sat Mar 19 14:37:18 2016 [Z0][VMM][I]: Failed to execute virtualization driver operation: attach_nic.
Sat Mar 19 14:37:18 2016 [Z0][VMM][E]: Error attaching new VM NIC: Could not attach () to one-626

Problem doesn`t solved. Libvirt log when i try to add new network interface.

ен 20 14:36:48 KVMServer-1 libvirtd[3212654]: internal error: No more available PCI slots
сен 20 14:48:08 KVMServer-1 libvirtd[3212654]: internal error: No more available PCI slots
сен 20 14:59:59 KVMServer-1 libvirtd[3212654]: internal error: No more available PCI slots
сен 20 15:00:10 KVMServer-1 libvirtd[3212654]: internal error: No more available PCI slots
сен 20 15:04:57 KVMServer-1 libvirtd[3212654]: internal error: No more available PCI slots

Try to use MODEL = virtio in the NIC. The problem is that the PCI has a max number of devices it can have, while the virtio bus is capable of handling more.

Thanks, it solved my problem.

Hmmm… The problem reappeared with the same error.
All interfaces at VM are with virtio drivers.

$ libvirtd -V
libvirtd (libvirt) 2.0.0


Tue Aug 1 11:08:05 2017 [Z0][VM][I]: New LCM state is HOTPLUG_NIC
Tue Aug 1 11:08:06 2017 [Z0][VMM][I]: ExitCode: 0
Tue Aug 1 11:08:06 2017 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Tue Aug 1 11:08:06 2017 [Z0][VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/attach_nic 'one-38' '02:00:c3:d1:3a:18' 'br2068' 'virio' 'dummy' 'one-38-27' 38 vCloud-3
Tue Aug 1 11:08:06 2017 [Z0][VMM][E]: attach_nic: Command "virsh --connect qemu:///system attach-device one-38 <(
Tue Aug 1 11:08:06 2017 [Z0][VMM][I]: cat <Tue Aug 1 11:08:06 2017 [Z0][VMM][I]: 
Tue Aug 1 11:08:06 2017 [Z0][VMM][I]: 
Tue Aug 1 11:08:06 2017 [Z0][VMM][I]: 
Tue Aug 1 11:08:06 2017 [Z0][VMM][I]: 
Tue Aug 1 11:08:06 2017 [Z0][VMM][I]: 
Tue Aug 1 11:08:06 2017 [Z0][VMM][I]: 
Tue Aug 1 11:08:06 2017 [Z0][VMM][I]: 
Tue Aug 1 11:08:06 2017 [Z0][VMM][I]: EOT
Tue Aug 1 11:08:06 2017 [Z0][VMM][I]: )" failed: error: Failed to attach device from /dev/fd/63
Tue Aug 1 11:08:06 2017 [Z0][VMM][I]: error: internal error: No more available PCI slots
Tue Aug 1 11:08:06 2017 [Z0][VMM][E]: Could not attach (one-38-27) to one-38
Tue Aug 1 11:08:06 2017 [Z0][VMM][I]: ExitCode: 1
Tue Aug 1 11:08:06 2017 [Z0][VMM][I]: Failed to execute virtualization driver operation: attach_nic.
Tue Aug 1 11:08:06 2017 [Z0][VMM][E]: Error attaching new VM NIC: Could not attach (one-38-27) to one-38
Tue Aug 1 11:08:06 2017 [Z0][VM][I]: New LCM state is RUNNING