pct set with multiple mountoptions

Maku82

New Member
Oct 19, 2025
2
0
1
Hi,
I am trying to create mountpoints in LXC container. It works unless I specify more mountoptions. For example
pct set 115 -mp0 /backup-pool/nas,mp=/mnt/backup-pool/nas,backup=0,mountoptions=lazytime;noatime;nodev;noexec;nosuid,replicate=0,ro=1
I tried it with commas instead, or I specified more mountoptions arguments (one per option) but none of these method worked.

In documentation I can see that syntax for mountoptions is
[,mountoptions=<opt[;opt...]>]

I can finish the settings in GUI so it's not a big issue, I just wonder what's the correct syntax to specify more mountoptions via command line.
Thanks.
 
Maybe because the ; is special in the shell? Have you tried
pct set 115 -mp0 "/backup-pool/nas,mp=/mnt/backup-pool/nas,backup=0,mountoptions=lazytime;noatime;nodev;noexec;nosuid,replicate=0,ro=1"
instead?
 
  • Like
Reactions: fba and waltar