Comment 1 for bug 2056092

Revision history for this message
Robie Basak (racb) wrote :

Hi,

--path is expected to point to JSON, not the raw image URL.

The point of uvt-simplestreams-libvirt is to sync against a simplestreams source, so it doesn't make sense to give it a raw image URL directly. If you want to do that, you can just use wget and the --backing-image-file option to "uvt-kvm create" for example.

If you want to pull a specific image or set of images with uvt-simplestreams-libvirt then you're supposed to specify the metadata criteria precisely. You can use sstream-query to test. For example:

sstream-query http://cloud-images.ubuntu.com/releases release=focal arch=amd64 version_name=20231011 ftype=disk1.img

This provides a single image, so this should work:

uvt-simplestreams-libvirt sync --source http://cloud-images.ubuntu.com/releases release=focal arch=amd64 version_name=20231011 ftype=disk1.img

Hope that helps!