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

    Latest Xen Orchestra compilation instructions on Cent OS 7?

    Scheduled Pinned Locked Moved Xen Orchestra
    5 Posts 3 Posters 2.1k Views 1 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.
    • T Offline
      TomK
      last edited by

      Hey All,

      Has anyone the correct instructions for building Xen Orchestra?

      Pulled the master copy from here: https://github.com/vatesfr/xen-orchestra

      But getting errors like these, amongst many of them:

      npm install && npm run build
      * vhd-cli:build â Error: 127
      * xo-server-sdn-controller:build â Error: 127
      src/index.js -> dist/index.js
      src/density-plan.js -> dist/density-plan.js
      SyntaxError: src/index.js: Unexpected token (135:32)
        133 |   }
        134 |
      > 135 |   _addPlan(mode, { name, pools, ...options }) {
            |                                 ^
        136 |     pools = uniq(pools)
        137 |
        138 |     // Check already used pools.
      * xo-server-load-balancer:build â Error: 1
      [17:37:59] Using gulpfile ~/xen-orchestra/packages/xo-web/gulpfile.js
      [17:37:59] Starting 'build'...
      [17:37:59] Starting 'buildPages'...
      [17:37:59] Starting 'buildScripts'...
      [17:37:59] Starting 'buildStyles'...
      [17:37:59] Starting 'copyAssets'...
      [17:38:01] 'buildStyles' errored after 1.49 s
      [17:38:01] Error: Missing binding /root/xen-orchestra/node_modules/node-sass/vendor/linux-x64-57/binding.node
      Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 8.x
      
      Found bindings for the following environments:
        - Linux 64-bit with Node.js 10.x
      
      This usually happens because your environment has changed since running `npm install`.
      Run `npm rebuild node-sass` to download the binding for your current environment.
          at module.exports (/root/xen-orchestra/node_modules/node-sass/lib/binding.js:15:13)
          at Object.<anonymous> (/root/xen-orchestra/node_modules/node-sass/lib/index.js:14:35)
          at Module._compile (module.js:653:30)
          at Object.Module._extensions..js (module.js:664:10)
          at Module.load (module.js:566:32)
          at tryModuleLoad (module.js:506:12)
          at Function.Module._load (module.js:498:3)
          at Module.require (module.js:597:17)
          at require (internal/module.js:11:18)
          at Object.<anonymous> (/root/xen-orchestra/node_modules/gulp-sass/index.js:162:21)
      [17:38:01] 'build' errored after 1.5 s
      [17:38:01] The following tasks did not complete: buildPages, buildScripts, copyAssets
      [17:38:01] Did you forget to signal async completion?
      * xo-web:build â Error: 1
      â 59
      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! @ build: `scripts/run-script --parallel build`
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the @ build script.
      npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /root/.npm/_logs/2019-10-19T21_38_01_331Z-debug.log
      [root@xoa-org01 xen-orchestra]#
      
      
      [root@xoa-org01 n]#
      [root@xoa-org01 n]#
      [root@xoa-org01 n]# n
         installed : v8.16.2 (with npm 6.4.1)
      [root@xoa-org01 n]# node -v
      v8.16.2
      [root@xoa-org01 n]# cd /root/
      

      Looks like the install has changed since these instructions were published:

      https://xen-orchestra.com/forum/assets/uploads/files/1474367523803-xo-installation-on-centos-7.txt?v=mfblif51d9s

      Trying on CentOS 7. Hoping there's newer instructions for CentOS. Will try on Debian if CentOS 7 fails.

      Is there newer instructions about the environment setup on CentOS 7 and subsequent compilation of the Xen Orchestra?

      Thx,
      TK

      aqua-calcA 1 Reply Last reply Reply Quote 0
      • aqua-calcA Offline
        aqua-calc @TomK
        last edited by

        @TomK FYI: I was able to install Xen Orchestra on Debian 10 without an issue following these instructions:

        https://github.com/Jarli01/xenorchestra_installer

        T 2 Replies Last reply Reply Quote 0
        • T Offline
          TomK @aqua-calc
          last edited by

          @aqua-calc Thx!

          Started a Ubuntu 18.04 installation just a few moments ago. I'll give these a shot.

          Guessing there's nothing for Cent OS , Fedora or RHEL yet then?

          Thx,
          TK

          1 Reply Last reply Reply Quote 0
          • T Offline
            TomK @aqua-calc
            last edited by

            @aqua-calc All too easy! Works flawlessly on Ubuntu.

            Easier to setup an Ubuntu VM then to deal with CentSO 7 for the time being.

            Thx,
            TK

            1 Reply Last reply Reply Quote 0
            • beagleB Offline
              beagle
              last edited by

              I believe this script works for CentOS 7:

              https://github.com/ronivay/XenOrchestraInstallerUpdater

              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