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

    Any secret to migrating Win2012R2 from Hyper-V

    Scheduled Pinned Locked Moved Compute
    5 Posts 2 Posters 1.3k Views 1 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
      Ascar
      last edited by

      Hello, everybody.

      Please help with advice. I am currently migrating virtual machines from Hyper-V. I have been able to move all Linux machines without trouble. Windows Server 2008 migration also worked without a hitch.

      Windows Server 2012R2 is giving me trouble. This is my sequence of action:

      1. Stopped the source VM on Hyper-V
      2. Removed all integrations
      3. Converted the hard disk to VHD
      4. Generated UUID and renamed the hard disk.
      5. Uploaded the file to the target XCP host.
      6. Created new disk-less VM
      7. Attached the uploaded hard disk and started the VM.

      Unlike all other machines this one says there is hard disk, but there is no bootable device. I tried booting off the DVD and running bootsec /fixboot and bootsec /fixmbr commands, however this did not help.

      What else can I do to fix the boot issue?

      Thanks very much

      2020-09-28_114150.png

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

        This is not the best way to do it.

        You need to upload the VHD via Xen Orchestra, not putting it directly into the XCP-ng SR. In general, don't try to bypass XAPI, it's NOT a good idea.

        Also, what kind of template did you use when you created the diskless VM on XCP-ng? Double check there's no discrepancy, I have the feeling it might be related to UEFI vs BIOS.

        1 Reply Last reply Reply Quote 0
        • A Offline
          Ascar
          last edited by

          I agree about the best practices like using XO, however I am at an initial stage and I need to get a few things done before delving into the Orchestra 👍

          Thanks for the UEFI suggestion, let me try that.

          Thank you very much.

          1 Reply Last reply Reply Quote 0
          • A Offline
            Ascar
            last edited by Ascar

            There is no discrepancy between the OS in the VM and the template I used. My operating system is Windows Server 2012R2. I chose the corresponding template. However I noticed now, when re-creating the VM, that when this template is selected - the UEFI options are grayed out.

            So, what I did now - I made a new VM and selected 'Other Install Media'. UEFI was selectable - I chose UEFI and to boot over network and made a diskless machine. Before powering it up I attached the disk and voila - the machine came up!

            Thank you for your hunch

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

              That's because UEFI is almost by default on HyperV since longer in XenServer/XCP-ng. When Windows 2012R2 was out, only BIOS was available on XenServer. So they put the template using UEFI.

              Again, with Xen Orchestra, you should have been able to enable UEFI with it.

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