CLOUDSTACK-6927: less code
CLOUDSTACK-6927: store virsh list in list instead of querying libvirt for each chain to speedup the function