<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 1, 2015 at 9:42 AM, Shahar Havivi <span dir="ltr">&lt;<a href="mailto:shaharh@redhat.com" target="_blank">shaharh@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On <a href="tel:01.12.15%2009" value="+3901121509">01.12.15 09</a>:03, Gianluca Cecchi wrote:<br>
&gt; Hello,<br>
&gt; is it correct that even if I use cloud-init I have to seal my candidate VM<br>
&gt; before making it a template?<br>
</span>Well it depend,<br>
If you have a common initialization you can run cloud-init before sealing the<br>
template, its more reasonable to create a template and run cloud-init on each<br>
VM that created from this template.<br>
<span class="">&gt; In that case what is the correct approach to pre-seal a CentOS 7 VM?<br>
&gt; Also, for operating system like Fedora &gt;=20 and/or RHEL/CentOS 7 should I<br>
&gt; unconfigure NetworkManager before sealing them, using classic network<br>
&gt; service, or what?<br>
</span>Yes the NetworkManager can override cloud-init network settings.<br>
&gt;<br><br></blockquote><div><br></div><div>OK, I&#39;m trying using classic network instead of NetworkManager.</div><div>But right before running the &quot;make template&quot; action, do I have to run any of &quot;sys-unconfig&quot; and/or &quot;virt-sysprep&quot; tools?</div><div><br></div><div>- sys-unconfig</div><div>I see in its man page:</div><div>&quot;This utility should not be used for creating cloud or virtual machine images.  For  that  use  please see virt-sysprep&quot;</div><div>Does this note apply also in my scenario where I want to seal a VM in oVirt before making a template from it?</div><div><br></div><div>- virt-sysprep</div></div>It should be run &quot;out of band&quot; against a disk of a powered off VM if I understood correctly. </div><div class="gmail_extra">Is it applicable in my case with oVirt and a disk that actually is on a storage domain? </div><div class="gmail_extra">It seems more applicable in a plain Qemu?KVM environment...</div><div class="gmail_extra"><br></div><div class="gmail_extra">It remains open the question about how to properly seal a RHEL 7 / CentOS 7 VM/OS.</div><div class="gmail_extra">Thanks,</div><div class="gmail_extra">Gianluca</div></div>