
Hello, is it correct that even if I use cloud-init I have to seal my candidate VM before making it a template? In that case what is the correct approach to pre-seal a CentOS 7 VM? Also, for operating system like Fedora >=20 and/or RHEL/CentOS 7 should I unconfigure NetworkManager before sealing them, using classic network service, or what? Thanks in advance, Gianluca

On 01.12.15 09:03, Gianluca Cecchi wrote:
Hello, is it correct that even if I use cloud-init I have to seal my candidate VM before making it a template? Well it depend, If you have a common initialization you can run cloud-init before sealing the template, its more reasonable to create a template and run cloud-init on each VM that created from this template. In that case what is the correct approach to pre-seal a CentOS 7 VM? Also, for operating system like Fedora >=20 and/or RHEL/CentOS 7 should I unconfigure NetworkManager before sealing them, using classic network service, or what? Yes the NetworkManager can override cloud-init network settings.
Thanks in advance, Gianluca
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On Tue, Dec 1, 2015 at 9:42 AM, Shahar Havivi <shaharh@redhat.com> wrote:
Hello, is it correct that even if I use cloud-init I have to seal my candidate VM before making it a template? Well it depend, If you have a common initialization you can run cloud-init before sealing
On 01.12.15 09:03, Gianluca Cecchi wrote: the template, its more reasonable to create a template and run cloud-init on each VM that created from this template.
In that case what is the correct approach to pre-seal a CentOS 7 VM? Also, for operating system like Fedora >=20 and/or RHEL/CentOS 7 should I unconfigure NetworkManager before sealing them, using classic network service, or what? Yes the NetworkManager can override cloud-init network settings.
OK, I'm trying using classic network instead of NetworkManager. But right before running the "make template" action, do I have to run any of "sys-unconfig" and/or "virt-sysprep" tools? - sys-unconfig I see in its man page: "This utility should not be used for creating cloud or virtual machine images. For that use please see virt-sysprep" Does this note apply also in my scenario where I want to seal a VM in oVirt before making a template from it? - virt-sysprep It should be run "out of band" against a disk of a powered off VM if I understood correctly. Is it applicable in my case with oVirt and a disk that actually is on a storage domain? It seems more applicable in a plain Qemu?KVM environment... It remains open the question about how to properly seal a RHEL 7 / CentOS 7 VM/OS. Thanks, Gianluca

On 01.12.15 17:26, Gianluca Cecchi wrote:
On Tue, Dec 1, 2015 at 9:42 AM, Shahar Havivi <shaharh@redhat.com> wrote:
Hello, is it correct that even if I use cloud-init I have to seal my candidate VM before making it a template? Well it depend, If you have a common initialization you can run cloud-init before sealing
On 01.12.15 09:03, Gianluca Cecchi wrote: the template, its more reasonable to create a template and run cloud-init on each VM that created from this template.
In that case what is the correct approach to pre-seal a CentOS 7 VM? Also, for operating system like Fedora >=20 and/or RHEL/CentOS 7 should I unconfigure NetworkManager before sealing them, using classic network service, or what? Yes the NetworkManager can override cloud-init network settings.
OK, I'm trying using classic network instead of NetworkManager. But right before running the "make template" action, do I have to run any of "sys-unconfig" and/or "virt-sysprep" tools? No you don't need to run this tools.
- sys-unconfig I see in its man page: "This utility should not be used for creating cloud or virtual machine images. For that use please see virt-sysprep" Does this note apply also in my scenario where I want to seal a VM in oVirt before making a template from it?
- virt-sysprep It should be run "out of band" against a disk of a powered off VM if I understood correctly. Is it applicable in my case with oVirt and a disk that actually is on a storage domain? It seems more applicable in a plain Qemu?KVM environment...
It remains open the question about how to properly seal a RHEL 7 / CentOS 7 What do you mean by sealing? VM/OS. Thanks, Gianluca

