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.
    • C Offline
      CptHyper
      last edited by

      Hi, just installed 8.3 on my testbox to play around with it and figured out XO Lite is not working when you select dualstack (ipv4 and ipv6) during installation. I reinstalled the machine only with ipv4 and XO Lite was up and running immediately.

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

        Yes, it's not XO Lite related but IPv6 dual stack related. Adding @BenjiReis in the loop

        1 Reply Last reply Reply Quote 0
        • J Offline
          john.c @CptHyper
          last edited by

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

          Hi, just installed 8.3 on my testbox to play around with it and figured out XO Lite is not working when you select dualstack (ipv4 and ipv6) during installation. I reinstalled the machine only with ipv4 and XO Lite was up and running immediately.

          Thanks for further confirming my past experience with the IPv6 dual stack and IPv6 only issue. You experienced the in-ability to connect to XO Lite because of the issue with the IPv6 dual stack management network not coming up on start up.

          1 Reply Last reply Reply Quote 1
          • D Offline
            DustinB
            last edited by

            Love the platform already, great work, even with just the limited abilities that are baked in.

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

              Yes, it takes a bit of time now because we validated the concept and now merging all components in a clean fashion in the code base. Now, we have a core component library we could you for both XO 6 and XO Lite \o/

              1 Reply Last reply Reply Quote 1
              • 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
                                            • First post
                                              Last post