Bug 1782712 - can not boot up a scsi-block passthrough disk via -blockdev with error "cannot get SG_IO version number: Operation not supported. Is this a SCSI device?"
Summary: can not boot up a scsi-block passthrough disk via -blockdev with error "canno...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux Advanced Virtualization
Classification: Red Hat
Component: qemu-kvm
Version: 8.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 8.0
Assignee: Virtualization Maintenance
QA Contact: qing.wang
URL:
Whiteboard:
Depends On: 1525829
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-12-12 08:07 UTC by qing.wang
Modified: 2020-04-15 05:38 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1525829
Environment:
Last Closed: 2019-12-12 08:17:42 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 1 Xueqiang Wei 2019-12-12 08:16:50 UTC
 
driver=host_device, should not hit this issue.

 e.g.:
  
    -device virtio-scsi-pci,id=virtio_scsi_pci6,bus=pcie.0-root-port-14,addr=0x0 \
    -blockdev driver=host_device,cache.direct=off,cache.no-flush=on,filename=/dev/sdb,node-name=host_disk3 \
    -blockdev driver=raw,node-name=disk_3,file=host_disk3 \
    -device scsi-block,drive=disk_3,bus=virtio_scsi_pci6.0,id=host_disk3 \

Comment 2 qing.wang 2019-12-12 08:17:19 UTC
It is not bug due to wrong usage.

It works after change to:

-blockdev driver=raw,node-name=drive2,file.driver=host_device,file.filename=/dev/sdd \
-device scsi-block,drive=drive2 \


Note You need to log in before you can comment on or make changes to this bug.