<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 6, 2014 at 3:03 PM, Nelson Kotowski <span dir="ltr"><<a href="mailto:nkotowski@gmail.com" target="_blank">nkotowski@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><font color="#000000" face="Times New Roman" size="3">

</font><p class="MsoNormal" style="margin:0cm 0cm 0pt"><font size="3"><font color="#000000"><font face="Calibri">Dear all,</font></font></font></p><font color="#000000" face="Times New Roman" size="3">

</font><p class="MsoNormal" style="margin:0cm 0cm 0pt"><font color="#000000" face="Calibri" size="3"> </font></p><font color="#000000" face="Times New Roman" size="3">

</font><p class="MsoNormal" style="margin:0cm 0cm 0pt"><span lang="EN-US"><font size="3"><font color="#000000"><font face="Calibri">I have
quite basic questions, but I couldn’t manage to find an answer so far… Please,
could you help?</font></font></font></span></p><font color="#000000" face="Times New Roman" size="3">

</font><p class="MsoNormal" style="margin:0cm 0cm 0pt"><span lang="EN-US"><font color="#000000" face="Calibri" size="3"> </font></span></p><font color="#000000" face="Times New Roman" size="3">

</font><p class="MsoNormal" style="margin:0cm 0cm 0pt"><span lang="EN-US"><font size="3"><font color="#000000"><font face="Calibri">Just
upgraded from OpenNebula 3.2 to 4.4, Ubuntu 12.04 based controllers and hosts,
KVM-based. I create my images, for the future templates, using Virtual Machine
Manager, based on Ubuntu official iso files.</font></font></font></span></p><font color="#000000" face="Times New Roman" size="3">

</font><p class="MsoNormal" style="margin:0cm 0cm 0pt"><span lang="EN-US"><font color="#000000" face="Calibri" size="3"> </font></span></p><font color="#000000" face="Times New Roman" size="3">

</font><p class="MsoNormal" style="margin:0cm 0cm 0pt"><span lang="EN-US"><font size="3"><font color="#000000"><font face="Calibri">In
OpenNebula 4.4 docs, there are three guidelines on setting up
contextualization: basic, advanced and cloud-init usage.</font></font></font></span></p><font color="#000000" face="Times New Roman" size="3">

</font><p class="MsoNormal" style="margin:0cm 0cm 0pt"><span lang="EN-US"><font color="#000000" face="Calibri" size="3"> </font></span></p><font color="#000000" face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 0pt 54pt"><font color="#000000"><span lang="EN-US"><span><font face="Calibri" size="3">1.</font><span style="font:7pt/normal "Times New Roman";font-size-adjust:none;font-stretch:normal">      
</span></span></span><span lang="EN-US"><font size="3"><font face="Calibri">But…
can one combine those strategies? For example, can I enable basic
contextualization in order to benefit from network parameters and then use
advanced contextualization (init script context file) in order to setup, for
example, a NFS mount point?</font></font></span></font></p></div></blockquote><div><br></div><div>Sure!. Please note that we are working on cloudinit for different OS. And the support may vary from one distribution to other. But yes you could use both</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><font color="#000000" face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 0pt 36pt"><span lang="EN-US"><font color="#000000" face="Calibri" size="3"> </font></span></p><font color="#000000" face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 0pt 54pt"><font color="#000000"><span lang="EN-US"><span><font face="Calibri" size="3">2.</font><span style="font:7pt/normal "Times New Roman";font-size-adjust:none;font-stretch:normal">      
</span></span></span><span lang="EN-US"><font size="3"><font face="Calibri">In
order to benefit from contextualization variables, is it a pre-requisite that
one installs one-context package to use each of the contextualization
strategies or only for a specific scenario (basic, advanced or cloud-init)?</font></font></span></font></p></div></blockquote><div><br></div><div>The variables are set and the context block device is prepared by oned if defined. the one-context package will help you to deal with it,but you can always mount the CD directly and source the variables </div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><font color="#000000" face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 0pt 36pt"><span lang="EN-US"><font color="#000000" face="Calibri" size="3"> </font></span></p><font color="#000000" face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 0pt 54pt"><font color="#000000"><span lang="EN-US"><span><font face="Calibri" size="3">3.</font><span style="font:7pt/normal "Times New Roman";font-size-adjust:none;font-stretch:normal">      
</span></span></span><span lang="EN-US"><font size="3"><font face="Calibri">Suppose
I want to use only the information on basic contextualizion (DEV_IP, DEV_DNS,
etc…) to setup, for instance, virtual machine instance IP, gateway, DNS… What
should be the correct steps? Should I…</font></font></span></font></p><font color="#000000" face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 0pt 36pt"><span lang="EN-US"><font color="#000000" face="Calibri" size="3"> </font></span></p><font color="#000000" face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 0pt 90pt"><font color="#000000"><span lang="EN-US"><span><font face="Calibri" size="3">a.</font><span style="font:7pt/normal "Times New Roman";font-size-adjust:none;font-stretch:normal">      
</span></span></span><span lang="EN-US"><font size="3"><font face="Calibri">Install
the one-context package before anything? </font></font></span></font></p><font color="#000000" face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 0pt 90pt"><font color="#000000"><span lang="EN-US"><span><font face="Calibri" size="3">b.</font><span style="font:7pt/normal "Times New Roman";font-size-adjust:none;font-stretch:normal">     
</span></span></span><span lang="EN-US"><font size="3"><font face="Calibri">Forget
about one-context package and only enable network contextualization in the
template and thatīs done; or use both the one-context package and enable the
network contextualization in the template?</font></font></span></font></p><font color="#000000" face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 0pt 90pt"><font color="#000000"><span lang="EN-US"><span><font face="Calibri" size="3">c.</font><span style="font:7pt/normal "Times New Roman";font-size-adjust:none;font-stretch:normal">      
</span></span></span><span lang="EN-US"><font size="3"><font face="Calibri">Do
the above and also use a init script context file, using the DEV_IP, DEV_DNS,
etc… variables?</font></font></span></font></p></div></blockquote><div><br></div><div><br></div><div>I think you are describing an incremental process:</div><div><br></div><div>1.- [OFF GUEST] You need to define CONTEXT and if you are interested the network contextualization variable set. When OpenNebula see a VM with a CONTEXT section, it creates a special CD, transfer it to the hypervisor and attaches it to the VM at boot time.</div>

