virtio-blk and virtio-scsi driver don't work with bhyve

Andrea Bolognani abologna at redhat.com
Thu Mar 17 15:48:14 UTC 2022


On Thu, Mar 17, 2022 at 02:31:58PM +0100, Mario Marietto wrote:
> Since we are not talking about FreeBSD,but of a driver which works on
> FreeBSD (virtio-blk),I'd thought that you could give some help.

I don't think you have successfully determined that the issue is in
the guest driver as opposed to the hypervisor: if anything

  *Assertion failed: (n >= 2 && n <= BLOCKIF_IOV_MAX + 2), function
  pci_vtblk_proc, file /usr/src/usr.s
  bin/bhyve/pci_virtio_block.c, line 324.*

from your original message seems to point to bhyve and thus FreeBSD.

In order to track down the problem, you could try using the same
virtual hardware configuration but install Linux or FreeBSD as the
guest OS: if none of those work, then either bhyve's implementation
of virtio-blk is buggy or you're trying to do something that's simply
not supposed to work. If those work but Windows doesn't then the
problem is likely in virtio-win and you should report it to their bug
tracker.

-- 
Andrea Bolognani / Red Hat / Virtualization



More information about the virt-tools-list mailing list