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.
    • M Offline
      Murf
      last edited by Murf

      Hi all, I just get a spinning wheel when importing a 20MB VMDK
      I am using Xen Orchestra, commit eedac
      I would upload the VMDK but it has sensitive host name info in the name and metadata sorry. I could change it but that would just be introducing something else to potentially cause issues, however I can describe how I created it

      1. Edit a VM in vCenter and add a new 20MB drive, thin provisioned
      2. In the Windows Server 2022 VM enable the new drive and initialise/format it
      3. Copy the XenServer tools exe to the drive from within the VM
      4. unmount the drive
      5. Download the drive from the datastore through vCenter UI, this creates a zip file
      6. Extract the zipfile
      7. drag the VMDK/s to the XO Import UI

      1a1e946a-9aa9-4ce9-8ab2-d4575ea45bdb-image.png

      Thanks in advance

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

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

        I am using Xen Orchestra, commit eedac

        There have been many commits over the past 10 days. You should update to the latest commit and then retest.

        Also, your title says any VMDK. Hard to believe that you've tested every single VMDK that was ever created. 😉

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

          @Danp thanks I will update, and yeah, that was a tongue-in-cheek poke at the previous topic of " Problem with importing large VMDK disks" 🙂

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

            @Danp updated to Xen Orchestra, commit f7223 and still the same issue.

            I have inspected the UI console, in case this helps
            81670c88-1c79-4b59-862a-394c413462f5-image.png

            DanpD 1 Reply Last reply Reply Quote 0
            • 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
                                            • First post
                                              Last post