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

    Tips on installing XO

    Scheduled Pinned Locked Moved Xen Orchestra
    97 Posts 11 Posters 17.2k Views 9 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.
    • J Offline
      jasonnix
      last edited by

      Hello,
      I want to manually install XO on Debian 12. Is 20GB hard disk with 4GB RAM enough?

      Cheers.

      lawrencesystemsL 1 Reply Last reply Reply Quote 0
      • lawrencesystemsL Offline
        lawrencesystems Ambassador @jasonnix
        last edited by

        @jasonnix

        That is enough to get it working and fine for most homelab environments.

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

          For 3 hosts or less, even 2GiB is enough to run XO 🙂

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

            @olivierlambert said in Tips on installing XO:

            For 3 hosts or less, even 2GiB is enough to run XO 🙂

            With Debian yes, if using Ubuntu you need a minimum 3Gb (unrounded).

            1 Reply Last reply Reply Quote 1
            • J Offline
              jasonnix
              last edited by

              Hello,
              Thank you for all the replies.

              1 Reply Last reply Reply Quote 0
              • J Offline
                jasonnix
                last edited by

                Hello,
                Is XO better to be a VM on XCP-ng or to be installed on a physical server?

                Thanks.

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

                  It's meant to run in a VM, but if you want to tinker with the sources, you can install it on a physical machine, no problem.

                  J 1 Reply Last reply Reply Quote 1
                  • J Offline
                    jasonnix @olivierlambert
                    last edited by

                    Hi @olivierlambert,
                    If there are several hosts and XO is installed as a VM, then if the host on which XO is installed has a problem, the management of all hosts will have a problem!

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

                      No, they won't have a problem, you won't be able to interact with your VMs, but all VMs will run fine without it. If you lose XOA VM, just re-deploy one and that's it.

                      J 1 Reply Last reply Reply Quote 0
                      • J Offline
                        jasonnix @olivierlambert
                        last edited by

                        Hi @olivierlambert,
                        According to https://xen-orchestra.com/docs/installation.html#from-the-sources:

                        You need to use the git source code manager to fetch the code. Ideally, you should run XO as a non-root user, and if you choose to, you need to set up sudo to be able to mount NFS remotes.

                        But to install, you need a root account. It's true?

                        olivierlambertO 1 Reply Last reply Reply Quote 0
                        • C Offline
                          CJ @jasonnix
                          last edited by

                          @jasonnix I've found the master host to be more of a limitation than XO as a VM. That said, unless you use XO Proxy, all of your backups will go through XO so you'll want it to have fast network access.

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

                            @jasonnix No. You can rely on a non-root install with a regular Linux users, with enough permissions to deal with "usually restricted" features by default.

                            J 1 Reply Last reply Reply Quote 0
                            • J Offline
                              jasonnix @olivierlambert
                              last edited by jasonnix

                              Hi @olivierlambert,
                              What is meant by enough permissions? If I want to clone XO under the /usr/local/src, then I need the root permission!
                              If I use the root account to install, will there be a problem?
                              I tried to clone the XO several times, but I got the following error:

                              # git clone -b master https://github.com/vatesfr/xen-orchestra.git
                              Cloning into 'xen-orchestra'...
                              remote: Enumerating objects: 122975, done.
                              remote: Counting objects: 100% (2950/2950), done.
                              remote: Compressing objects: 100% (1307/1307), done.
                              error: 1124 bytes of body are still expected MiB | 162.00 KiB/s 
                              fetch-pack: unexpected disconnect while reading sideband packet
                              fatal: early EOF
                              fatal: fetch-pack: invalid index-pack output
                              

                              What is wrong?

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

                                @jasonnix The Linux distribution operating system restricts certain commands, operations and/or path (location) to the root account, as well as the location owner.

                                The path your trying to write to is just one such location as the location is read only to non-root users. If you really wish to write to /usr/local/src then root account is required.

                                If you use the root account to install then the directory and the Xen Orchestra files will be owner by root. You would need to create a non-root user for the xen orchestra server process. As well as change ownership of the Xen Orchestra files and folders to that non-root account. Though at least the ones which Xen Orchestra should be able to modify as required, when needed.

                                As well as provide the necessary sudo permissions for the necessary commands to that account.

                                Using root account to run exposes any vulnerabilities present to the capacity of being exploited as root (aka Administrator) privileges.

                                Also how good is your internet connection and your connection to GitHub? Cause you could be experiencing a time out packet loss connection issue.

                                J 1 Reply Last reply Reply Quote 2
                                • J Offline
                                  jasonnix @john.c
                                  last edited by jasonnix

                                  Hello @john-c,
                                  Thank you so much for your advices.
                                  1- I had used the root account for this, so there is no permission issue. Now, I realized that root account is not suitable for this. Which directory is suitable for cloning?

                                  2- Is there a problem if I download the file from Github as a zip file and install it?

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

                                    1. You can but it's less convenient.

                                    b35e4ba6-15a6-405e-8beb-e55309c4f1c2-image.png

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

                                      @olivierlambert said in Tips on installing XO:

                                      1. You can but it's less convenient.

                                      b35e4ba6-15a6-405e-8beb-e55309c4f1c2-image.png

                                      As well as more tricky when updated as you will need to create a zip and then re-download it. If however you can clone it especially by the git command then you can use it to update it as needed and/or use other methods to speed it up.

                                      Additionally you can have a script to update the instance and handle any instances of ownership changes.

                                      D 1 Reply Last reply Reply Quote 0
                                      • D Offline
                                        DustinB @john.c
                                        last edited by

                                        @john-c said in Tips on installing XO:

                                        @olivierlambert said in Tips on installing XO:

                                        1. You can but it's less convenient.

                                        b35e4ba6-15a6-405e-8beb-e55309c4f1c2-image.png

                                        As well as more tricky when updated as you will need to create a zip and then re-download it. If however you can clone it especially by the git command then you can use it to update it as needed and/or use other methods to speed it up.

                                        Additionally you can have a script to update the instance and handle any instances of ownership changes.

                                        That seems like an insane way to install and update this XO.

                                        1 Reply Last reply Reply Quote 0
                                        • J Offline
                                          jasonnix
                                          last edited by

                                          Hello,
                                          You said that I should not do the installation with the root account, which directory is suitable for cloning?

                                          Cheers.

                                          J 1 Reply Last reply Reply Quote 0
                                          • J Offline
                                            jasonnix @jasonnix
                                            last edited by

                                            Hello,
                                            No idea?

                                            Cheers.

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