您的位置:首页 > 其它

lxd和simplestream相关资料

2017-03-28 09:14 387 查看
REF

1
https://blog.sourcecode.de/how-to-create-lxd-containers-with-ansible-2-2/
创建lxd的过程

- name: Create LXD Container
connection: local
become: false
lxd_container:
name: "{{item}}"
state: started
source:
type: image
mode: pull
server: https://cloud-images.ubuntu.com/releases protocol: simplestreams
alias: 16.04/amd64
profiles: ['default']
wait_for_ipv4_addresses: true
timeout: 600
with_items:
- "{{groups['containers']}}"


2 simplestreams的主页
https://code.launchpad.net/~simplestreams-dev/simplestreams/trunk
3(TL一种linux)如何搭建simplestreams服务器
https://www.turnkeylinux.org/forum/general/20160708/lxd-image-server
4

怎么搭建simplestreams服务器
https://github.com/lxc/lxd/issues/1581#issuecomment-254677758
it's likely that providing a simplestreams server may be easier since it's also entirely static and just needs a bunch of json files to be placed at the right location.

Note however that whichever way you go, LXD only supports https, so you will need an https enabled web server (though with letsencrypt, it's pretty easy to get nowadays).

You can look at the simplestreams bits of our image server here:

https://images.linuxcontainers.org/streams/v1/index.json
https://images.linuxcontainers.org/streams/v1/images.json
If you publish those two files at /streams/v1/ on your image server and publish information about your image in the same format we are, you'll then be able to add this as an image server to LXD with:

lxc remote add turnkey https://your-server.com --protocol=simplestreams

And then interact with it through the usual LXD commands.

5 官方的搭建simplestreams理论
https://insights.ubuntu.com/2016/04/01/lxd-2-0-image-management-512/
The “ubuntu:” and “ubuntu-daily:” remotes aren’t using the LXD protocol (“images:” is), those are instead using a different protocol called simplestreams.

simplestreams is basically an image server description format, using JSON to describe a list of products and files related to those products.

It is used by a variety of tools like OpenStack, Juju, MAAS, … to find, download or mirror system images and LXD supports it as a native protocol for image retrieval.

While certainly not the easiest way to start providing LXD images, it may be worth considering if your images can also be used by some of those other tools.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: