I was experimenting with setting up and running jails. Here's the jail.conf that I'm running.
Side note: Was planning on using this jail to try and fix an issue I'm having on my thinkpad t450 (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230801). But I clearly have quite a bit of learning to do arnoud FreeBSD generally.
So far the main issue I'm encountering is that when I try to open a file with vim it seems to hang. If I hit Ctrl-C then I get the default vim buffer. I then need to enter the command:
Not sure what's causing this behavior (or how to debug) and it doesn't happen outside of the jail environment. I created a separate user (jail logs me in as root) to see if it might be some sort permissions issue but the problem persists even when running as a regular (i.e. not root) user.
Code:
iwm0-debug {
path = /home/bsd/Jails/iwm0-debug;
mount.devfs;
host.hostname = iwm0-debug;
# from the host need to run:
# ifconfig wlan0 add 10.0.0.5 broadcast 10.0.0.255 netmask 0xffffff00
ip4.addr = 10.0.0.5;
interface = wlan0;
allow.raw_sockets = true;
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
}
Side note: Was planning on using this jail to try and fix an issue I'm having on my thinkpad t450 (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230801). But I clearly have quite a bit of learning to do arnoud FreeBSD generally.
So far the main issue I'm encountering is that when I try to open a file with vim it seems to hang. If I hit Ctrl-C then I get the default vim buffer. I then need to enter the command:
Code:
:e <file-name>' before the file is loaded into the buffer.
Not sure what's causing this behavior (or how to debug) and it doesn't happen outside of the jail environment. I created a separate user (jail logs me in as root) to see if it might be some sort permissions issue but the problem persists even when running as a regular (i.e. not root) user.