On Wed, Dec 2, 2015 at 8:18 AM, Shahar Havivi <shaharh@redhat.com> wrote:
On 01.12.15 17:26, Gianluca Cecchi wrote:
OK, I'm trying using classic network instead of NetworkManager. But right before running the "make template" action, do I have to run any of "sys-unconfig" and/or "virt-sysprep" tools?
No you don't need to run this tools.
OK. Understood.
It remains open the question about how to properly seal a RHEL 7 /
CentOS 7 What do you mean by sealing?
I mean what are the correct modifications t apply to the OS, before makeing it a template and then create a VM from that template using cloud-init. For example: a NetworkManager enabled configuration for ifcfg-eth0 file is somethng like that on RH EL 7: TYPE=Ethernet BOOTPROTO=none DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=no IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_PEERDNS=yes IPV6_PEERROUTES=yes IPV6_FAILURE_FATAL=no NAME=eth0 UUID=5a656c34-e4ba-44a1-8079-d2c797e6a8f4 DEVICE=eth0 ONBOOT=yes IPADDR=10.4.4.29 PREFIX=24 GATEWAY=10.4.4.250 DNS1=10.4.1.11 DNS2=10.4.1.12 DOMAIN="mysearchdomain1.com mysearchdomain2.com" While an old style (managed by classic "network" service) entry sholud be something like: DEVICE=eth0 TYPE=Ethernet BOOTPROTO=static ONBOOT=yes IPADDR=10.4.4.29 PREFIX=24 GATEWAY=10.4.4.250 Do I have to make any modification in both case to ifcfg-eth0 just before making template or should I leave the original VM values inside? Does cloud-init provided by oVirt with the values I put inside the GUI during VM creation replace files using something like "sed" command or does it run any network-config operating system commands? Gianluca

On 02.12.15 08:43, Gianluca Cecchi wrote:
On Wed, Dec 2, 2015 at 8:18 AM, Shahar Havivi <shaharh@redhat.com> wrote:
On 01.12.15 17:26, Gianluca Cecchi wrote:
OK, I'm trying using classic network instead of NetworkManager. But right before running the "make template" action, do I have to run any of "sys-unconfig" and/or "virt-sysprep" tools?
No you don't need to run this tools.
OK. Understood.
It remains open the question about how to properly seal a RHEL 7 /
CentOS 7 What do you mean by sealing?
I mean what are the correct modifications t apply to the OS, before makeing it a template and then create a VM from that template using cloud-init. For example: a NetworkManager enabled configuration for ifcfg-eth0 file is somethng like that on RH EL 7:
TYPE=Ethernet BOOTPROTO=none DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=no IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_PEERDNS=yes IPV6_PEERROUTES=yes IPV6_FAILURE_FATAL=no NAME=eth0 UUID=5a656c34-e4ba-44a1-8079-d2c797e6a8f4 DEVICE=eth0 ONBOOT=yes IPADDR=10.4.4.29 PREFIX=24 GATEWAY=10.4.4.250 DNS1=10.4.1.11 DNS2=10.4.1.12 DOMAIN="mysearchdomain1.com mysearchdomain2.com"
While an old style (managed by classic "network" service) entry sholud be something like:
DEVICE=eth0 TYPE=Ethernet BOOTPROTO=static ONBOOT=yes IPADDR=10.4.4.29 PREFIX=24 GATEWAY=10.4.4.250
Do I have to make any modification in both case to ifcfg-eth0 just before making template or should I leave the original VM values inside? Does cloud-init provided by oVirt with the values I put inside the GUI during VM creation replace files using something like "sed" command or does it run any network-config operating system commands? Gianluca You are using a static IP which can be a problem on creating multiple VMs. In this case you will need to run cloud-init on each created VM with a new static IP or DHCP.

