Diferencia entre revisiones de «LXD»
Ir a la navegación
Ir a la búsqueda
Sin resumen de edición |
Sin resumen de edición |
||
Línea 8: | Línea 8: | ||
En ubuntu, els usuaris han de formar part del grup LXD per poder utilitzar-lo. | En ubuntu, els usuaris han de formar part del grup LXD per poder utilitzar-lo. | ||
Observem que passa si fem lxc sense paràmetres: | |||
<pre style="margin:10px;padding:10px;color:#5F5;background-color:#222;"> | |||
$ lxc | |||
Usage: lxc [subcommand] [options] | |||
Órdenes disponibles | |||
config - Manage configuration. | |||
copy - Copy containers within or in between lxd instances. | |||
delete - Delete containers or container snapshots. | |||
exec - Execute the specified command in a container. | |||
file - Manage files on a container. | |||
help - Presents details on how to use LXD. | |||
image - Manipulate container images. | |||
info - List information on LXD servers and containers. | |||
launch - Launch a container from a particular image. | |||
list - Lists the available resources. | |||
move - Move containers within or in between lxd instances. | |||
profile - Manage configuration profiles. | |||
publish - Publish containers as images. | |||
remote - Manage remote LXD servers. | |||
restart - Changes state of one or more containers to restart. | |||
restore - Set the current state of a resource back to a snapshot. | |||
snapshot - Create a read-only snapshot of a container. | |||
start - Changes state of one or more containers to start. | |||
stop - Changes state of one or more containers to stop. | |||
version - Prints the version number of this client tool. | |||
Opciones: | |||
--all Print less common commands. | |||
--debug Print debug information. | |||
--verbose Print verbose information. | |||
Entorno: | |||
LXD_CONF Path to an alternate client configuration directory. | |||
LXD_DIR Path to an alternate server directory. | |||
</pre> | |||
Revisión del 11:38 14 oct 2016
Instal·lació
sudo apt-get install lxd newgrp lxd
En ubuntu, els usuaris han de formar part del grup LXD per poder utilitzar-lo.
Observem que passa si fem lxc sense paràmetres:
$ lxc Usage: lxc [subcommand] [options] Órdenes disponibles config - Manage configuration. copy - Copy containers within or in between lxd instances. delete - Delete containers or container snapshots. exec - Execute the specified command in a container. file - Manage files on a container. help - Presents details on how to use LXD. image - Manipulate container images. info - List information on LXD servers and containers. launch - Launch a container from a particular image. list - Lists the available resources. move - Move containers within or in between lxd instances. profile - Manage configuration profiles. publish - Publish containers as images. remote - Manage remote LXD servers. restart - Changes state of one or more containers to restart. restore - Set the current state of a resource back to a snapshot. snapshot - Create a read-only snapshot of a container. start - Changes state of one or more containers to start. stop - Changes state of one or more containers to stop. version - Prints the version number of this client tool. Opciones: --all Print less common commands. --debug Print debug information. --verbose Print verbose information. Entorno: LXD_CONF Path to an alternate client configuration directory. LXD_DIR Path to an alternate server directory.
Backend
LXD pot anar directament al sistema d'arxius en /var/lib/lxd. No obstant, és més interessant utilitzar ZFS per els avantatges que proporciona.