VIRTIO_SCSI(4)
π VIRTIO_SCSI(4) π
okay bestie, so this is a section 4 page β that's the Kernel Interfaces Manual, aka the place where the kernel driver lore lives π«Ά pull up a chair, we're talking about virtio_scsi, the VirtIO SCSI driver. yes, that's the whole NAME. slay.
β¨ SYNOPSIS β¨
so like, there are two ways to get this driver into your life, and both are valid π
Option A β bake it right into the kernel. drop these lines into your kernel configuration file:
device virtio_scsi
Option B β module girlie. load it as a module at boot time by putting this line in loader.conf(5):
virtio_scsi_load="YES"
pick your fighter, both eat π
πΈ DESCRIPTION πΈ
the virtio_scsi device driver provides support for VirtIO SCSI devices. that's it, that's the vibe. it's giving "does exactly what it says on the tin" and honestly? iconic. β¨
π¦ LOADER TUNABLES π¦
tunables can be set at the loader(8) prompt before booting the kernel, or stored in loader.conf(5). set them early or set them forever, your call π
hw.vtscsi.bus_reset_disableβ so here's the tea π: in the initial QEMU release with VirtIO SCSI support, in-flight operations were not aborted when stopping the device, which rendered bus reset ineffective. tragic. this tunable disables attempts to issue reset bus commands. the default value is1.
not me side-eyeing an entire QEMU release π the default here is 1, so keep that in mind before you go flipping switches.
π₯ DEBUGGING π₯
wanna see what the virtio_scsi driver is yapping about internally? set the
hw.vtscsi.X.debug_level
variable β where X is the adapter number β either in loader.conf(5) or via sysctl(8). the following bits have the described effects, and yes we're doing bit math, it's giving computer science major π
0x01β Enable informational prints.0x02β Enable prints for driver errors.0x04β Enable tracing prints.
lowkey the move is to add them together if you want the full lore dump. iykyk π
π SEE ALSO π
π HISTORY π
the virtio_scsi driver was written by Bryan Venteicher <bryanv@FreeBSD.org> π it first appeared in FreeBSD 10.0. a legend, a pioneer, main character energy fr fr.
and that's the whole page bestie, no cap π this one came from the Debian crew, dated June 24, 2012 β so go forth, load your virtio_scsi, and stay hydrated π
π¦π
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 2012 Bryan Venteicher
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms