Container with custom mountoptions user_xattr

jory

Active Member
Jan 14, 2019
9
0
41
44
Hello,
How can I mount CT volume (not rootfs but 2nd disk) with mountoptions=user_xattr?
If I set mp0 like this (content is from /etc/pve/lxc/100.conf)
Code:
mp0: timemachine-lvm:vm-106-disk-0,mp=/media/TimeMachine,mountoptions=user_xattr,size=900G
I get error
Code:
vm 100 - unable to parse value of 'mp0' - format error
mountoptions: value does not match the regex pattern
If I remove mountoptions=user_xattr it starts OK and /media/TimeMachine is accessible. I need to store extended attributes to ext4.
If it's not possible, is it possible to create XFS for 2nd disk of CT?
 
The documentation doesn't suggest it, but only a few mount options are permitted (LXC/Config.pm):

Perl:
my $valid_mount_option_re = qr/(noatime|lazytime|nodev|nosuid|noexec)/;

sub is_valid_mount_option {
    my ($option) = @_;
    return $option =~ $valid_mount_option_re;
}

Though, the config file supports generic lxc.* settings like "lxc.mount.entry", which are more permissive. The disadvantage of them is that Proxmox has no "knowledge" of these mounts, which may interfere with things (also see thread lxc.mount.entry vs mp0).
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!