Jump to: navigation, search


803 bytes added, 1 year ago
no edit summary
== PART I - Introduction ==LXD is a container "hypervisor" it should provide user with a new and fresh experience using [[LXC]] technology.{{#layout:doc}}__TOC__
LXD consists is a container "hypervisor" designed to provide an easy set of three components: * A system-wide daemon (lxd)* A command line client (lxc)* An OpenStack Nova plugin (nova-compute-lxd)tools to manage Linux containers, and its development is currently being led by employees at Canonical.
A REST API == Basic Setup == The following steps will show you how to set up a basic LXD environment under Funtoo Linux. This environment will set up a bridge called {{c|lxdbr0}} which will be set up via NAT to provide Internet access to your containers. In addition, a default storage pool will be created that will simply use your existing filesystem's storage, creating a directory at {{f|/var/lib/lxd/storage-pools/default}} to store any containers you create. === Requirements === This section will guide you through setting up the basic requirements for creating an LXD environment. The first step is accesible both locally to emerge LXD and if enabledits dependencies. Perform the following: {{console|body=# ##i##emerge -a lxd}} Once LXD is done emerging, over we will want to enable it to start by default: {{console|body=# ##i##rc-update add lxd default}} In addition, we will want to set up the network is provided from following files. {{f|/etc/security/limits.conf}} should be modified to have the following lines in it: {{file|name=/etc/security/limits.conf|body=* soft nofile 1048576* hard nofile 1048576root soft nofile 1048576root hard nofile 1048576* soft memlock unlimited* hard memlock unlimited# End of file}} In addition, we will want to map a set of user ids and group ids to the root user so they are available for its use. Do this by creating the {{f|/etc/subuid}} and {{f|/etc/subgid}} files with the lxd daemonfollowing identical contents: {{file|name=/etc/subuid|body=root:100000:1000000000}} {{file|name=/etc/subgid|body=root:100000:1000000000}} At this point we are ready to initialize and start LXD=== Initialization ===
The command line tool is designed to be a very simple, yet very powerful tool to manage all your containers. It can handle connections to multiple container hosts and easily give you an overview of all the containers on your network, let you create some more where you want them and even move them around while they're running.
The OpenStack plugin then allows you to use your lxd hosts as compute nodes, running workloads on containers rather than virtual machines.
The LXD project was founded and is currently led by Canonical Ltd and Ubuntu with contributions from a range of other companies and individual contributors.
=== Features ===
Bureaucrats, Administrators, wiki-admins, wiki-staff

Navigation menu