Za intalaciju koristimio snap paket manager.
Ako ga nemamo intaliranoga pisemo komandu
sudo apt install snapd
Zatim instaliramo LXD
sudo snap install lxd

Za konfiguraciju LXD pisemo sljedecu komandu
lxd init

noob@noob:~$ lxd init
Would you like to use LXD clustering? (yes/no) [default=no]: no
Do you want to configure a new storage pool? (yes/no) [default=yes]: yes
Name of the new storage pool [default=default]:
Name of the storage backend to use (btrfs, ceph, cephobject, dir, lvm, zfs) [default=zfs]: dir
Would you like to connect to a MAAS server? (yes/no) [default=no]: no
Would you like to create a new local network bridge? (yes/no) [default=yes]: 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 the LXD server to be available over the network? (yes/no) [default=no]: yes
Address to bind LXD to (not including port) [default=all]:
Port to bind LXD to [default=8443]:
Trust password for new clients:
Again:
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
I konfiguracija izgleda ovako:
config:
core.https_address: '[::]:8443'
core.trust_password: 1q2w3e4r
networks:
- config:
ipv4.address: auto
ipv6.address: auto
description: ""
name: lxdbr0
type: ""
project: default
storage_pools:
- config: {}
description: ""
name: default
driver: dir
profiles:
- config: {}
description: ""
devices:
eth0:
name: eth0
network: lxdbr0
type: nic
root:
path: /
pool: default
type: disk
name: default
projects: []
cluster: null
Da vidimo dostupne image liste
lxc remote list

Za sve dostupne imagese
lxc image list images:
za ubuntu dostupne imagese
lxc image list images:ubuntu

Ako zelimo viditi listu intsaliranih kontenjera
lxc list
Pošto nemamo ni jedan prikazati ce se sljedece:

Za instalaciju ubuntu 22.04 kontenjerakojemu smo dali ime ubuntu1
lxc launch ubuntu:22.04 ubuntu1

Sad ka upisemo lxc list
vidimo taj kontenjer
lxc list

Za stopiranje kontenjera ubuntu1
lxc stop ubuntu1
Kad sada pogledamo listu prikazuje ljedece

Za startanje kontenjera ubuntu1
lxc start ubuntu1
Za pristupanje kontenjeru:
lxc exec ubuntu1 bash
