Hi,
I’m looking for a plain and consistent description of the simplestreams protocol/file format and content description.
given problem:
I want to use LXD with several ubuntu- and other images in a local network. To avoid having every single machine downloading images over the internet, I want to have one central machine that keeps both the downloaded and locally generated images for other machines, but for security reasons read-only.
A simple solution would be to just let LXD listen on a port and open the port for the other machines, but I did not see how to make this read only. I didn’t test it yet, but the man pages suggest, that once a machine can read images, it can write as well.
Another solution would be to export images and put files an a simple webserver, not elegant and clean.
I then found several web pages considering LXD’s own protocol as somewhat deprecated and recommending simplestreams instead.
But then, it is really difficult to find a description revealing more than the general idea and some file names.
I found the simplestream-builder tool, but it’s description and help page are close to useless, they don’t explain, what the commands do, or even mention the order, in which to call them. It just points to an example at https://github.com/Sabayon/sbi-tasks/blob/master/lxd/tree-images.yaml, but that doesn’t explain anything, and the URLs seem to be not valid anymore, thus no chance to just look and see, how a simplestream server should look like and contain. I did not even find a running and publicly available simplestrams server to just have a look at it and its files.
So I am still trying to solve the problem how to build a local server offering LXD images to local machines read-only. I’m looking for a description about how to get from a local LXD having all the relevant images to somewhat (e.g. simplestreams) serving these images to machines in the same network.
And maybe a statement about what is the intended way to do that in future. Is the support for simplestreams in the lxc remote add command experimental or stable?
regards