How to issue command to all running VMs at once?

Is there a way issuing same command to all running lxc vms/containers at once… Couldn’t find anything related to it in the documentation…

Hi @learning-linux ,
The simple thing is to use scripting, like that, instead you can use ansible or lxd api to get the same result.
Regards.

for k in $(lxc ls -c n --format csv) ; do lxc exec $k -- uname -a ; done