Greetings.
FreeBSD 9.1 brought a separate configuration file for jails: /etc/jail.conf
I've successfully set up a jail, but I can't get how to use mount.devfs option (I assume it's the same as jail_name_devfs_enable="YES" in rc.conf
According to jail() I made the following configuration in /etc/jail.conf:
Then I'm starting the jail:
The problem is: looks like devfs gets mounted each time I start the jail, here is the host's output:
I'm killing jail using this command within the jail:
After this jls() shows no active jails, but devfs is still listed as mounted on the host.
Am I doing something wrong? I'm totally new to jails and completely lost here. The official documentation doesn't describe jail.conf as it's not oficially released yet.
FreeBSD 9.1 brought a separate configuration file for jails: /etc/jail.conf
I've successfully set up a jail, but I can't get how to use mount.devfs option (I assume it's the same as jail_name_devfs_enable="YES" in rc.conf
According to jail() I made the following configuration in /etc/jail.conf:
Code:
portsbuild {
path = /jails/portsbuild;
allow.mount;
mount.devfs;
host.hostname = portsbuild.home;
ip4.addr = 192.168.0.200;
interface = nfe0;
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
}
Then I'm starting the jail:
Code:
$ sudo jail -c portsbuild
portsbuild: created
Setting hostname: portsbuild.home.
Creating and/or trimming log files.
ln: /dev/log: Operation not permitted
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 cron.
The problem is: looks like devfs gets mounted each time I start the jail, here is the host's output:
Code:
$ df -h
...
devfs 1.0k 1.0k 0B 100% /jails/portsbuild/dev
devfs 1.0k 1.0k 0B 100% /jails/portsbuild/dev
devfs 1.0k 1.0k 0B 100% /jails/portsbuild/dev
devfs 1.0k 1.0k 0B 100% /jails/portsbuild/dev
/usr/ports 174G 28G 146G 16% /jails/portsbuild/usr/ports
devfs 1.0k 1.0k 0B 100% /jails/portsbuild/dev
I'm killing jail using this command within the jail:
Code:
kill -KILL -1
Am I doing something wrong? I'm totally new to jails and completely lost here. The official documentation doesn't describe jail.conf as it's not oficially released yet.