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

    Getting errors when migrating 4 out 5 VMGuest

    Scheduled Pinned Locked Moved Advanced features
    50 Posts 5 Posters 12.9k 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.
    • A Offline
      ashinobi
      last edited by

      Hi, Everyone.

      I have a problem in regards to migrating a VMGuests. I have total of 5 VMGuests and 2 XCP-NG hosts. The VMGuests are composed of Windows and Linux machines. Out of those 5 VMGuests,

      The issue happens while I am in the Home->VMs ->selecting a VM/s to migrate-> clicking migrate. When I go to Settings->Logs I got the following error message:

      VDI_NOT_IN_MAP(OpaqueRef:4896c7e6-e0f3-4d6b-987e-bae90db679d2)
      
      This is a XenServer/XCP-ng error	January 29, 2024 at 06:50:23 PM
      

      Using the same VM/s and clicking its instance and then clicking migrate, migration started working.

      Below is the details of my hosts and Xen Orchestra

      1. Hosts are both using XCP-NG 8.2,
      2. Xen- Orchestra version: 8e65e
      3. Management version:
        a. Windows: 9.3.2-110
        b. Ubuntu: 7.30.0-11

      Please let me know if you need more information so I can provide those information

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

        That's probably because you have VM disks in different/local storages?

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          ashinobi @olivierlambert
          last edited by

          @olivierlambert

          I only have 1 VM disk that is hosted in a NFS share from a Synology File server:

          ea9cd1e1-5b58-4748-8c75-0bd9a4e56be8-image.png

          35796c55-07de-4ed4-9069-4ce8d77e62ee-image.png

          aa0521e8-f1e6-42c2-a924-d995e4ecd651-image.png

          933fd5c8-7f28-441a-923f-9028e816a902-image.png

          f98200e3-c693-4b4d-9040-3cd356289277-image.png

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

            So they are all on the same SR, right?

            A 1 Reply Last reply Reply Quote 0
            • A Offline
              ashinobi @olivierlambert
              last edited by

              @olivierlambert

              Yes they are all in the same SR which is 1522 NFS Share.

              1 Reply Last reply Reply Quote 0
              • A Online
                anik
                last edited by

                Hi,
                i have had the same "VDI_NOT_IN_MAP" error previously on 2 VM's. I have no idea what caused it, but i was able to solve it by doing a warm migration once, after that normal migrations started working normally.

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

                  I wonder if it's a bug on XO side. The VDI map is the list of which VDI are going where.

                  Can you screenshot exactly the steps you are doing in XO?

                  A 1 Reply Last reply Reply Quote 0
                  • A Offline
                    ashinobi @olivierlambert
                    last edited by

                    @olivierlambert

                    Sure thing.

                    Here is the steps when the issue happens:

                    1. In the list of VM's select the guest that I want to migrate, notice it is currently on home-hypervisor host
                      d09dd30b-6b77-4753-8723-452ee84711c7-image.png

                    2. I click on the migrate button and on the pop-out box I selected "xcp-ng-server2" host and click the "OK" button
                      52388a8e-3986-48ea-b8ae-710d6b69fd4d-image.png

                    3. You will notice nothing happen.
                      d09dd30b-6b77-4753-8723-452ee84711c7-image.png

                    4. If I go to Settings->Logs, notice that I get the VDI error message:
                      83c5051d-58c9-4cc0-b289-aa14f04956cf-image.png

                    This is how I make it work:

                    1. In the VM list I click on the target VMguest and goes into its detailed information then I click on migrate button
                      f621f68c-6a2f-4875-9775-3fc84247310b-image.png

                    2. It now opens the box to select which host we want to migrate to, I have selected "xcp-ng-server2" and click the "OK" button
                      52388a8e-3986-48ea-b8ae-710d6b69fd4d-image.png

                    3. After it returns to the detailed information page, notice that it now show a progress in migrating the vmguest to the xcp-ng-server2 host
                      c9f3ca82-b92d-44eb-b955-0888fd7a0f3b-image.png

                    4. After few seconds it has successfully migrated the vmguest to the "xcp-ng-server2" host
                      a1016d40-f035-497a-b305-680bd95a8ea6-image.png

                    I hope I was able to provide the screenshot that you needed, please let me know if you need more information.

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

                      Thanks! That might be a bug. We are about to make a release (tomorrow) but we'll see if we can reproduce it quickly. Adding @Melissa-FR or @MathieuRA in the loop 👍

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

                        Hi 🙂
                        I tried to reproduce the steps on different VMs, but I was not able to reproduce the issue.

                        Capture d’écran de 2024-02-01 10-40-07.png Capture d’écran de 2024-02-01 10-40-14.png
                        Capture d’écran de 2024-02-01 10-43-42.png

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

                          @ashinobi do you have some VMs you try to migrate with ISO inserted?

                          A 1 Reply Last reply Reply Quote 0
                          • A Offline
                            ashinobi @olivierlambert
                            last edited by

                            @olivierlambert

                            Yes 2 vm has guest vm tools iso inserted the other 3 doesn't have any iso.

                            @MathieuRA

                            Thanks for testing, that is really strange it is consistent on my setup. Do you need more information on my setup just incase it is something unique on how I configure my XCP-NG and Xen Orchestra?

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

                              That's likely because of the ISO. Eject them, and try again.

                              1 Reply Last reply Reply Quote 0
                              • A Offline
                                ashinobi @MathieuRA
                                last edited by

                                @MathieuRA

                                Disk name for your Alpine 3.13 vmguest machine. Is that using default name? What I notice (not sure if it will be relevant or not) is the ones that are not working. All of them I renamed disk name (XenOrchestra, Unifi-Controller, Mail-Client and HomeAssistant). The one that is working is Windows 10 (64-bit)_itaze which I didn't rename.

                                I am now deploying 2 new VM's to test this theory and see if that is the one causing problem. I will update this thread once done with the test.

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

                                  You should test first to eject all the ISO and migrate 🙂

                                  A 1 Reply Last reply Reply Quote 0
                                  • A Offline
                                    ashinobi @olivierlambert
                                    last edited by

                                    @olivierlambert

                                    I did that as mention 3 of the vm's doesn't have iso mounted and it still experience the problem.

                                    1 Reply Last reply Reply Quote 0
                                    • A Offline
                                      ashinobi @MathieuRA
                                      last edited by

                                      @MathieuRA

                                      Done with the testing and it did not make any difference. Probably there is something on my setup that maybe causing this problem since this is only happening on my setup it maybe a problem on my setup.

                                      Any advise what logs should I monitor to find out what maybe causing this problem?

                                      MathieuRAM 2 Replies Last reply Reply Quote 0
                                      • MathieuRAM Offline
                                        MathieuRA Vates 🪐 XO Team @ashinobi
                                        last edited by

                                        While investigating the code, I found something unexpected. We don't have exactly the same behavior for migrating from the Home/VM view and from the VM view itself.
                                        I will try to fix this and it might solve your problem.
                                        I will come back to you when I have opened the branch to allow you to do some tests on it.

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

                                          @ashinobi Several bug fixes related to VM migration are on the xo5/fix-bulk-migration branch. Could you please test to see if they solve your issue?

                                          A 1 Reply Last reply Reply Quote 1
                                          • A Offline
                                            ashinobi @MathieuRA
                                            last edited by

                                            @MathieuRA

                                            Is the fix part of XO commi 2498a? If not how can I download the update. My apologies if that I am not familiar.

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