Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VMs with a custom number of virtio queues does not start with a CDROM drive #6401

Closed
3 tasks
OpenNebulaSupport opened this issue Nov 15, 2023 · 1 comment
Closed
3 tasks

Comments

@OpenNebulaSupport
Copy link
Collaborator

Description
Setting the number of virtio queues does not allow a VM with an attached CDROM

To Reproduce
Adding any CDROM type image and setting up the VIRTIO block and scsi queues fails with the following error

[VMM][E]: DEPLOY: error: Failed to create domain from /var/lib/one//datastores/0/400/deployment.4 error: unsupported configuration: queues attribute in disk driver element is only supported by virtio-blk Could not create domain from /var/lib/one//datastores/... ExitCode: 255

The VM template must have the following sections

...
DISK=[                                                                                                          
  IMAGE="cdrom_image",
  IMAGE_UNAME="oneadmin" ]
...
FEATURES=[
  VIRTIO_BLK_QUEUES="auto",
  VIRTIO_SCSI_QUEUES="auto" ]

Expected behavior
Vm should start with no problems

Details

  • Version 6.8

Additional context

Looks like the problem is because the ide bus (used for CD ROMS) does not allow setting the queues setting

<disk type='file' device='cdrom'>
...
   <target dev='hda' bus='ide'/>
   <driver name='qemu' type='raw' cache='none' discard='unmap' queues='2'/>
</disk>

Progress Status

  • Code committed
  • Testing - QA
  • Documentation (Release notes - resolved issues, compatibility, known issues)
@rsmontero
Copy link
Member

Code
Docs

rsmontero added a commit that referenced this issue Nov 16, 2023
VIRTIO_BLK_QUEUES is only supported for virtio-blk driver (and
vhost-usr-blk). This commits check the DISK is using the right disk
before adding the parameter to the DRIVER.

(cherry picked from commit 0611ffb)
rsmontero added a commit that referenced this issue Mar 11, 2024
VIRTIO_BLK_QUEUES is only supported for virtio-blk driver (and
vhost-usr-blk). This commits check the DISK is using the right disk
before adding the parameter to the DRIVER.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants