Other Hard drive pass thru bhyve

Does anyone know how, or is it even possible to pass thru or mount my physical sata storage hard drives in my bhyve vm (vm is 2012r2 server). My system is 11.2 RC1 FreeBSD, Ryzen 1700, 32 gigs of ram with 4 4tb hd's formatted to ntfs.

Thanks
 
The disk option to bhyve can specify either a file name or a block device. It’s common to see people use a ZVOL, but it can be any block device.

Passing /dev/adaX as a disk to a guest will function just as if that disk was physically connected to the guest.

Note that you cannot access a disk both in the host and guest.
 
Thanks, any chance you could add a example of what would be needed to add to my config file below? I understand what you wrote just not sure how it would be added to this.
Code:
uefi="yes"
cpu=4
memory=6G
graphics="yes"
xhci_mouse="yes"
graphics_res="1600x900"
network0_type="virtio-net"
network0_switch="public"
disk0_opts="sectorsize=512"
disk0_type="ahci-hd"
disk0_name="BackupR7.img"
disk1_opts="sectorsize=512"
disk1_type="ahci-hd"
disk1_name="Storage.img"
uuid="762f78e9-270b-11e8-87a4-309c230c9abc"
network0_mac="02:15:5d:45:32:01"

If you have any other suggestions to improve my config file, I am all ears.
 
Back
Top