one: Cannot boot VM with more than one scsi disk
Description Booting a VM with more than one scsi disk stops with an error message. The error occurs with adapter “lsilogic” and “buslogic”. VMs with one scsi disk work. VMs with multiple virtio disks work as well. We need scsi disks for trim support.
/var/log/one/oned.log:
LOG I 21 error: unsupported configuration: target must be 0 for controller model 'lsilogic'
Error shown in Sunstone:
Error deploying virtual machine: Could not create domain from /var/lib/one//datastores/0/21/deployment.20
Extract of /var/lib/one/datastores/0/21/deployment.20:
<disk type='file' device='cdrom'>
<source file='/var/lib/one//datastores/0/21/disk.0'/>
<target dev='sda'/>
<boot order='2'/>
<readonly/>
<driver name='qemu' type='raw' cache='none'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
<disk type='file' device='disk'>
<source file='/var/lib/one//datastores/0/21/disk.4'/>
<target dev='sdb'/>
<driver name='qemu' type='qcow2' cache='none'/>
<address type='drive' controller='0' bus='0' target='1' unit='0'/>
</disk>
To Reproduce Create a VM, add two scsi disks, boot. We have the machine type set to “q35” globally.
Expected behavior VM should boot.
Details
- Affected Component: Scheduler or Storage
- Hypervisor: KVM
- Version: 5.6.1-1
- Machine: q35
- Architecure: x86_64
Additional context We think, the problem was introduced here: https://github.com/OpenNebula/one/commit/e164fde85f4459add2e8007ebcf15da5d045d514
See also: https://github.com/libvirt/libvirt/blob/master/src/qemu/qemu_command.c#L5103
Progress Status
- Branch created
- Code committed to development branch
- Testing - QA
- Documentation
- Release notes - resolved issues, compatibility, known issues
- Code committed to upstream release/hotfix branches
- Documentation committed to upstream release/hotfix branches
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (7 by maintainers)
Commits related to this issue
- B #2971: scsi-virtio controller for scsi disks Since ONE numbers scsi devices solely using target attr it's required to use virtio-scsi controller when more than one scsi disk is used. — committed to xorel/one by xorel 5 years ago
- B OpenNebula/one#2971: Update what's new — committed to xorel/docs by xorel 5 years ago
- B OpenNebula/one#2971: Update what's new — committed to xorel/docs by xorel 5 years ago
- B #2971: scsi-virtio controller for scsi disks Since ONE numbers scsi devices solely using target attr it's required to use virtio-scsi controller when more than one scsi disk is used. — committed to xorel/one by xorel 5 years ago
- B #2971: scsi-virtio controller for scsi disks (#3709) Since ONE numbers scsi devices solely using target attribute it's required to use virtio-scsi controller when more than one scsi disk is used. — committed to OpenNebula/one by xorel 5 years ago
- B OpenNebula/one#2971: Update what's new (#762) — committed to OpenNebula/docs by xorel 5 years ago
- B #2971: rename `SD` DEV_PREFIX to SCSI/SATA — committed to xorel/one by xorel 5 years ago
- B #2971: rename SCSI for SCSI/SATA Signed-off-by: Jorge Lobo <jlobo@opennebula.systems> — committed to jloboescalona2/one by deleted user 5 years ago
- B #2971: rename SCSI for SCSI/SATA (#3791) Signed-off-by: Jorge Lobo <jlobo@opennebula.systems> — committed to OpenNebula/one by jloboescalona2 5 years ago
- F OpenNebula/one#6120: zone tab fireedge (#2971) Signed-off-by: Jorge Lobo <jlobo@opennebula.io> — committed to OpenNebula/one by jloboescalona2 4 months ago
- F OpenNebula/one#6120: zone tab fireedge (#2971) Signed-off-by: Jorge Lobo <jlobo@opennebula.io> (cherry picked from commit 7984ce943ed5120f0a1946bfd5d62d46f8541036) — committed to OpenNebula/one by jloboescalona2 4 months ago
We have reproduced the issue.