BHyve startup scripts
These scripts are used to start BSD Hypervisor (BHyve) VM's on boot.
Setup
Copy or symlink the bhyvevm script to /usr/local/etc/rc.d/bhyvevm
For each VM that is created, create a separate vm.conf file. The conf file has parameters that are used when starting the VM.
For each VM that is created, edit the bhyvevm script and add the VM to the bhyvevm_start() and bhyvevm_stop() functions.
/etc/rc.conf
Put something like the following in /etc/rc.conf
Add something like the following in /etc/rc.conf to enable the tap devices:
Each VM should have a separate tap device, all connected to the same bridge. If you add more VM's, remember to add another tap device to cloned_interfaces
Add the following to /etc/sysctl.conf on the host machine:
Refer to: http://www.freebsd.org/doc/handbook/network-bridging.html