9 lines
126 B
Bash
9 lines
126 B
Bash
|
command=$1
|
||
|
VMs=$(sudo virsh list --state-running --name)
|
||
|
|
||
|
for vm in $VMs
|
||
|
do
|
||
|
echo Executing on $vm ...
|
||
|
ssh $vm $1
|
||
|
done
|