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

    Unable to create VM

    Scheduled Pinned Locked Moved Compute
    11 Posts 4 Posters 1.6k Views 3 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.
    • DanpD Offline
      Danp Pro Support Team @Sugarat
      last edited by

      @Sugarat If you are running XO from sources, make sure you're completely up-to-date with the latest source. There was a fix released for this earlier this week.

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        Sugarat @Danp
        last edited by

        @Danp Thanks for that. I built the XO from source a few days back, but maybe it just missed that. I'll rebuild now and see what happens.. Thanks

        1 Reply Last reply Reply Quote 0
        • S Offline
          Sugarat
          last edited by

          I have just rebuilt the XO install, and that error has... apparently changed into a different one. Create VM operation still fails, but this time the message is:

          HANDLE_INVALID(SR, OpaqueRef:NULL)
          This is a XenServer/XCP-ng error
          

          Hmph 😞

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

            @Sugarat I'm not able to replicate here. Can you check under Settings > Logs to see if there is an entry there with a detailed error log?

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              Sugarat @Danp
              last edited by

              @Danp I tried removing the second host from the pool but it now still will not allow me to create a VM.

              Ah, nice. I did not know that you could drill down into the error. The dump is as follows:

              vm.create
              {
                "clone": false,
                "existingDisks": {},
                "installation": {
                  "method": "cdrom",
                  "repository": "8eb59f38-25e2-4486-b7c2-98dc938e1fc6"
                },
                "name_label": "Windows 10 (64-bit)",
                "template": "3d3a2920-24c8-f280-5c27-1e4d4a82253c-7774689b-4ca1-4dea-8545-dddd6b64c17f",
                "VDIs": [
                  {
                    "bootable": false,
                    "device": "0",
                    "size": 34359738368,
                    "type": "system",
                    "SR": "3d615d9a-4b54-cf75-ef43-0d08bbf0a640",
                    "name_description": "Created by XO",
                    "name_label": "Windows 10 (64-bit)_epunu"
                  }
                ],
                "VIFs": [
                  {
                    "network": "945f1105-893e-becc-35fe-0a97328ee7ac",
                    "allowedIpv4Addresses": [],
                    "allowedIpv6Addresses": []
                  }
                ],
                "CPUs": 2,
                "cpusMax": 2,
                "cpuWeight": null,
                "cpuCap": null,
                "name_description": "",
                "memory": 4294967296,
                "bootAfterCreate": true,
                "copyHostBiosStrings": false,
                "createVtpm": false,
                "destroyCloudConfigVdiAfterBoot": false,
                "secureBoot": false,
                "share": false,
                "coreOs": false,
                "tags": [],
                "hvmBootFirmware": "uefi"
              }
              {
                "code": "HANDLE_INVALID",
                "params": [
                  "SR",
                  "OpaqueRef:NULL"
                ],
                "call": {
                  "duration": 8,
                  "method": "VDI.create",
                  "params": [
                    "* session id *",
                    {
                      "name_description": "Created by XO",
                      "name_label": "Windows 10 (64-bit)_epunu",
                      "other_config": {},
                      "read_only": false,
                      "sharable": false,
                      "SR": "OpaqueRef:NULL",
                      "type": "user",
                      "virtual_size": 34359738368
                    }
                  ]
                },
                "message": "HANDLE_INVALID(SR, OpaqueRef:NULL)",
                "name": "XapiError",
                "stack": "XapiError: HANDLE_INVALID(SR, OpaqueRef:NULL)
                  at Function.wrap (file:///opt/xo/xo-builds/xen-orchestra-202412191835/packages/xen-api/_XapiError.mjs:16:12)
                  at file:///opt/xo/xo-builds/xen-orchestra-202412191835/packages/xen-api/transports/json-rpc.mjs:38:21
                  at runNextTicks (node:internal/process/task_queues:60:5)
                  at processImmediate (node:internal/timers:454:9)
                  at process.callbackTrampoline (node:internal/async_hooks:130:17)"
              
              1 Reply Last reply Reply Quote 0
              • S Offline
                Subsystem3339
                last edited by Subsystem3339

                I am having the same issue which I also have two hosts which I just updated my XO from source yesterday. My log looks the exact same.

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

                  Seems like it is missing the SR information during VDI creation. Does this also occur with other SR types, ie: local storage?

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    Sugarat @Danp
                    last edited by

                    @Danp Yes. Even when I select a local SSD SR it still happens. I'm not able to create any VM's at all, no matter which SR I am selecting.

                    MathieuRAM 1 Reply Last reply Reply Quote 0
                    • MathieuRAM Offline
                      MathieuRA Vates 🪐 XO Team @Sugarat
                      last edited by

                      Hi @Sugarat. thanks for the report.
                      Can you try this branch: fix-handle-inavlid-vm-creation?
                      This should fix the issue

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        Sugarat @MathieuRA
                        last edited by

                        @MathieuRA It does indeed Sir. Thank you very much!

                        1 Reply Last reply Reply Quote 1

                        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