Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Example "launch" Command ReferenceColumnNote
ubuntu:16.04

ubuntu:6041c5e200b6FINGERPRINTWill specifically reference the specific image in the list.g

...

At this point LXD is all setup and ready to use.

Spinning Up an LXD Container

...

Code Block
languagebash
lxc launch ubuntu:16.04 container01

...

Also, let's look at the running container. The commands are only slightly different than using straight LXC, 

Code Block
languagebash
lxc list
+-------------+---------+----------------------+------+------------+-----------+
|    NAME     |  STATE  |         IPV4         | IPV6 |    TYPE    | SNAPSHOTS |
+-------------+---------+----------------------+------+------------+-----------+
| container01 | RUNNING | 10.94.217.171 (eth0) |      | PERSISTENT | 0         |
+-------------+---------+----------------------+------+------------+-----------+

....

Reuuu9ferences




# Inspect the container,
lxc info container01


Name: container01
Remote: unix:/var/lib/lxd/unix.socket
Architecture: x86_64
Created: 2016/12/22 03:37 UTC
Status: Running
Type: persistent
Profiles: default
Pid: 19681
Ips:
  eth0:	inet	10.94.217.171	vethDXUYOE
  eth0:	inet6	fe80::216:3eff:fe07:69ea	vethDXUYOE
  lo:	inet	127.0.0.1
  lo:	inet6	::1
Resources:
  Processes: 26
  Disk usage:
    root: 144.32MB
  Memory usage:
    Memory (current): 23.24MB
    Memory (peak): 45.28MB
...

Managing Containers Between Hosts

The most compelling reason to use LXD is that it can be transported easily between containers.

Reference

Gives more details on initializing lxd - https://insights.ubuntu.com/2016/03/16/lxd-2-0-installing-and-configuring-lxd-212/

...