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

    Not enough server memory when start VM

    Scheduled Pinned Locked Moved Compute
    9 Posts 4 Posters 4.5k 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.
    • P Offline
      Paolo
      last edited by

      xcp-ng 8.2
      host server total memory: 64 GB
      host server available memory: 25.5 GB
      Already running VMs: 7
      Dom0 memory: 8 GB
      Dom0 top info:

      KiB Mem :  8110196 total,  5590192 free,   550848 used,  1969156 buff/cache
      KiB Swap:  1048572 total,  1048572 free,        0 used.  7355948 avail Mem
      

      VM memory parameters

      [11:50 host1 ~]# xe vm-param-list uuid=bc3a1a8e-1e64-fd0b-ecc8-ae8e1bd7a6e0 | grep " memory-"
                               memory-actual ( RO): 0
                               memory-target ( RO): 0
                             memory-overhead ( RO): 140509184
                           memory-static-max ( RW): 17179869184
                          memory-dynamic-max ( RW): 17179869184
                          memory-dynamic-min ( RW): 17179869184
                           memory-static-min ( RW): 1073741824
      

      When starting this VM with 16GB RAM (fixed) using with XCP-ng Center the following error is displayed:
      "not enough server memory is available to perform this operation"

      When starting the same VM with XOA the error is NO_HOSTS_AVAILABLE.

      I've tried to decrease the VM memory to 8 GB but the error persists.

      I think there is a lot of available memory...
      What i should check?

      Thanks.

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

        Can you do it from command line? xe vm-start uuid=bc3a1a8e-1e64-fd0b-ecc8-ae8e1bd7a6e

        P 1 Reply Last reply Reply Quote 0
        • P Offline
          Paolo @olivierlambert
          last edited by

          @olivierlambert Also from command line the VM cannot be started:

          [17:50 host1 ~]# xe vm-start uuid=bc3a1a8e-1e64-fd0b-ecc8-ae8e1bd7a6e0
          There are no suitable hosts to start this VM on.
          The following table provides per-host reasons for why the VM could not be started:
          
          host1    : Cannot start here [Not enough free memory]
          
          
          There were no servers available to complete the specified operation.
          
          1 Reply Last reply Reply Quote 0
          • DanpD Offline
            Danp Pro Support Team
            last edited by Danp

            Please post the output of xe host-list params=memory-free

            Also post the output of xe vm-compute-maximum-memory uuid=bc3a1a8e-1e64-fd0b-ecc8-ae8e1bd7a6e0 total=`xe host-list params=memory-free --minimal`

            1 Reply Last reply Reply Quote 0
            • P Offline
              Paolo
              last edited by

              [11:40 host1 ~]# xe host-list params=memory-free
              memory-free ( RO)    : 27513360384
              
              [11:40 host1 ~]# xe vm-compute-maximum-memory uuid=bc3a1a8e-1e64-fd0b-ecc8-ae8e1bd7a6e0 total=`xe host-list params=memory-free --minimal`
              27292336128
              

              Thanks for your help...
              & Merry Christmas to all XCP-ng community!

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

                I there any other host in the pool? Is it attached to the same SRs as all other VMs?

                1 Reply Last reply Reply Quote 0
                • P Offline
                  Paolo
                  last edited by

                  Hi Olivier,

                  The host is a single host (no other hosts in the pool) with local storage (EXT) only.
                  I've done some other tests:

                  • Tried to detach disks, re-create VM, re-attach disks: no success

                  • the VM starts if memory is reduced from 16GB to 10GB

                  • I've created a new VM (W2019 template) and the behaviour is the same: with 16GB memory the error is "not enought memory"; with 10GB the VM starts

                  • Starting one of the 10GB memory VM, no other VM can be started (also with only 1 GB memory)

                  It's like the host has lost 15GB of free memory...

                  SOLVED: Restarting Toolstack the problem is solved: now i can start 16GB VM and another 9GB VM to use all available memory (25,5 GB).

                  I'd be curious to know what happened...

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

                    Yeah that's weird. Like if XAPI was keeping wrong data on running VMs.

                    1 Reply Last reply Reply Quote 0
                    • I Offline
                      Intra1910
                      last edited by

                      Hello,

                      On a new server where I migrated about 15 VMs, same problem suddenly!

                      Thanks for the tip, the Restarting Toolstack worked!

                      (XCP-NG 8.2 / XCP-ng Center 20.04.01)

                      1 Reply Last reply Reply Quote 0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      • First post
                        Last post