turtle0x1 / LxdMosaic

Web interface to manage multiple instance of lxd
http://lxdmosaic.com
GNU General Public License v3.0
572 stars 61 forks source link

Testing snap lxdmosaic --edge #575

Open scubamuc opened 3 weeks ago

scubamuc commented 3 weeks ago

@turtle0x1

am interested in you saying socket doesn't work can you open a separate issue for that please? (unless it was noise)

testing snap socket connection:

  1. grafik

  2. grafik

check container IP's, are identical..... LXD0 is not connecting to LXD1 but adding a second "localhost" with a different "alias" instead of the remote.

I'm assuming something missing in the setup request since I cannot specify the remote IP or host name... unless this should be added in the socket path, which would be unclear.

scubamuc commented 3 weeks ago

@turtle0x1, searching for docs explaining socket path /var/snap/lxd/common/lxd/unix.socket is not available. there is obviously no "discover" function, so the path obviously needs to be entered manually? I'v tried <host.ip>://var/snap/lxd/common/lxd/unix.socket and host.ip/var/snap/lxd/common/lxd/unix.socket etc. this is unclear. how to connect to remote host?

turtle0x1 commented 2 weeks ago

Remote host via socket is not something I personally know how todo, when first running LXDMosaic installed via SNAP edge it correctly discovers the local host because we have the LXD plug (see below screenshot), I think your seeing the same containers because its the same host (this is what "socket" was tested with / designed for).

I would need some example commands to create a local socket to a remote host to test this

image

scubamuc commented 2 weeks ago

@turtle0x1

Remote host via socket is not something I personally know how todo

neither do I, never saw this before or tried it before 😯

I'd agree,

it was noise

unless some other user knows how this works?

scubamuc commented 2 weeks ago

This is the only information I could find... https://documentation.ubuntu.com/lxd/en/latest/dev-lxd/

turtle0x1 commented 2 weeks ago

AI says its possible with Nginx but I dont think thats what your really looking for, I think the snap is working as expected? :)

image

scubamuc commented 2 weeks ago

yeah, I agree!

scubamuc commented 2 weeks ago

@turtle0x1, I've found this https://snapcraft.io/docs/lxd-interface is most probably the reason for missing socket connection.

turtle0x1 commented 1 week ago

I dont think so/ it shouldn't be LXDMosaic should get the socket automagically