Is it possible to take zfs snapshot on an unprivileged LXC container?
I created a samba service in an LXC container as it's more lightweight and even if the VM cannot boot i can simply copy the file from the bind mount from the PVE host without the hassle of mounting virtual disks, etc. (minor inconvenience).
The PVE server does run on ZFS and for that reason i'm trying to avoid VMs as i do not like emulating ZFS over ZFS or adding phisical drives dedicated to the samba service (the actual drives are shared between various VMs).
The samba service is working fine, i even added cockpit for managing from UI, but i wanted to add shadow copies for file versioning.
Example config:
Can the lxc as an unprivilege container create ZFS snapshots?
If not can the lxc container read a snapshot created by the PVE host?
I created a samba service in an LXC container as it's more lightweight and even if the VM cannot boot i can simply copy the file from the bind mount from the PVE host without the hassle of mounting virtual disks, etc. (minor inconvenience).
The PVE server does run on ZFS and for that reason i'm trying to avoid VMs as i do not like emulating ZFS over ZFS or adding phisical drives dedicated to the samba service (the actual drives are shared between various VMs).
The samba service is working fine, i even added cockpit for managing from UI, but i wanted to add shadow copies for file versioning.
Example config:
Code:
shadow:snapdir = .zfs/snapshot
shadow:sort = desc
shadow:format = %Y-%m-%d-%H%M%S
Can the lxc as an unprivilege container create ZFS snapshots?
If not can the lxc container read a snapshot created by the PVE host?