I'm running ubuntu 18.10 as lxc-container at proxmox 5.2 on my homeserver. I want to automatically mount a cifs share which i added to /etc/fstab file:
//fileserver.lan/Serien /srv/storage/serien cifs defaults,uid=109,gid=116,noauto,x-systemd.automount,x-systemd.requires=network-online.target,user=plex,username=plex,password=plex 0 0
automatically generates a srv-storage-serien.automount and srv-storage-serien.mount at /run/systemd/generator directory but after reboot the cifs share is not mounted. Instead I only see the following line in journalctl(no additional information provided):
Starting of srv-storage-serien.automount not supported.
which is also what systemctl status gives me:
root@plex: systemctl status srv-storage-serien.automount * srv-storage-serien.automount Loaded: loaded (/etc/fstab; generated) Active: inactive (dead) Where: /srv/storage/serien Docs: man:fstab(5) man:systemd-fstab-generator(8) Nov 04 19:49:22 plex systemd: Starting of srv-storage-serien.automount not supported.
systemctl start srv-storage-serien.mount
works fine. just the automount is not supported for some reason. Am i missing something?
I also have some Debian 9 non-LXC installations on my proxmox host which use the same mounting settings which do not have this issue.