Install LXD on Ubuntu

LXD is a tool to manage LXC (Linux Containers). lxd allow you to create and manage lightweight Linux containers, it is like docker, but more like an actual virtual machine. LXD is more user-friendly than using LXC directly, has more features like clustering of servers.

On Ubuntu/Debian, run

Before you start using lxd, run

Or

Just press enter for all questions. Defaults should work. lxd is a demon, only used one time during “lxd init”. After this, you will be using lxc command for everything.

Example

When it ask for IPv6, I selected “none”, everything else is the default.

To create a container, run

Create CentOS container

Create Debian 10 container

To list all containers, run

lxc list containers

To stop a VM, run

To start VM,

To see information about a container

Folders

To see storage, run

All containers share the following disk image.

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published.