Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Nov 2022 21:19:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@FreeBSD.org
Subject:   [Bug 267539] Bhyve virtio-scsi warnings about illegal SCSI tag reuse
Message-ID:  <bug-267539-27103-GzHNKJqXmB@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-267539-27103@https.bugs.freebsd.org/bugzilla/>
References:  <bug-267539-27103@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267539

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=3D/dev/random of=3D/dev/da0 bs=3D1m ; dmesg | grep v=
tscsi
(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=3D1 -O vp=3D0

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=3Dctl-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 n=
ame


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=3Dvm0 || \
                { echo VM vm0 failed to destroy ; exit 1 ; }
fi

echo Loading VM vm0
bhyveload -m 4g -d /root/vm0.raw \
        -e beastie_disable=3DYES \
        -e splash_bmp_load=3DNO \
        -e loader_logo=3DNO \
        -e autoboot_delay=3D3 \
        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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267539-27103-GzHNKJqXmB>