<div dir="ltr"><div><div>On Tue, Apr 8, 2014 at 2:24 PM, Nux! &lt;<a href="mailto:nux@li.nux.ro">nux@li.nux.ro</a>&gt; wrote:<br>&gt;<br>&gt; Hello,<br>&gt;<br>&gt; While the Cloud SIG is still being established, let&#39;s get to actual<br>
&gt; work and think of a set of features for a CentOS cloud template.<br>&gt; I am referring here to VMs, not containers (e.g. docker).<br>&gt;<br>&gt; This is how I see it so far, please feel free to come with<br>&gt; suggestions/comments/questions.<br>
&gt;<br>&gt; A - Single partition for simplicity (and lack of good arguments against<br>&gt; it)<br><br></div>I was wondering about LVM. It makes reconfiguration much easier (like adding swap). But growroot doesn&#39;t support LVM.<br>
<br><div><br>&gt;      - dracut-modules-growroot included so the template partition will<br>&gt; expand to match target, cloud-init in charge of resize2fs<br><br></div><div>Only required for kernel &lt; 3.8. Later kernels can do online partition resizing (handled by cloud-init post initrd).<br>
</div><div><br><br>&gt; B - To swap or not to swap?<br><br></div><div>Some service providers charge for disk IOs and nobody wants to pay for swap activity, so I vote against swap.<br><br></div><div><br>&gt; C - &quot;tuned-adm profile virtual-host&quot; which translates to:<br>
&gt;      - kern.sched_min_granularity_ns 10ms<br>&gt;      - kernel.sched_wakeup_granularity_ns 15ms<br>&gt;      - vm.dirty_ratio 40%<br>&gt;      - vm.swappiness 30<br>&gt;      - IO scheduler &quot;deadline&quot;<br>&gt;      - fs barriers off<br>
&gt;      - CPU governor &quot;performance&quot;<br>&gt;      - disk readahead 4x<br><br></div><div>Where do these come from? What&#39;s the rational?<br><br></div><div><br>&gt; D - tso and gso off on the network interfaces <a href="http://s.nux.ro/gsotso">http://s.nux.ro/gsotso</a><br>
<br></div><div>These seem to be settings on the host, not the guest.<br><br></div><div><br>&gt; E - network interface remapping (75-persistent-net-generator.rules, BZ<br>&gt; 912801)<br><br></div><div>Not authorized to access that bug.<br>
</div><div><br><br>&gt; F - Selinux on. Do we relabel for uniqueness? Seen small VMs run out of<br>&gt; memory while relabelling..<br></div><br></div>Ack.<br><br><br><div><div>&gt; G - PERSISTENT_DHCLIENT=&quot;1&quot; (BZ 1011013)<br>
<br>Ack.<br><br><br>&gt; H - Bundle all the paravirt drivers in the ramdisk<br>&gt; (virtio/xen/vmware/hyperv) so the same image can boot everywhere?<br><br></div><div>Seems reasonable. What&#39;s the impact on the initrd size?<br>
<br></div><div><br>&gt; I - Per &quot;stack&quot; requirements (e.g. cloudstack relies a lot on root user<br>&gt; and password logins, openstack tends not to, SSH key only logins etc<br>&gt; etc)<br><br></div><div>Can we have a single image that fits all the different requirements?<br>
</div><div><br><br>&gt; That&#39;s about all that crosses my mind for now.<br><br></div><div>K - No firwall. Handled by the service provider.<br><br></div><div>L - Timezone is set to UTC, Hostname is set to &#39;centos&#39;, lang is en_US.UTF-8, keyboard is us (or whatever you guys think makes sense).<br>
<br></div><div>M - NOZEROCONF=yes<br><br></div><div>N - Along with the image, we&#39;ll also provide md5/sha1/sha256 checksums, gpg signed files and a manifest (list of installed packages and their versions).<br></div><div>
<br></div><div><br></div><div>...Juerg<br><br></div><div><br>&gt; Thoughts?<br>&gt;<br>&gt; Lucian<br>&gt;<br>&gt; --<br>&gt; Sent from the Delta quadrant using Borg technology!<br>&gt;<br>&gt; Nux!<br>&gt; <a href="http://www.nux.ro">www.nux.ro</a><br>
&gt; _______________________________________________<br>&gt; CentOS-devel mailing list<br>&gt; <a href="mailto:CentOS-devel@centos.org">CentOS-devel@centos.org</a><br>&gt; <a href="http://lists.centos.org/mailman/listinfo/centos-devel">http://lists.centos.org/mailman/listinfo/centos-devel</a><br>
<br></div></div></div>