<div dir="ltr"><div><div><div>Hi,<br><br></div>Just stumbled on a curious case today: Using the new context packages under Ubuntu 14.04 killed my loopback NIC since it was left it without an IP (so 127.0.0.1 was not set). I changed the script to call '/sbin/ifquery -X lo -la' to leave the loopback device as is.<br>
<br>Furthermore, under Ubuntu 12.04 ifquery has different console options. No idea if they changed it recently, but for the same functionality under 12.04 one must call '/sbin/ifquery -e lo --list'. Using the 14.04 call from above throws an error.<br>
<br></div>Greetings<br></div>Wilma<br><div><div><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2014-04-28 22:20 GMT+02:00 Javier Fontan <span dir="ltr"><<a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a>></span>:<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">I've updated the debian packages with the ip flush command sent by Stefan (thanks!). Now it seems to work even when an IP was previously configured in the interfaces file. This will make the context scripts more resilient when you save a disk without cleaning the interfaces file.<div>

<br></div><div><a href="http://dev.opennebula.org/attachments/download/780/one-context_4.6.0.deb" target="_blank">http://dev.opennebula.org/attachments/download/780/one-context_4.6.0.deb</a><br></div><div><br></div><div>
If there are no major bugs with the new package this will be the one linked in the documentation.</div>
<div><br></div><div>ML, the source of the context packages in the OpenNebula repository [1]. We usually put the created packages in the files section of the development web pages [2] and link them in the documentation [3].</div>

<div><br></div><div>[1] <a href="https://github.com/OpenNebula/one/tree/master/share/scripts/context-packages" target="_blank">https://github.com/OpenNebula/one/tree/master/share/scripts/context-packages</a></div><div>[2] <a href="http://dev.opennebula.org/projects/opennebula/files" target="_blank">http://dev.opennebula.org/projects/opennebula/files</a></div>

<div>[3] <a href="http://docs.opennebula.org/4.6/user/virtual_machine_setup/bcont.html" target="_blank">http://docs.opennebula.org/4.6/user/virtual_machine_setup/bcont.html</a></div></div><div class=""><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">
On Mon, Apr 28, 2014 at 5:55 PM, ML mail <span dir="ltr"><<a href="mailto:mlnospam@yahoo.com" target="_blank">mlnospam@yahoo.com</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">

Thanks for the new package. I just tested this version 4.6.0 which now works perfectly with ubuntu 14.04 and I have network access from the first boot.<br>
<br>
Btw: is there an official repository or download page for the ONE context packages?<br>
<div><div><br>
<br>
<br>
<br>
On Saturday, April 26, 2014 2:28 AM, Javier Fontan <<a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a>> wrote:<br>
We have applied the changes made by Michael. That seems to do the<br>
trick. Thank you!<br>
<br>
You can find the package at<br>
<a href="http://dev.opennebula.org/attachments/download/779/one-context_4.6.0.deb" target="_blank">http://dev.opennebula.org/attachments/download/779/one-context_4.6.0.deb</a><br>
<br>
Cheers<br>
<br>
On Fri, Apr 25, 2014 at 8:54 AM, ML mail <<a href="mailto:mlnospam@yahoo.com" target="_blank">mlnospam@yahoo.com</a>> wrote:<br>
> Small addition here: after the first boot (where the network is not available) instead of rebooting (where the network works afterwards), I can simply run "ifup eth0" and the network is working. So somehow ONE context sets things up correctly but eth0 is simply not up after the first boot...<br>


><br>
><br>
><br>
><br>
><br>
><br>
> On , ML mail <<a href="mailto:mlnospam@yahoo.com" target="_blank">mlnospam@yahoo.com</a>> wrote:<br>
> I also had no problems with Ubuntu 12.04, this problem only arises with 14.04. After installing the package I did not touch the interfaces file, actually I never touched it and strangely enough it has the correct context data in it but eth0 is just not configured upon first boot.<br>


><br>
><br>
> Maybe it's my Ubutnu 14.04 image itself... I installed a minimal server version of Ubuntu with only OpenSSH from the tasksel menu. Do I maybe need additional packages or to run/configure anything additional post-installation?<br>