On Wed, Dec 2, 2015 at 9:01 AM, Shahar Havivi <shaharh@redhat.com> wrote:
You are using a static IP which can be a problem on creating multiple VMs. In this case you will need to run cloud-init on each created VM with a new static IP or DHCP.
yes, I understand your point. But my contingent need is to temporary setup a bunch of "fat" (8Gb of ram and 2 cores) clients that have to stress a RAC DB in several ways (concurrent HammerDB, load balancing and failover tests, ecc...) They have to stay on a test network not under my control and where there is not a dhcp server and I'm not allowed to set up one. So I have only a pool of Ip addresses on this network. I will start with 2-3 clients, but then it could be that I need to instantiate also tenths of them. I have not so many resources and time to setup a more engineered provisioning system (Foreman, Puppet, ManageIQ, ecc...) at least at this time. Coming back to CentOS 7 template, I made some combinations and finally I found that the best result is obtained with NetworkManager enabled on the source template from which I create the VM with cloud-init. It would be nice to have a sort of translation to a user-data (or similar...) file when I compose my cloud-init settings for a new vm inside the gui, so that I can duplicate further similar instantiations from oVirt CLI or other scripted commands, bypassing the web gui. I'm not so acquainted with cloud-init in general and with its implementation in oVirt. If there is any useful link for this kind of task or a suggestion to pass a file for VM creation is welcome. Thanks again anyway, Gianluca

Hi, You can always use REST-API to attach a cloud-init payload to the the machines you create - see the API example in: http://www.ovirt.org/Features/Cloud-Init_Integration But the feature was somewhat broken in 3.5.5, recently fixed in 3.5.6: https://bugzilla.redhat.com/show_bug.cgi?id=1269534 Please see that you should use the new <use_cloud_init>true</use_cloud_init> tag for 3.5.6 I have no experience with it in previous versions tough... For the template sealing, I only set hostname to localhost, remove the infamous /etc/udev/rules.d/70-* files, delete HW lines form ifcfg-* files, unregister the machine from satellite etc. and poweroff. I do not use sys-unconfig (as it suggests), and did not need to run virt-sysprep - plain old sealing with deleting the necessary info seemed enough for me... Regards, -- Ekin.

