lxd
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| lxd [2019/05/09 19:39] – simon | lxd [2026/08/23 09:21] (Version actuelle) – supprimée - modification externe (Date inconnue) 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ====== LXD ===== | ||
| - | Installation sur Debian : | ||
| - | <code bash> | ||
| - | simon@deb: | ||
| - | |||
| - | simon@deb: | ||
| - | 2019-05-03T20: | ||
| - | lxd 3.12 from Canonical✓ installed | ||
| - | |||
| - | simon@deb: | ||
| - | |||
| - | root@deb:/ | ||
| - | |||
| - | root@deb:/ | ||
| - | 3.12 | ||
| - | </ | ||
| - | |||
| - | Initialisation : | ||
| - | <code bash> | ||
| - | root@deb:/ | ||
| - | Would you like to use LXD clustering? (yes/no) [default=no]: | ||
| - | Do you want to configure a new storage pool? (yes/no) [default=yes]: | ||
| - | Name of the new storage pool [default=default]: | ||
| - | Name of the storage backend to use (btrfs, ceph, dir, lvm) [default=btrfs]: | ||
| - | Would you like to connect to a MAAS server? (yes/no) [default=no]: | ||
| - | Would you like to create a new local network bridge? (yes/no) [default=yes]: | ||
| - | What should the new bridge be called? [default=lxdbr0]: | ||
| - | What IPv4 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]: | ||
| - | What IPv6 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]: | ||
| - | Would you like LXD to be available over the network? (yes/no) [default=no]: | ||
| - | Would you like stale cached images to be updated automatically? | ||
| - | Would you like a YAML "lxd init" preseed to be printed? (yes/no) [default=no]: | ||
| - | config: {} | ||
| - | networks: | ||
| - | - config: | ||
| - | ipv4.address: | ||
| - | ipv6.address: | ||
| - | description: | ||
| - | managed: false | ||
| - | name: lxdbr0 | ||
| - | type: "" | ||
| - | storage_pools: | ||
| - | - config: {} | ||
| - | description: | ||
| - | name: default | ||
| - | driver: dir | ||
| - | profiles: | ||
| - | - config: {} | ||
| - | description: | ||
| - | devices: | ||
| - | eth0: | ||
| - | name: eth0 | ||
| - | nictype: bridged | ||
| - | parent: lxdbr0 | ||
| - | type: nic | ||
| - | root: | ||
| - | path: / | ||
| - | pool: default | ||
| - | type: disk | ||
| - | name: default | ||
| - | cluster: null | ||
| - | </ | ||
| - | |||
| - | <code bash> | ||
| - | root@deb:/ | ||
| - | To start your first container, try: lxc launch ubuntu: | ||
| - | |||
| - | Creating debian-lxd | ||
| - | Starting debian-lxd | ||
| - | |||
| - | root@deb:/ | ||
| - | +------------+---------+----------------------+-----------------------------------------------+------------+-----------+ | ||
| - | | NAME | STATE | | ||
| - | +------------+---------+----------------------+-----------------------------------------------+------------+-----------+ | ||
| - | | debian-lxd | RUNNING | 10.97.202.197 (eth0) | fd42: | ||
| - | +------------+---------+----------------------+-----------------------------------------------+------------+-----------+ | ||
| - | |||
| - | root@deb:/ | ||
| - | root@debian-lxd: | ||
| - | </ | ||
| - | |||
| - | Le conteneur a bien accès au réseau, il a reçu une IP : | ||
| - | <code bash> | ||
| - | root@debian-lxd: | ||
| - | 1: lo: < | ||
| - | link/ | ||
| - | inet 127.0.0.1/8 scope host lo | ||
| - | | ||
| - | inet6 ::1/128 scope host | ||
| - | | ||
| - | 9: eth0@if10: < | ||
| - | link/ether 00: | ||
| - | inet 10.97.202.197/ | ||
| - | | ||
| - | inet6 fd42: | ||
| - | | ||
| - | inet6 fe80:: | ||
| - | | ||
| - | </ | ||
| - | |||
| - | Machine " | ||
| - | <code bash> | ||
| - | simon@deb: | ||
| - | (...) | ||
| - | 8: lxdbr0: < | ||
| - | link/ether fe: | ||
| - | inet 10.97.202.1/ | ||
| - | | ||
| - | inet6 fd42: | ||
| - | | ||
| - | inet6 fe80:: | ||
| - | | ||
| - | |||
| - | simon@deb: | ||
| - | PING 10.97.202.197 (10.97.202.197) 56(84) bytes of data. | ||
| - | 64 bytes from 10.97.202.197: | ||
| - | (...) | ||
| - | </ | ||
| - | |||
| - | On peut installer [[wget]] et télécharger le logo de ce wiki, par exemple : | ||
| - | <code bash> | ||
| - | root@debian-lxd: | ||
| - | |||
| - | root@debian-lxd: | ||
| - | (...) | ||
| - | 2019-05-03 18:45:08 (7.22 MB/s) - ‘logo.png’ saved [3820/3820] | ||
| - | |||
| - | root@debian-lxd: | ||
| - | logo.png | ||
| - | </ | ||
| - | |||
| - | ===== Autres articles liés ===== | ||
| - | * [[Installation de LXD sur une Odroid-XU3]] | ||
| - | |||
| - | ===== Sources ===== | ||
| - | * [[https:// | ||
| - | * [[https:// | ||
| - | * | ||
lxd.1557430786.txt.gz · Dernière modification : (modification externe)
