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

    Solved - Migrating from Hyper-V to XCP-NG and guests not booting their VHDs

    Scheduled Pinned Locked Moved Solved Migrate to XCP-ng
    8 Posts 3 Posters 567 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.
    • D Offline
      DonZalmrol
      last edited by DonZalmrol

      Hi all,

      Looking into migrating from Hyper-V to XCP-NG and followed the official migration guide. I have a healthy mix between Microsoft and Linux guests. And starting with my low priority Linux guests as a test-move.

      So what I did for my current (Linux) guests of my Hyper-V server is (HP DL380 Gen9):

      1. Stopped the guest
      2. Exported the VM to my Windows host
      3. Converted the VHDX to VHD

      Then on my XCP-NG Host (HP DL380 Gen9) that is using thin-provisioning (EXT):

      1. Imported the VHD
      2. Created the new guest in XCP-NG using the correct template and attached no (new) disk
      3. Waited for the upload to complete
      4. Attached the uploaded VHD to the correct guest
      5. Booted
      6. Stuck on boot (no progress in either BIOS or UEFI mode)

      The conversion methods I've used were the build-in converter of Hyper-V (VHDX -> VHD with dynamic option set, existing VHDXs are already dynamic to save on storage cost/size).

      When I've noticed that didn't worked, tried the Solarwinds converter as suggested on many topics. Unfortunately the same result.
      Probably doing something wrong, but the logs don't seem to output any error at all.

      Anyone any ideas? Probably I'm missing something

      Thanks!

      Boot error UEFI
      Guest settings 1
      Guest settings 2
      Guest settings 3

      PS: I have 1 guest working without any issues by doing the same steps as I've described. The other 2 guests will simply not boot.

      R 1 Reply Last reply Reply Quote 0
      • D Offline
        DonZalmrol @rtjdamen
        last edited by

        @rtjdamen Bingo!

        A friend of mine suggested the same, tried to first do an online repair on my Hyper-V host.
        When that failed, I finally tried it in XCP-NG and loaded the Windows disk, started the repair and that solved it!

        R 1 Reply Last reply Reply Quote 1
        • R Offline
          rtjdamen @DonZalmrol
          last edited by

          @DonZalmrol what is the exact issue u run into? Are u running into an import error or do you see issues with booting the guest?

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

            Also, do you identify any difference between the working imported guest and the "broken" ones?

            1 Reply Last reply Reply Quote 0
            • D Offline
              DonZalmrol
              last edited by

              Seems it was an issue with one guest, the others imported and ran fine. Very odd issue! Might be a Windows issue as I'm experiencing the same in Proxmox as I'm currently testing out both hypervisors atm.

              Besides some spec differences, not much between the machines, it's a mix of Windows and Linux machines.

              In Proxmox however I'm getting a bit more output followed by BSODs that mention "system thread exception not handled" and "page fault in nonpaged area" when trying to "repair" the OS by injecting the VirtIO drivers, upon loading startup repair it simply BSODs.

              R 2 Replies Last reply Reply Quote 0
              • R Offline
                rtjdamen @DonZalmrol
                last edited by

                @DonZalmrol maybe you have an corruption inside the disk?

                D 1 Reply Last reply Reply Quote 0
                • R Offline
                  rtjdamen @DonZalmrol
                  last edited by

                  @DonZalmrol i was just thinking, could it be there is anything left from vm tools or drivers? I know we had this kind of issues when vmware tools were installed (they should not be if u use hyperv), maybe something to check.

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    DonZalmrol @rtjdamen
                    last edited by

                    @rtjdamen Bingo!

                    A friend of mine suggested the same, tried to first do an online repair on my Hyper-V host.
                    When that failed, I finally tried it in XCP-NG and loaded the Windows disk, started the repair and that solved it!

                    R 1 Reply Last reply Reply Quote 1
                    • R Offline
                      rtjdamen @DonZalmrol
                      last edited by

                      @DonZalmrol good to hear! Another good migration solved!

                      1 Reply Last reply Reply Quote 1
                      • olivierlambertO olivierlambert marked this topic as a question on
                      • olivierlambertO olivierlambert has marked this topic as solved on
                      • First post
                        Last post