I also tried it with the current Alpha 2 of Ubuntu 14.04 which includes cloud-init 0.7.5, but it does not work either. You can find the output of onevm and oneimage attached.
Thanks in advance Wilma 2014-02-04 Javier Fontan <jfon...@opennebula.org>: > It should be working. Can you send us the output of "onevm show -x > <vmid>" of one of those machines? > > On Mon, Feb 3, 2014 at 6:17 PM, Wilma Hermann <wilma.herm...@gmail.com> > wrote: > > Hi, > > > > I'm using the release image from yesterday (02-Feb-2014 03:39) [1]. And > the > > machine uses cloud-init 0.7.3: > > > > # virt-cat one-42 /var/log/cloud-init.log | grep running > > 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. > > > > [1]: http://cloud-images.ubuntu.com/releases/13.10/release/ > > > > Thanks in advance > > Wilma > > > > 2014-02-03 Javier Fontan <jfon...@opennebula.org>: > > > >> Are you using a recent version of those images? OpenNebula support was > >> added in cloud-init 0.7.3 and the current images come with that > >> version. User data can be specified with USER_DATA or USERDATA > >> parameters so your configuration seems to be OK. > >> > >> On Mon, Feb 3, 2014 at 5:54 PM, Wilma Hermann <wilma.herm...@gmail.com> > >> wrote: > >> > Hi, > >> > > >> > Well, the core of the problem sounds logical 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. > >> > > >> > 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 > >> > > >> > CONTEXT=[NETWORK="YES",SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]", > >> > USER_DATA="#cloud-config > >> > bootcmd: > >> > - echo HelloWorld > /etc/issue > >> > " ] > >> > > >> > just to get a visual feedback that the USER_DATA is being used by > >> > cloud-init. None of it worked out. > >> > > >> > Is there a special trick with USER_DATA? > >> > > >> > Just in case that's important: I'm using OpenNebula 4.4 with > >> > libvirt/KVM. > >> > > >> > Thanks in advance > >> > Wilma > >> > > >> > 2014-01-30 Javier Fontan <jfon...@opennebula.org>: > >> > > >> >> Unfortunately the current version of cloud-init does not load new > >> >> network parameters after they are configured in some distributions. > >> >> There is a ticket to track that problem [1] > >> >> > >> >> The documentation gives some ideas on how to overcome this [2]: > >> >> > >> >> --8<------ > >> >> The current version of cloud-init configures the network before > >> >> running cloud-init configuration. This makes the network > configuration > >> >> not reliable. Until a new version that fixes this is released you can > >> >> add OpenNebula context packages or this user data to reboot the > >> >> machine so the network is properly configured. > >> >> ------>8-- > >> >> > >> >> [1] https://bugs.launchpad.net/cloud-init/+bug/1225922 > >> >> [2] > >> >> > >> >> > http://docs.opennebula.org/stable/user/virtual_machine_setup/cloud-init.html > >> >> > >> >> On Tue, Jan 28, 2014 at 1:56 PM, Wilma Hermann > >> >> <wilma.herm...@gmail.com> > >> >> wrote: > >> >> > Hi, > >> >> > > >> >> > I'm trying to get a Ubuntu 13.10 guest to work, which uses a > official > >> >> > Cloud-image (http://cloud-images.ubuntu.com/saucy/) as disk. > However, > >> >> > the VM > >> >> > is not integrating into the virtual network. I've double checked > the > >> >> > virtual > >> >> > network settings with CentOS-VMs, the network works correctly. > >> >> > > >> >> > I've found out that CloudInit writes a correct > >> >> > /etc/network/interfaces > >> >> > file > >> >> > with a static address, however, the machine somehow ignores this > file > >> >> > and > >> >> > keeps sending DHCP requests without getting an answer (which is > >> >> > intended > >> >> > since we don't use DHCP in the VM's network). > >> >> > > >> >> > # virt-cat one-42 /etc/network/interfaces > >> >> > auto lo > >> >> > iface lo inet loopback > >> >> > > >> >> > auto eth0 > >> >> > iface eth0 inet static > >> >> > address 192.168.129.4 > >> >> > network 192.168.128.0 > >> >> > netmask 255.255.254.0 > >> >> > gateway 192.168.128.1 > >> >> > > >> >> > # virt-cat one-42 /var/log/syslog | tail -6 > >> >> > Jan 28 12:42:44 ubuntu dhclient: DHCPDISCOVER on eth0 to > >> >> > 255.255.255.255 > >> >> > port 67 interval 21 (xid=0x1080a577) > >> >> > Jan 28 12:43:05 ubuntu dhclient: DHCPDISCOVER on eth0 to > >> >> > 255.255.255.255 > >> >> > port 67 interval 13 (xid=0x1080a577) > >> >> > Jan 28 12:43:18 ubuntu dhclient: DHCPDISCOVER on eth0 to > >> >> > 255.255.255.255 > >> >> > port 67 interval 20 (xid=0x1080a577) > >> >> > Jan 28 12:43:38 ubuntu dhclient: DHCPDISCOVER on eth0 to > >> >> > 255.255.255.255 > >> >> > port 67 interval 1 (xid=0x1080a577) > >> >> > Jan 28 12:43:39 ubuntu dhclient: No DHCPOFFERS received. > >> >> > Jan 28 12:43:39 ubuntu dhclient: No working leases in persistent > >> >> > database - > >> >> > sleeping. > >> >> > > >> >> > Does anybody know how the VM template needs to be configured in > order > >> >> > to > >> >> > get > >> >> > it working? > >> >> > > >> >> > Thanks in advance > >> >> > Wilma > >> >> > > >> >> > > >> >> > _______________________________________________ > >> >> > Users mailing list > >> >> > Users@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 > > > > > > > > -- > Javier Fontán Muiños > Developer > OpenNebula - The Open Source Toolkit for Data Center Virtualization > www.OpenNebula.org | @OpenNebula | github.com/jfontan >
<IMAGE> <ID>26</ID> <UID>0</UID> <GID>0</GID> <UNAME>oneadmin</UNAME> <GNAME>oneadmin</GNAME> <NAME>Ubuntu Server 14.04 Alpha 2 x64 CloudImage</NAME> <PERMISSIONS> <OWNER_U>1</OWNER_U> <OWNER_M>1</OWNER_M> <OWNER_A>0</OWNER_A> <GROUP_U>0</GROUP_U> <GROUP_M>0</GROUP_M> <GROUP_A>0</GROUP_A> <OTHER_U>0</OTHER_U> <OTHER_M>0</OTHER_M> <OTHER_A>0</OTHER_A> </PERMISSIONS> <TYPE>0</TYPE> <DISK_TYPE>0</DISK_TYPE> <PERSISTENT>0</PERSISTENT> <REGTIME>1391505129</REGTIME> <SOURCE>/var/lib/one//datastores/1/919cd22cb8934cadee89ef3a93cb3511</SOURCE> <PATH>http://cloud-images.ubuntu.com/releases/14.04/alpha-2/trusty-server-cloudimg-amd64-disk1.img</PATH> <FSTYPE/> <SIZE>248</SIZE> <STATE>2</STATE> <RUNNING_VMS>2</RUNNING_VMS> <CLONING_OPS>0</CLONING_OPS> <CLONING_ID>-1</CLONING_ID> <DATASTORE_ID>1</DATASTORE_ID> <DATASTORE>default</DATASTORE> <VMS> <ID>65</ID> <ID>66</ID> </VMS> <CLONES/> <TEMPLATE> <DEV_PREFIX><![CDATA[hd]]></DEV_PREFIX> <DRIVER><![CDATA[qcow2]]></DRIVER> </TEMPLATE> </IMAGE>
<VM> <ID>66</ID> <UID>0</UID> <GID>0</GID> <UNAME>oneadmin</UNAME> <GNAME>oneadmin</GNAME> <NAME>Test Ubuntu trusty HelloWorld</NAME> <PERMISSIONS> <OWNER_U>1</OWNER_U> <OWNER_M>1</OWNER_M> <OWNER_A>0</OWNER_A> <GROUP_U>0</GROUP_U> <GROUP_M>0</GROUP_M> <GROUP_A>0</GROUP_A> <OTHER_U>0</OTHER_U> <OTHER_M>0</OTHER_M> <OTHER_A>0</OTHER_A> </PERMISSIONS> <LAST_POLL>1391509523</LAST_POLL> <STATE>3</STATE> <LCM_STATE>3</LCM_STATE> <RESCHED>0</RESCHED> <STIME>1391507848</STIME> <ETIME>0</ETIME> <DEPLOY_ID>one-66</DEPLOY_ID> <MEMORY>524288</MEMORY> <CPU>0</CPU> <NET_TX>16374</NET_TX> <NET_RX>9568</NET_RX> <TEMPLATE> <AUTOMATIC_REQUIREMENTS><![CDATA[!(PUBLIC_CLOUD = YES)]]></AUTOMATIC_REQUIREMENTS> <CONTEXT> <DISK_ID><![CDATA[1]]></DISK_ID> <ETH0_GATEWAY><![CDATA[192.168.128.1]]></ETH0_GATEWAY> <ETH0_IP><![CDATA[192.168.129.14]]></ETH0_IP> <ETH0_MAC><![CDATA[02:00:c0:a8:81:0e]]></ETH0_MAC> <ETH0_MASK><![CDATA[255.255.254.0]]></ETH0_MASK> <ETH0_NETWORK><![CDATA[192.168.128.0]]></ETH0_NETWORK> <NETWORK><![CDATA[YES]]></NETWORK> <SSH_PUBLIC_KEY><![CDATA[ssh-rsa AAAAB3+GuessYouKnowHowASSHPublicKeyLooksLike+Eb oneadmin@controller]]></SSH_PUBLIC_KEY> <TARGET><![CDATA[hdb]]></TARGET> <USER_DATA><![CDATA[#cloud-config bootcmd: - echo HelloWorld > /etc/issue power_state: mode: reboot message: Rebooting for correct network configuration]]></USER_DATA> </CONTEXT> <CPU><![CDATA[1]]></CPU> <DISK> <CLONE><![CDATA[YES]]></CLONE> <CLONE_TARGET><![CDATA[SYSTEM]]></CLONE_TARGET> <DATASTORE><![CDATA[default]]></DATASTORE> <DATASTORE_ID><![CDATA[1]]></DATASTORE_ID> <DEV_PREFIX><![CDATA[hd]]></DEV_PREFIX> <DISK_ID><![CDATA[0]]></DISK_ID> <DRIVER><![CDATA[qcow2]]></DRIVER> <IMAGE><![CDATA[Ubuntu Server 14.04 Alpha 2 x64 CloudImage]]></IMAGE> <IMAGE_ID><![CDATA[26]]></IMAGE_ID> <IMAGE_UNAME><![CDATA[oneadmin]]></IMAGE_UNAME> <LN_TARGET><![CDATA[NONE]]></LN_TARGET> <READONLY><![CDATA[NO]]></READONLY> <SAVE><![CDATA[NO]]></SAVE> <SIZE><![CDATA[248]]></SIZE> <SOURCE><![CDATA[/var/lib/one//datastores/1/919cd22cb8934cadee89ef3a93cb3511]]></SOURCE> <TARGET><![CDATA[hda]]></TARGET> <TM_MAD><![CDATA[shared]]></TM_MAD> <TYPE><![CDATA[FILE]]></TYPE> </DISK> <GRAPHICS> <LISTEN><![CDATA[0.0.0.0]]></LISTEN> <PORT><![CDATA[5966]]></PORT> <TYPE><![CDATA[VNC]]></TYPE> </GRAPHICS> <MEMORY><![CDATA[512]]></MEMORY> <NIC> <BRIDGE><![CDATA[br1]]></BRIDGE> <IP><![CDATA[192.168.129.14]]></IP> <IP6_LINK><![CDATA[fe80::400:c0ff:fea8:810e]]></IP6_LINK> <MAC><![CDATA[02:00:c0:a8:81:0e]]></MAC> <NETWORK><![CDATA[private]]></NETWORK> <NETWORK_ID><![CDATA[0]]></NETWORK_ID> <NETWORK_UNAME><![CDATA[oneadmin]]></NETWORK_UNAME> <NIC_ID><![CDATA[0]]></NIC_ID> <VLAN><![CDATA[NO]]></VLAN> </NIC> <OS> <ARCH><![CDATA[x86_64]]></ARCH> </OS> <TEMPLATE_ID><![CDATA[24]]></TEMPLATE_ID> <VMID><![CDATA[66]]></VMID> </TEMPLATE> <USER_TEMPLATE/> <HISTORY_RECORDS> <HISTORY> <OID>66</OID> <SEQ>0</SEQ> <HOSTNAME>192.168.128.14</HOSTNAME> <HID>1</HID> <CID>-1</CID> <STIME>1391507858</STIME> <ETIME>1391508198</ETIME> <VMMMAD>kvm</VMMMAD> <VNMMAD>dummy</VNMMAD> <TMMAD>shared</TMMAD> <DS_LOCATION>/var/lib/one//datastores</DS_LOCATION> <DS_ID>0</DS_ID> <PSTIME>1391507858</PSTIME> <PETIME>1391507871</PETIME> <RSTIME>1391507871</RSTIME> <RETIME>1391508198</RETIME> <ESTIME>0</ESTIME> <EETIME>0</EETIME> <REASON>2</REASON> <ACTION>2</ACTION> </HISTORY> <HISTORY> <OID>66</OID> <SEQ>1</SEQ> <HOSTNAME>192.168.128.15</HOSTNAME> <HID>2</HID> <CID>-1</CID> <STIME>1391508190</STIME> <ETIME>0</ETIME> <VMMMAD>kvm</VMMMAD> <VNMMAD>dummy</VNMMAD> <TMMAD>shared</TMMAD> <DS_LOCATION>/var/lib/one//datastores</DS_LOCATION> <DS_ID>0</DS_ID> <PSTIME>0</PSTIME> <PETIME>0</PETIME> <RSTIME>1391508198</RSTIME> <RETIME>0</RETIME> <ESTIME>0</ESTIME> <EETIME>0</EETIME> <REASON>0</REASON> <ACTION>0</ACTION> </HISTORY> </HISTORY_RECORDS> </VM>
_______________________________________________ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org