bhyve issue

vm-bhyve stripesize

disk0.img の場合は zfs recordsize (default 128K)
sparse-zvol の場合は zfs volblocksize (default 8K)
になる?

disk0_opts で変更可?

disk0_type="virtio-blk"
disk0_name="disk0.img"
disk0_opts="sectorsize=512/4096"

guest

$  sudo diskinfo -v vtbd0
vtbd0
	512         	# sectorsize
	21474836480 	# mediasize in bytes (20G)
	41943040    	# mediasize in sectors
	4096      	# stripesize
	0           	# stripeoffset
	            	# Disk descr.
	BHYVE-C743-589B-A9C0	# Disk ident.
	No          	# TRIM/UNMAP support
	Unknown     	# Rotation rate in RPM

stripesize が 0 になることがある?

FreeBSD 9.0-STABLEv(virtio-blk)
$ sudo diskinfo -v vtbd0
vtbd0
	512         	# sectorsize
	42949672960 	# mediasize in bytes (40G)
	83886080    	# mediasize in sectors
	0           	# stripesize
	0           	# stripeoffset
	BHYVE-4243-1756-14F0	# Disk ident.

Windows Server 2016 as guest on bhyve 4k emulated drive