[libvirt] [sandbox PATCH v3 12/22] Image: Add check_connect function