User Tools

Site Tools


Sidebar

unix:virtualization:xen:dom0

Xen DOM0

Limit DOM0 memory

At times, the DOM0 will attempt to grab all RAM and make it where no virtuals can exist. There may be other reasons to limit the amount of memory available to the DOM0, though I generally like to give it a bunch so it can cache things.

However, you can limit the amount of memory the DOM0 can have by adding the following to /etc/default/grub

default_grub
# Limit DOM0 memory to 4096M (4G) and allow to grow to 16384M (16G) if possible
GRUB_CMDLINE_XEN_DEFAULT="dom0_mem=4096M,max:16384M"

After you have added this, you need to update your grub install with the following command.

update-grub2

DOM0 and UEFI

I have run into some serious issues trying to get a DOM0 to boot with UEFI. A fresh Devuan (Debian) install works just fine, then when the Xen kernel is brought up, the boot fails. I don't remember the exact issue, but it has been around for several years.

The article at https://wiki.xenproject.org/wiki/Xen_EFI describes how to build a custom kernel.

However, I my fix is to simply set the server to boot into legacy BIOS mode. As long as that is an option, it appears to be better for the time being.

unix/virtualization/xen/dom0.txt · Last modified: 2020/02/19 14:39 by rodolico