<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-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Export the libvirt xml of the VM from the host,<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;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-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">stop the VM, <br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
virsh destroy one-45<span class="" style="white-space:pre"> <br></span></blockquote><span class="" style="white-space:pre"> <br></span>undefine the domain.<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
virsh undefine one-45</blockquote></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Configure the xml to mount a local folder from the host inside the VM [1].<br><blockquote class="gmail_quote" style="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="" style="white-space:pre"> </span><filesystem type='mount' accessmode='passthrough'><br> <span class="" style="white-space:pre"> </span><driver type='path' wrpolicy='immediate'/><br>
<span class="" style="white-space:pre"> </span><source dir='/tmp/contextualization'/><br> <span class="" style="white-space:pre"> </span><target dir='/tmp/contextualization'/><br> <span class="" style="white-space:pre"> </span><readonly/><br>
<span class="" style="white-space:pre"> </span></filesystem></blockquote></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Somehow deliver the context package in that folder. <br><blockquote class="gmail_quote" style="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="" style="white-space:pre"> </span>mkdir /tmp/contextualization/<br>
<span class="" style="white-space:pre"> </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-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Define the domain using your crafted XML,<br>
<blockquote class="gmail_quote" style="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="" style="white-space:pre"> </span>virsh define /tmp/XmlDumpFile</blockquote>
<br>boot the machine,<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">????</blockquote></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">VNC to it,<br>mount the shared folder in the host and install the deb/rpm.</blockquote>
<div><br></div><div>can you explain the boot parth of the whole process?<br>and is this right what i did so far?</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">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>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div dir="ltr">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 class="gmail_extra"><br>
<div class="gmail_quote"><div><div class="h5">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><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div class="h5">
<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-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;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.047618865966797px">
<li>Install from our repositories package <strong>one-context</strong> in Ubuntu/Debian or <strong>opennebula-context</strong> 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>
_______________________________________________<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 class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><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>
</div>
</blockquote></div><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>
</div>