LXD configuration for OSM Release ONE: Difference between revisions
From OSM Public Wiki
Garciadeblas (talk | contribs) (Created page with "In order to run LXD containers, you need to install zfs packages (to be used as storage backend) sudo apt install zfs Then, just run the following command to configure lxd a...") |
Garciadeblas (talk | contribs) No edit summary |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
In order to run LXD containers, you need to install zfs | In order to run LXD containers, you need to install lxd (if not installed by default) and zfs package (to be used as storage backend) | ||
sudo apt install zfs | sudo apt-get update | ||
sudo apt-get install zfs lxd | |||
newgrp lxd # required to log the user in the lxd group if lxd was just installed | |||
Then, just run the following command to configure lxd and answer the questions accordingly: | Then, just run the following command to configure lxd and answer the questions accordingly: | ||
Line 11: | Line 13: | ||
Would you like LXD to be available over the network (yes/no)? no | Would you like LXD to be available over the network (yes/no)? no | ||
Do you want to configure the LXD bridge (yes/no)? yes | Do you want to configure the LXD bridge (yes/no)? yes | ||
Although further customization is possible, default options for LXD bridge configuration will work in all cases. |
Latest revision as of 10:53, 27 March 2017
In order to run LXD containers, you need to install lxd (if not installed by default) and zfs package (to be used as storage backend)
sudo apt-get update sudo apt-get install zfs lxd newgrp lxd # required to log the user in the lxd group if lxd was just installed
Then, just run the following command to configure lxd and answer the questions accordingly:
sudo lxd init Name of the storage backend to use (dir or zfs): zfs Create a new ZFS pool (yes/no)?: yes Name of the (existing/new) ZFS pool or dataset: lxdpool Would you like to use an existing block device (yes/no)? no Size in GB of the new loop device (1GB minimum): 50 Would you like LXD to be available over the network (yes/no)? no Do you want to configure the LXD bridge (yes/no)? yes
Although further customization is possible, default options for LXD bridge configuration will work in all cases.