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

    [XCP-ng Center] Enhancement: Add force option to migrate dialog

    Scheduled Pinned Locked Moved Development
    5 Posts 3 Posters 2.4k Views 2 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.
    • borzelB Offline
      borzel XCP-ng Center Team
      last edited by

      I'm on the way to implement a option to force the migration of VMs.

      We need someone, who has the possibility to test with this special case:

      • two single XCP-ng hosts
      • their CPU-Features should differ
      • the "Migrate to Server" context menu shows: The host does not have some of the CPU features that the VM is currently using

      Details are here: https://github.com/xcp-ng/xenadmin/issues/66#issuecomment-405051703

      igerlster created this issue in xcp-ng/xenadmin

      closed Add Force checkbox to Live Migrate Dialog #66

      1 Reply Last reply Reply Quote 0
      • fx991F Offline
        fx991
        last edited by fx991

        This is a quite ancient thread, but I'm answering anyway.

        I've done some tests with the Force-Migration Wizard in XCP-NG 8.1.

        Expected/Desired behaviour:

        VM is running during migration and after migration. Reboot is done after migration had finished, to activate the new cpu feature mask.

        In no case it worked as desired. The outcomes of the tries:

        • the vm crashed, was halted on source server
        • the migration was logged as successful, but the vm was halted on the target server

        I have 3 different cpu models, with which I tested Force-Migration:

        • Intel(R) Xeon(R) CPU E5506 @ 2.13GHz (oldest)
        • Intel(R) Xeon(R) CPU E5620 @ 2.40GHz
        • Intel(R) Xeon(R) CPU E5-2643 v2 @ 3.50GHz(newest)

        Maybe this feature is only useful, if the cpu features differ only very slightly?

        1 Reply Last reply Reply Quote 0
        • G Offline
          guiltykeyboard
          last edited by

          @fx991 You cannot live-migrate between hosts with processors that have different instruction sets.

          You would have to shut down the VM and then migrate it and then power it back on after migration completes.

          The E5506 and E5620 have similar instruction sets but the E5506 does not support hyperthreading or AES instructions, so there are some differences here.

          The E5-2643 v2 is completely different.

          If you power off your VM and then migrate it, it should be fine. From what I understood from your post you tried to live-migrate it and then reboot it after it had migrated and run into issues, which I would expect to happen.

          1 Reply Last reply Reply Quote 1
          • fx991F Offline
            fx991
            last edited by fx991

            In the github issue referenced above, I read:

            live migration from e.g. xeon v3 to xeon v4 fails because of cpu mismatch.. xe vm-migrate command line with force it mostly works fine...

            Ok. It seems to be like If you checked it to work manually you can force it

            G 1 Reply Last reply Reply Quote 0
            • G Offline
              guiltykeyboard @fx991
              last edited by

              @fx991 Mostly fine means that you may run into issues. Just shut down your VM and restart it on the new host.

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