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

    Error When Creating VM

    Scheduled Pinned Locked Moved Xen Orchestra
    6 Posts 2 Posters 1.2k 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.
    • SoarinS Offline
      Soarin
      last edited by

      Hello! I'm on Xen Orchestra Community Edition (v5.43.0) + Debian 9.0 and I'm also on Linux right now so I can't access the XCP-NG center to create VMs through that, I try to make them through Xen Orchestra and I've noticed I get a pretty big error:

      vm.create
      {
        "clone": true,
        "existingDisks": {},
        "installation": {
          "method": "cdrom",
          "repository": "1267344e-acb5-4bb0-8f45-858170317ad8"
        },
        "name_label": "Discourse",
        "template": "OpaqueRef:2e9e7fa9-7414-4b47-9f83-4f2a17d59cae",
        "VDIs": [
          {
            "bootable": true,
            "device": "0",
            "size": 10737418240,
            "type": "system",
            "SR": "b8e40431-4dea-7cc9-f432-be02bfd56c22",
            "name_description": "Created by XO",
            "name_label": "Debian_Discourse"
          }
        ],
        "VIFs": [
          {
            "network": "32da8332-3eb4-9a8a-c80f-4d08d0a8a33c",
            "allowedIpv4Addresses": [],
            "allowedIpv6Addresses": []
          }
        ],
        "CPUs": 1,
        "cpuWeight": null,
        "cpuCap": null,
        "name_description": "Howdy",
        "memoryMax": 536870912,
        "bootAfterCreate": true,
        "share": false,
        "tags": []
      }
      {
        "code": 10,
        "data": {
          "errors": [
            {
              "code": null,
              "reason": "strict",
              "message": "should not contains properties [\"CPUs\", \"cpuWeight\", \"cpuCap\", \"memoryMax\", \"tags\"]",
              "property": "@"
            }
          ]
        },
        "message": "invalid parameters",
        "name": "XoError",
        "stack": "XoError: invalid parameters
          at Object.factory [as invalidParameters] (/opt/xen-orchestra/packages/xo-common/src/api-errors.js:21:31)
          at Xo.checkParams (/opt/xen-orchestra/packages/xo-server/src/xo-mixins/api.js:71:17)
          at /opt/xen-orchestra/packages/xo-server/src/xo-mixins/api.js:277:18
          at Generator.next (<anonymous>)
          at asyncGeneratorStep (/opt/xen-orchestra/packages/xo-server/dist/xo-mixins/api.js:38:103)
          at _next (/opt/xen-orchestra/packages/xo-server/dist/xo-mixins/api.js:40:194)
          at tryCatcher (/opt/xen-orchestra/node_modules/bluebird/js/release/util.js:16:23)
          at Promise._settlePromiseFromHandler (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:517:31)
          at Promise._settlePromise (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:574:18)
          at Promise._settlePromiseCtx (/opt/xen-orchestra/node_modules/bluebird/js/release/promise.js:611:10)
          at _drainQueueStep (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:142:12)
          at _drainQueue (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:131:9)
          at Async._drainQueues (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:147:5)
          at Immediate.Async.drainQueues (/opt/xen-orchestra/node_modules/bluebird/js/release/async.js:17:14)
          at runCallback (timers.js:810:20)
          at tryOnImmediate (timers.js:768:5)
          at processImmediate [as _immediateCallback] (timers.js:745:5)"
      } 
      

      I'm not sure if I'm just doing something wrong but everything looks to be filled out correctly when I'm creating the VM! Thank you

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

        It's fixed in master if I remember correctly. Please be sure you are on latest commit and rebuild.

        1 Reply Last reply Reply Quote 0
        • SoarinS Offline
          Soarin
          last edited by

          I'm on the master branch and latest version, I used an installer from Jarli01 which also has an updater that downloads and compiles from the official Github. I just updated it a few minutes ago just to make sure and rebuilt it and still same error. ☹

          I tested it on another browser and same problem occurred, is v5.43.0 the latest version or should I try a different branch? Thank you

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

            Maybe an issue on master. Are you sure you cleaned everything before rebuild?

            1 Reply Last reply Reply Quote 0
            • SoarinS Offline
              Soarin
              last edited by

              The updater I used output everything as it was happening and it showed it did, by cleaning everything does that mean deleting a certain folder before rebuilding? Thank you for your time so far

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

                Try to remove the source folder and reinstall it. Please try following the official documentation: https://xen-orchestra.com/docs/from_the_sources.html

                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