Use dynamic IPs
By default, lxd create a default profile with some random network bridge.
Therefore, ssh connection to the containers won't work for users in most cases.
Instead of trying to setup static IP, another approach would be to configure the hosts file of the user and connect through the container's hostname.