<div dir="ltr">Hello Christophe,<br><br><div class="gmail_extra">I suggest you follow Andrei's suggestion in the future. It is much cleaner and more<br></div><div class="gmail_extra">OpenNebula way to say so.<br><br></div>

<div class="gmail_extra">Read in line to continue with the process I have described.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 17, 2014 at 2:30 PM, Christophe Duez <span dir="ltr"><<a href="mailto:christophe.duez@student.uantwerpen.be" target="_blank">christophe.duez@student.uantwerpen.be</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div>Thank you for the extensive responds</div><div>This is what I did and where I got stuck:</div>

<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="">
Export the libvirt xml of the VM from the host,<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">virsh dumpxml one-45 > /tmp/XmlDumpFile</blockquote>


</blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">stop the VM, <br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


virsh destroy one-45<span style="white-space:pre-wrap"> <br></span></blockquote><span style="white-space:pre-wrap">           <br></span>undefine the domain.<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


virsh undefine one-45</blockquote></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="">
Configure the xml to mount a local folder from the host inside the VM [1].<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span style="white-space:pre-wrap">     </span><filesystem type='mount' accessmode='passthrough'><br>      <span style="white-space:pre-wrap">             </span><driver type='path' wrpolicy='immediate'/><br>


      <span style="white-space:pre-wrap">            </span><source dir='/tmp/contextualization'/><br>      <span style="white-space:pre-wrap">         </span><target dir='/tmp/contextualization'/><br>      <span style="white-space:pre-wrap">         </span><readonly/><br>


    <span style="white-space:pre-wrap">       </span></filesystem></blockquote></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div class="">
Somehow deliver the context package in that folder. <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="white-space:pre-wrap">       </span>mkdir /tmp/contextualization/<br>


<span style="white-space:pre-wrap">     </span>yum install opennebula-context -y --downloadonly --downloaddir=/tmp/contextualization/</blockquote></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


 </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="">Define the domain using your crafted XML,<br>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="white-space:pre-wrap">      </span>virsh define /tmp/XmlDumpFile</blockquote>
<br>boot the machine,<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">????</blockquote></blockquote></div></blockquote><div><br></div><div># virsh list --all<br>

<br></div><div># virsh start one-45<br><br></div><div>After it boots up mount the shared folder in the VM and install the context package. <br></div><div>The shared folder appears as a 9p [1] device inside the VM. You can find in [1]<br>

</div><div>the way to mount it.<br><br></div><div>One more thing though. The /tmp/contextualization directory and contents must be<br>owned by oneadmin, because the VM runs under oneadmin user. This way you will be<br>able to mount it in the VM. <br>

<br></div><div># chown -R /tmp/contextualization<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


 </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">VNC to it,<br>mount the shared folder in the host and install the deb/rpm.</blockquote>


<div><br></div></div><div>can you explain the boot parth of the whole process?<br>and is this right what i did so far?</div></div></blockquote><div><br></div><div>Yes, it is perfectly right what you did so far. Again, Andrei's suggestion is way better and<br>

</div><div>much simpler than mine. <br><br></div><div>If you choose to follow the FILES approach please redefine your original one-45 machine.<br></div><div>This way you won't loose your previous work, the already installed VM.<br>

</div><div><br></div><div># virsh destroy one-45<br></div><div># virsh undefine one-45<br></div><div># virsh define /var/lib/one/datastores/0/45/deployment.0<br></div><div># virsh start one-45<br><br></div><div>Now your VM should be back under OpenNebula's control. You can stop it,<br>

</div><div>add one-context to FILES datastore, modify the template to include the one-context<br></div><div>file in the CONTEXT section. <br><br></div><div>Boot the machine, mount the CONTEXT ISO (the CDROM) and there you'll have the <br>

one-context package. <br><br></div><div>[1]: <a href="http://www.linux-kvm.org/page/9p_virtio">http://www.linux-kvm.org/page/9p_virtio</a><br><br></div><div>Best,<br></div><div>Valentin<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div dir="ltr"><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="">On Thu, Apr 17, 2014 at 11:17 AM, Valentin Bud <span dir="ltr"><<a href="mailto:valentin.bud@gmail.com" target="_blank">valentin.bud@gmail.com</a>></span> wrote:<br>


