Error no PCI slots when adding disks to KVM guest
This document (7023670) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 15
Situation
kvm-host:~ # virsh attach-disk kvm-guest /dev/disk/by-id/dm-uuid-mpath-360000970000298701039736551233146 vdq --cache=none --persistent
error: Failed to attach disk
error: internal error: No more available PCI slots
kvm-host:~ # virsh dumpxml kvm-guest | grep -i pci-bridge
Resolution
1. Power off the kvm-guest and dump the kvm-guest configuration file to kvm-guest.xml.
kvm-host:~ # virsh shutdown kvm-guest
kvm-host:~ # virsh dumpxml kvm-guest > kvm-guest.xml
2. In the <devices> section add the following to the kvm-guest.xml configuration file and save the changes:
<devices>
...
<controller type='pci' model='pci-bridge'/>
...
</devices>
3. Import the edits to kvm-guest
kvm-host:~ # virsh define kvm-guest.xml
Domain kvm-guest defined from kvm-guest.xml
4. Add the remaining disks with virsh attach-disk.
Cause
Additional Information
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7023670
- Creation Date: 24-Jan-2019
- Modified Date:03-Mar-2020
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com