add custom option to startup command

thorn57

Cadet
Joined
Jul 24, 2017
Messages
8
As the title says, is there any possibility to add a custom option to the startup command that FreeNAS creates for the VMs. I specifically want to passthrough a pcie tv tuner to a linux VM using -s 7:0:0,passthru,3/0/0
 
Last edited by a moderator:

thorn57

Cadet
Joined
Jul 24, 2017
Messages
8
Yes, I used a custom bhyve command and did not use FreeNAS's VM management system. So to start the VM I execute:
Code:
 bhyve -APHS -c 2 -m 2020 -s 0:0,hostbridge -s 1:0,lpc -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -s 3,e1000,tap2 -s 29,fbuf,tcp=0.0.0.0:5920,w=1024,h=768 -s 4,ahci-hd,/dev/zvol/Volume1/VMs/tvheadend -Y -s 7,passthru,3/0/0 tvh 

afterwards you have to make sure the virtual nic the VM uses is in the correct bridge and is up and in promiscuous mode otherwise there is no networking on the VM
 

jkalousek

Dabbler
Joined
Dec 17, 2017
Messages
16
I know this is old topic but I came up with exactly your solution except for -S to work you also need to pass it to grub-bhyve to force memory wiring but I cannot figure out how grub-bhyve cmd should look like. Can you please share your command for grub-bhyve?
Thanks.
 
Top