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

    Problem importing ANY ESXi VMDK into Xen Orchestra CE

    Scheduled Pinned Locked Moved Xen Orchestra
    26 Posts 5 Posters 6.4k Views 4 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 @Murf
      last edited by

      @Murf I'm testing locally with the Windows 2022 VMDK from MS. If I can't replicate here, then I'd assume it is a compatibility issue with the file generated b vCenter.

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

        So, no issues on my end importing the VMDK into XOA or XO from sources.

        @Murf Can you generate a new VMDK without any confidential data using the same technique?

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          Murf @Danp
          last edited by

          @Danp Sure, how do I attach a zip file to the post? it wont let me.

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

            @Murf Sent you a link via PM

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              Murf @Danp
              last edited by

              @Danp When I migrate Windows Server VMs the network interface does not have the settings anymore and I have to reconfigure them manually, is this expected behavior?

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

                @Murf No, that doesn't sound normal. Are you still referring to the import from VMWare process or are you actually migrating between XCP-ng hosts?

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  Murf @Danp
                  last edited by

                  @Danp Yes the import process. I think it is because we are using VMXNET 3 interfaces, not E1000 (which caused us horrible problems over the years)

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

                    @Murf Can you show screenshots of network settings from before and after import occurs?

                    M 2 Replies Last reply Reply Quote 0
                    • M Offline
                      Murf @Danp
                      last edited by

                      @Danp no need really, they are just set to DHCP instead of the static settings we had, as if I had added a new interface altogether

                      1 Reply Last reply Reply Quote 0
                      • M Offline
                        Murf @Danp
                        last edited by

                        @Danp
                        In VMware->
                        ae67e95d-920a-46b5-931c-35226aacaeba-image.png
                        5f242651-7e11-44ea-941d-293d091b90e2-image.png

                        In XOA after import ->
                        10c6fb75-32f5-49ae-82fd-b53841294d68-image.png
                        8e5658e0-18d6-41db-ace4-8ea5eb439340-image.png

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

                          I haven't heard of this before. Maybe @florent will know why this is occurring.

                          MathieuM 1 Reply Last reply Reply Quote 0
                          • MathieuM Offline
                            Mathieu @Danp
                            last edited by Mathieu

                            Just experienced the same issue with a few VMs I imported from VMware.

                            I think it's a Windows issue, from what I can tell.

                            The network adapter type changes after the import in xcp-ng (from VMXNet to XenServer PV), that's normal.

                            Windows do not allow the same IP address to be used automatically for a different type of network adapter, so that's why it reverts to DHCP with the new adapter.

                            You can see that by setting the previous static IP address in the new adapter, it will warn you that the address was used with a previous adapter and asks for confirmation.

                            https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/error-message-when-you-set-ip-address

                            No idea if there's a way to avoid that.

                            florentF nikadeN 2 Replies Last reply Reply Quote 0
                            • florentF Offline
                              florent Vates 🪐 XO Team @Mathieu
                              last edited by

                              @Mathieu Hi ,

                              does it do the same when using the v2v tool ?
                              b80ca58b-5121-40ac-9358-6f3903f5795f-image.png

                              the vmdk import does not modify anything , only trasnform the disk format from vmdk to vhd, while the v2v also reconfigure the VM

                              MathieuM M 2 Replies Last reply Reply Quote 0
                              • MathieuM Offline
                                Mathieu @florent
                                last edited by

                                @florent I did import my VMs with V2V, it was not with a vdmk import.

                                florentF 1 Reply Last reply Reply Quote 0
                                • florentF Offline
                                  florent Vates 🪐 XO Team @Mathieu
                                  last edited by

                                  @Mathieu can you check in the import task log, you should have a part containing the network information extracted from vsphere :

                                  ea828935-0ecb-4eb8-97e6-68a11bdfba2d-image.png

                                  What does it contains ?

                                  MathieuM 1 Reply Last reply Reply Quote 0
                                  • MathieuM Offline
                                    Mathieu @florent
                                    last edited by

                                    @florent This is what I see for the last VM I imported:

                                      "networks": [
                                                  {
                                                    "label": "VM Network 2",
                                                    "macAddress": "00:0c:29:48:70:d6",
                                                    "isGenerated": true
                                                  }
                                                ]
                                              }
                                    
                                    florentF 1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      Murf @florent
                                      last edited by Murf

                                      @florent the thing is I am looking for a seamless migration workflow from VMware.. not a manual VM per VM migration. (unless v2v has this also?)

                                      florentF 1 Reply Last reply Reply Quote 0
                                      • florentF Offline
                                        florent Vates 🪐 XO Team @Mathieu
                                        last edited by

                                        @Mathieu said in Problem importing ANY ESXi VMDK into Xen Orchestra CE:

                                        @florent This is what I see for the last VM I imported:

                                          "networks": [
                                                      {
                                                        "label": "VM Network 2",
                                                        "macAddress": "00:0c:29:48:70:d6",
                                                        "isGenerated": true
                                                      }
                                                    ]
                                                  }
                                        

                                        the VMWare api answer tell us that it's a DHCP network. Do you have a XOA I can patch , or would you be able to test a custom branch of XO from source ? I would like to add some debug here

                                        MathieuM 1 Reply Last reply Reply Quote 0
                                        • florentF Offline
                                          florent Vates 🪐 XO Team @Murf
                                          last edited by

                                          @Murf said in Problem importing ANY ESXi VMDK into Xen Orchestra CE:

                                          @florent the thing is I am looking for a seamless migration workflow from VMware.. not a manual VM per VM migration. (unless v2v has this also?)

                                          For now, we put most the effort on migrating the data, and do our best for the metadata. There will probably be some manual work, for example installing /removing the drivers, but also the network configuration.

                                          v2v most important advantage is that it does not need to copy the export ( that can be in the terabyte size range) on a disk and then import it. It can also script an import of a huge list of VMs, and handle them with a controlled concurrency, to ensure the esxi doesn't suffer too much.

                                          1 Reply Last reply Reply Quote 0
                                          • MathieuM Offline
                                            Mathieu @florent
                                            last edited by

                                            @florent
                                            Hi Florent,

                                            The imported VM was definitely not in DHCP mode, it was a static address.
                                            I have an XOA and XO from source, but we already re-purposed our VMware server, so sadly I can't help you debugging anymore.
                                            Maybe you can do that with the original poster of this thread?

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