Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How to limit xen dom0 RAM to a certain amount?

When there was grub1 and a grub.cfg, I knew how, just add to the kernel options there.

Now I have no clue. I have tried setting GRUB_CMDLINE_LINUX_DEFAULT="nomodeset dom0_mem=640M,max:640M" in /etc/default/grub but no effect, dom0 still uses all RAM.

share|improve this question
add comment

1 Answer

The line you have to add in /etc/default/grub is:

GRUB_CMDLINE_XEN_DEFAULT="dom0_mem=min:640M,max:640M"

and:

update-grub
reboot
share|improve this answer
    
and also set (dom0-min-mem 640) in /etc/xen/xend-config.sxp –  milan Sep 16 '13 at 15:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.