Categories
SysOps

How to define control domain memory inside XCP-ng

Define control domain memory inside XCP-ng.

Get current control domain memory definition.

$ sudo /opt/xensource/libexec/xen-cmdline --get-xen dom0_mem
dom0_mem=1840M,max:1840M

Define control domain memory.

$ sudo /opt/xensource/libexec/xen-cmdline --set-xen dom0_mem=1024M,max:1024M

Reboot operating system to apply changes.

$ sudo reboot

Verify settings.

$ sudo /opt/xensource/libexec/xen-cmdline --get-xen dom0_mem
dom0_mem=1024M,max:1024M

You can also use Xen Orchestra Web Interface for XenServer to alter control domain memory.