# Include vmm driver for bhyve vmm_load="YES" # Load nmdm driver to communicate with bhyve VM's nmdm_load="YES" # For bhyve VM's networking if_bridge_load="YES" bridgestp_load="YES" if_tap_load="YES"
zfs create zroot/vm
zfs set volmode=dev zroot/vm zfs get volmode zroot/vm
zfs create -V 200G zroot/vm/disk.img
sh /usr/share/examples/bhyve/vmrun.sh -i -I FreeBSD-9.2-RELEASE-amd64-disc1.iso -d /dev/zvol/zroot/vm/disk.img -m 2G vm_test
ttyu0 "/usr/libexec/getty std.9600" vt100 on secure
}}} or this, if the guest is running 11-CURRENT newer than r264175 {{{
ttyu0 "/usr/libexec/getty 3wire" vt100 on secure
sh /usr/share/examples/bhyve/vmrun.sh -d disk.img -m 2G vm_test
##################################################### # Create tap devices, one tap interface per bhyve VM. # Add the tap interfaces to bridge0 #################################################### cloned_interfaces="bridge0 tap0 tap1" autobridge_interfaces="bridge0" autobridge_bridge0="tap* igb0"
# bhyve needs this for tap interfaces net.link.tap.user_open=1 net.link.tap.up_on_open=1
ls /dev/vmm/*
ls /dev/nmdm*
cu -l /dev/nmdm0B
~..
The scripts used to start the bhyve VM's are located at Github: https://github.com/freebsd/freebsd-ci/tree/master/vm