Re: ZFS and Jail :: nullfs mount :: nothing visible from host :: solved [partial]

2016-12-19 Thread Miroslav Lachman
Alexander Leidinger wrote on 2016/12/19 20:54: Quoting Miroslav Lachman <000.f...@quip.cz> (from Mon, 19 Dec 2016 18:57:39 +0100): Alexander Leidinger wrote on 2016/12/19 17:56: Quoting Miroslav Lachman <000.f...@quip.cz> (from Sun, 18 Dec 2016 13:20:31 +0100): I don't expect it to be in t

Re: ZFS and Jail :: nullfs mount :: nothing visible from host :: solved [partial]

2016-12-19 Thread Alexander Leidinger
Quoting Miroslav Lachman <000.f...@quip.cz> (from Mon, 19 Dec 2016 18:57:39 +0100): Alexander Leidinger wrote on 2016/12/19 17:56: Quoting Miroslav Lachman <000.f...@quip.cz> (from Sun, 18 Dec 2016 13:20:31 +0100): Alexander Leidinger wrote on 2016/12/17 19:59: Quoting SK (from Fri, 16 De

Re: ZFS and Jail :: nullfs mount :: nothing visible from host :: solved [partial]

2016-12-19 Thread Miroslav Lachman
Alexander Leidinger wrote on 2016/12/19 17:56: Quoting Miroslav Lachman <000.f...@quip.cz> (from Sun, 18 Dec 2016 13:20:31 +0100): Alexander Leidinger wrote on 2016/12/17 19:59: Quoting SK (from Fri, 16 Dec 2016 14:02:20 Correct. You need the data in the root of the jail to boot, if you t

Re: ZFS and Jail :: nullfs mount :: nothing visible from host :: solved [partial]

2016-12-19 Thread Alexander Leidinger
Quoting Miroslav Lachman <000.f...@quip.cz> (from Sun, 18 Dec 2016 13:20:31 +0100): Alexander Leidinger wrote on 2016/12/17 19:59: Quoting SK (from Fri, 16 Dec 2016 14:02:20 +): If I understand you correctly, what you are suggesting is, the dataset used by the jail itself for its root

Re: ZFS and Jail :: nullfs mount :: nothing visible from host :: solved [partial]

2016-12-18 Thread Miroslav Lachman
Alexander Leidinger wrote on 2016/12/17 19:59: Quoting SK (from Fri, 16 Dec 2016 14:02:20 +): If I understand you correctly, what you are suggesting is, the dataset used by the jail itself for its root/base cannot be "worked on" from within the jail, but if I define a different dataset (u

Re: ZFS and Jail :: nullfs mount :: nothing visible from host :: solved [partial]

2016-12-17 Thread Alexander Leidinger
Quoting SK (from Fri, 16 Dec 2016 14:02:20 +): On 16/12/2016 13:15, Alexander Leidinger wrote: For one of the filesystems I have set "zfs allow" permissions, but just that a specific user in the jail can do something on those FS without the need to switch to root. So as long as you tr

Re: ZFS and Jail :: nullfs mount :: nothing visible from host :: solved [partial]

2016-12-16 Thread SK
On 16/12/2016 13:15, Alexander Leidinger wrote: Quoting SK (from Mon, 12 Dec 2016 17:13:27 +): b) Alexander, I am still not able to do snapshot or any other action from within my jail. My understanding is that you are using ezjail, which might be doing something that my regular jail crea

Re: ZFS and Jail :: nullfs mount :: nothing visible from host :: solved [partial]

2016-12-16 Thread Alexander Leidinger
Quoting SK (from Mon, 12 Dec 2016 17:13:27 +): b) Alexander, I am still not able to do snapshot or any other action from within my jail. My understanding is that you are using ezjail, which might be doing something that my regular jail creation is ommitting. If you do not mind sharing

Re: ZFS and Jail :: nullfs mount :: nothing visible from host :: solved [partial]

2016-12-12 Thread SK
On 09/12/2016 13:36, Miroslav Lachman wrote: My last idea - put zfs_enable="YES" in jails /etc/rc.conf. Maybe the dataset is not mounted if has property jailed=on (I don't know I didn't test it yet) Good evening Miroslav, good evening Alexander Thank you both for your support in this matter.

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

2016-12-09 Thread Alexander Leidinger
Quoting SK (from Thu, 8 Dec 2016 19:13:15 +): @Alexander : I checked out your link. It is interesting, but you are using ezjail which I am trying to avoid. I have nothing against it, but I think making it working without too many additional layer of obfuscation will help me learn it be

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

2016-12-09 Thread Miroslav Lachman
SK wrote on 2016/12/09 13:21: I will try enforce_statfs=2, maybe that will give me what I need. But still, not sure what is happening with jailed=on zfs set jailed=on gT/JailS/testJail << Did you set this property? Now this is an interesting bit. I tried this, and as soon as I ran the comm

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

2016-12-09 Thread SK
On 09/12/2016 12:03, Miroslav Lachman wrote: I am not sure, maybe it is not possible to hide them when you need to manage zfs inside jail. If you can live with not managing zfs inside but from the host, then you can use enforce_statfs=2. Then you will see just a root dataset inside jail. en

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

2016-12-09 Thread Miroslav Lachman
SK wrote on 2016/12/09 12:36: Thanks Miroslav, I get the picture now. Please see my reply inline I mean your command "zfs list", because normally "zfs list" inside jail print: "no datasets available" :) OK, considering that I have the setup as I explained before, and have run zfs jail testJa

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

2016-12-09 Thread SK
Thanks Miroslav, I get the picture now. Please see my reply inline zfs list is good start. I never used zfs from within jail so I cannot comment on permission denied. I don't know what more must be done. I'm not sure which list you are referring to. I could not find any zfs list in FreeBSD mail

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

2016-12-09 Thread Miroslav Lachman
SK wrote on 2016/12/09 11:12: zfs list is good start. I never used zfs from within jail so I cannot comment on permission denied. I don't know what more must be done. I'm not sure which list you are referring to. I could not find any zfs list in FreeBSD mailing list lists I mean your command

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

2016-12-09 Thread SK
On 08/12/2016 20:42, Miroslav Lachman wrote: 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 w

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

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 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 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 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 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 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

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