><br>
> Regards<br>
> ML<br>
><br>
><br>
><br>
><br>
><br>
> On Thursday, April 24, 2014 7:57 PM, Javier Fontan <<a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a>> wrote:<br>
> We have tested the package in both 12.04 and 14.04. Network works fine<br>
> in the first boot. Did you modify interfaces file after installing the<br>
> package? One of the things the package does is to empty the interfaces<br>
> file, just has the loopback configured so it does not configure the<br>
> network before the context package starts.<br>
><br>
> On Thu, Apr 24, 2014 at 2:55 PM, Javier Fontan <<a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a>> wrote:<br>
>> Thanks! I'll take a look at it and test it in other distros.<br>
>><br>
>> On Thu, Apr 24, 2014 at 8:00 AM, Michael Kutzner<br>
>> <<a href="mailto:michael.kutzner@virtion.de" target="_blank">michael.kutzner@virtion.de</a>> wrote:<br>
>>> Hi Javier,<br>
>>><br>
>>><br>
>>> Am 23.04.2014 um 21:18 schrieb Javier Fontan <<a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a>>:<br>
>>><br>
>>>> Network restart is not supported in ubuntu. There is new code to<br>
>>>> overcome this issue but we are still testing the packages. A package<br>
>>>> with the latest code is attached if you want to try. You can install<br>
>>>> it over the previous version.<br>
>>><br>
>>> I run into the same problem today and tried to figure out<br>
>>> what could be a way also to included fixed interfaces configured<br>
>>> in /etc/network/interfaces.d.<br>
>>><br>
>>> So, I slightly changed at the end of 00-network (from configure_network on)<br>
>>> == snip ==<br>
>>> configure_network()<br>
>>> {<br>
>>>     gen_network_configuration > /etc/network/interfaces<br>
>>>     echo "source /etc/network/interfaces.d/*.cfg" >> /etc/network/interfaces<br>
>>> }<br>
>>><br>
>>> deactivate_network()<br>
>>> {<br>
>>>     . /etc/os-release<br>
>>>     if [ $ID = "ubuntu" ]; then<br>
>>>         IFACES=`/sbin/ifquery -la`<br>
>>><br>
>>>         for i in $IFACES; do<br>
>>>             DEV=`get_dev $i`<br>
>>>             /sbin/ifdown $i<br>
>>>         done<br>
>>>     else<br>
>>>         service networking stop<br>
>>>     fi<br>
>>> }<br>
>>><br>
>>> activate_network()<br>
>>> {<br>
>>>     . /etc/os-release<br>
>>>     if [ $ID = "ubuntu" ]; then<br>
>>>         IFACES=`/sbin/ifquery -la`<br>
>>><br>
>>>         for i in $IFACES; do<br>
>>>             DEV=`get_dev $i`<br>
>>>             /sbin/ifup $i<br>
>>>         done<br>
>>>     else<br>
>>>         service networking stop<br>
>>>         sleep 1<br>
>>>         service networking start<br>
>>>     fi<br>
>>><br>
>>>     sleep 2<br>
>>> }<br>
>>><br>
>>> deactivate_network<br>
>>> configure_network<br>
>>> activate_network<br>
>>> == snip ==<br>
>>><br>
>>> That works fine for me - especially in a mixed setup where I want to<br>
>>> use the context on the one hand, but have the need to configure alias<br>
>>> interfaces on the other hand (which is only handy on a VM with a<br>
>>> fixed configuration).<br>
>>><br>
>>> What I did not check yet if that influences somehow any other kind of<br>
>>> package (relying on existing interfaces)<br>
>>><br>
>>> Best, Michael<br>
>>><br>
>>><br>
>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>> On Wed, Apr 23, 2014 at 8:26 PM, ML mail <<a href="mailto:mlnospam@yahoo.com" target="_blank">mlnospam@yahoo.com</a>> wrote:<br>
>>>>> Hello,<br>
>>>>><br>
>>>>> I just generated a KVM qcow2 image for the new Ubuntu Server 14.04 LTS release. I usually prepare my images by simply installing the the ONE context package (<a href="http://dev.opennebula.org/attachments/download/768/one-context_4.5.0.deb" target="_blank">http://dev.opennebula.org/attachments/download/768/one-context_4.5.0.deb</a>) which I also did for this image.<br>


>>>>><br>
>>>>><br>
>>>>> Now when I deploy a VM using this image on the very first boot the network is not working, although the /etc/network/interafaces gets correctly setup by the ONE context package an "ifconfig eth0" shows no IP addresses assigned to the interface. Also a "service networking restart" does not work. The only workaround I found for now is to reboot the VM, then networking works correctly.<br>


>>>>><br>
>>>>> Is it possible that this is an issue related to the ONE context package? or simply some new networking code that Ubuntu 14.04 might have added or modified?<br>
>>>>><br>
>>>>><br>
>>>>> Regards<br>
>>>>> ML<br>
>>>>><br>
>>>>> _______________________________________________<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>
>>>><br>
>>>><br>
>>>> --<br>
>>>> Javier Fontán Muiños<br>
>>>> Developer<br>
>>>> OpenNebula - The Open Source Toolkit for Data Center Virtualization<br>
>>>> <a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @OpenNebula | <a href="http://github.com/jfontan" target="_blank">github.com/jfontan</a><br>
>>>> <one-context_4.5.85.deb>_______________________________________________<br>
><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>
>><br>
>><br>
>><br>
>> --<br>
>> Javier Fontán Muiños<br>
>> Developer<br>
>> OpenNebula - The Open Source Toolkit for Data Center Virtualization<br>
>> <a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @OpenNebula | <a href="http://github.com/jfontan" target="_blank">github.com/jfontan</a><br>
><br>
><br>
><br>
> --<br>
> Javier Fontán Muiños<br>
> Developer<br>
> OpenNebula - The Open Source Toolkit for Data Center Virtualization<br>
> <a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @OpenNebula | <a href="http://github.com/jfontan" target="_blank">github.com/jfontan</a><br>
<br>
> _______________________________________________<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>
> _______________________________________________<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>
<br>
<br>
--<br>
Javier Fontán Muiños<br>
Developer<br>
OpenNebula - The Open Source Toolkit for Data Center Virtualization<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @OpenNebula | <a href="http://github.com/jfontan" target="_blank">github.com/jfontan</a><br>
_______________________________________________<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>
_______________________________________________<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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Javier Fontán Muiños<br>Developer<br>OpenNebula - The Open Source Toolkit for Data Center Virtualization<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @OpenNebula | <a href="http://github.com/jfontan" target="_blank">github.com/jfontan</a>
</div>
</div></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></div></div></div></div></div></div></div></div>