--Apple-Mail=_2CEBF600-631A-47C8-98EF-F91B82FF9417 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 02 Dec 2015, at 21:56, Ekin Mero=C4=9Flu = <ekin.meroglu@linuxera.com> wrote: >=20 > Hi, >=20 > You can always use REST-API to attach a cloud-init payload to the the = machines you create - see the API example in: >=20 > http://www.ovirt.org/Features/Cloud-Init_Integration = <http://www.ovirt.org/Features/Cloud-Init_Integration>=20 >=20 > But the feature was somewhat broken in 3.5.5, recently fixed in 3.5.6:=20= >=20 > https://bugzilla.redhat.com/show_bug.cgi?id=3D1269534 = <https://bugzilla.redhat.com/show_bug.cgi?id=3D1269534> >=20 > Please see that you should use the new = <use_cloud_init>true</use_cloud_init> tag for 3.5.6 >=20 > I have no experience with it in previous versions tough... >=20 > For the template sealing, I only set hostname to localhost, remove the = infamous /etc/udev/rules.d/70-* files, delete HW lines form ifcfg-* = files, unregister the machine from satellite etc. and poweroff. I do not = use sys-unconfig (as it suggests), and did not need to run virt-sysprep = - plain old sealing with deleting the necessary info seemed enough for = me=E2=80=A6 well, that=E2=80=99s what virt-sysprep does, there are quite a few = details it can take care of to make the template really pristine >=20 > Regards, > -- > Ekin. >=20 > _______________________________________________ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users --Apple-Mail=_2CEBF600-631A-47C8-98EF-F91B82FF9417 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" = class=3D""><br class=3D""><div><blockquote type=3D"cite" class=3D""><div = class=3D"">On 02 Dec 2015, at 21:56, Ekin Mero=C4=9Flu <<a = href=3D"mailto:ekin.meroglu@linuxera.com" = class=3D"">ekin.meroglu@linuxera.com</a>> wrote:</div><br = class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" = class=3D""><div class=3D"gmail_default" = style=3D"font-family:tahoma,sans-serif;font-size:small">Hi,</div><div = class=3D"gmail_default" = style=3D"font-family:tahoma,sans-serif;font-size:small"><br = class=3D""></div><div class=3D"gmail_default" = style=3D"font-family:tahoma,sans-serif;font-size:small">You can always = use REST-API to attach a cloud-init payload to the the machines you = create - see the API example in:</div><div class=3D"gmail_default" = style=3D"font-family:tahoma,sans-serif;font-size:small"><br = class=3D""></div><div class=3D"gmail_default" = style=3D"font-family:tahoma,sans-serif;font-size:small"><a = href=3D"http://www.ovirt.org/Features/Cloud-Init_Integration" = class=3D"">http://www.ovirt.org/Features/Cloud-Init_Integration</a> <= /div><div class=3D"gmail_default" = style=3D"font-family:tahoma,sans-serif;font-size:small"><br = class=3D""></div><div class=3D"gmail_default" = style=3D"font-family:tahoma,sans-serif;font-size:small">But the feature = was somewhat broken in 3.5.5, recently fixed in 3.5.6: <br = class=3D""></div><div class=3D"gmail_default" = style=3D"font-family:tahoma,sans-serif;font-size:small"><br = class=3D""></div><div class=3D"gmail_default" = style=3D"font-family:tahoma,sans-serif;font-size:small"><a = href=3D"https://bugzilla.redhat.com/show_bug.cgi?id=3D1269534" = class=3D"">https://bugzilla.redhat.com/show_bug.cgi?id=3D1269534</a></div>= <div class=3D"gmail_default" = style=3D"font-family:tahoma,sans-serif;font-size:small"><br = class=3D""></div><div class=3D"gmail_default"><font face=3D"tahoma, = sans-serif" style=3D"font-size:small" class=3D"">Please see that you = should use the new </font><span style=3D"font-size: small; = white-space: pre-wrap;" class=3D""><font face=3D"monospace, monospace" = class=3D""><use_cloud_init>true</use_cloud_init> = </font></span>tag for 3.5.6</div><div class=3D"gmail_default"><br = class=3D""></div><div class=3D"gmail_default" = style=3D"font-family:tahoma,sans-serif;font-size:small">I have no = experience with it in previous versions tough...</div><div = class=3D"gmail_default" = style=3D"font-family:tahoma,sans-serif;font-size:small"><br = class=3D""></div><div class=3D"gmail_default" = style=3D"font-family:tahoma,sans-serif;font-size:small">For the template = sealing, I only set hostname to localhost, remove the infamous = /etc/udev/rules.d/70-* files, delete HW lines form ifcfg-* files, = unregister the machine from satellite etc. and poweroff. I do not use = sys-unconfig (as it suggests), and did not need to run virt-sysprep - = plain old sealing with deleting the necessary info seemed enough for = me=E2=80=A6</div></div></div></blockquote><div><br class=3D""></div>well, = that=E2=80=99s what virt-sysprep does, there are quite a few details it = can take care of to make the template really pristine</div><div><br = class=3D""><blockquote type=3D"cite" class=3D""><div class=3D""><div = dir=3D"ltr" class=3D""><div class=3D"gmail_default" = style=3D"font-family:tahoma,sans-serif;font-size:small"><br = class=3D""></div><div class=3D"gmail_default" = style=3D"font-family:tahoma,sans-serif;font-size:small">Regards,</div><div= class=3D"gmail_default" = style=3D"font-family:tahoma,sans-serif;font-size:small">--</div><div = class=3D"gmail_default" = style=3D"font-family:tahoma,sans-serif;font-size:small">Ekin.</div><div = class=3D"gmail_default" = style=3D"font-family:tahoma,sans-serif;font-size:small"><br = class=3D""></div></div> _______________________________________________<br class=3D"">Users = mailing list<br class=3D""><a href=3D"mailto:Users@ovirt.org" = class=3D"">Users@ovirt.org</a><br = class=3D"">http://lists.ovirt.org/mailman/listinfo/users<br = class=3D""></div></blockquote></div><br class=3D""></body></html>= --Apple-Mail=_2CEBF600-631A-47C8-98EF-F91B82FF9417--

