Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install on production LXD? #417

Closed
Igorgro opened this issue Jul 15, 2023 · 5 comments
Closed

How to install on production LXD? #417

Igorgro opened this issue Jul 15, 2023 · 5 comments

Comments

@Igorgro
Copy link

Igorgro commented Jul 15, 2023

I have an LXD installed from arch linux package (https://archlinux.org/packages/extra/x86_64/lxd/), not snap. How I can install LXD-UI to it? I tried to build lxd-ui using yarn build and move build/ directory to /var/lib/lxd, but this didn't help, there still no ui available (even after restarting LXD). Where should I place compiled files to make LXD serving them? ARCHITECTURE.md does not contain this information

@Igorgro
Copy link
Author

Igorgro commented Jul 15, 2023

Ok, I found how to do that. The full instruction

  1. Clone this repo
  2. yarn && yarn build
  3. Copy build/ui directory to /var/lib/lxd
  4. Change the LXD_UI environment variable of LXD. This can be done using systemctl edit lxd command. In that file add the following lines:
    [Service]
    Environment=LXD_UI=/var/lib/lxd/ui
  5. systemctl deamon-reload && systemctl restart lxd
  6. Set core.https_address of LXD to make it listen for remote connections
  7. Open <your-server-ip>:8443 and see UI

@edlerd
Copy link
Collaborator

edlerd commented Oct 24, 2023

Closing this, as it is not an issue we can fix in the UI.

@edlerd edlerd closed this as completed Oct 24, 2023
@Igorgro
Copy link
Author

Igorgro commented Oct 24, 2023

Can this be pinned or placed somewhere in docs?

@edlerd
Copy link
Collaborator

edlerd commented Oct 25, 2023

I added a wiki page with your setup here: https://github.com/canonical/lxd-ui/wiki/Build-the-UI-for-Arch-and-other-Linux-Distributions

@lateautumn233
Copy link

Ok, I found how to do that. The full instruction

  1. Clone this repo
  2. yarn && yarn build
  3. Copy build/ui directory to /var/lib/lxd
  4. Change the LXD_UI environment variable of LXD. This can be done using systemctl edit lxd command. In that file add the following lines:
    [Service]
    Environment=LXD_UI=/var/lib/lxd/ui
  5. systemctl deamon-reload && systemctl restart lxd
  6. Set core.https_address of LXD to make it listen for remote connections
  7. Open <your-server-ip>:8443 and see UI

systemctl daemon-reload && systemctl restart lxd
daemon not deamon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants