VIRTIO_SCSI(4)
π VIRTIO_SCSI π
okay so bestie, this is the virtio_scsi manual page β it lives in the Kernel Interfaces Manual section, and it's giving very specific "I only talk to virtual machines" energy. Let's get into it β¨
πΈ NAME πΈ
virtio_scsi β the VirtIO SCSI driver, aka the little guy that lets your kernel talk to VirtIO SCSI devices π¦
π SYNOPSIS π
So you wanna compile this driver into the kernel? iconic. drop these lines into your kernel configuration file:
device virtio_scsi
or, if you'd rather load it as a module at boot time (lowkey the easier vibe), put this line in loader.conf(5):
virtio_scsi_load="YES"
β¨ DESCRIPTION β¨
The virtio_scsi device driver provides support for VirtIO SCSI devices. that's it, that's the whole thing, and honestly? she ate. π
π§ LOADER TUNABLES π§
Tunables can be set at the loader(8) prompt before booting the kernel, or stored in loader.conf(5). very much your choice, bestie π
hw.vtscsi.bus_reset_disableβ ngl this one has lore π In the initial QEMU release with VirtIO SCSI support, in-flight operations were not aborted when stopping the device, which rendered bus reset ineffective. so this tunable disables attempts to issue reset bus commands. The default value is1. periodt.
π DEBUGGING π
Wanna enable debugging prints from the virtio_scsi driver? set this variable:
hw.vtscsi.X.debug_level
where X is the adapter number β either in loader.conf(5) or via sysctl(8). and here's the bit breakdown, iykyk:
0x01β Enable informational prints.0x02β Enable prints for driver errors.0x04β Enable tracing prints.
fr fr, it's a bitmask, so you can stack them. the manpage doesn't say that but likeβ¦0x01+0x02=0x03. okay moving on π
π«Ά SEE ALSO π«Ά
π HISTORY π
The virtio_scsi driver was written by Bryan Venteicher <bryanv@FreeBSD.org>. It first appeared in FreeBSD 10.0. main character energy tbh π
and that's the whole page, bestie π this one came from the Debian gang, dated June 24, 2012, and it's filed under VIRTIO_SCSI(4) in the Kernel Interfaces Manual β go forth and virtualize slayfully πΈβ¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2012 Bryan Venteicher
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms