Mounting works fine (HELLO is a file on the remote NFS server):
$ systemctl start share-apps.mount
$ ls /share/apps/
HELLO
However, automount fails:
$ systemctl stop share-apps.mount
$ ls /share/apps/
$ systemctl start share-apps.automount
Operation on or unit type of share-apps.automount not supported on this system.
$ systemd-detect-virt
lxc
The nfs client container is privilegued.
The nfs client container has these apparmor settings and is restarted with those settings:
lxc config get iceberg:juju-ee5ee4-0 raw.apparmor
mount fstype=rpc_pipefs, mount fstype=nfsd, mount fstype=nfs, mount fstype=nfsv4, mount fstype=autofs,
I get the same issue. I've created systemd unit files for both mount and automount:
$ cat /etc/systemd/ system/ share-apps. automount Automount Scratch
[Unit]
Description=
[Automount]
Where=/share/apps/
[Install] multi-user. target
WantedBy=
$ cat /etc/systemd/ system/ share-apps. mount
[Unit]
Description=Scratch
[Mount] 168.2.241: /mnt/nfs_ share
What=192.
Where=/share/apps
Type=nfs
[Install] multi-user. target
WantedBy=
Mounting works fine (HELLO is a file on the remote NFS server):
$ systemctl start share-apps.mount
$ ls /share/apps/
HELLO
However, automount fails:
$ systemctl stop share-apps.mount automount automount not supported on this system.
$ ls /share/apps/
$ systemctl start share-apps.
Operation on or unit type of share-apps.
$ systemd-detect-virt
lxc
The nfs client container is privilegued.
The nfs client container has these apparmor settings and is restarted with those settings:
lxc config get iceberg: juju-ee5ee4- 0 raw.apparmor
mount fstype=rpc_pipefs, mount fstype=nfsd, mount fstype=nfs, mount fstype=nfsv4, mount fstype=autofs,