4 Configuration is done completely though rc.conf.
5 The rc script won't touch any devices for you (neither disk, nor tap)
6 so you need to make sure all of those have been initialized properly.
10 net.link.tap.up_on_open=1
13 echo "net.link.tap.up_on_open=1" >> /etc/sysctl.conf
14 cat >> /boot/loader.conf << EOF
19 cat >> /etc/rc.conf << EOF
20 cloned_interfaces="tap0 bridge0"
22 bhyve_diskdev="/dev/zvol/tank/bhyve/virt"
26 ifconfig bridge0 create
34 Multi profile configuration example:
35 cat >> /etc/rc.conf << EOF
36 cloned_interfaces="tap0 tap1 bridge0"
38 bhyve_profiles="virt1 virt2"
39 bhyve_virt1_diskdev="/dev/zvol/tank/bhyve/virt1"
41 bhyve_virt2_tapdev="tap1"
42 bhyve_virt2_diskdev="/dev/zvol/tank/bhyve/virt2"
43 bhyve_virt2_memsize="8192"
49 ifconfig bridge0 create
51 service bhyve start # start all
52 service bhyve start virt2 # start individual
53 tmux attach -t bhyve_virt1
54 tmux attach -t bhyve_virt1
55 service bhyve stop virt2 # stop individual
56 service bhyve stop # stop all
58 (by default ctrl-b d detaches from tmux).