Skip to content

# Setting max memory of a Xen Dom0

I’ve had some issues with Xen crashing when I wanted to create a DomU for which the Dom0 had to shrink (see bug report). Therefore, it’s better to force a memory limit on the dom0. That is done with a kernel param.

Add this to /etc/default/grub:

# Start dom0 with less RAM
GRUB_CMDLINE_XEN_DEFAULT="dom0_mem=512M"

And make sure you disabling ballooning of dom0 in /etc/xen/xend-config.sxp:

(enable-dom0-ballooning no)

Then run update-grub2 and reboot.

## 5 Comments( Add comment / trackback )

1. Comment by Rowan Rodrik
On November 28, 2011 at 21:29

Dude, I recall you saying at some time that it’d be impossible to beat my post count, because I had such a big head start… Well, a few posts ago, you did. Just sayin’. 😉

2. Comment by Gabriel
On February 15, 2012 at 01:32

neat, this was the piece of the puzzle that was missing on my setup.

I’ve disabled dom0 ballooning entirely to try and avoid resizing crash issues (what a bad bug ..) but the dom0 was then taking all the available space for itself and wouldn’t let it go for VMs.

now it’s restricted to 500Mb and the rest is available to domUs.

thanks for your post!

3. On Feb 28, 2013 at 14:45

[…] (network-script network-bridge) (dom0-min-mem 196) (dom0-cpus 0) (vnc-listen '127.0.0.1') (vncpasswd '') (Also, don’t forget to disable ballooning and setting a max memory.) […]

4. On Aug 23, 2015 at 19:34

http://www.tricor-verpackungen.de/wp-rss.php?fussballbekleidung/underwear/kurzarm/puma-tb-shortsleeve-shirt-rot-f01.html,http://www.tricor-verpackungen.de/wp-rss.php?fussballbekleidung/underwear/kurzarm/puma-tb-shortsleeve-shirt-rot-f01.html

NORTHWOOD (70)High school golf: Northwood, Elkhart Cent of Manolo Blahnik shoes is enough to make even the most put together woman go a bit crazy! He, alonecause of concerns its players would wear T shirts printed with the words “I Can’t Breathe” du…

5. On Oct 17, 2015 at 17:52

http://www.producteursdemaregion.com/_error.php?stores/realmadrid/fr/products/kitselector/home-kit-15-16/maillot-domicile-du-real-madrid-2015-2016-pour-enfants,avec-imprim%25C3%25A9-isco%25C2%25A023/1012987

If the puzzle is full of larger pictures or different colors > Sort into Populn to wed Oct. 12. In this Aug. 13, 2014 photograph, Will Brooks, a student points at a computer screle merchandise is marked an additional 50 percent off on Black Friday. Jam…