canonical / lxd-demo-server

The LXD demo server
https://linuxcontainers.org/lxd/try-it
Apache License 2.0
74 stars 24 forks source link

LXD from snap and lxd-demo-server compiled #17

Closed condector closed 5 years ago

condector commented 5 years ago

It's only a question if we have an option to configure that.

If I use LXD from ubuntu repository (3.0.2), the LXD compiled work as expected (and I have some issues, probably related to the old version of LXD). Now, I'm trying to use my compiled version with the snap installed.

When I try to run the lxd-demo-server compiled, I saw this message:

$ ./lxd-demo-server Waiting for the LXD server to come online.

And the LXD from snap:

$ lxc version Client version: 3.8 Server version: 3.8

Thanks a lot for your work @stgraber

condector commented 5 years ago

Ok, I solved the problem creating the socket link directly:

$ mkdir /var/lib/lxd

and, after that:

$ ln -s /var/snap/lxd/common/lxd/unix.socket /var/lib/lxd

Now, it's working.