--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(a)gmail.com> =
wrote:
=20
On Wed, Dec 2, 2015 at 8:18 AM, Shahar Havivi <shaharh(a)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.
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
=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 =
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(a)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(a)gmail.com</a>&gt;
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(a)redhat.com</a>&gt;</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(a)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--