moving to freebsd / jails / bhyve (part 5): the shell box
so i’m going to make a playground ‘shell box’ in a jail and join it to the domain. this should be pretty straightforward and will let me know i can actually join the domain. i need to add a user to samba first but for now lets prepare the jail.
root@devil:~ # bastille create -v 999 -V -n 192.168.99.2 -g 192.168.99.1 azazil 15.0-RELEASE 192.16
8.99.3/24 lagg0
Attempting to create jail: azazil
...
azazil: created
i’m getting faster at this. now i’m going to install some essentials. i usually start with nano because i’m lazy and lame and i already installed that. it’s very easy to just treat the jail like a normal freebsd box.
i’ll start with mosh, tmux, samba (4.19!!), nano, curl, git, weechat, zsh, and i’m sure i’ll think of a few more along the way.

with all the tools installed i can now go ahead and use it as a shell box. i probably need to revisit how you get rclone to work in a jail. the only way i managed to get it working was to add @reboot mount… as a crontab. otherwise the remote smb shares won’t mount on jail startup. i tried everything but this was the only solution i was able to get working. it’s an awful way to do it.