I've been testing to create a template for Rocky Linux 9.5 and Ubuntu 24.04.1. My process of creating the templates is creating them on VirtualBox Version 7.1.0, select virtio-scsi for storage controller and virtio-net for the network adapter. After that, I convert the VDI image to QCOW2 image using qemu-img. When trying to use the template on CloudStack and selecting virtio rootDiskController for both Rocky and Ubuntu, only Ubuntu is able to boot successfully while Rocky stucks at the dracut shell. Changing the rootDiskController to scsi for Rocky fixes this issue.
Further investigation found that selecting virtio as rootDiskController, the driver loaded is virtio_blk meanwhile selecting scsi as rootDiskController, the driver loaded is virtio_scsi. virtio as rootDiskController on Ubuntu: https://imgur.com/a/liM4cet scsi as rootDiskController on Rocky: https://imgur.com/a/K0JnVBw I don't know in-depth about all this things but after reading this article looks like it should be okay to use virtio_scsi in most case: https://mpolednik.github.io/2017/01/23/virtio-blk-vs-virtio-scsi/ What type of rootDiskController did you use? Happy to hear your thoughts on this.