--Apple-Mail=_0E77573E-6EED-45DF-AF7A-CA9FCC70B472 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8
On 02 Dec 2015, at 08:43, Gianluca Cecchi <gianluca.cecchi@gmail.com> = wrote: =20 On Wed, Dec 2, 2015 at 8:18 AM, Shahar Havivi <shaharh@redhat.com = <mailto:shaharh@redhat.com>> wrote: On 01.12.15 17 <tel:01.12.15%2017>:26, Gianluca Cecchi wrote:
OK, I'm trying using classic network instead of NetworkManager. But right before running the "make template" action, do I have to =
run any
of "sys-unconfig" and/or "virt-sysprep" tools? No you don't need to run this tools. =20 OK. Understood.
=20 =20
It remains open the question about how to properly seal a RHEL 7 / =
CentOS 7 What do you mean by sealing? =20 =20 I mean what are the correct modifications t apply to the OS, before = makeing it a template and then create a VM from that template using = cloud-init. For example: a NetworkManager enabled configuration for ifcfg-eth0 file is somethng =
you don=E2=80=99t have to, but you=E2=80=99ll get a better, cleaner, = template if you=E2=80=99ve been using the original image before (added = accounts, installed stuff=E2=80=A6things people usually do when = preparing a template:) we=E2=80=99re looking into integrating it into UI, as it is quite easy = to omit a thing or two when sealing it manually It may make sense to use it for initialization during deployment as well = as a replacement of cloud-init not requiring you to initialize it by = running it. You would have to do it yourself, making sure the image is = not in use while the operation is ongoing. I think it would also be nice to completely integrate it into =E2=80=9Ccre= ate VM from Template=E2=80=9D flow. You would have a ready-to-go VMs = customized at the time of creation already, instead of relying on = runtime cloud-init Thanks, michal like that on RH EL 7:
=20 TYPE=3DEthernet BOOTPROTO=3Dnone DEFROUTE=3Dyes IPV4_FAILURE_FATAL=3Dno IPV6INIT=3Dno IPV6_AUTOCONF=3Dyes IPV6_DEFROUTE=3Dyes IPV6_PEERDNS=3Dyes IPV6_PEERROUTES=3Dyes IPV6_FAILURE_FATAL=3Dno NAME=3Deth0 UUID=3D5a656c34-e4ba-44a1-8079-d2c797e6a8f4 DEVICE=3Deth0 ONBOOT=3Dyes IPADDR=3D10.4.4.29 PREFIX=3D24 GATEWAY=3D10.4.4.250 DNS1=3D10.4.1.11 DNS2=3D10.4.1.12 DOMAIN=3D"mysearchdomain1.com <http://mysearchdomain1.com/> = mysearchdomain2.com <http://mysearchdomain2.com/>" =20 While an old style (managed by classic "network" service) entry sholud = be something like: =20 DEVICE=3Deth0 TYPE=3DEthernet BOOTPROTO=3Dstatic ONBOOT=3Dyes IPADDR=3D10.4.4.29 PREFIX=3D24 GATEWAY=3D10.4.4.250 =20 Do I have to make any modification in both case to ifcfg-eth0 just = before making template or should I leave the original VM values inside? Does cloud-init provided by oVirt with the values I put inside the GUI = during VM creation replace files using something like "sed" command or = does it run any network-config operating system commands? Gianluca _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
--Apple-Mail=_0E77573E-6EED-45DF-AF7A-CA9FCC70B472 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" = class=3D""><br class=3D""><div><blockquote type=3D"cite" class=3D""><div = class=3D"">On 02 Dec 2015, at 08:43, Gianluca Cecchi <<a = href=3D"mailto:gianluca.cecchi@gmail.com" = class=3D"">gianluca.cecchi@gmail.com</a>> wrote:</div><br = class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" = class=3D""><div class=3D"gmail_extra"><div class=3D"gmail_quote">On Wed, = Dec 2, 2015 at 8:18 AM, Shahar Havivi <span dir=3D"ltr" class=3D""><<a = href=3D"mailto:shaharh@redhat.com" target=3D"_blank" = class=3D"">shaharh@redhat.com</a>></span> wrote:<br = class=3D""><blockquote class=3D"gmail_quote" style=3D"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=3D"">On <a = href=3D"tel:01.12.15%2017" value=3D"+3901121517" class=3D"">01.12.15 = 17</a>:26, Gianluca Cecchi wrote:<br class=3D""> ><br class=3D""> > OK, I'm trying using classic network instead of NetworkManager.<br = class=3D""> > But right before running the "make template" action, do I have to = run any<br class=3D""> > of "sys-unconfig" and/or "virt-sysprep" tools?<br class=3D""> </span>No you don't need to run this tools.<br = class=3D""></blockquote><div class=3D""><br class=3D""></div><div = class=3D""> OK. = Understood.</div></div></div></div></div></blockquote><div><br = class=3D""></div>you don=E2=80=99t have to, but you=E2=80=99ll get a = better, cleaner, template if you=E2=80=99ve been using the original = image before (added accounts, installed stuff=E2=80=A6things people = usually do when preparing a template:)</div><div>we=E2=80=99re looking = into integrating it into UI, as it is quite easy to omit a thing or two = when sealing it manually</div><div><br class=3D""></div><div>It may make = sense to use it for initialization during deployment as well as a = replacement of cloud-init not requiring you to initialize it by running = it. You would have to do it yourself, making sure the image is not in = use while the operation is ongoing.</div><div>I think it would also be = nice to completely integrate it into =E2=80=9Ccreate VM from Template=E2=80= =9D flow. You would have a ready-to-go VMs customized at the time of = creation already, instead of relying on runtime cloud-init</div><div><br = class=3D""></div><div>Thanks,</div><div>michal</div><div><br = class=3D""><blockquote type=3D"cite" class=3D""><div class=3D""><div = dir=3D"ltr" class=3D""><div class=3D"gmail_extra"><div = class=3D"gmail_quote"><div class=3D""><br class=3D""></div><div = class=3D""> </div><blockquote class=3D"gmail_quote" = style=3D"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=3D""> ><br class=3D""> > It remains open the question about how to properly seal a RHEL 7 / = CentOS 7<br class=3D""> </span>What do you mean by sealing?<br class=3D""><br = class=3D""></blockquote><div class=3D""><br class=3D""></div><div = class=3D"">I mean what are the correct modifications t apply to the OS, = before makeing it a template and then create a VM from that template = using cloud-init.</div><div class=3D"">For example:</div><div class=3D"">a= NetworkManager enabled configuration for ifcfg-eth0 file is somethng = like that on RH EL 7:</div><div class=3D""><br class=3D""></div><div = class=3D"">TYPE=3DEthernet</div><div class=3D"">BOOTPROTO=3Dnone</div><div= class=3D"">DEFROUTE=3Dyes</div><div = class=3D"">IPV4_FAILURE_FATAL=3Dno</div><div = class=3D"">IPV6INIT=3Dno</div><div class=3D"">IPV6_AUTOCONF=3Dyes</div><di= v class=3D"">IPV6_DEFROUTE=3Dyes</div><div = class=3D"">IPV6_PEERDNS=3Dyes</div><div = class=3D"">IPV6_PEERROUTES=3Dyes</div><div = class=3D"">IPV6_FAILURE_FATAL=3Dno</div><div = class=3D"">NAME=3Deth0</div><div = class=3D"">UUID=3D5a656c34-e4ba-44a1-8079-d2c797e6a8f4</div><div = class=3D"">DEVICE=3Deth0</div><div class=3D"">ONBOOT=3Dyes</div><div = class=3D"">IPADDR=3D10.4.4.29</div><div class=3D"">PREFIX=3D24</div><div = class=3D"">GATEWAY=3D10.4.4.250</div><div = class=3D"">DNS1=3D10.4.1.11</div><div class=3D"">DNS2=3D10.4.1.12</div><di= v class=3D"">DOMAIN=3D"<a href=3D"http://mysearchdomain1.com/" = class=3D"">mysearchdomain1.com</a> <a href=3D"http://mysearchdomain2.com/"= class=3D"">mysearchdomain2.com</a>"</div><div class=3D""><br = class=3D""></div><div class=3D"">While an old style (managed by classic = "network" service) entry sholud be something like:</div><div = class=3D""><br class=3D""></div><div class=3D"">DEVICE=3Deth0<br = class=3D""></div></div><div class=3D"">TYPE=3DEthernet</div><div = class=3D"">BOOTPROTO=3Dstatic</div><div class=3D"">ONBOOT=3Dyes<br = class=3D""></div><div class=3D"">IPADDR=3D10.4.4.29</div><div = class=3D"">PREFIX=3D24</div><div class=3D"">GATEWAY=3D10.4.4.250</div><div= class=3D""><br class=3D""></div><div class=3D"">Do I have to make any = modification in both case to ifcfg-eth0 just before making template or = should I leave the original VM values inside?</div><div class=3D"">Does = cloud-init provided by oVirt with the values I put inside the GUI during = VM creation replace files using something like "sed" command or does it = run any network-config operating system commands?</div><div = class=3D"">Gianluca</div></div></div> _______________________________________________<br class=3D"">Users = mailing list<br class=3D""><a href=3D"mailto:Users@ovirt.org" = class=3D"">Users@ovirt.org</a><br = class=3D"">http://lists.ovirt.org/mailman/listinfo/users<br = class=3D""></div></blockquote></div><br class=3D""></body></html>= --Apple-Mail=_0E77573E-6EED-45DF-AF7A-CA9FCC70B472--

