LXD containers do not incur the overheads of traditional virtualisation, so you should be able to run them inside a VM without any additional performance overheads than any other process in a VM.
LXD also supports true VMs as well, although these are unlikely to run properly inside another VM.