Title: Unable to add more than 2 volumes or networks to a vm deployed from a UEFI image · Issue #11212 · apache/cloudstack · GitHub
Open Graph Title: Unable to add more than 2 volumes or networks to a vm deployed from a UEFI image · Issue #11212 · apache/cloudstack
X Title: Unable to add more than 2 volumes or networks to a vm deployed from a UEFI image · Issue #11212 · apache/cloudstack
Description: 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 Register a UEFI image Template https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-...
Open Graph Description: 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 Register a UEFI image Template https://cloud-images.ubuntu....
X Description: 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 Register a UEFI image Template https://cloud-images.ubuntu....
Opengraph URL: https://github.com/apache/cloudstack/issues/11212
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unable to add more than 2 volumes or networks to a vm deployed from a UEFI image","articleBody":"### problem\n\nUnable to add more than 2 volume or network to a vm deployed from a UEFI image \n\n### versions\n\nACS 4.20.1\n\n### The steps to reproduce the bug\n\n1. Register a UEFI image Template \n\nhttps://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img\n\n\n\n2. Deploy the vm by enabling UEFI secure mode in advanced settings\n\n\u003cimg width=\"596\" height=\"268\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/bb1449a9-74c7-4ce8-a5bf-e94d7446ab88\" /\u003e\n\n\n3. Once the vm is in running state , attach multiple volumes , Exception observed \n\nLogs\n\n```\n2025-07-16 04:28:28,947 DEBUG [kvm.storage.KVMStorageProcessor] (AgentRequest-Handler-3:[]) (logid:) Attaching device: \u003cdisk device='disk' type='file'\u003e\n\u003cdriver name='qemu' type='qcow2' cache='none' /\u003e\n\u003csource file='/mnt/7b881182-e6d4-3e65-bf10-662bf0530b84/c6ef61d1-300f-442a-86e5-e31f482b64ab'/\u003e\n\u003ctarget dev='vdc' bus='virtio'/\u003e\n\u003cserial\u003ec6ef61d1300f442a86e5\u003c/serial\u003e\n\u003c/disk\u003e\n\n2025-07-16 04:28:28,953 WARN [kvm.storage.KVMStorageProcessor] (AgentRequest-Handler-3:[]) (logid:) Failed to attach device to i-2-653-VM: internal error: No more available PCI slots\n2025-07-16 04:28:28,953 DEBUG [kvm.storage.KVMStorageProcessor] (AgentRequest-Handler-3:[]) (logid:) Failed to attach volume [id: 394, uuid: c6ef61d1-300f-442a-86e5-e31f482b64ab, name: test2, path: c6ef61d1-300f-442a-86e5-e31f482b64ab], due to org.libvirt.LibvirtException: internal error: No more available PCI slots\n\n```\n\n\n4. Try to attach multiple networks, Exception observed \n\n```\n\n2025-07-16 04:36:02,019 DEBUG [kvm.resource.BridgeVifDriver] (AgentRequest-Handler-1:[]) (logid:) Successfully executed process [2045246] for command [/usr/share/cloudstack-common/scripts/vm/network/vnet/modifyvlan.sh -v 2144 -p eth1 -b breth1-2144 -o add ].\n2025-07-16 04:36:02,021 WARN [resource.wrapper.LibvirtPlugNicCommandWrapper] (AgentRequest-Handler-1:[]) (logid:) Plug Nic failed due to org.libvirt.LibvirtException: internal error: No more available PCI slots org.libvirt.LibvirtException: internal error: No more available PCI slots\n at org.libvirt.ErrorHandler.processError(Unknown Source)\n at org.libvirt.ErrorHandler.processError(Unknown Source)\n\n```\n\nWorkaround\n\nChange the following settings on the vm after stopping \n\nnicAdapter to e1000 or rtl813\n\nrootDiskController to scsi or sata\n\nhttps://prnt.sc/9wSS5uX0tVYX\n\n\n\n\n\n\n\n### What to do about it?\n\nIf 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 \n\n\nyum install libguestfs-tools\n\nvirt-inspector --format=raw -a noble-server-cloudimg-amd64.img 2\u003e/dev/null | grep -i '\u003cuefi\u003etrue\u003c/uefi\u003e'\n\nvirt-inspector -a AlmaLinux-8-GenericCloud-UEFI-latest.x86_64.qcow2 2\u003e/dev/null | grep -i '\u003cuefi\u003etrue\u003c/uefi\u003e'","author":{"url":"https://github.com/kiranchavala","@type":"Person","name":"kiranchavala"},"datePublished":"2025-07-16T06:07:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/11212/cloudstack/issues/11212"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d3b56b7f-a0f2-813d-6170-09725a847610 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C322:43C9:D9F1CA:1268C4E:6A4D71AF |
| html-safe-nonce | 94bb788b1a961f4433ec2b05f8d5f0085cbd6021b55eafab2e4e63536372f4dd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzIyOjQzQzk6RDlGMUNBOjEyNjhDNEU6NkE0RDcxQUYiLCJ2aXNpdG9yX2lkIjoiMjIxNzg4NzgyMzE0NjM0ODk3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0444088900bba2f3f81f68b352aee91eafc5a391950faf851c2739f9a9d50a6a |
| hovercard-subject-tag | issue:3234605652 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/cloudstack/11212/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c319e2128e6f8f9ceddb003f06f98221297ca524f7c5ec46fd52c9f9c40898f3/apache/cloudstack/issues/11212 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c319e2128e6f8f9ceddb003f06f98221297ca524f7c5ec46fd52c9f9c40898f3/apache/cloudstack/issues/11212 |
| og:image:alt | 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 Register a UEFI image Template https://cloud-images.ubuntu.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kiranchavala |
| hostname | github.com |
| expected-hostname | github.com |
| None | c78260c7b3f4ac4b0356c8208537f05406a3a2d46a9ec3f735b372dcc519c39e |
| turbo-cache-control | no-preview |
| go-import | github.com/apache/cloudstack git https://github.com/apache/cloudstack.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 9759448 |
| octolytics-dimension-repository_nwo | apache/cloudstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 9759448 |
| octolytics-dimension-repository_network_root_nwo | apache/cloudstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 399fff412f48461d435721c009efc17ea44be72f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width