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

    Copy VM with new ID

    Scheduled Pinned Locked Moved Management
    8 Posts 4 Posters 265 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.
    • M Offline
      McHenry
      last edited by

      In Hyper-V when I export and import a VM I can assign a new ID
      e8efe8a8-2bac-4c7c-a1e9-9ce313e7b4fc-image.png

      In XO/XOA how can I copy a VM and assigned a new ID?

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

        Any export or import will create a new UUID. I'm not sure to understand exactly what do you need, functionally speaking?

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          McHenry @olivierlambert
          last edited by

          @olivierlambert

          I need a new ID for Active Directory, otherwise AD things both VMs are the same computer.

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

            I think there's a confusion somewhere. Can you define what are you talking exactly about the ID? Each VM has a unique ID in XCP-ng API (called UUID). It seems you are asking for something relative to Microsoft, inside the VM.

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

              What he is talking about is Security Identifier (SID) and is specific to Windows. Each Windows machine must have a unique SID in an AD environment. Cloned machines will have identical SID which is bad.

              The solution to this problem is sysprep, a Windows tool that will reset SID and other parameters so that each Windows installation is uniquely identifiable. This is something done inside a machine, of course, and is not something that can be done on HV level. VMware, and Hyper-V as seen here, have integrated support for invoking sysprep (or equivalent) during the machine cloning process. This is achieved by sending a signal to the management agent inside a machine (e.g. VMware Guest Tools).

              As far as I know, XenServer/XCP-ng management agent is rudimentary and does not have this functionality. In world of XenServer/XCP-ng, machine has to be syspreped manually before it is cloned.

              D 1 Reply Last reply Reply Quote 2
              • D Offline
                DustinB @bvitnik
                last edited by

                @bvitnik Yeah, sysprep is and isn't something that I would say the guest tools and hypervisor should know about... I understand why it's a "nice to have" function, but I personally think this falls to the sys-admin to address ahead of a change like this.

                B 1 Reply Last reply Reply Quote 0
                • B Offline
                  bvitnik @DustinB
                  last edited by

                  @DustinB While that may be true, the reality is that VMware and Microsoft have integrated such functionality in their virtualization products and it has become de facto standard. Users are expecting such functionality and taking it for granted. No one is bothering with sysprep any more. This is one of those things that makes the life much easier and which XenServer/XCP-ng should support to stay relevant in the market.

                  Maybe something can be done trough Cloudbase-Init? I have not delved into that.

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

                    Hi,

                    1. If you have support, you should create a ticket asking for the feature if you need. We don't have much request for that, but if nobody ask, it will never happen by chance 🙂
                    2. If you don't, you can still open an issue on our XCP-ng repo to ask for it, at least we'll have a trace of the request 🙂
                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post