ZFS and Jail :: nullfs mount :: nothing visible from host

2016-12-08 Thread SK
Hello I am trying to set up a bunch of jails (vimage, vtnet) on FreeBSD 11 Stable. I have created a tank/Jail dataset, and created mroot and other staff inside that (regular folders) The jails are using those folders using nullfs -- so far so good. I also have a few zfs datasets, like tank/u

ZFS and Jail :: nullfs mount :: nothing visible from host

2016-12-08 Thread SK
Hello I am trying to set up a bunch of jails (vimage, vtnet) on FreeBSD 11 Stable. I have created a tank/Jail dataset, and created mroot and other staff inside that (regular folders) The jails are using those folders using nullfs -- so far so good. I also have a few zfs datasets, like tank/u

Re: ZFS and Jail :: nullfs mount :: nothing visible from host

2016-12-08 Thread Miroslav Lachman
SK wrote on 2016/12/08 15:22: So far I have tried to follow as many google results as possible using jail, zfs, mountpoint, nullfs, manage zfs and so on. There were a few sites coming up again and again but they were talking about ezjail (not that I have anything against it, but I would prefer t

Re: ZFS and Jail :: nullfs mount :: nothing visible from host

2016-12-08 Thread SK
On 08/12/2016 16:14, Miroslav Lachman wrote: SK wrote on 2016/12/08 15:22: So far I have tried to follow as many google results as possible using jail, zfs, mountpoint, nullfs, manage zfs and so on. There were a few sites coming up again and again but they were talking about ezjail (not that I

Re: ZFS and Jail :: nullfs mount :: nothing visible from host

2016-12-08 Thread Alexander Leidinger
Quoting SK (from Thu, 8 Dec 2016 16:41:29 +): Thank you for your response. I tried setting it up like that (use zfs set jailed=on), and that did not work. I could not even run zfs from within the jail. Maybe I did something wrong -- so I am setting up a test box where I can try them al

Re: ZFS and Jail :: nullfs mount :: nothing visible from host

2016-12-08 Thread Miroslav Lachman
SK wrote on 2016/12/08 17:41: On 08/12/2016 16:14, Miroslav Lachman wrote: SK wrote on 2016/12/08 15:22: So far I have tried to follow as many google results as possible using jail, zfs, mountpoint, nullfs, manage zfs and so on. There were a few sites coming up again and again but they were ta

Re: ZFS and Jail :: nullfs mount :: nothing visible from host

2016-12-08 Thread SK
On 08/12/2016 17:02, Alexander Leidinger wrote: Quoting SK (from Thu, 8 Dec 2016 16:41:29 +): Thank you for your response. I tried setting it up like that (use zfs set jailed=on), and that did not work. I could not even run zfs from within the jail. Maybe I did something wrong -- so I am

Re: ZFS and Jail :: nullfs mount :: nothing visible from host

2016-12-08 Thread SK
On 08/12/2016 17:11, Miroslav Lachman wrote: What are jails properties? Do you have something like this? enforce_statfs=1 allow.mount=1 allow.mount.zfs=1 allow.mount.procfs=1 allow.mount.devfs=1 Then you need to run zfs jail $JID tank/jail/testJail(put the real UID of running jail and

Re: ZFS and Jail :: nullfs mount :: nothing visible from host

2016-12-08 Thread Miroslav Lachman
SK wrote on 2016/12/08 20:13: Initially they were not visible from within the jail, but as I ran zfs jail testJail gT/JailS/testJail they were visible from inside. You can add zfs jail testJail gT/JailS/testJail to your jail.conf post exec so it will be executed automatically. HOWEVER, I a