LXD ERROR create VM

solved
(X Mr) #1

Hi all,
When I init LXD VM, I have problem: error while loading shared libraries: libdqlite.so.0: cannot open shared object file: No such file or directory

I am using: Opennebula 5.8.1
LXD node version: ubuntu 18.10

Thanks.

(Daniel Clavijo Coca) #2

That seems to be a direct dependency of lxd missing on your setup. If you are using 1810, I imagine you are using lxd via snapd, please make sure to be using the LTS snap package version of lxd,

snap install lxd --channel=3.0/stable

(X Mr) #3

Hi dann1,
I check with your command and this is resulf:
snap "lxd" is already installed, see 'snap help refresh'

root:~# snap list
Name  Version    Rev    Tracking  Publisher   Notes
core  16-2.38.1  6818   stable    canonical✓  core
lxd   3.12       10601  stable/…  canonical✓  -

Thanks

(Daniel Clavijo Coca) #4

Try swapping to the stable channel

snap refresh hello --channel=3.0/stable

or if that fails,

snap remove lxd
snap install lxd --channel=3.0/stable
(X Mr) #5

Hi,
This is my result:

root:~# snap refresh hello --channel=3.0/stable
snap "hello" is not installed
root:~# snap remove lxd
lxd removed
root:~# snap install lxd --channel=3.0/stable
lxd (3.0/stable) 3.0.3 from Canonical✓ installed
root:~# snap refresh hello --channel=3.0/stable
snap "hello" is not installed
root:~# /snap/lxd/current/bin/lxd forkstart one-29 /var/snap/lxd/common/lxd/containers /var/snap/lxd/common/lxd/logs/one-29/lxc.conf
/snap/lxd/current/bin/lxd: error while loading shared libraries: libdqlite.so.0: cannot open shared object file: No such file or directory
root:~# snap list
Name  Version    Rev   Tracking  Publisher   Notes
core  16-2.38.1  6818  stable    canonical✓  core
lxd   3.0.3      9663  3.0       canonical✓  -

Thanks

(Daniel Clavijo Coca) #6

No idea, but that is a LXD specific issue, the missing library should be provided by the snap package itself.

(X Mr) #7

Hi,
I reinstall node OS with ubuntu 18.04 and everything fine :slight_smile:.

Thank.