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"
March 8th, 2008 - 20:20
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
March 9th, 2008 - 00:58
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
July 22nd, 2008 - 12:10
I need to restart domU after using “mem-max” and “mem-set” so that it can see additional memory – is it normal?
July 22nd, 2008 - 14:18
hi sileNT,
Yes that’s correct, you need to restart the guest to apply the changes.
December 16th, 2008 - 21:17
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!