I am presently using nullfs to mount a ZFS dataset in a jail; however, I would like to mount the ZFS dataset directly so that I can hopefully take snapshots directly in the jail without having to do that on the host.
I have assigned the dataset to the jail:
/etc/jail.conf.d/workstation.conf
I have also attempted to mount the datasets using:
While zfs list in the jail does properly list the ZFS dataset as I expect, I don't see anything mounted unless I use nullfs on the host. While that works well, ideally, I'd be able to use ZFS directly so that I can manage snapshots.
I have assigned the dataset to the jail:
Code:
exec.created += "zfs jail workstation dataset";
exec.release += "zfs unjail workstation dataset";
/etc/jail.conf.d/workstation.conf
Code:
allow.mount=true;
allow.mount.zfs=true;
enforce_statfs=1;
allow.mount.fusefs=1;
I have also attempted to mount the datasets using:
zfs mount -a
While zfs list in the jail does properly list the ZFS dataset as I expect, I don't see anything mounted unless I use nullfs on the host. While that works well, ideally, I'd be able to use ZFS directly so that I can manage snapshots.