<div dir="ltr"><div>Hi,<br><br></div>I'm using the release image from yesterday (02-Feb-2014 03:39) [1]. And the machine uses cloud-init 0.7.3:<br><br><span style="font-family:courier new,monospace"># virt-cat one-42 /var/log/cloud-init.log | grep running<br>
2014-02-03 15:18:56,873 - util.py[DEBUG]: Cloud-init v. 0.7.3 running 'init-local' at Mon, 03 Feb 2014 15:18:56 +0000. Up 4.48 seconds.</span><br><div><br>[1]: <a href="http://cloud-images.ubuntu.com/releases/13.10/release/">http://cloud-images.ubuntu.com/releases/13.10/release/</a><br>
<br><div><div class="gmail_extra">Thanks in advance<br>
Wilma<br><br><div class="gmail_quote">2014-02-03 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">
Are you using a recent version of those images? OpenNebula support was<br>
added in cloud-init 0.7.3 and the current images come with that<br>
version. User data can be specified with USER_DATA or USERDATA<br>
parameters so your configuration seems to be OK.<br>
<br>
On Mon, Feb 3, 2014 at 5:54 PM, Wilma Hermann <<a href="mailto:wilma.hermann@gmail.com">wilma.hermann@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> Well, the core of the problem sounds logical to me. Nevertheless, I have to<br>
> wait 2 minutes for the network initialization to time-out until I can reboot<br>
> the machine using the CtrlAltDel-Button in VNC... That's not comfortable,<br>
> but bearable.<br>
><br>
> However, I cannot get that USER_DATA variable to work. Whatever I enter<br>
> there, it is obviously ignored. I tried it with the exact code from the<br>
> documentation you mentioned, but also with something like<br>
><br>
> CONTEXT=[NETWORK="YES",SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]",<br>
>   USER_DATA="#cloud-config<br>
> bootcmd:<br>
>  - echo HelloWorld > /etc/issue<br>
> " ]<br>
><br>
> just to get a visual feedback that the USER_DATA is being used by<br>
> cloud-init. None of it worked out.<br>
><br>
> Is there a special trick with USER_DATA?<br>
><br>
> Just in case that's important: I'm using OpenNebula 4.4 with libvirt/KVM.<br>
><br>
> Thanks in advance<br>
> Wilma<br>
><br>
> 2014-01-30 Javier Fontan <<a href="mailto:jfontan@opennebula.org">jfontan@opennebula.org</a>>:<br>
><br>
>> Unfortunately the current version of cloud-init does not load new<br>
>> network parameters after they are configured in some distributions.<br>
>> There is a ticket to track that problem [1]<br>
>><br>
>> The documentation gives some ideas on how to overcome this [2]:<br>
>><br>
>> --8<------<br>
>> The current version of cloud-init configures the network before<br>
>> running cloud-init configuration. This makes the network configuration<br>
>> not reliable. Until a new version that fixes this is released you can<br>
>> add OpenNebula context packages or this user data to reboot the<br>
>> machine so the network is properly configured.<br>
>> ------>8--<br>
>><br>
>> [1] <a href="https://bugs.launchpad.net/cloud-init/+bug/1225922" target="_blank">https://bugs.launchpad.net/cloud-init/+bug/1225922</a><br>
>> [2]<br>
>> <a href="http://docs.opennebula.org/stable/user/virtual_machine_setup/cloud-init.html" target="_blank">http://docs.opennebula.org/stable/user/virtual_machine_setup/cloud-init.html</a><br>
>><br>
>> On Tue, Jan 28, 2014 at 1:56 PM, Wilma Hermann <<a href="mailto:wilma.hermann@gmail.com">wilma.hermann@gmail.com</a>><br>
>> wrote:<br>
>> > Hi,<br>
>> ><br>
>> > I'm trying to get a Ubuntu 13.10 guest to work, which uses a official<br>
>> > Cloud-image (<a href="http://cloud-images.ubuntu.com/saucy/" target="_blank">http://cloud-images.ubuntu.com/saucy/</a>) as disk. However,<br>
>> > the VM<br>
>> > is not integrating into the virtual network. I've double checked the<br>
>> > virtual<br>
>> > network settings with CentOS-VMs, the network works correctly.<br>
>> ><br>
>> > I've found out that CloudInit writes a correct /etc/network/interfaces<br>
>> > file<br>
>> > with a static address, however, the machine somehow ignores this file<br>
>> > and<br>
>> > keeps sending DHCP requests without getting an answer (which is intended<br>
>> > since we don't use DHCP in the VM's network).<br>
>> ><br>
>> > # virt-cat one-42 /etc/network/interfaces<br>
>> > auto lo<br>
>> > iface lo inet loopback<br>
>> ><br>
>> > auto eth0<br>
>> > iface eth0 inet static<br>
>> >   address 192.168.129.4<br>
>> >   network 192.168.128.0<br>
>> >   netmask 255.255.254.0<br>
>> >   gateway 192.168.128.1<br>
>> ><br>
>> > # virt-cat one-42 /var/log/syslog | tail -6<br>
>> > Jan 28 12:42:44 ubuntu dhclient: DHCPDISCOVER on eth0 to 255.255.255.255<br>
>> > port 67 interval 21 (xid=0x1080a577)<br>
>> > Jan 28 12:43:05 ubuntu dhclient: DHCPDISCOVER on eth0 to 255.255.255.255<br>
>> > port 67 interval 13 (xid=0x1080a577)<br>
>> > Jan 28 12:43:18 ubuntu dhclient: DHCPDISCOVER on eth0 to 255.255.255.255<br>
>> > port 67 interval 20 (xid=0x1080a577)<br>
>> > Jan 28 12:43:38 ubuntu dhclient: DHCPDISCOVER on eth0 to 255.255.255.255<br>
>> > port 67 interval 1 (xid=0x1080a577)<br>
>> > Jan 28 12:43:39 ubuntu dhclient: No DHCPOFFERS received.<br>
>> > Jan 28 12:43:39 ubuntu dhclient: No working leases in persistent<br>
>> > database -<br>
>> > sleeping.<br>
>> ><br>
>> > Does anybody know how the VM template needs to be configured in order to<br>
>> > get<br>
>> > it working?<br>
>> ><br>
>> > Thanks in advance<br>
>> > Wilma<br>
>> ><br>
>> ><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>
>><br>
>><br>
<span class=""><font color="#888888">>><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>
<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>
</font></span></blockquote></div><br></div></div></div></div>