<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"><<a href="mailto:shaharh@redhat.com" target="_blank">shaharh@redhat.com</a>></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>
> Hello,<br>
> is it correct that even if I use cloud-init I have to seal my candidate VM<br>
> 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="">> In that case what is the correct approach to pre-seal a CentOS 7 VM?<br>
> Also, for operating system like Fedora >=20 and/or RHEL/CentOS 7 should I<br>
> unconfigure NetworkManager before sealing them, using classic network<br>
> service, or what?<br>
</span>Yes the NetworkManager can override cloud-init network settings.<br>
><br><br></blockquote><div><br></div><div>OK, I'm trying using classic network instead of NetworkManager.</div><div>But right before running the "make template" action, do I have to run any of "sys-unconfig" and/or "virt-sysprep" tools?</div><div><br></div><div>- sys-unconfig</div><div>I see in its man page:</div><div>"This utility should not be used for creating cloud or virtual machine images. For that use please see virt-sysprep"</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 "out of band" 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>