I am using Incus version 6.16 installed from the Zabbly repository. The host OS is Ubuntu 24.04.3. Incus backing storage for containers and images is Ceph RBD.
The goal is to launch a container to run Samba Active Directory Domain Controller, which as far as I understand requires the filesystem to be mounted with options acl and user_xattr.
So I tried:
incus launch images:ubuntu/24.04 addc01 –network incus-ovn –storage incus_rbd –device root,initial.block.filesystem=ext4 –device root,initial.block.mount_options=“rw,relatime,discard,stripe=16,acl,user_xattr”
Options “rw,relatime,discard,stripe=16” were added because they seem to be applied by default when launching other Ubuntu containers.
Verifying:
incus config show addc01
architecture: x86_64
config:
<INFORMATION_OMITTED_FOR_BREVITY>
devices:
eth0:
name: eth0
network: incus-ovn
type: nic
root:
initial.block.filesystem: ext4
initial.block.mount_options: rw,relatime,discard,stripe=16,acl,user_xattr
path: /
pool: incus_rbd
type: disk
ephemeral: false
profiles:
- default
stateful: false
description: ""
However, inside the container:
root@addc01:~# mount
/dev/rbd0 on / type ext4 (rw,relatime,idmapped,discard,stripe=16)
What am I missing? Should I first create the storage volume and then attach it during instance creation?
Thanks.