[libvirt] [sandbox PATCH v4 12/21] Image: Add check_connect function