LXD supports limits on resources. This should be configurable in the lxdev.yml file. https://stgraber.org/2016/03/26/lxd-2-0-resource-control-412/