I'm trying to automate checking several nodes running KVM domains. I was simply using ssh to run the commands directly instead of doing a full login:
ssh user@kvmhost "virsh list --all" But it was simply producing output like this:
Id Name State -------------------- When I login interactively I can run virsh list --all and it shows me the domains. So what am I doing wrong?