<div dir="ltr"><div>Hi,<br><br>Well, the core of the problem <span id="result_box" class="" lang="en"><span class="">sounds</span> <span class="">logical</span> <span class="">to me. Nevertheless, I have to wait 2 minutes for the network initialization to time-out until I can reboot the machine using the CtrlAltDel-Button in VNC... That's not comfortable, but bearable.<br>
<br></span></span></div><span id="result_box" class="" lang="en"><span class="">However, I cannot get that USER_DATA variable to work. Whatever I enter there, it is obviously ignored. I tried it with the exact code from the documentation you mentioned, but also with something like</span></span><br>
<pre>CONTEXT=[NETWORK="YES",SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]",
USER_DATA="#cloud-config
<span class="">bootcmd</span><span class="">:</span>
<span class="">-</span> <span class="">echo HelloWorld > /etc/issue</span>
" ]</pre><div><div><div class="gmail_extra">just to get a visual feedback that the <span id="result_box" class="" lang="en"><span class="">USER_DATA is being used by cloud-init. None of it worked out.<br><br></span></span></div>
<div class="gmail_extra"><span id="result_box" class="" lang="en"><span class="">Is there a special trick with </span></span><span id="result_box" class="" lang="en"><span class="">USER_DATA?<br></span></span><br></div><div class="gmail_extra">
Just in case that's important: I'm using OpenNebula 4.4 with libvirt/KVM.<br></div><div class="gmail_extra"><br>Thanks in advance<br>Wilma</div><div class="gmail_extra"><br><div class="gmail_quote">2014-01-30 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">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] <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>> 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, the VM<br>
> is not integrating into the virtual network. I've double checked the 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 file<br>
> with a static address, however, the machine somehow ignores this file 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 database -<br>
> sleeping.<br>
><br>
> Does anybody know how the VM template needs to be configured in order to 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>
<span class=""><font color="#888888"><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>