2019-07-02 15:48:43 +01:00
|
|
|
# LXD Support
|
|
|
|
|
|
|
|
Information on how LXD can be leveraged and included to create
|
|
|
|
nodes based on LXC containers and images to interface with
|
|
|
|
existing CORE nodes, when needed.
|
|
|
|
|
2019-12-19 20:32:30 +00:00
|
|
|
## Installation
|
2019-07-02 15:48:43 +01:00
|
|
|
|
|
|
|
```shell
|
|
|
|
sudo snap install lxd
|
|
|
|
```
|
|
|
|
|
2019-12-19 20:32:30 +00:00
|
|
|
## Configuration
|
2019-07-02 15:48:43 +01:00
|
|
|
|
|
|
|
Initialize LXD and say no to adding a default bridge.
|
|
|
|
|
|
|
|
```shell
|
|
|
|
sudo lxd init
|
|
|
|
```
|
|
|
|
|
2019-12-19 20:32:30 +00:00
|
|
|
## Group Setup
|
|
|
|
|
|
|
|
To use LXC nodes within the python GUI, you will need to make sure the user running the GUI is a member of the
|
|
|
|
lxd group.
|
|
|
|
|
|
|
|
```shell
|
|
|
|
# add group if does not exist
|
|
|
|
sudo groupadd lxd
|
|
|
|
|
|
|
|
# add user to group
|
|
|
|
sudo usermod -aG lxd $USER
|
|
|
|
|
|
|
|
# to get this change to take effect, log out and back in or run the following
|
|
|
|
newgrp lxd
|
|
|
|
```
|
|
|
|
|
|
|
|
## Tools and Versions Tested With
|
2019-07-02 15:48:43 +01:00
|
|
|
|
|
|
|
* LXD 3.14
|
|
|
|
* nsenter from util-linux 2.31.1
|
|
|
|
|
2019-12-19 20:32:30 +00:00
|
|
|
## Examples
|
2019-07-02 15:48:43 +01:00
|
|
|
|
|
|
|
This directory provides a few small examples creating LXC nodes
|
|
|
|
using LXD and linking them to themselves or with standard CORE nodes.
|