
Good afternoon ovirt users, I'm new to ovirt. I've created templates in the past using this guide, https://github.com/rharmonson/richtech/wiki/CentOS-7-1511-Minimal-oVirt-Temp... . I was going over the list of features and stumbled on to virt-sysprep. http://www.ovirt.org/develop/release-management/features/virt-sysprep/ <http://www.ovirt.org/develop/release-management/features/virt-sysprep/> http://libguestfs.org/virt-sysprep.1.htm <http://libguestfs.org/virt-sysprep.1.html#copying-and-cloning>l How can I use virt-sysprep from within ovirt to create templates? Thank you for your help, Joel Joel

Hello Joel, as far as i know, virt-sysprep has to be executed inside the VM before cloning it to template. This removes some infos from the VM like udev rules & ssh keys. Luca On Wed, May 17, 2017 at 8:53 PM, Joel Diaz <mrjoeldiaz@gmail.com> wrote:
Good afternoon ovirt users,
I'm new to ovirt. I've created templates in the past using this guide, https://github.com/rharmonson/richtech/wiki/CentOS-7-1511-Minimal-oVirt-Temp... .
I was going over the list of features and stumbled on to virt-sysprep.
http://www.ovirt.org/develop/release-management/features/virt-sysprep/
http://libguestfs.org/virt-sysprep.1.html
How can I use virt-sysprep from within ovirt to create templates?
Thank you for your help,
Joel
Joel
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- "E' assurdo impiegare gli uomini di intelligenza eccellente per fare calcoli che potrebbero essere affidati a chiunque se si usassero delle macchine" Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716) "Internet è la più grande biblioteca del mondo. Ma il problema è che i libri sono tutti sparsi sul pavimento" John Allen Paulos, Matematico (1945-vivente) Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , <lorenzetto.luca@gmail.com>

