I have similar issue with lzma also if with a config set commands:
lxc config set backups.compression_algorithm lzma
Error: cannot set 'backups.compression_algorithm' to 'lzma': exec: "lzma": executable file not found in $PATH
which lzma
/usr/bin/lzma
echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
and yes also borg allow to added file via stdin:
When giving ‘-‘ as path, borg will read data from standard input and create a file ‘stdin’ in the created archive from that data.
Yep, just checking whether you install LXD via snap, as it looks like the snap is not looking outside of its mount namespace for the compression tool specified.
sudo snap install lxd
2020-06-19T15:49:40+02:00 INFO Waiting for automatic snapd restart…
Warning: /var/lib/snapd/snap/bin was not found in your $PATH. If you’ve not restarted your session
since you installed snapd, try doing that. Please see https://forum.snapcraft.io/t/9469
for more details.
:/var/tmp$ lxc -v import /var/tmp/win2016.export
Importing instance: 100% (358.99MB/s)Error: exec: “lzma”: executable file not found in $PATH
I have to install lzma with snap?
Is it possible to install LXD 4 stable also with apt on ubuntu bionic ?
On arch I solved using lxd from aur, on bionic that is my production host I’m in trouble
I am just waiting on confirmation from @stgraber as to whether we only use the tools inside the snap for a reason or whether we can change this to look outside of the snap’s namespace.
lxc config set backups.compression_algorithm /var/lib/snapd/hostfs/usr/bin/lzma
Error: cannot set 'backups.compression_algorithm' to '/var/lib/snapd/hostfs/usr/bin/lzma': exec: "/var/lib/snapd/hostfs/usr/bin/lzma": stat /var/lib/snapd/hostfs/usr/bin/lzma: no such file or directory
Infact the folder doesn’t exist:
:/var/lib/snapd/hostfs$ pwd
/var/lib/snapd/hostfs
:/var/lib/snapd/hostfs$ ls -lrt
total 0
I also try to setup a different folder for backup poupose and have similar behaiuovr:
root@charles:/data/lxdbkp# lxc storage create bkp_pool dir source=/data/lxdbkp
Error: Source path ‘/var/lib/snapd/hostfs/data/lxdbkp’ isn’t empty
ls -lrt /var/lib/snapd/hostfs/data/lxdbkp
ls: cannot access ‘/var/lib/snapd/hostfs/data/lxdbkp’: No such file or directory
I have 2 laptops. A dell and an hp. Both are the same architecture ( x86_64).
I have test migration and all the remote features and they work perfect.
At the dell laptop i have an image.
I did
sudo lxc image export ImageName .
After that the tar.gz is created.
When i am still on dell laptop and i am doing
sudo lxc import imagename.tar.gz
i have an error which says
Error: Backup is missing index.yaml
When i am taking the same tar.gz to my other laptop ( hp ) i am taking another error which says