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

    Tips on installing XO

    Scheduled Pinned Locked Moved Xen Orchestra
    97 Posts 11 Posters 41.3k 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 @lawrencesystems
      last edited by jasonnix

      Hi @lawrencesystems,
      Thanks again.
      I want to clone XO under the /usr/local/src directory, but this directory requires root access. Is there a problem if I do this with the sudo command?

      E D 2 Replies Last reply Reply Quote 0
      • E Offline
        ElemondCraw @jasonnix
        last edited by

        @jasonnix There is a paragraph about sudo in the install : https://xen-orchestra.com/docs/installation.html#sudo

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

          @jasonnix said in Tips on installing XO:

          Hi @lawrencesystems,
          Thanks again.
          I want to clone XO under the /usr/local/src directory, but this directory requires root access. Is there a problem if I do this with the sudo command?

          At this point I'm not sure if its intentional idiocy or not. Xen Orchestra does not get installed within XCP-ng's Dom0, it can be installed as a VM that is running as a guest on XCP-ng or on a separate environment entirely.

          Read the documentation, install Ubuntu or Debian and then you install XO as an application on that system.

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

            Hello,
            I tried to install XO, but I got the following error:

            $ sudo yarn
            yarn install v1.22.21
            [1/5] Validating package.json...
            [2/5] Resolving packages...
            [3/5] Fetching packages...
            error https://registry.yarnpkg.com/react-sparklines/-/react-sparklines-1.6.0.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "ENOSPC: no space left on device, write"
            info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
            

            I have enough disk space:

            $ sudo df -i
            Filesystem     Inodes  IUsed  IFree IUse% Mounted on
            udev           492266    395 491871    1% /dev
            tmpfs          497999    589 497410    1% /run
            /dev/xvda1     238560 139439  99121   59% /
            tmpfs          497999      1 497998    1% /dev/shm
            tmpfs          497999      3 497996    1% /run/lock
            /dev/xvda6     354816  20966 333850    6% /home
            tmpfs           99599     14  99585    1% /run/user/0
            tmpfs           99599     19  99580    1% /run/user/1000
            $
            $ sudo lsblk
            NAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
            sr0      11:0    1   16M  0 rom  
            xvda    202:0    0   10G  0 disk 
            ├─xvda1 202:1    0  3.6G  0 part /
            ├─xvda2 202:2    0    1K  0 part 
            ├─xvda5 202:5    0  976M  0 part [SWAP]
            └─xvda6 202:6    0  5.4G  0 part /home
            

            Any idea?

            AtaxyaNetworkA 1 Reply Last reply Reply Quote 0
            • AtaxyaNetworkA Offline
              AtaxyaNetwork Ambassador @jasonnix
              last edited by

              @jasonnix Hi !

              Can you do a df -h instead of -i ?

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

                Hi @AtaxyaNetwork,
                I did:

                $ sudo df -h
                Filesystem      Size  Used Avail Use% Mounted on
                udev            1.9G     0  1.9G   0% /dev
                tmpfs           390M  564K  389M   1% /run
                /dev/xvda1      3.6G  3.5G     0 100% /
                tmpfs           1.9G     0  1.9G   0% /dev/shm
                tmpfs           5.0M     0  5.0M   0% /run/lock
                /dev/xvda6      5.3G  247M  4.8G   5% /home
                tmpfs           390M     0  390M   0% /run/user/0
                tmpfs           390M     0  390M   0% /run/user/1000
                
                

                Disk is full!

                AtaxyaNetworkA 1 Reply Last reply Reply Quote 0
                • AtaxyaNetworkA Offline
                  AtaxyaNetwork Ambassador @jasonnix
                  last edited by

                  @jasonnix Indeed 😅

                  You can deploy a XOA and resize your VM disk with the GUI (the VM need to be shutdown), and then, resize your FS in the VM.

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

                    @AtaxyaNetwork, I prefer CLI for now.

                    AtaxyaNetworkA 1 Reply Last reply Reply Quote 0
                    • AtaxyaNetworkA Offline
                      AtaxyaNetwork Ambassador @jasonnix
                      last edited by

                      @jasonnix Why not using XOA ? It's really simpler than the CLI...

                      Anyway, you can shut down the VM and do:

                      xe vdi-resize uuid=<VDI of your VM> disk-size=XXGiB
                      
                      J 1 Reply Last reply Reply Quote 0
                      • J Offline
                        jasonnix @AtaxyaNetwork
                        last edited by

                        Thanks @AtaxyaNetwork.
                        Shouldn't I create a hard disk first and then add it to the virtual machine and then use this hard disk to add space?

                        AtaxyaNetworkA 1 Reply Last reply Reply Quote 0
                        • AtaxyaNetworkA Offline
                          AtaxyaNetwork Ambassador @jasonnix
                          last edited by

                          @jasonnix No need to create a new disk, you can directly resize the existing disk 🙂

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

                            Thanks @AtaxyaNetwork.
                            I did:

                            # xe vm-list
                            uuid ( RO)           : bdd9b58c-06b1-3f3c-792b-72287bd73d0b
                                 name-label ( RW): XO
                                power-state ( RO): halted
                            

                            Then, I did:

                            # xe vdi-resize uuid=bdd9b58c-06b1-3f3c-792b-72287bd73d0b disk-size=20GiB
                            The uuid you supplied was invalid.
                            type: VDI
                            uuid: bdd9b58c-06b1-3f3c-792b-72287bd73d0b
                            

                            What is wrong?

                            AtaxyaNetworkA 1 Reply Last reply Reply Quote 0
                            • DanpD Offline
                              Danp Pro Support Team
                              last edited by

                              You need to supply the virtual disk's UUID, not the VM's UUID.

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

                                @jasonnix You need the VDI UUID, not the VM UUID.

                                For example:

                                [12:42 Delirium ~]# xe vm-disk-list uuid=a0a05fc9-e454-181e-cff2-ed3c4010651f # <- VM UUID
                                Disk 0 VBD:
                                uuid ( RO)             : 448065c5-2f48-38cc-fa73-a8eda1ab6e61
                                    vm-name-label ( RO): XOA
                                       userdevice ( RW): 0
                                
                                
                                Disk 0 VDI:
                                uuid ( RO)             : d6354121-a3c6-4143-9cab-d65d4d8df769 # You need this one for the resize
                                       name-label ( RW): xoa root
                                    sr-name-label ( RO): sdc
                                     virtual-size ( RO): 21474836480
                                

                                edit: @Danp was faster than me 😄

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

                                  Hi @Danp,
                                  Thank you so much.
                                  I did:

                                  # xe vdi-list
                                  uuid ( RO)                : aa52ebc5-31a1-4115-b37f-d37d8fddea6f
                                            name-label ( RW): XO 0
                                      name-description ( RW): Created by template provisioner
                                               sr-uuid ( RO): c5129868-a590-68ca-e587-db708ad61f38
                                          virtual-size ( RO): 10737418240
                                              sharable ( RO): false
                                             read-only ( RO): false
                                  #
                                  # xe vdi-resize uuid=aa52ebc5-31a1-4115-b37f-d37d8fddea6f disk-size=20GiB
                                  

                                  Disk size applied:

                                  $ sudo lsblk
                                  NAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
                                  sr0      11:0    1   16M  0 rom  
                                  xvda    202:0    0   20G  0 disk 
                                  ├─xvda1 202:1    0  3.6G  0 part /
                                  ├─xvda2 202:2    0    1K  0 part 
                                  ├─xvda5 202:5    0  976M  0 part [SWAP]
                                  └─xvda6 202:6    0  5.4G  0 part /home
                                  

                                  But not where I need!

                                  AtaxyaNetworkA 1 Reply Last reply Reply Quote 0
                                  • AtaxyaNetworkA Offline
                                    AtaxyaNetwork Ambassador @jasonnix
                                    last edited by

                                    @jasonnix You need to resize your partition, currently the storage you added is not used

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

                                      Hello,
                                      I tried to use Git to clone the repository, but I got the following error:

                                      $ sudo git clone -b master https://github.com/vatesfr/xen-orchestra
                                      Cloning into 'xen-orchestra'...
                                      remote: Enumerating objects: 124347, done.
                                      remote: Counting objects: 100% (4318/4318), done.
                                      remote: Compressing objects: 100% (1974/1974), done.
                                      error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
                                      error: 3713 bytes of body are still expected
                                      fetch-pack: unexpected disconnect while reading sideband packet
                                      fatal: early EOF
                                      fatal: fetch-pack: invalid index-pack output
                                      

                                      I changed some Git settings:

                                      $ git config --global http.postBuffer 4096M
                                      $ git config --global http.maxRequestBuffer 100M
                                      $ git config --global core.compression 0
                                      

                                      But it didn't matter. I downloaded the repository manually, but when installing I got the following error:

                                      $ sudo yarn
                                      yarn install v1.22.21
                                      [1/5] Validating package.json...
                                      [2/5] Resolving packages...
                                      success Already up-to-date.
                                      $ husky install
                                      fatal: not a git repository (or any of the parent directories): .git
                                      husky - git command not found, skipping install
                                      Done in 4.41s.
                                      
                                      florentF 1 Reply Last reply Reply Quote 0
                                      • florentF Offline
                                        florent Vates 🪐 XO Team @jasonnix
                                        last edited by

                                        @jasonnix said in Tips on installing XO:

                                        git clone -b master https://github.com/vatesfr/xen-orchestra

                                        can you retry the git clone ? it looks like a github error

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

                                          Hi @florent,
                                          I did this several times.

                                          DanpD florentF 2 Replies Last reply Reply Quote 0
                                          • DanpD Offline
                                            Danp Pro Support Team @jasonnix
                                            last edited by

                                            @jasonnix What directory were you in when you ran the yarn command?

                                            J 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • First post
                                              Last post