trying to add dom0_mem=512M,max:512M into /etc/grub2.cfg

Rick Stevens ricks at alldigital.com
Tue Nov 27 17:30:39 UTC 2012


On 11/27/2012 08:54 AM, Jerome Yanga issued this missive:
> Hi!
>
> I would like to add "dom0_mem=512M,max:512M" into /etc/grub2.cfg.
> However, I know that /etc/grub2.cfg is automatically generated via the
> templates from /etc/grub.d and settings from /etc/default/grub. I need
> to make the entry similar to below.  Please guide me on how to go
> about this.
>
> title Xen 4.1.0 / pv_ops dom0 kernel 2.6.32.36
>          root (hd0,0)
>          kernel /xen-4.0.gz dom0_mem=512M,max:512M loglvl=all guest_loglvl=all
>          module /vmlinuz-2.6.32.36 ro root=/dev/sda2 console=hvc0
> earlyprintk=xen nomodeset
>          module /initrd-2.6.32.36.img
>
> Thank you in advance.

I think you edit /etc/default/grub and add:

	GRUB_CMDLINE_XEN_DEFAULT="dom0_mem=512M,max:512M"

to it. The template in /etc/grub.d/20_linux_xen uses that variable
as part of the command line generation. I won't swear to it as I haven't
done it, but it seems logical.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks at alldigital.com -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-         If this is the first day of the rest of my life...         -
-                        I'm in BIG trouble!                         -
----------------------------------------------------------------------


More information about the users mailing list