<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-IN link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Also I wanted to point out that is there a particular reason for adding :<o:p></o:p></span></p><p class=MsoNormal>max:1024M<span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>In CentOS 5 the max is not set by default. Many users who later want to increase the Dom-0 memory for VM creation or other reasons are unable to do so as the Max mem is set to 1024M.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Regards,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Pulkit Gupta<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> centos-virt-bounces@centos.org [mailto:centos-virt-bounces@centos.org] <b>On Behalf Of </b>PJ Welsh<br><b>Sent:</b> 03 October 2014 11:39 PM<br><b>To:</b> Discussion about the virtualization on CentOS<br><b>Subject:</b> Re: [CentOS-virt] Automate running grub-bootxen.sh for kernel installs in Xen4CentOS<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><div><div><p class=MsoNormal style='margin-bottom:12.0pt'>Sounds consistent to existing precedence (like selinux).<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>Thanks!<o:p></o:p></p></div><p class=MsoNormal>PJ<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On Fri, Oct 3, 2014 at 5:57 AM, Johnny Hughes <<a href="mailto:johnny@centos.org" target="_blank">johnny@centos.org</a>> wrote:<o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>We need a way to do two things to /usr/bin/grub-bootxen.sh in Xen4CentOS.<br><br>1. Automate running it if xen (the package) and the xen kernel are<br>installed. But only if the user WANTS to run it.<br><br>2. Allow users to automatically modify the variables passed into the<br>xen.gz line (that is, more or less memory, add console settings, etc.)<br>If you look at the current script, "--mbargs=dom0_mem=1024M,max:1024M<br>loglvl=all guest_loglvl=all" is hard coded in as the only option for the<br>xen.gz line.<br><br>While doing that we also still want to preserve the ability to run that<br>kernel in other places than just for xen dom0 setups.<br><br>Here is how I propose we do that.<br><br>Currently the /usr/bin/grub-bootxen.sh file is in centos-release-xen ...<br>that is a good place as it allows us to use a different file in<br>different major versions of CentOS (so the file in 7 can be different<br>than the file in 6, but still use the same auxiliary files, etc).<br><br>So, what we can do is setup a file in /etc/sysconfig/ (probably from the<br>xen package) that we call xen-boot or xen-kernel, etc. In this file we<br>put some variables like these:<br><br>BOOT_XEN_AS_DEFAULT="yes"<br><br>XEN_KERNEL_MBARGS="--mbargs=dom0_mem=1024M,max:1024M loglvl=all<br>guest_loglvl=all"<br><br>Then we look for that file (/etc/sysconfig/xen-boot) as a post-install<br>from the xen kernel. If the file exists, we source it ... an if<br>BOOT_XEN_AS_DEFAULT is yes, and if /usr/bin/grub-bootxen.sh exists we<br>run it passing in XEN_KERNEL_MBARGS as a variable.<br><br>The user can set BOOT_XEN_AS_DEFAULT to no if they want, so they do not<br>get a xen kernel entry in their grub config.<br><br>That should mean that if either there is no '/etc/sysconfig/xen-boot'<br>config file OR if '/usr/bin/grub-bootxen.sh' does not exist, we get only<br>the standard kernel entry .. but if they do exist, we also get a user<br>modifiable xen.gz kernel entry as well.<br><br>Also, we should likely use the centos-release-xen package to handle the<br>'/etc/sysconfig/xen-boot' file as well, since it already has the<br>/usr/bin/grub-bootxen.sh script.<br><br>Thoughts?<br><br><br><br><br>_______________________________________________<br>CentOS-virt mailing list<br><a href="mailto:CentOS-virt@centos.org">CentOS-virt@centos.org</a><br><a href="http://lists.centos.org/mailman/listinfo/centos-virt" target="_blank">http://lists.centos.org/mailman/listinfo/centos-virt</a><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>