]> git.proxmox.com Git - qemu-server.git/commit - PVE/QemuServer.pm
avoid setting lun number for drives when pvscsi controller is used
authorFabian Ebner <f.ebner@proxmox.com>
Tue, 13 Apr 2021 08:24:14 +0000 (10:24 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 16 Jun 2021 18:26:27 +0000 (20:26 +0200)
commitef88eaaa58a1198525ce45b3bd62e6dc91fd0c55
tree11e762a744ebb1331aa84e76f29bedb0c19986d6
parent9da0feb5e5b5731b6eeef4f764aa3810a7c9c223
avoid setting lun number for drives when pvscsi controller is used

Reported in the community forum[0].

In QEMU's hw/scsi/vmw_pvscsi.c in the SCSIBusInfo struct, the max_lun property
is set to 0. This means that in our stack, one cannot have multiple disks and
use 'scsihw: pvscsi' currently, as kvm would fail with
    bad scsi device lun: 1

Instead of increasing the lun number, increase the scsi-id, as we already do for
lsi.* (in hw/scsi/lsi53c895a.c the max_lun property is also 0).

[0]: https://forum.proxmox.com/threads/kvm-bad-scsi-device-lun-1.84318/

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Reviewed-by: Stefan Reiter <s.reiter@proxmox.com>
Tested-by: Stefan Reiter <s.reiter@proxmox.com>
PVE/QemuServer.pm