[one-users] ubuntu 14.04 as image - no network on first boot
Javier Fontan
jfontan at opennebula.org
Tue Sep 2 04:09:45 PDT 2014
There is a pull request that should fix this problem. I'll generate
new packages as soon as possible. Thanks for the tip.
https://github.com/OpenNebula/addon-context-linux/pull/4
On Wed, Aug 6, 2014 at 5:40 PM, Wilma Hermann <wilma.hermann at gmail.com> wrote:
> Hi,
>
> 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.
>
> 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.
>
> Greetings
> Wilma
>
> 2014-04-28 22:20 GMT+02:00 Javier Fontan <jfontan at opennebula.org>:
>
>> 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.
>>
>> http://dev.opennebula.org/attachments/download/780/one-context_4.6.0.deb
>>
>> If there are no major bugs with the new package this will be the one
>> linked in the documentation.
>>
>> 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].
>>
>> [1]
>> https://github.com/OpenNebula/one/tree/master/share/scripts/context-packages
>> [2] http://dev.opennebula.org/projects/opennebula/files
>> [3] http://docs.opennebula.org/4.6/user/virtual_machine_setup/bcont.html
>>
>>
>> On Mon, Apr 28, 2014 at 5:55 PM, ML mail <mlnospam at yahoo.com> wrote:
>>>
>>> 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
>>>
>>> _______________________________________________
>>> 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
>>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
--
Javier Fontán Muiños
Developer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | @OpenNebula | github.com/jfontan
More information about the Users
mailing list