<div dir="ltr">Owkey I tried. but I can't get through the internet so I cant download the contextualization stuff.<div>any other solutions? <br>or solutions why it is that I can't connect through the internet?</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 18, 2014 at 1:50 PM, Duez Christophe <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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div><div class="h5">
<div dir="ltr">So what I have to do if I understand correctly:
<div>Create a template in OpenNebula <a href="http://pastebin.com/cTBZ2wvL" target="_blank">(pastbin template layout)</a></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">
TEMPLATE 13 INFORMATION<br>
ID : 13<br>
NAME : empty install template<br>
USER : oneadmin<br>
GROUP : oneadmin<br>
REGISTER TIME : 04/16 14:49:35<br>
PERMISSIONS<br>
OWNER : um-<br>
GROUP : ---<br>
OTHER : ---<br>
TEMPLATE CONTENTS<br>
CONTEXT=[<br>
NETWORK="YES",<br>
SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]" ]<br>
CPU="1"<br>
DISK=[<br>
IMAGE="CD Centos 6.5 Minimal",<br>
IMAGE_UNAME="oneadmin" ]<br>
DISK=[<br>
IMAGE="empty disc",<br>
IMAGE_UNAME="oneadmin" ]<br>
GRAPHICS=[<br>
KEYMAP="fr-be",<br>
LISTEN="0.0.0.0",<br>
TYPE="VNC" ]<br>
MEMORY="1024"<br>
NIC=[<br>
IP="146.175.139.60" ]<br>
OS=[<br>
ARCH="x86_64",<br>
BOOT="cdrom" ]</blockquote>
<div><br>
</div>
<div>Start the VM with this template.</div>
<div>Install the OS<br>
Open VNC</div>
<div><br>
vi /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0</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">
TYPE=Ethernet<br>
ONBOOT=yes<br>
NM_CONTROLLED=no<br>
BOOTPROTO=static<br>
IPADDR=146.175.139.60</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">
NETMASK=255.255.255.0</blockquote>
</div>
<div><br>
</div>
<div>Then install the contextualization.<br>
</div>
<div><br>
</div>
<div>shutdown the VM<br>
<br>
</div>
<div>Make the Image un-persistent<br>
<br>
Ready?</div>
</div>
</div></div><div class="gmail_extra"><br>
<br>
<div class="gmail_quote"><div><div class="h5">On Thu, Apr 17, 2014 at 11:53 PM, Anthony Francis - Handy Networks LLC
<span dir="ltr"><<a href="mailto:anthony@handynetworks.com" target="_blank">anthony@handynetworks.com</a>></span> wrote:<br>
</div></div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>
<div>
<div>The simplest way when you are creating a new template is to make one VM from the template while the image is persistent, manually assign the IP information to the VM via VNC, spice or what have you, then install all the base software including the contextualization
package. Then clean up the logs etc, destroy the Vm, set the image back to no-persistant and your contextualization will work when you make new VM’s based on the image.</div>
<span><font color="#888888">
<div>
<div>
<div>-- </div>
<div>Anthony Francis</div>
</div>
<div>Hosting Support Manager</div>
<div>HandyNetworks LLC</div>
<div><a href="http://www.handynetworks.com/" target="_blank">http://www.handynetworks.com/</a></div>
<div><u><a href="tel:303-414-6904" value="+13034146904" target="_blank">303-414-6904</a></u></div>
</div>
</font></span></div>
<span><font color="#888888"></font></span></div>
<span><font color="#888888">
<div><br>
</div>
</font></span><span><span><font color="#888888">
<div style="border-right:medium none;padding-right:0in;padding-left:0in;padding-top:3pt;text-align:left;font-size:11pt;border-bottom:medium none;font-family:Calibri;border-top:#b5c4df 1pt solid;padding-bottom:0in;border-left:medium none">
<span style="font-weight:bold">From: </span>Christophe Duez <<a href="mailto:christophe.duez@student.uantwerpen.be" target="_blank">christophe.duez@student.uantwerpen.be</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, April 17, 2014 at 5:30 AM<br>
<span style="font-weight:bold">To: </span>Valentin Bud <<a href="mailto:valentin.bud@gmail.com" target="_blank">valentin.bud@gmail.com</a>><br>
<span style="font-weight:bold">Cc: </span>opennebula <<a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [one-users] Contextualization<br>
</div>
</font></span>
<div>
<div>
<div><br>
</div>
<div>
<div>
<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 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-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 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-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 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-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 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-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>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>
<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><font color="#888888"></font></span></blockquote>
<span><font color="#888888"></font></span></div>
<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>
</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>
</div>
</div>
</div>
</div>
</span></div>
</blockquote>
</div></div></div><div><div class="h5">
<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></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>