On Thu, May 18, 2017 at 10:40 AM, Luca 'remix_tj' Lorenzetto < lorenzetto.luca@gmail.com> wrote:
Hello Joel,
as far as i know, virt-sysprep has to be executed inside the VM before cloning it to template. This removes some infos from the VM like udev rules & ssh keys.
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. 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]. [1] https://github.com/oVirt/ovirt-engine-api-model/blob/master/src/main/java/se...
Luca
On Wed, May 17, 2017 at 8:53 PM, Joel Diaz <mrjoeldiaz@gmail.com> wrote:
Good afternoon ovirt users,
I'm new to ovirt. I've created templates in the past using this guide, https://github.com/rharmonson/richtech/wiki/CentOS-7-1511- Minimal-oVirt-Template .
I was going over the list of features and stumbled on to virt-sysprep.
http://www.ovirt.org/develop/release-management/features/virt-sysprep/
http://libguestfs.org/virt-sysprep.1.html
How can I use virt-sysprep from within ovirt to create templates?
Thank you for your help,
Joel
Joel
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- "E' assurdo impiegare gli uomini di intelligenza eccellente per fare calcoli che potrebbero essere affidati a chiunque se si usassero delle macchine" Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)
"Internet è la più grande biblioteca del mondo. Ma il problema è che i libri sono tutti sparsi sul pavimento" John Allen Paulos, Matematico (1945-vivente)
Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , < lorenzetto.luca@gmail.com> _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Arik, Very cool. It's exactly what I was looking for. However, I don't see that checkbox. I've attached an image of what the template window looks like on my end. Maybe I'm looking in the wrong place? Thanks for the response, On May 18, 2017 12:29 PM, "Arik Hadas" <ahadas@redhat.com> wrote:
On Thu, May 18, 2017 at 10:40 AM, Luca 'remix_tj' Lorenzetto < lorenzetto.luca@gmail.com> wrote:
Hello Joel,
as far as i know, virt-sysprep has to be executed inside the VM before cloning it to template. This removes some infos from the VM like udev rules & ssh keys.
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.
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].
[1] https://github.com/oVirt/ovirt-engine-api-model/blob/ master/src/main/java/services/TemplatesService.java#L168
Luca
On Wed, May 17, 2017 at 8:53 PM, Joel Diaz <mrjoeldiaz@gmail.com> wrote:
Good afternoon ovirt users,
I'm new to ovirt. I've created templates in the past using this guide, https://github.com/rharmonson/richtech/wiki/CentOS-7-1511-Mi nimal-oVirt-Template .
I was going over the list of features and stumbled on to virt-sysprep.
http://www.ovirt.org/develop/release-management/features/virt-sysprep/
http://libguestfs.org/virt-sysprep.1.html
How can I use virt-sysprep from within ovirt to create templates?
Thank you for your help,
Joel
Joel
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- "E' assurdo impiegare gli uomini di intelligenza eccellente per fare calcoli che potrebbero essere affidati a chiunque se si usassero delle macchine" Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)
"Internet è la più grande biblioteca del mondo. Ma il problema è che i libri sono tutti sparsi sul pavimento" John Allen Paulos, Matematico (1945-vivente)
Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , < lorenzetto.luca@gmail.com> _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On Fri, May 19, 2017 at 4:10 PM, Joel Diaz <mrjoeldiaz@gmail.com> wrote:
Arik,
Very cool. It's exactly what I was looking for.
However, I don't see that checkbox. I've attached an image of what the template window looks like on my end. Maybe I'm looking in the wrong place?
No , you're looking at the right place. This feature got in pretty late in the release cycle of 4.1, so it is available from 4.1.2. Maybe the version you are using is lower than that?
Thanks for the response,
On May 18, 2017 12:29 PM, "Arik Hadas" <ahadas@redhat.com> wrote:
On Thu, May 18, 2017 at 10:40 AM, Luca 'remix_tj' Lorenzetto < lorenzetto.luca@gmail.com> wrote:
Hello Joel,
as far as i know, virt-sysprep has to be executed inside the VM before cloning it to template. This removes some infos from the VM like udev rules & ssh keys.
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.
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].
[1] https://github.com/oVirt/ovirt-engine-api-model/blob/mas ter/src/main/java/services/TemplatesService.java#L168
Luca
On Wed, May 17, 2017 at 8:53 PM, Joel Diaz <mrjoeldiaz@gmail.com> wrote:
Good afternoon ovirt users,
I'm new to ovirt. I've created templates in the past using this guide, https://github.com/rharmonson/richtech/wiki/CentOS-7-1511-Mi nimal-oVirt-Template .
I was going over the list of features and stumbled on to virt-sysprep.
http://www.ovirt.org/develop/release-management/features/virt-sysprep/
http://libguestfs.org/virt-sysprep.1.html
How can I use virt-sysprep from within ovirt to create templates?
Thank you for your help,
Joel
Joel
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- "E' assurdo impiegare gli uomini di intelligenza eccellente per fare calcoli che potrebbero essere affidati a chiunque se si usassero delle macchine" Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)
"Internet è la più grande biblioteca del mondo. Ma il problema è che i libri sono tutti sparsi sul pavimento" John Allen Paulos, Matematico (1945-vivente)
Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , < lorenzetto.luca@gmail.com> _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On Wed, May 17, 2017 at 8:53 PM, Joel Diaz <mrjoeldiaz@gmail.com> wrote:
Good afternoon ovirt users,
I'm new to ovirt.
Welcome to oVirt community!
I've created templates in the past using this guide, https://github.com/ rharmonson/richtech/wiki/CentOS-7-1511-Minimal-oVirt-Template .
I was going over the list of features and stumbled on to virt-sysprep.
http://www.ovirt.org/develop/release-management/features/virt-sysprep/ <http://www.ovirt.org/develop/release-management/features/virt-sysprep/>
http://libguestfs.org/virt-sysprep.1.htm <http://libguestfs.org/virt-sysprep.1.html#copying-and-cloning>l
How can I use virt-sysprep from within ovirt to create templates?
Thank you for your help,
Joel
Joel
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- SANDRO BONAZZOLA ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG VIRTUALIZATION R&D Red Hat EMEA <https://www.redhat.com/> <https://red.ht/sig> TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>

Thank you Sandro. On May 18, 2017 3:52 AM, "Sandro Bonazzola" <sbonazzo@redhat.com> wrote: On Wed, May 17, 2017 at 8:53 PM, Joel Diaz <mrjoeldiaz@gmail.com> wrote:
Good afternoon ovirt users,
I'm new to ovirt.
Welcome to oVirt community!
I've created templates in the past using this guide, https://github.com/rharmonson/richtech/wiki/CentOS-7- 1511-Minimal-oVirt-Template .
I was going over the list of features and stumbled on to virt-sysprep.
http://www.ovirt.org/develop/release-management/features/virt-sysprep/ <http://www.ovirt.org/develop/release-management/features/virt-sysprep/>
http://libguestfs.org/virt-sysprep.1.htm <http://libguestfs.org/virt-sysprep.1.html#copying-and-cloning>l
How can I use virt-sysprep from within ovirt to create templates?
Thank you for your help,
Joel
Joel
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- SANDRO BONAZZOLA ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG VIRTUALIZATION R&D Red Hat EMEA <https://www.redhat.com/> <https://red.ht/sig> TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
participants (4)
-
Arik Hadas
-
Joel Diaz
-
Luca 'remix_tj' Lorenzetto
-
Sandro Bonazzola