XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    XO Lite: building an embedded UI in XCP-ng

    Scheduled Pinned Locked Moved XO Lite
    87 Posts 33 Posters 40.8k Views 23 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      saneece
      last edited by

      I've tried to put get this working on both of my hosts but I get the same output when I go to it in Edge and Chrome

      fc177ce7-f577-4f45-aa28-93f18806acc1-image.png

      Microsoft Edge
      Version 121.0.2277.106 (Official build) (64-bit)

      Google Chrome
      Version 121.0.6167.185 (Official Build) (64-bit)

      Both hosts are on XCP-NG 8.2

      H 1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Have you tried with the special URL?

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          saneece @olivierlambert
          last edited by

          @olivierlambert

          Not sure what that is honestly. Very new to xcp-ng

          1 Reply Last reply Reply Quote 0
          • olivierlambertO Offline
            olivierlambert Vates 🪐 Co-Founder CEO
            last edited by olivierlambert

            1. Visit your host/pool master URL (like https://<master-ip-address>) and validate the self-signed certificate
            2. Then enter this URL in your browser: https://lite.xen-orchestra.com/#/?master=<master-ip-address>
            3. Profit
            S 1 Reply Last reply Reply Quote 0
            • S Offline
              saneece @olivierlambert
              last edited by

              @olivierlambert

              Closer. I at least get a login page but when I try to log in, I get "An error has occurred" I have confirmed the password. I just logged in to the host directly on the machine to confirm.

              b905ae36-a8ff-4e40-8dad-86e2ea32d5d7-image.png

              1 Reply Last reply Reply Quote 0
              • S Offline
                saneece
                last edited by

                Pause, I am an idiot.. I left the <> around my IP lol..

                Can you explain why the calling on HOST_URL/xolite.html did not work and why I needed your special URL to make that work? I think you have a very interesting way to accessing XO Lite while it's in beta.

                P 2 Replies Last reply Reply Quote 0
                • H Offline
                  HeMaN @saneece
                  last edited by HeMaN

                  @saneece said in XO Lite: building an embedded UI in XCP-ng:

                  I've tried to put get this working on both of my hosts but I get the same output when I go to it in Edge and Chrome

                  fc177ce7-f577-4f45-aa28-93f18806acc1-image.png

                  Microsoft Edge
                  Version 121.0.2277.106 (Official build) (64-bit)

                  Google Chrome
                  Version 121.0.6167.185 (Official Build) (64-bit)

                  Both hosts are on XCP-NG 8.2

                  Output is of the wget command that should be executed from a shell on the host, but you are talking about edge and chrome.
                  You did do the wget command in a shell (should save a xolite.html file and not an index.html file) and then with a browser open the xo-lite url on the host it was downloaded on?

                  Otherwise it looks like a typo in the command that made you redirect the screen output of the wget command to a file called xolite.html

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    peder @saneece
                    last edited by

                    @saneece The XO Lite installing instructions say that you should run this command on your xcp-ng server

                    wget https://lite.xen-orchestra.com/ -O /opt/xensource/www/xolite.html
                    

                    You seem to have omitted the -O /opt/xensource/www/xolite.html part, since your screenshot talks about "Saving as index.html", and that's why you can't go to HOST_URL/xolite.html

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      saneece @peder
                      last edited by

                      @peder and @HeMaN I copied and pasted the command from the post into SSH on both my hosts.

                      Read my follow up posts though and youll see I can access it with https://lite.xen-orchestra.com/#/?master=<master-ip-address> so I am good now. Thanks though.

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        peder @saneece
                        last edited by

                        @saneece said in XO Lite: building an embedded UI in XCP-ng:

                        Can you explain why the calling on HOST_URL/xolite.html did not work and why I needed your special URL

                        Yeah, I was just explaining why HOST_URL/xolite.html didn't work for you.
                        You only ran wget https://lite.xen-orchestra.com/
                        and that's why your log screenshots says that it's saving to index.html.

                        If you had run the entire command it would have said "Saving to /opt/xensource/www/xolite.html " and you would have been able to access it the "normal" way.

                        S 1 Reply Last reply Reply Quote 0
                        • S Offline
                          saneece @peder
                          last edited by saneece

                          @peder Gotcha. I actually checked my command history and I did include the "-O /opt/xensource/www/xolite.html" portion of the command. It does look like the -O was lowercase though which ended up being the problem so you were right. Apparently I DIDN'T copy and paste it like I thought I did, so I apologize. Thanks friends!

                          H 1 Reply Last reply Reply Quote 0
                          • H Offline
                            HeMaN @saneece
                            last edited by

                            @saneece

                            Wget options say
                            -o logfile,
                            --output-file=logfile
                            Log all messages to logfile. The messages are normally reported to standard error.

                            -O file, --output-document=file
                            The documents are not written to the appropriate files, but all are concatenated together and written to file.

                            So the output of your first wget download was indeed redirected to the xolite.html file you saw in your browser in stead of downloading the file.

                            The location where you were when you typed the command will have the index.html file that is downloaded as seen in the 'log' file you created

                            1 Reply Last reply Reply Quote 1
                            • E Offline
                              elementalwindx
                              last edited by

                              Hello! I was checking in to see if there has been any updated versions of this past 0.1.3 (01046). If so, how can I install it?

                              It doesn't appear there are, but I just wanted to make sure.

                              Thank you! 🙂

                              MathieuRAM 1 Reply Last reply Reply Quote 0
                              • olivierlambertO Offline
                                olivierlambert Vates 🪐 Co-Founder CEO
                                last edited by

                                @MathieuRA or @pdonias will tell you 🙂

                                1 Reply Last reply Reply Quote 0
                                • MathieuRAM Offline
                                  MathieuRA Vates 🪐 XO Team @elementalwindx
                                  last edited by

                                  @elementalwindx

                                  Hi 🙂

                                  The current version of XOLite embedded by XCP-ng is 0.1.3, but in the next XCP-ng update, a new XOLite version will be deployed.

                                  If you're eager to see what a newer version of XOLite does, you can follow these steps:

                                  @olivierlambert said in XO Lite: building an embedded UI in XCP-ng:

                                  Visit your host/pool master URL (like https://<master-ip-address>) and validate the self-signed certificate
                                  Then enter this URL in your browser: https://lite.xen-orchestra.com/#/?master=<master-ip-address>
                                  Profit

                                  If you encountered errors in the display of stats with this latest version, this is "normal". A patch is coming soon.

                                  1 Reply Last reply Reply Quote 0
                                  • cairotiC Offline
                                    cairoti @olivierlambert
                                    last edited by cairoti

                                    @olivierlambert Thanks for sharing this tool. I'll test it!

                                    When reading the documentation, I had a question. If my internet link becomes unavailable, I will not be able to get XO Lite as I will not be able to download the code from Vates' servers to fully run the application. In the final version of XO Lite, do you intend to make the application completely available so that it can be run on the server side?

                                    1 Reply Last reply Reply Quote 0
                                    • olivierlambertO Offline
                                      olivierlambert Vates 🪐 Co-Founder CEO
                                      last edited by Danp

                                      XO Lite is now pre installed on 8.3, so you do not need an internet connection 🙂

                                      S cairotiC 2 Replies Last reply Reply Quote 0
                                      • S Offline
                                        saneece
                                        last edited by

                                        This post is deleted!
                                        1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          saneece @olivierlambert
                                          last edited by

                                          @olivierlambert do or do not?

                                          olivierlambertO 1 Reply Last reply Reply Quote 0
                                          • cairotiC Offline
                                            cairoti @olivierlambert
                                            last edited by

                                            @olivierlambert Your company is fantastic! Since I started testing XCP-NG and XO, I've seen a lot of new things. Congratulations again.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post