How to enable acl in CT ? VE 3.4-1, zfs, ubuntu-12.04-x86_64

mfg

Active Member
Jan 18, 2015
11
0
41
Proxmox 3.v-1
Installed on zfs raid 1
Created a vm starting from ubuntu-12.04-x86_64-minimal.tar.gz

I tried installing zentyal 3.2 (4.x does not work - dns service crashes on start) but it will now allow me to creat samba shares because it requires acl.
Acl is installed and works in the container (checked by using setfacl / getfacl) but mount command in vm shows

/var/lib/vz/private/104 on / type simfs (rw,relatime)

I tried mount -o remount,acl / but i got a permission error.

Is there any way to add the acl flag? Seems to be what zentyal is using to check acl

Thank you for your time!
 
you need to set this on the host, not inside the container.
 
Did not work.

In host: zfs set acltype=posixacl rpath
mount -o remount,acl

- no acl in container

restart host
start container

- no acl in container

host: rpool/ROOT/pve-1 on / type zfs (rw,relatime,xattr,posixacl)
container: /var/lib/vz/private/173 on / type simfs (rw,relatime)
 
You dont need to mount/remount container FS. Its virtual.

Testing in container:
Code:
# getfacl root/test.php 
# file: root/test.php
# owner: root
# group: root
user::rw-
group::r--
other::r--


# setfacl -m u:nmz:r root/test.php 
setfacl: root/test.php: Operation not supported

ZFS option
Code:
# zfs get acltype zfs_mirror/private/103
zfs_mirror/private/103  acltype   off       default

zfs set acltype=posixacl zfs_mirror/private/103

Container after ZFS command
Code:
# setfacl -m u:nmz:r root/test.php 

# getfacl root/test.php 
# file: root/test.php
# owner: root
# group: root
user::rw-
user:nmz:r--
group::r--
mask::r--
other::r--
 
Getfacl / setfacl worked without doing the zfs command. My issue is not setfacl/getfacl, it's the mount entry, which is checked to see if the fs has acl support.

So if there's no way to change the mount listing then this can't be resolved...
Thank you for your help, i learned something new today.