Handling storage for containers in LXC

This is a bit of a personal use case issue. Im moving my few servers from a KVM environment to LXC / LXD environment, which has been very exciting and I really love this technology.

Im confused about the handling of storage for specific containers. For example, in my KVM environment I have a Nextcloud server where the Nextcloud personal data is stored in an attached virtual disk in the RAW file format and I have another disk in the IMG format which just holds some various media.

How should I approach attaching these VDI’s to my Nextcloud LXC container?

Im also wanting to setup a Syncthing container and would welcome and data storage thoughts on managing the sync’d data for this also.

Many thanks,

I don’t have any experience with VDI format, but you should probably check out the devices documentation.