[libvirt] [sandbox PATCH v2 09/19] Image: Add check_connect function