Using tmux - churchers/vm-bhyve GitHub Wiki
By default, vm-bhyve
uses cu
/nmdm
as a console session management tool. If you prefer to run virtual machines on a tmux
session instead, this is now supported in v1.1+. All you need to do is to set console
option in $vm_dir/.config/system.conf
:
vm set console=tmux
Once set, any new guests started will have a tmux session associated with them. The session name is the same as the guest name, although you can also attach it to the tmux session using the standard vm console guest
command.
# vm list |grep fbsd
fbsd default bhyveload 2 256M - No Running (88761)
# tmux ls
fbsd: 1 windows (created Tue Jun 28 10:42:22 2016) [168x46]