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

    Can't make new VM

    Scheduled Pinned Locked Moved Xen Orchestra
    13 Posts 7 Posters 1.3k Views 6 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.
    • B Offline
      bberndt
      last edited by Danp

      Can't create new VM today, after updating to 5.101.0 / 5.102.0 build 281a1
      Any thoughts on this? Am I missing something?

      thanks.

      vm.create
      {
        "clone": true,
        "existingDisks": {},
        "installation": {
          "method": "cdrom",
          "repository": "a05463cd-8a9f-40e5-9087-8f1ddda0c750"
        },
        "name_label": "Windows Server 2019 (64-bit)",
        "template": "9788e5a6-c4ec-a4ba-2083-c448722a5974-d986ea98-09fa-4e9a-9ee6-e6c78119496f",
        "VDIs": [
          {
            "bootable": false,
            "device": "0",
            "size": 268435456000,
            "type": "system",
            "SR": "000988d9-5c09-4c63-86a1-8cb904d0642f",
            "name_description": "Created by XO",
            "name_label": "Windows Server 2019 (64-bit)_oleri"
          }
        ],
        "VIFs": [
          {
            "network": "46843b23-dd90-2b78-0f9a-dfaac7847e9c",
            "allowedIpv4Addresses": [],
            "allowedIpv6Addresses": []
          }
        ],
        "coresPerSocket": 2,
        "CPUs": "4",
        "cpusMax": 4,
        "cpuWeight": null,
        "cpuCap": null,
        "name_description": "",
        "memory": 17179869184,
        "bootAfterCreate": true,
        "copyHostBiosStrings": false,
        "secureBoot": false,
        "share": false,
        "coreOs": false,
        "tags": [],
        "hvmBootFirmware": "uefi"
      }
      {
        "code": 10,
        "data": {
          "errors": [
            {
              "instancePath": "/VDIs/0",
              "schemaPath": "#/properties/VDIs/items/additionalProperties",
              "keyword": "additionalProperties",
              "params": {
                "additionalProperty": "bootable"
              },
              "message": "must NOT have additional properties"
            },
            {
              "instancePath": "/VDIs/0",
              "schemaPath": "#/properties/VDIs/items/additionalProperties",
              "keyword": "additionalProperties",
              "params": {
                "additionalProperty": "device"
              },
              "message": "must NOT have additional properties"
            },
            {
              "instancePath": "/VDIs/0",
              "schemaPath": "#/properties/VDIs/items/additionalProperties",
              "keyword": "additionalProperties",
              "params": {
                "additionalProperty": "name_description"
              },
              "message": "must NOT have additional properties"
            },
            {
              "instancePath": "/VDIs/0",
              "schemaPath": "#/properties/VDIs/items/additionalProperties",
              "keyword": "additionalProperties",
              "params": {
                "additionalProperty": "name_label"
              },
              "message": "must NOT have additional properties"
            }
          ]
        },
        "message": "invalid parameters",
        "name": "XoError",
        "stack": "XoError: invalid parameters
          at Module.invalidParameters (/opt/xo/xo-builds/xen-orchestra-202209011436/packages/xo-common/api-errors.js:26:11)
          at Xo.call (file:///opt/xo/xo-builds/xen-orchestra-202209011436/packages/xo-server/src/xo-mixins/api.mjs:65:20)
          at Api.#callApiMethod (file:///opt/xo/xo-builds/xen-orchestra-202209011436/packages/xo-server/src/xo-mixins/api.mjs:390:19)"
      }
      
      julien-fJ 1 Reply Last reply Reply Quote 0
      • B Offline
        bberndt
        last edited by

        XCP-ng Center had no problem making new VM, by the way.

        1 Reply Last reply Reply Quote 0
        • B Offline
          bberndt
          last edited by

          went back to my previous build (using the XenOrchestraInstallerUpdater)
          xo-server 5.96.0/ xo-web 5.97.2 build c4839 and new VM worked fine.

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

            @bberndt Good catch. I tested with d7f29e7, and got a similar error. It looks like @julien-f made some updates yesterday that changed the behavior, but I still get an error when creating a VM. Hopefully they will get it resolved soon.

            1 Reply Last reply Reply Quote 0
            • GheppyG Offline
              Gheppy
              last edited by Gheppy

              I have the same problem.
              A complete configuration of the VM gives an error, with commit 281a1cc.
              Instead, if it is created without the disk attached and PXE iso it works.

              I have a XOCE with commit 9ad2c07 that works correctly

              Edit:
              After testing the problem appear with commit d7f29e7363ab7439a75897f21e2b6f1fdd98ac2f.

              And it is only when the HDD is attached/created, if the HDD is deleted, the VM is created and it can be attached/created after creating the VM.

              Commit 82df6089c3ab0d3a5ec567ff9dc5a298f25510b7 is ok

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

                Ping @julien-f

                1 Reply Last reply Reply Quote 0
                • julien-fJ Offline
                  julien-f Vates 🪐 Co-Founder XO Team @bberndt
                  last edited by

                  @bberndt Thanks for your report.

                  I've pushed a fix: https://github.com/vatesfr/xen-orchestra/commit/ea4a888c5e73e022cf331545c8a02231cfa46f15

                  Please test and let me know if you have any other issues 🙂

                  0 julien-f committed to vatesfr/xen-orchestra
                  fix(xo-server/vm.create): allow additional props for VDIs and existingDisks
                  
                  Fixes https://xcp-ng.org/forum/post/52561
                  1 Reply Last reply Reply Quote 2
                  • GheppyG Offline
                    Gheppy
                    last edited by

                    It is ok, thank you

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      anturk
                      last edited by

                      I had the same issue the fix did the trick thanks!

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        bberndt
                        last edited by

                        Looks like it took me to build 37cdbc19e
                        xo-server 5.101.0
                        xo-web 5.102.0

                        and making new VM works.
                        and to think I just happened to need to make a new one after updating the other day, wasn't really looking for a bug.

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          marciocosta.pgua 0
                          last edited by julien-f

                          "message": "must NOT have additional properties"

                          Hi,

                          I have an issue like this, not creating a new vm but on import a .ova to xen orchestra.

                          Xen Orchestra, commit e69ae
                          xo-server 5.102.0
                          xo-web 5.103.0

                          I cannot import .ova to Xen Orchestra.
                          See below the log error:

                          vm.import
                          {
                          "type": "ova",
                          "data": {
                          "descriptionLabel": "Other_64",
                          "disks": [
                          {
                          "capacity": 500107862016,
                          "descriptionLabel": "Disk Image",
                          "nameLabel": "disk1",
                          "path": "WMS-WINDOWS-ANJUSS-disk001.vmdk",
                          "position": 0
                          }
                          ],
                          "memory": 4294967296,
                          "nameLabel": "wms-winsrv-anjuss",
                          "networks": [
                          "91be313d-099b-c310-7125-c6a2c8fedaff"
                          ],
                          "nCpus": 1,
                          "tables": {}
                          },
                          "sr": "892d9a2e-9688-ff37-dd53-2e502981f46a"
                          }
                          {
                          "code": 10,
                          "data": {
                          "errors": [
                          {
                          "instancePath": "/data",
                          "schemaPath": "#/properties/data/additionalProperties",
                          "keyword": "additionalProperties",
                          "params": {
                          "additionalProperty": "tables"
                          },
                          "message": "must NOT have additional properties"
                          }
                          ]
                          },
                          "message": "invalid parameters",
                          "name": "XoError",
                          "stack": "XoError: invalid parameters
                          at Module.invalidParameters (/opt/xen-orchestra/packages/xo-common/api-errors.js:26:11)
                          at Xo.call (file:///opt/xen-orchestra/packages/xo-server/src/xo-mixins/api.mjs:65:20)
                          at Api.#callApiMethod (file:///opt/xen-orchestra/packages/xo-server/src/xo-mixins/api.mjs:390:19)"
                          }
                          

                          Please help! Thanks!

                          julien-fJ 1 Reply Last reply Reply Quote 0
                          • julien-fJ Offline
                            julien-f Vates 🪐 Co-Founder XO Team @marciocosta.pgua 0
                            last edited by

                            @marciocosta-pgua-0 This has been fixed, please upgrade.

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

                              Same message than the other thread: https://xen-orchestra.com/docs/community.html

                              Read this carefully.

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