V-TEK Weblog about webdevelopment and linux

21Oct/075

increasing / decreasing memory Xen guests

This week I am planning to finish my VPS Manager project for XXL Webhosting. It's a project that consists of a webapplication that talks to Xen dom0 machines and their domU instances ( xen guests ). While I was busy programming and trying to raise the memory of one of my Xen test domU's I ran upon the error :

Error: memory_dynamic_max must be less than or equal to memory_static_max

Ok, memory_dynamic_max and memory_static_max was something I haven't seen anywhere in Xen before so I searched a bit on the internet for a solution and found out that the solution is:

First set the memory maximum using "xm mem-max domain memory" and then raise the memory using "xm mem-set domain memory"

Filed under: Software Leave a comment
Comments (5) Trackbacks (0)
  1. If the domain does not yet exist, your syntax fails.
    I’m trying to create a CentOS 5.1 domU inside an Ubuntu host. I have fsck-tons of RAM. xm list shows:
    Domain-0 0 3761 2 r—– 261.1

  2. Your absolutely right, I wrote this while trying to raise the memory while the domain was running ( to prevent it first being shutdown ). If the domain does not yet exist, you could simply change the amount of memory changing the configuration file

  3. I need to restart domU after using “mem-max” and “mem-set” so that it can see additional memory – is it normal?

  4. hi sileNT,

    Yes that’s correct, you need to restart the guest to apply the changes.

  5. Thanks very much for posting this. I love being able to blindly post an error message into google and read a blog post that tells me what I’m doing wrong! :-)


Leave a comment


No trackbacks yet.