Установка LXD на Ubuntu 18.04 LTS "Bionic Beaver"


$ sudo apt-get -qq install lxd

Добавляется системный пользователь «lxd» (UID 123) ...
Добавляется новый пользователь «lxd» (UID 123) в группу «nogroup» ...
Создаётся домашний каталог «/var/lib/lxd/» ...
Добавляется группа «lxd» (GID 129) ...
Готово.

Setting up lxd dnsmasq configuration.

To go through the initial LXD configuration, run: lxd init

$ id
uid=1000(devtype) gid=1000(devtype) группы=1000(devtype),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),116(lpadmin),126(sambashare)
$ newgrp lxd
$ id
uid=1000(devtype) gid=129(lxd) группы=129(lxd),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),116(lpadmin),126(sambashare),1000(devtype)
$ sudo lxd init
Would you like to use LXD clustering? (yes/no) [default=no]: 
Do you want to configure a new storage pool? (yes/no) [default=yes]: 
Name of the new storage pool [default=default]: 
Would you like to connect to a MAAS server? (yes/no) [default=no]: 
Would you like to create a new local network bridge? (yes/no) [default=yes]: 
What should the new bridge be called? [default=lxdbr0]: 
What IPv4 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]: 
What IPv6 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]: 
Would you like LXD to be available over the network? (yes/no) [default=no]: 
Would you like stale cached images to be updated automatically? (yes/no) [default=yes] 
Would you like a YAML "lxd init" preseed to be printed? (yes/no) [default=no]: yes
config: {}
cluster: null
networks:
- config:
    ipv4.address: auto
    ipv6.address: auto
  description: ""
  managed: false
  name: lxdbr0
  type: ""
storage_pools:
- config: {}
  description: ""
  name: default
  driver: dir
profiles:
- config: {}
  description: ""
  devices:
    eth0:
      name: eth0
      nictype: bridged
      parent: lxdbr0
      type: nic
    root:
      path: /
      pool: default
      type: disk
  name: default