If the jail is running it should show up in the host's mount. Just not the jail's.noobster said:Now, how can I check if it really works if it doesn't show up in mount?
Whereis any example how to mount linproc /compat/linux/proc linprocfs rw 0 0 in jail.conf ?mount A filesystem to mount before creating the jail (and to unmount
after removing it), given as a single fstab(5) line.
mount.fstab
An fstab(5) format file containing filesystems to mount before
creating a jail.
build {
host.hostname = "j-build.dicelan.home";
ip4.addr = a.a.a.a;
ip6.addr = b:b:b:b::b;
interface = em0;
path = /jails/j-build-amd64/;
mount.fstab = /etc/fstab.$name;
mount.devfs = 1;
enforce_statfs = 1;
}
dice@molly:~ % cat /etc/fstab.build
/usr/src /jails/j-build-amd64/usr/src nullfs ro 0 0
/usr/ports /jails/j-build-amd64/usr/ports nullfs rw 0 0
/usr/ports/distfiles /jails/j-build-amd64/usr/ports/distfiles nullfs rw 0 0
/usr/ports/packages /jails/j-build-amd64/usr/ports/packages nullfs rw 0 0
Yes, but you do have to mount it on /compat/linux/proc of the jail, so the directory will probably be something like /jails/myjail/compat/linux/proc. It won't work if it's only mounted on the host, it has to be accessible from the jail. Remember, the whole idea behind a jail is to "shield" applications from the host. A jail can only access filesystems that have been mounted inside the jail's filesystem.bryn1u said:So if I mount linprocfs(5) from host to jail should be works fine ?
Oksymoron {
path = /jails/Oksymoron;
mount.devfs;
#allow.mount;
#mount;
host.hostname = Oksymoron.edu.pl;
ip4.addr = 91.121.239.228;
interface = em0;
securelevel = 3;
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
}
Linux {
path = /jails/Linux;
mount.devfs;
enforce_statfs = 1;
mount.fstab = /etc/fstab.Linux
#allow.mount;
#mount;
host.hostname = BSD.edu.pl;
ip4.addr = 188.165.139.63;
interface = em0;
securelevel = 3;
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
}
linproc /jails/Linux/compat/linux/proc linprocfs rw 0 0
Starting jails:jail: /etc/jail.conf line 21: host.hostname: syntax error.