Description
The DEFAULT_ATTACH_VIRTIO_BLK_QUEUES variable configured in the kvmrc file is applied when attaching a SCSI disk to a VM. Effectively failing the attach operation.
To Reproduce
- Set DEFAULT_ATTACH_VIRTIO_BLK_QUEUES in the kvmrc file and update the hosts
- Download a VM from the Marketplace
- Instantiate the VM without altering the VM configuration
- Attach a VM disk
The attach procedure will fail with the following error:
Wed Apr 8 13:40:46 2026 [Z0][VMM][E]: ATTACHDISK: virsh --connect qemu:///system attach-device 094f4b75-5323-4a91-a43f-3ea60f7c7c05 <(cat <<EOT<disk type='block' device='disk'><driver name='qemu' type='raw' cache='none' io='native' discard='unmap' queues='4'/><source dev='/var/lib/one//datastores/0/1/disk.2' ></source><target dev='sdb'/><address type='drive' controller='0' bus='0' target='1' unit='0'/></disk>EOT)" failed: error: Failed to attach device from /dev/fd/63error: unsupported configuration: queues attribute in disk driver element is only supported for virtio busCould not attach /var/lib/one//datastores/0/1/disk.2 (sdb) to 094f4b75-5323-4a91-a43f-3ea60f7c7c05
Expected behavior
The disk attach should succeed.
Details
- Affected Component: [Virtualization]
- Hypervisor: [KVM]
- Version: [7.0, 7.2]
Additional context
Another issue is clear in the data of the reported error message above.
Progress Status
Description
The
DEFAULT_ATTACH_VIRTIO_BLK_QUEUESvariable configured in thekvmrcfile is applied when attaching a SCSI disk to a VM. Effectively failing the attach operation.To Reproduce
The attach procedure will fail with the following error:
Wed Apr 8 13:40:46 2026 [Z0][VMM][E]: ATTACHDISK: virsh --connect qemu:///system attach-device 094f4b75-5323-4a91-a43f-3ea60f7c7c05 <(cat <<EOT<disk type='block' device='disk'><driver name='qemu' type='raw' cache='none' io='native' discard='unmap' queues='4'/><source dev='/var/lib/one//datastores/0/1/disk.2' ></source><target dev='sdb'/><address type='drive' controller='0' bus='0' target='1' unit='0'/></disk>EOT)" failed: error: Failed to attach device from /dev/fd/63error: unsupported configuration: queues attribute in disk driver element is only supported for virtio busCould not attach /var/lib/one//datastores/0/1/disk.2 (sdb) to 094f4b75-5323-4a91-a43f-3ea60f7c7c05Expected behavior
The disk attach should succeed.
Details
Additional context
Another issue is clear in the data of the reported error message above.
Progress Status