</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div>
<div dir="ltr"><div class="">Hello Christophe,
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Does your VM have a local network connection with the host or any other</div>
<div class="gmail_extra">computer in your local network? If that's the case you can finish the installation,</div>
<div class="gmail_extra">reboot, connect to the VM via SSH, scp the contextualization package from</div>
<div class="gmail_extra">a local computer that is in the same network or has access to the network the VM </div>
<div class="gmail_extra">is part of.</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">If you don't have VM network connectivity at all, the process I know of is a little</div>
<div class="gmail_extra">bit tedious but doable. </div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Export the libvirt xml of the VM from the host, stop the VM, undefine the domain.</div>
<div class="gmail_extra">Configure the xml to mount a local folder from the host inside the VM [1]. Somehow</div>
<div class="gmail_extra">deliver the context package in that folder. Define the domain using your crafted XML,</div>
<div class="gmail_extra">boot the machine, VNC to it, mount the shared folder in the host and install the deb/rpm.</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Are you somehow building a Debian image? If so try out bootstrap-vz, a bootstraping</div>
<div class="gmail_extra">framework for Debian specifically targeted at bootstrapping systems for virtualized </div>
<div class="gmail_extra">environments. </div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">[1]: <a href="http://libvirt.org/formatdomain.html#elementsFilesystems" target="_blank">
http://libvirt.org/formatdomain.html#elementsFilesystems</a></div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Best,</div>
<div class="gmail_extra">Valentin </div>
</div><div class="gmail_extra"><br>
<div class="gmail_quote"><div class=""><div><div>On Thu, Apr 17, 2014 at 11:29 AM, Christophe Duez <span dir="ltr">
<<a href="mailto:christophe.duez@student.uantwerpen.be" target="_blank">christophe.duez@student.uantwerpen.be</a>></span> wrote:<br>
</div></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="h5"><div><div>
<div dir="ltr">Hello,
<div>I followed this video from your youtube channel <a href="https://www.youtube.com/watch?v=fQP4NQQ9NSI" target="_blank">Bootstrapping OpenNebula 3.4 and creating a VM from scratch</a>. I did this with the OpenNebula 4.4.1.</div>



<div>Almost at the end they say you have to follow the documentation to setup contextualization.<br>
I searched the documentation and found out there are 2 ways:</div>
<div><br>
</div>
<div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<ul style="margin-top:0px;margin-bottom:0px;color:rgb(53,55,53);font-family:Verdana,Geneva,sans-serif;font-size:13px;line-height:19.0476px">
<li>Install from our repositories package <b>one-context</b> in Ubuntu/Debian or <b>opennebula-context</b> in CentOS/RedHat. Instructions to add the repository at the <a href="http://docs.opennebula.org/4.4/design_and_installation/building_your_cloud/ignc.html#ignc" style="color:rgb(0,152,195);text-decoration:none" target="_blank">installation
 guide</a>.<br>
</li><li>Download and install the package for your distribution:
<ul style="margin-top:0px;margin-bottom:0px">
<li><a href="http://dev.opennebula.org/attachments/download/750/one-context_4.4.0.deb" style="color:rgb(0,152,195);text-decoration:none" target="_blank">DEB</a>: Compatible with Ubuntu 11.10 to 13.04 and Debian Squeeze
</li><li><a href="http://dev.opennebula.org/attachments/download/747/one-context_4.4.0.rpm" style="color:rgb(0,152,195);text-decoration:none" target="_blank">RPM</a>: Compatible with CentOS and RHEL 6.x</li></ul>
</li></ul>
</blockquote>
<div><br>
</div>
<div> Now the problem that I have is the following...<br>
Without internet connection downloading the one-context package from the repository is impossible, right? </div>
<div>And downloading the Package directly isn't possible either, is it not?<br>
So how do I enable/install the contextualization? </div>
<div><br>
</div>
<div>Please help me...</div>
<span><font color="#888888">
<div><br>
</div>
-- <br>
<div dir="ltr">Kind regards,
<div>Duez Christophe
<div>
<div>
<div>
<div></div>
</div>
</div>
</div>
</div>
</div>
</font></span></div>
</div>
<br></div></div></div></div><div class="">
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">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><span><font color="#888888">
</font></span></div></blockquote><span><font color="#888888">
</font></span></div><div class=""><span><font color="#888888">
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">Valentin Bud
<div><a href="http://databus.pro" target="_blank">http://databus.pro</a> | <a href="mailto:valentin@databus.pro" target="_blank">
valentin@databus.pro</a></div>
</div>
</font></span></div></div><span class=""><font color="#888888">
</font></span></div><span class=""><font color="#888888">
</font></span></div><span class=""><font color="#888888">

</font></span></blockquote></div><span class=""><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Kind regards,<div>Duez Christophe<div>Student at University of Antwerp :<br><div>Master of Industrial Sciences: Electronics-ICT<div>

<div><br><div>
E <a href="mailto:christophe.duez@student.uantwperen.be" target="_blank">christophe.duez@student.uantwperen.be</a></div><div>L <a href="http://www.linkedin.com/pub/duez-christophe/74/7/39" target="_blank">linkedin duez-christophe</a></div>


</div></div></div></div></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Valentin Bud<div><a href="http://databus.pro" target="_blank">http://databus.pro</a> | <a href="mailto:valentin@databus.pro" target="_blank">valentin@databus.pro</a></div>

</div>
</div></div>