<div><br></div><div>2.- [ON GUEST] Guest is booting it can access the CD, and source a context.sh file to get the variables (note no network needed). The CD can have other files (e.g. a chef receipt)</div><div><br></div>
<div>
3.- [ON GUEST] You need to fire the CD mounting procedure and logic processing the context. You can do this manually or by installing one-context (or cloud-init to some extent)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><font color="#000000" face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 0pt 36pt"><span lang="EN-US"><font color="#000000" face="Calibri" size="3"> </font></span></p><font color="#000000" face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 0pt 54pt"><font color="#000000"><span lang="EN-US"><span><font face="Calibri" size="3">4.</font><span style="font:7pt/normal "Times New Roman";font-size-adjust:none;font-stretch:normal">      
</span></span></span><span lang="EN-US"><font size="3"><font face="Calibri">In
this sense, are the one-context scripts (00-network, vmcontext, etc…) used only
with advanced contextualization, or also with the basic one?</font></font></span></font></p></div></blockquote><div><br></div><div>Both</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><p style="margin:0cm 0cm 0pt 54pt"><font color="#000000"><span lang="EN-US"><font size="3"><font face="Calibri"> </font></font></span></font></p><font color="#000000" face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 0pt 36pt"><span lang="EN-US"><font color="#000000" face="Calibri" size="3"> </font></span></p><font color="#000000" face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 0pt 54pt"><font color="#000000"><span lang="EN-US"><span><font face="Calibri" size="3">5.</font><span style="font:7pt/normal "Times New Roman";font-size-adjust:none;font-stretch:normal">      
</span></span></span><span lang="EN-US"><font face="Calibri" size="3">At
last, about the swap partition… I have an image with a swap partition defined,
tried to use it in a template, but I am facing several boot hangups associated
to swap file creation (it did not happen in OpenNebula 3.2). I read in the docs
(<a href="http://docs.opennebula.org/stable/user/virtual_machine_setup/bcont.html" target="_blank">http://docs.opennebula.org/stable/user/virtual_machine_setup/bcont.html</a>) that
“…The contextualization package will also mount any partition labeled </font></span><span><span lang="EN-US" style="font-family:"Courier New";font-size:10pt">swap</span></span><span lang="EN-US"><font size="3"><font face="Calibri"> as swap…” . Does that mean we should at first create an image without
swap and then setup in OpenNebula template configuration, which will use this
image, a volatile disk, swap type? Is that the correct/suggested way to work?</font></font></span></font></p></div></blockquote><div><br></div><div>Yes. There is no benefit from storing swap in a datastore, note also that you need to move it around. So we usually define a volatile swap disk, created on the target hypervisor. Usually this does not interfere with the disk layout of the VM, but it may depends.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><font color="#000000" face="Times New Roman" size="3">

</font><p class="MsoNormal" style="margin:0cm 0cm 0pt"><span lang="EN-US"><font color="#000000" face="Calibri" size="3"> </font></span></p><font color="#000000" face="Times New Roman" size="3">

</font><p class="MsoNormal" style="margin:0cm 0cm 0pt"><span lang="EN-US"><font size="3"><font color="#000000"><font face="Calibri">I really
appreciate both your help and OpenNebula, I feel just a bit confused on those
contextualization strategies and swap issues…</font></font></font></span></p></div></blockquote><div><br></div><div>Come back if you have more doubts or something it is not clear.</div><div><br></div><div>Thanks</div><div>

<br></div><div>Ruben</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><font color="#000000" face="Times New Roman" size="3">

</font><p class="MsoNormal" style="margin:0cm 0cm 0pt"><span lang="EN-US"><font color="#000000" face="Calibri" size="3"> </font></span></p><font color="#000000" face="Times New Roman" size="3">

</font><p class="MsoNormal" style="margin:0cm 0cm 0pt"><span lang="EN-US"><font size="3"><font color="#000000"><font face="Calibri">Best
regards,</font></font></font></span></p><font color="#000000" face="Times New Roman" size="3">

</font><p class="MsoNormal" style="margin:0cm 0cm 0pt"><span style="font-family:"Segoe UI","sans-serif";font-size:12pt"><font color="#000000">Nelson Peixoto Kotowski Filho</font></span></p><font color="#000000" face="Times New Roman" size="3">

</font>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><div>-- <br></div></div>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect<div>OpenNebula - Flexible Enterprise Cloud Made Simple<br>

<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula</div></div>
</div></div>