Repository navigation
Unable to add more than 2 volumes or networks to a vm deployed from a UEFI image #11212
Description
Activity
- changed the title
[-]Unable to add more than 2 volume or network to a vm deployed from a UEFI image[/-][+]Unable to add more than 2 volumes or networks to a vm deployed from a UEFI image[/+]on Jul 16, 2025 @kiranchavala can you check this again?
that would mean 4.19.2 ?!
similar, not the same issue 😄
I have tested attachment of multiple disks on a VM in KVM environment and getting the same error on a LAB with ACS v4.20.2.
- I did a test with UEFI VM with virtio-scsi (OS Type: Other PV virtio-scsi 64bit) with 12 DATA disks (13 disks with ROOT included). It has successfully attached 13 disks in two scsi controllers. During attaching the 13th disk DATA-13 I got the following error:
Failed to attach volume DATA-13 to VM XXXXXX; org.libvirt.LibvirtException: internal error: No more available PCI slots - Changed UEFI VM OS Type to AlmaLinux 8 (legagy virtio-blk driver) and added the 13th DATA disk successfully but by attaching the 14th DATA disk I got the same error as above:
Failed to attach volume DATA-14 to VM XXXXXX; org.libvirt.LibvirtException: internal error: No more available PCI slots.
- I did a test with UEFI VM with virtio-scsi (OS Type: Other PV virtio-scsi 64bit) with 12 DATA disks (13 disks with ROOT included). It has successfully attached 13 disks in two scsi controllers. During attaching the 13th disk DATA-13 I got the following error:
I have tested attachment of multiple disks on a VM in KVM environment and getting the same error on a LAB with ACS v4.20.2.
- I did a test with UEFI VM with virtio-scsi (OS Type: Other PV virtio-scsi 64bit) with 12 DATA disks (13 disks with ROOT included). It has successfully attached 13 disks in two scsi controllers. During attaching the 13th disk DATA-13 I got the following error:
Failed to attach volume DATA-13 to VM XXXXXX; org.libvirt.LibvirtException: internal error: No more available PCI slots - Changed UEFI VM OS Type to AlmaLinux 8 (legagy virtio-blk driver) and added the 13th DATA disk successfully but by attaching the 14th DATA disk I got the same error as above:
Failed to attach volume DATA-14 to VM XXXXXX; org.libvirt.LibvirtException: internal error: No more available PCI slots.
@tcp-dw
can you share some logs in agent.log in both cases ?can you also test the steps (1) stop the vm , (2) attach volumes (3) and start the vm ?
- I did a test with UEFI VM with virtio-scsi (OS Type: Other PV virtio-scsi 64bit) with 12 DATA disks (13 disks with ROOT included). It has successfully attached 13 disks in two scsi controllers. During attaching the 13th disk DATA-13 I got the following error:
Sure, you will find attached Host-agent-and-daemon.log (with respective sections from host's agent.log and daemon.log during the tests reported above). Host is running qemu_v5.2.0/libvirt_v7.0.0.
Today, I did the following actions:
-
I stopped this VM changed OS-type back to "Other PV virtio-scsi" and added more disks until the maximum of allowed data disks of 32 (33 total with Root including). Error message from UI was: "Failed to attach volume. The specified VM already has the maximum number of data disks (32) attached. Please specify another VM.".
-
I started this VM from UI and curiously this VM with 33 disks has been successfully started! Then stopped it, changed OS-type to "AlmaLinux 8" and started again successfully. In both OS-types OS can see 33 block devices in total (sd* in vistio-scsi and vd* in virtio-block mode).
-
Then while it is running I removed most DATA disks and left 12 DATA disks (13 total). Stopped VM, changed back to virtio-scsi and started VM. Then tried again adding data disks while running. Added DATA-13, DATA-14, ...,DATA-19 but during adding DATA-20 I got again the error "Failed to attach volume. Failed to attach volume DATA-20 to VM ACS-LAB-NET-8-ROUTED-VPC; org.libvirt.LibvirtException: internal error: No more available PCI slots". I have attached logs from both management server (ACS-CreateAndAttach-DATA-20.log) and host (Host-agent-and-daemon-2ndtest.log) for this last action.
I hope that it is useful.
-
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsTodo
problem
Unable to add more than 2 volume or network to a vm deployed from a UEFI image
versions
ACS 4.20.1
The steps to reproduce the bug
https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img
Logs
Workaround
Change the following settings on the vm after stopping
nicAdapter to e1000 or rtl813
rootDiskController to scsi or sata
https://prnt.sc/9wSS5uX0tVYX
What to do about it?
If the Template is a UEFI enabled , Cloudstack should check if the template is UEFI enabled or not and populated the necessary settings for root disk and nic adapter
yum install libguestfs-tools
virt-inspector --format=raw -a noble-server-cloudimg-amd64.img 2>/dev/null | grep -i 'true'
virt-inspector -a AlmaLinux-8-GenericCloud-UEFI-latest.x86_64.qcow2 2>/dev/null | grep -i 'true'