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

    Unable to MIgrate VDI when host is low on free memory

    Scheduled Pinned Locked Moved Compute
    15 Posts 4 Posters 198 Views 4 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.
    • H Offline
      hitechhillbilly @olivierlambert
      last edited by

      @olivierlambert I do not.

      1 Reply Last reply Reply Quote 0
      • H Offline
        hitechhillbilly @nikade
        last edited by

        @nikade I am trying to move the VDI from one storage SR to another on the same host. This is not in a cluster. This is a standalone host.

        nikadeN 1 Reply Last reply Reply Quote 0
        • nikadeN Offline
          nikade Top contributor @hitechhillbilly
          last edited by

          @hitechhillbilly said in Unable to MIgrate VDI when host is low on free memory:

          @nikade I am trying to move the VDI from one storage SR to another on the same host. This is not in a cluster. This is a standalone host.

          Alright, check the /var/log/SMlog as well as /var/log/xensource to see whats going on, you'll find an error there.

          1 Reply Last reply Reply Quote 0
          • bvitnikB Offline
            bvitnik @hitechhillbilly
            last edited by

            @hitechhillbilly I'd say this is normal if you are low on RAM and you are doing a live VDI migration. XCP-ng requires some amount of free RAM on the host to be able to live migrate the VDI. The larger the VDI, the more RAM is needed but exact sizing is unknown to me. I've encountered this error numerous times so I consider it common.

            The way around this is to shutdown the VM and then migrate the VDI. RAM requirements in that case are much much lower.

            nikadeN 1 Reply Last reply Reply Quote 0
            • nikadeN Offline
              nikade Top contributor @bvitnik
              last edited by

              @bvitnik said in Unable to MIgrate VDI when host is low on free memory:

              @hitechhillbilly I'd say this is normal if you are low on RAM and you are doing a live VDI migration. XCP-ng requires some amount of free RAM on the host to be able to live migrate the VDI. The larger the VDI, the more RAM is needed but exact sizing is unknown to me. I've encountered this error numerous times so I consider it common.

              The way around this is to shutdown the VM and then migrate the VDI. RAM requirements in that case are much much lower.

              Yea, I suggested giving dom0 16Gb. That was our standard sizing back in the days and it worked pretty well.

              bvitnikB 1 Reply Last reply Reply Quote 0
              • bvitnikB Offline
                bvitnik @nikade
                last edited by

                @nikade This is not related to Dom0 RAM. It's related to the host RAM.

                nikadeN 1 Reply Last reply Reply Quote 0
                • nikadeN Offline
                  nikade Top contributor @bvitnik
                  last edited by

                  @bvitnik said in Unable to MIgrate VDI when host is low on free memory:

                  @nikade This is not related to Dom0 RAM. It's related to the host RAM.

                  Could you please explain the difference between the term dom0 and host?
                  I havent been using xcp-ng professionaly for a while, but back when we were using it dom0 actually represented the "host" and it was also running all the management tools and services, hence why it some times needed a bit more ram.

                  Not really sure if there's some kind of caching involved when it is handling the VHD, but we went from a 50/50 chance of succeeding with a vdi migration to something near 90% after giving dom0 16Gb ram. The only exception was bigger VDI's, those kept on failing.

                  bvitnikB 1 Reply Last reply Reply Quote 0
                  • bvitnikB Offline
                    bvitnik @nikade
                    last edited by

                    @nikade said in Unable to MIgrate VDI when host is low on free memory:

                    Could you please explain the difference between the term dom0 and host?

                    This is what I mean:

                    ae06dd02-1c5c-44cb-acb0-484503864c6c-image.png

                    Dom0 is not "the host". It contains a management layer for the host but in reality it is just another VM, highly specialized one but stil just a VM. It does not see host's RAM as it's own.

                    nikadeN 1 Reply Last reply Reply Quote 1
                    • nikadeN Offline
                      nikade Top contributor @bvitnik
                      last edited by

                      @bvitnik Thanks for explaining, I was always under the impression that dom0 was the "host" so to say.

                      bvitnikB 1 Reply Last reply Reply Quote 0
                      • bvitnikB Offline
                        bvitnik @nikade
                        last edited by

                        @nikade You can even see that Dom0 VM has 16 vCPUs and host has 40 CPUs, in my case anyway. So Dom0 sees just some chunk of host resources.

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