<div dir="ltr"><div>I've already tried on Linux and it works well. Only if Windows is the guest OS,it does not work. <br></div><div><br></div><div><pre dir="ltr"><code>bhyve -S -c sockets=1,cores=2,threads=2 -m 4G -w -H -A \
-s 0,hostbridge \
-s 1,ahci-hd,/dev/nvd0 \
-s 2,virtio-blk,/dev/da4 \
-s 3,virtio-blk,/dev/da2 \
-s 4:0,passthru,2/0/0 \
-s 4:1,passthru,2/0/1 \
-s 4:2,passthru,2/0/2 \
-s 4:3,passthru,2/0/3 \
-s 8,virtio-net,tap2 \
-s 9,virtio-9p,sharename=/ \
-s 10,hda,play=/dev/dsp,rec=/dev/dsp \
-s 29,fbuf,tcp=<a href="http://0.0.0.0:5902" target="_blank">0.0.0.0:5902</a>,w=1440,h=900 \
-s 30,xhci,tablet \
-s 31,lpc \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_BHF_CODE.fd \
vm2 < /dev/null & sleep 2 && vncviewer 0:2<br><br><br>Using the whole disks in bhyve the da4 and da2 disks are recognized by fdisk and by Ubuntu.<br><br></code></pre></div><div>So,the problem is in the virtio-win driver. I wasn't wrong ! Can you give me their bug tracker ? So,take note. Even asking to the wrong place,the wrong person is redirecting me to the right path ? So I'm totally in the right place. ;D<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno gio 17 mar 2022 alle ore 16:48 Andrea Bolognani <<a href="mailto:abologna@redhat.com" target="_blank">abologna@redhat.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, Mar 17, 2022 at 02:31:58PM +0100, Mario Marietto wrote:<br>
> Since we are not talking about FreeBSD,but of a driver which works on<br>
> FreeBSD (virtio-blk),I'd thought that you could give some help.<br>
<br>
I don't think you have successfully determined that the issue is in<br>
the guest driver as opposed to the hypervisor: if anything<br>
<br>
  *Assertion failed: (n >= 2 && n <= BLOCKIF_IOV_MAX + 2), function<br>
  pci_vtblk_proc, file /usr/src/usr.s<br>
  bin/bhyve/pci_virtio_block.c, line 324.*<br>
<br>
from your original message seems to point to bhyve and thus FreeBSD.<br>
<br>
In order to track down the problem, you could try using the same<br>
virtual hardware configuration but install Linux or FreeBSD as the<br>
guest OS: if none of those work, then either bhyve's implementation<br>
of virtio-blk is buggy or you're trying to do something that's simply<br>
not supposed to work. If those work but Windows doesn't then the<br>
problem is likely in virtio-win and you should report it to their bug<br>
tracker.<br>
<br>
-- <br>
Andrea Bolognani / Red Hat / Virtualization<br>
<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr">Mario.<br></div>