Skip to content

Commit d5c761a

Browse files
committed
Add exec.clean parameter to template
We need this so as not to confuse tmux, at least for desktop users. The problem is very rare, but it can be reproduced when using tmux on the host and you start/restart the jail (within the tmux session), so the vm-bhyve rc(8) script will try to start the virtual machine with the user's environment, confusing tmux, resulting in the error "error creating /tmp/tmux-<host user UID>/default (No such file or directory)" (which is not easily visible) and, worse, the virtual machine will not start unless it is started manually. Another alternative is the following patch: freebsd/vm-bhyve#25
1 parent 90e5e32 commit d5c761a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

template.conf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,15 @@ mount.devfs
44
persist
55
allow.vmm
66
stop.timeout: 30
7+
# We need this so as not to confuse tmux, at least for desktop users.
8+
# The problem is very rare, but it can be reproduced when using tmux
9+
# on the host and you start/restart the jail (within the tmux session),
10+
# so the vm-bhyve rc(8) script will try to start the virtual machine
11+
# with the user's environment, confusing tmux, resulting in the error
12+
# "error creating /tmp/tmux-<host user UID>/default (No such file or directory)"
13+
# (which is not easily visible) and, worse, the virtual machine will
14+
# not start unless it is started manually.
15+
#
16+
# Another alternative is the following patch:
17+
# https://github.com/freebsd/vm-bhyve/pull/25
18+
exec.clean

0 commit comments

Comments
 (0)