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

    Migrate from XenServer GuestTools to XCP-ng GuestTools

    Scheduled Pinned Locked Moved Migrate to XCP-ng
    4 Posts 2 Posters 27 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.
    • C Online
      Chemikant784
      last edited by

      Hello everyone

      I'd like to get your opinion.

      It's about migrating from Citrix GuestTools to XCP-ng GuestTools.

      The VMs have driver updates enabled via Windows Update.

      According to the instructions at https://docs.xcp-ng.org/vms/#fully-removing-xen-pv-drivers-with-xenclean, Windows driver updates should be disabled.

      If this is done before XenClean, the IP configuration is lost in my tests because the network device switches from XenServer PV to the
      emulated device.

      The following procedure worked for me. The IP address was always retained. However, three reboots are required:

      1. Create a VM snapshot
      2. Uninstall Citrix XenServer Tools using a script (XenClean.ps1)
        a. VM restarts automatically
      3. Network check -> IP address correct
      4. Shut down VM
      5. Disable automatic driver updates for the VM via Windows Update
      6. Restart VM
      7. Network check -> IP address correct
      8. Attempt to install XCP-ng drivers
        a. Errors may occur because the vendor device might still be active. In this case, run XenClean.ps1 again to uninstall it.
        b. Uninstall Citrix XenServer Tools using the script (XenClean.ps1)
        i. VM restarts automatically
      9. Network check -> IP address correct
      10. Install XCP-ng Tools
      11. Reboot when prompted
      12. Network check -> IP address correct

      Point 8 is critical. The XCP-ng GuestTools cannot be installed at this time because the vendor device for driver updates is still detected and has to be uninstalled first.

      What do you think? Is there a better way, perhaps with only two reboots, while keeping the IP address the same?

      I find it important to take over the IP address, as otherwise it temporarily reverts to DHCP, which can cause problems with the running server services.

      I also tried disabling Windows Updates first and then running XenClean. However, XenClean doesn't then take over the original IP address of the XenServer PV adapter.

      Thanks for your opinions or experiences.

      D 1 Reply Last reply Reply Quote 0
      • D Offline
        dinhngtu Vates 🪐 XCP-ng Team @Chemikant784
        last edited by

        @Chemikant784 I've been preparing a reworked XenClean and XCP-ng driver onboarding tool here. Every time the onboard.ps1 script is run, it'll try to automatically uninstall old drivers and install the XCP-ng as conditions permit: https://nextcloud.vates.tech/index.php/s/eL4sfxQGxZXe8SX

        The Windows Update device is quite stubborn since disabling it causes the problem as you said. Could you try the following procedure:

        • Keep the Windows Update option enabled
        • Block installation of the PCI\VEN_5853&DEV_C000 device using the "Prevent installation of devices that match any of these device IDs" setting
        • Run XenClean
        • Turn off the Windows Update option
        • Install XCP-ng drivers

        Getting rid of the Windows Update device is quite cumbersome... I'll look for a way to automate this

        C 1 Reply Last reply Reply Quote 0
        • C Online
          Chemikant784 @dinhngtu
          last edited by

          @dinhngtu Hi dinhngtu, thank you for your answer. I will try this out and report back later with any findings about this procedure.

          C 1 Reply Last reply Reply Quote 0
          • C Online
            Chemikant784 @Chemikant784
            last edited by Chemikant784

            I've managed to test it as you suggested.

            The IP address was retained throughout the entire process. But the installer of XCP-ng Tools still detects an incompatible device and asks to run XenClean again. The "Prevent installation of devices that match any of these device IDs" Policy was set as instructed.

            This procedure has required four reboots. (1st XenClean, 2nd manual shutdown to disable Windows Update option, 3rd XenClean and 4th install XCP-ng tools)

            Theoretically, there should be one final step to remove the PCI\VEN_5853&DEV_C000 device from the policy, just to avoid future problems.

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