<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 18, 2017 at 10:40 AM, Luca 'remix_tj' Lorenzetto <span dir="ltr"><<a href="mailto:lorenzetto.luca@gmail.com" target="_blank">lorenzetto.luca@gmail.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">Hello Joel,<br>
<br>
as far as i know, virt-sysprep has to be executed inside the VM before<br>
cloning it to template. This removes some infos from the VM like udev<br>
rules & ssh keys.<br>
<br></blockquote><div><br></div><div>So this has changed in 4.1. You can now choose to seal a template during its creation. This will take a VM, that may have not been sealed, create a template out of it and then invoke virt-sysprep on the template's disks.</div><div><br></div><div>Joel, in the 'make template' dialog you'll see a checkbox (at the bottom) for 'Seal Template' that will do the trick. There is also a 'seal' parameter in the REST-API, of course [1].</div><div><br></div><div>[1] <a href="https://github.com/oVirt/ovirt-engine-api-model/blob/master/src/main/java/services/TemplatesService.java#L168">https://github.com/oVirt/ovirt-engine-api-model/blob/master/src/main/java/services/TemplatesService.java#L168</a></div><div> </div><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">
<br>
Luca<br>
<div><div class="gmail-h5"><br>
On Wed, May 17, 2017 at 8:53 PM, Joel Diaz <<a href="mailto:mrjoeldiaz@gmail.com">mrjoeldiaz@gmail.com</a>> wrote:<br>
> Good afternoon ovirt users,<br>
><br>
> I'm new to ovirt. I've created templates in the past using this guide,<br>
> <a href="https://github.com/rharmonson/richtech/wiki/CentOS-7-1511-Minimal-oVirt-Template" rel="noreferrer" target="_blank">https://github.com/rharmonson/<wbr>richtech/wiki/CentOS-7-1511-<wbr>Minimal-oVirt-Template</a><br>
> .<br>
><br>
> I was going over the list of features and stumbled on to virt-sysprep.<br>
><br>
> <a href="http://www.ovirt.org/develop/release-management/features/virt-sysprep/" rel="noreferrer" target="_blank">http://www.ovirt.org/develop/<wbr>release-management/features/<wbr>virt-sysprep/</a><br>
><br>
> <a href="http://libguestfs.org/virt-sysprep.1.html" rel="noreferrer" target="_blank">http://libguestfs.org/virt-<wbr>sysprep.1.html</a><br>
><br>
> How can I use virt-sysprep from within ovirt to create templates?<br>
><br>
> Thank you for your help,<br>
><br>
> Joel<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> Joel<br>
><br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> Users mailing list<br>
> <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
> <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
><br>
<br>
<br>
<br>
--<br>
"E' assurdo impiegare gli uomini di intelligenza eccellente per fare<br>
calcoli che potrebbero essere affidati a chiunque se si usassero delle<br>
macchine"<br>
Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)<br>
<br>
"Internet è la più grande biblioteca del mondo.<br>
Ma il problema è che i libri sono tutti sparsi sul pavimento"<br>
John Allen Paulos, Matematico (1945-vivente)<br>
<br>
Luca 'remix_tj' Lorenzetto, <a href="http://www.remixtj.net" rel="noreferrer" target="_blank">http://www.remixtj.net</a> , <<a href="mailto:lorenzetto.luca@gmail.com">lorenzetto.luca@gmail.com</a>><br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
</blockquote></div><br></div></div>