LXD plugin
This plugin allow fog05 to manage lxd container
supported operation:
todo:
- scale of vm
- deploy
- migrate
- destroy
- stop
- pause
- resume
package dependencies:
- lxd
- lxd-client
python dependencies:
- pylxd
- packaging
- jinja2
config dependencies:
- update the nodeid (result of
cat /etc/machine-id
) in LXD_plugin.json->configuration->nodeid, and in case the yaks server is not in the same machine, also LXD_plugin.json->configuration->nodeid with the correct ip:port of the yaks server )
WARNING:
if you use lxd from snap canonical/pylxd#257 export LXD_DIR=/var/snap/lxd/common/lxd/
In order to perform live migration of lxd container you need CRIU installed and configured
$ sudo apt install criu
$ sudo snap set lxd criu.enable=true