I've been using full jails until now, but updating them has become too cumbersome. So, I decided to try thin jails as instructed here: <https://clinta.github.io/freebsd-jails-the-hard-way/>.
I have created a template with
When I try to create the jail with
Also when I try to run portmaster(8), I get the following at the beginning of the output:
And when I try to install Perl, I get the following error:
I noticed that even though
I have no idea what is going on at this point. Any help is appreciated.
I have created a template with
bsdinstall jail
, modified it with a few packages, and made the fstab and everything like so:
Code:
# /jails/fstab/thinjail.fstab
/jails/template /jails/thinjail nullfs ro 0 0
/jails/thinjails/mail /jails/thinjail unionfs rw,noatime 0 0
Code:
# /etc/jail.conf
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.clean;
mount.devfs;
interface = "igb0";
host.hostname = "$name.local";
path = "/jails/$name";
ip4.addr = 10.0.0.$ip;
thickjail {
$ip = 25;
}
thinjail {
$ip = 26;
mount.fstab = "/jails/fstab/$name.fstab";
}
When I try to create the jail with
jail -c thinjail
I get this output (notice "ps: empty file: Invalid argument"):
Code:
$ jail -c thinjail
thinjail: created
ps: empty file: Invalid argument
Setting hostname: thinjail.
Creating and/or trimming log files.
Starting syslogd.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib
32-bit compatibility ldconfig path: /usr/lib32
Clearing /tmp (X related).
Updating motd:.
Starting sendmail_submit.
Starting sendmail_msp_queue.
Starting cron.
ps: empty file: Invalid argument
Also when I try to run portmaster(8), I get the following at the beginning of the output:
Code:
ps: empty file: Invalid argument
[: -eq: unexpected operator
.
.
.
ps: /boot/kernel/kernel: No such file or directory
ps: /boot/kernel/kernel: No such file or directory
ps: /boot/kernel/kernel: No such file or directory
[: : bad number
And when I try to install Perl, I get the following error:
Code:
===> Configuring for perl5-5.20.3_8
***
*** I'm sorry, but /dev/null appears to be a file rather than a device.
*** Please consult your operating sytem's notes for making a device
*** in /dev.
*** Cannot continue, aborting.
***
===> Script "Configure" failed unexpectedly.
I noticed that even though
mount
reports that devfs(8) is mounted under jail/dev, /dev under the jail is empty with the exception of a null file which is not even a character device! My template doesn't have a /dev and my thinjail doesn't either.I have no idea what is going on at this point. Any help is appreciated.