On Fri, Dec 4, 2015 at 8:59 AM, Michal Skrivanek < michal.skrivanek@redhat.com> wrote:
On 02 Dec 2015, at 08:43, Gianluca Cecchi <gianluca.cecchi@gmail.com> wrote:
On Wed, Dec 2, 2015 at 8:18 AM, Shahar Havivi <shaharh@redhat.com> wrote:
On 01.12.15 17:26, Gianluca Cecchi wrote:
OK, I'm trying using classic network instead of NetworkManager. But right before running the "make template" action, do I have to run
any
of "sys-unconfig" and/or "virt-sysprep" tools? No you don't need to run this tools.
OK. Understood.
you don’t have to, but you’ll get a better, cleaner, template if you’ve been using the original image before (added accounts, installed stuff…things people usually do when preparing a template:) we’re looking into integrating it into UI, as it is quite easy to omit a thing or two when sealing it manually
It may make sense to use it for initialization during deployment as well as a replacement of cloud-init not requiring you to initialize it by running it. You would have to do it yourself, making sure the image is not in use while the operation is ongoing. I think it would also be nice to completely integrate it into “create VM from Template” flow. You would have a ready-to-go VMs customized at the time of creation already, instead of relying on runtime cloud-init
Thanks, michal
Any improvement inside the gui is welcome. Yes, in my template I already created personal users that are then able to authenticate themself with public key in the deployed VM without any problem and I have also Oracle client installed with a specific HammerDB configuration file. So the path is the one you suggested. Thanks, Gianluca
participants (4)
-
Ekin Meroğlu
-
Gianluca Cecchi
-
Michal Skrivanek
-
Shahar Havivi