root@lxd-host:~# lxd init --auto --storage-backend dir LXD has been successfully configured. root@lxd-host:~# lxc info ... storage: dir ...
# lxc storage list +---------+--------+------------------------------------+---------+ | NAME | DRIVER | SOURCE | USED BY | +---------+--------+------------------------------------+---------+ | default | dir | /var/lib/lxd/storage-pools/default | 11 | +---------+--------+------------------------------------+---------+ | pool1 | zfs | lxdstorage/containers | 0 | +---------+--------+------------------------------------+---------+
# lxc init <image> <name> -s <pool>
# lcx stop c1 # lxc lxc publish -f c1 --alias c1 # lxc delete c1 # lxc init c1 c1 -s <new pool> # lxc start c1 # lxc image delete c1
lcx stop c1 lxc lxc publish -f c1 --alias c1 lxc delete c1 lxc init c1 c1 -s <new pool> lxc start c1 lxc image delete c1
lxc storage create pool2 zfs lxc profile device add default root disk path=/ pool=pool2 lxc storage show pool2 lxc storage list lxc storage create pool3 dir lxc launch images:alpine/edge alp3 -s pool3 lxc storage show pool3