[one-users] ubuntu 14.04 as image - no network on first boot

ML mail mlnospam at yahoo.com
Mon Apr 28 08:55:43 PDT 2014


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.

Btw: is there an official repository or download page for the ONE context packages? 




On Saturday, April 26, 2014 2:28 AM, Javier Fontan <jfontan at opennebula.org> wrote:
We have applied the changes made by Michael. That seems to do the
trick. Thank you!

You can find the package at
http://dev.opennebula.org/attachments/download/779/one-context_4.6.0.deb

Cheers

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

> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



-- 
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | @OpenNebula | github.com/jfontan
_______________________________________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org




More information about the Users mailing list