[Bug 267539] Bhyve virtio-scsi warnings about illegal SCSI tag reuse
Date: Fri, 18 Nov 2022 21:19:27 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267539 Michael Dexter <editor@callfortesting.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |editor@callfortesting.org --- Comment #1 from Michael Dexter <editor@callfortesting.org> --- My test within a Release Engineering 13.1 VM image to reproduce this: root@freebsd:~ # dd if=/dev/random of=/dev/da0 bs=1m ; dmesg | grep vtscsi (da0:vtscsi0:0:0:0): WRITE(10). CDB: 2a 00 02 00 1d b8 00 01 e8 00 (da0:vtscsi0:0:0:0): CAM status: SCSI Status Error (da0:vtscsi0:0:0:0): SCSI status: Check Condition (da0:vtscsi0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:4d,94 ((null)) (da0:vtscsi0:0:0:0): Retrying command (per sense data) dd: /dev/da0: end of device 30721+0 records in 30720+0 records out Setup on the host: Create a disk image that will be attached to the VM using CTL: # truncate -s 30G ctl-test.raw CTL Setup script: cat ctl-setup.sh echo ctladm portlist before anything ctladm portlist -l -v echo creating port ctladm port -c -O pp=1 -O vp=0 echo ctladm portlist before after port creation ctladm portlist -l -v echo creating LUN type block ctladm create -b block -d foo -S bar -o file=ctl-test.raw echo ctladm portlist before after LUN creation ctladm portlist -l -v echo listing /dev/cam ls /dev/cam/ echo running ctladm devlist ctladm devlist Download a Release Engineering VM images to /root/vm0.raw or use the full name VM boot script: cat ctl-boot.sh #!/bin/sh echo Loading vmm.ko if not loaded kldstat -q -m vmm || kldload vmm.ko || { echo vmm failed to load ; exit 1 ; } echo Destroying VM vm0 if present if [ -e "/dev/vmm/vm0" ] ; then echo Found /dev/vmm/vm0 and destroying it bhyvectl --destroy --vm=vm0 || \ { echo VM vm0 failed to destroy ; exit 1 ; } fi echo Loading VM vm0 bhyveload -m 4g -d /root/vm0.raw \ -e beastie_disable=YES \ -e splash_bmp_load=NO \ -e loader_logo=NO \ -e autoboot_delay=3 \ vm0 || \ { echo VM vm0 failed to load ; exit 1 ; } echo Booting VM vm0 bhyve -m 4g -c 2 -A -H -s 0,hostbridge -s 1,lpc -l com1,stdio \ -s 3,virtio-blk,/root/vm0.raw \ -s 4,virtio-scsi,/dev/cam/ctl1.0 \ vm0 -- You are receiving this mail because: You are the assignee for the bug.