<div dir="ltr"><div><div><span id="result_box" class="" lang="en"><span class="">Good</span> <span class="">to hear that</span> <span class="">the problem</span> <span class="">is reproducible.</span> <span class="">I was really about to </span><span class="">doubt</span> <span class="">myself. Can't be so hard to get a config file right ;)<br>
<br></span></span>Where is that user data file stored in the VM? Maybe you could tell me, where you would continue to debug. Maybe I can help you out.<br><br></div>Greetings<br></div>Wilma<br><div><div><div class="gmail_extra">
<br><br><div class="gmail_quote">2014-02-06 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">
I've been trying the image and I could not make the user data work.<br>
Cloud-init is able to get networking options and configures the<br>
network but it doesn't restart it so the changes make any effect. It<br>
is also able to get the user data and writes it to the user data file<br>
used later for configuration but it does nothing with it. It could be<br>
a problem with the cloud-init configuration in that machine.<br>
<br>
I'll do more debugging as soon as I get some time.<br>
<div class=""><div class="h5"><br>
On Tue, Feb 4, 2014 at 1:19 PM, Javier Fontan <<a href="mailto:jfontan@opennebula.org">jfontan@opennebula.org</a>> wrote:<br>
> I'll try to test that image and will let you know what I can find.<br>
><br>
> On Tue, Feb 4, 2014 at 1:18 PM, Wilma Hermann <<a href="mailto:wilma.hermann@gmail.com">wilma.hermann@gmail.com</a>> wrote:<br>
>> No, I never touched that file. It's current setting is<br>
>><br>
>> DISK = [ driver = "raw" , cache = "none"]<br>
>><br>
>> I also tried converting the Ubuntu Image to qcow and raw using qemu-img to<br>
>> make sure it is no problem with the image format. That also didn't change<br>
>> anything.<br>
>><br>
>><br>
>> 2014-02-04 Javier Fontan <<a href="mailto:jfontan@opennebula.org">jfontan@opennebula.org</a>>:<br>
>>><br>
>>> It's a long shot but do you have the default image set to qcow2? In<br>
>>> '/etc/one/vmm_exec/vmm_exec_kvm.conf':<br>
>>><br>
>>> DISK = [ driver = "qcow2" ]<br>
>>><br>
>>> If this is the case change it to raw, restart oned and try again. The<br>
>>> image already has the driver set to qcow2 so it should work.<br>
>>><br>
>>> On Tue, Feb 4, 2014 at 11:48 AM, Wilma Hermann <<a href="mailto:wilma.hermann@gmail.com">wilma.hermann@gmail.com</a>><br>
>>> wrote:<br>
>>> > I also tried it with the current Alpha 2 of Ubuntu 14.04 which includes<br>
>>> > cloud-init 0.7.5, but it does not work either. You can find the output<br>
>>> > of<br>
>>> > onevm and oneimage attached.<br>
>>> ><br>
>>> > Thanks in advance<br>
>>> > Wilma<br>
>>> ><br>
>>> > 2014-02-04 Javier Fontan <<a href="mailto:jfontan@opennebula.org">jfontan@opennebula.org</a>>:<br>
>>> ><br>
>>> >> It should be working. Can you send us the output of "onevm show -x<br>
>>> >> <vmid>" of one of those machines?<br>
>>> >><br>
>>> >> On Mon, Feb 3, 2014 at 6:17 PM, Wilma Hermann <<a href="mailto:wilma.hermann@gmail.com">wilma.hermann@gmail.com</a>><br>
>>> >> wrote:<br>
>>> >> > Hi,<br>
>>> >> ><br>
>>> >> > I'm using the release image from yesterday (02-Feb-2014 03:39) [1].<br>
>>> >> > And<br>
>>> >> > the<br>
>>> >> > machine uses cloud-init 0.7.3:<br>
>>> >> ><br>
>>> >> > # 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<br>
>>> >> > 'init-local' at Mon, 03 Feb 2014 15:18:56 +0000. Up 4.48 seconds.<br>
>>> >> ><br>
>>> >> > [1]: <a href="http://cloud-images.ubuntu.com/releases/13.10/release/" target="_blank">http://cloud-images.ubuntu.com/releases/13.10/release/</a><br>
>>> >> ><br>
>>> >> > Thanks in advance<br>
>>> >> > Wilma<br>
>>> >> ><br>
>>> >> > 2014-02-03 Javier Fontan <<a href="mailto:jfontan@opennebula.org">jfontan@opennebula.org</a>>:<br>
>>> >> ><br>
>>> >> >> Are you using a recent version of those images? OpenNebula support<br>
>>> >> >> 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<br>
>>> >> >> <<a href="mailto:wilma.hermann@gmail.com">wilma.hermann@gmail.com</a>><br>
>>> >> >> wrote:<br>
>>> >> >> > Hi,<br>
>>> >> >> ><br>
>>> >> >> > Well, the core of the problem sounds logical to me. Nevertheless,<br>
>>> >> >> > I<br>
>>> >> >> > have<br>
>>> >> >> > to<br>
>>> >> >> > wait 2 minutes for the network initialization to time-out until I<br>
>>> >> >> > can<br>
>>> >> >> > reboot<br>
>>> >> >> > the machine using the CtrlAltDel-Button in VNC... That's not<br>
>>> >> >> > comfortable,<br>
>>> >> >> > but bearable.<br>
>>> >> >> ><br>
>>> >> >> > However, I cannot get that USER_DATA variable to work. Whatever I<br>
>>> >> >> > enter<br>
>>> >> >> > there, it is obviously ignored. I tried it with the exact code<br>
>>> >> >> > from<br>
>>> >> >> > 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<br>
>>> >> >> > 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<br>
>>> >> >> >> 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<br>
>>> >> >> >> configuration<br>
>>> >> >> >> not reliable. Until a new version that fixes this is released you<br>
>>> >> >> >> 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>
>>> >> >> >><br>
>>> >> >> >><br>
>>> >> >> >><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<br>
>>> >> >> >> <<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<br>
>>> >> >> >> > official<br>
>>> >> >> >> > Cloud-image (<a href="http://cloud-images.ubuntu.com/saucy/" target="_blank">http://cloud-images.ubuntu.com/saucy/</a>) as disk.<br>
>>> >> >> >> > However,<br>
>>> >> >> >> > the VM<br>
>>> >> >> >> > is not integrating into the virtual network. I've double<br>
>>> >> >> >> > checked<br>
>>> >> >> >> > the<br>
>>> >> >> >> > virtual<br>
>>> >> >> >> > network settings with CentOS-VMs, the network works correctly.<br>
>>> >> >> >> ><br>
>>> >> >> >> > I've found out that CloudInit writes a correct<br>
>>> >> >> >> > /etc/network/interfaces<br>
>>> >> >> >> > file<br>
>>> >> >> >> > with a static address, however, the machine somehow ignores<br>
>>> >> >> >> > this<br>
>>> >> >> >> > file<br>
>>> >> >> >> > and<br>
>>> >> >> >> > keeps sending DHCP requests without getting an answer (which is<br>
>>> >> >> >> > 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<br>
>>> >> >> >> > 255.255.255.255<br>
>>> >> >> >> > port 67 interval 21 (xid=0x1080a577)<br>
>>> >> >> >> > Jan 28 12:43:05 ubuntu dhclient: DHCPDISCOVER on eth0 to<br>
>>> >> >> >> > 255.255.255.255<br>
>>> >> >> >> > port 67 interval 13 (xid=0x1080a577)<br>
>>> >> >> >> > Jan 28 12:43:18 ubuntu dhclient: DHCPDISCOVER on eth0 to<br>
>>> >> >> >> > 255.255.255.255<br>
>>> >> >> >> > port 67 interval 20 (xid=0x1080a577)<br>
>>> >> >> >> > Jan 28 12:43:38 ubuntu dhclient: DHCPDISCOVER on eth0 to<br>
>>> >> >> >> > 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<br>
>>> >> >> >> > persistent<br>
>>> >> >> >> > database -<br>
>>> >> >> >> > sleeping.<br>
>>> >> >> >> ><br>
>>> >> >> >> > Does anybody know how the VM template needs to be configured in<br>
>>> >> >> >> > order<br>
>>> >> >> >> > 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>
>>> >> >> >><br>
>>> >> >> >> --<br>
>>> >> >> >> Javier Fontán Muiños<br>
>>> >> >> >> Developer<br>
>>> >> >> >> OpenNebula - The Open Source Toolkit for Data Center<br>
>>> >> >> >> 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>
>>> >> ><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>
>>><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>
<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>
</div></div></blockquote></div><br></div></div></div></div>