Hi Carlos, I'm using 0.7.3-2 from the Debian Wheezy backports repo.
I didn't have any issues acquiring metadata as long as I used isc-dhcp-client as the dhcp client (Had issues when using pump). I believe even with your patch the password on the root account will not be set. On 23 June 2014 23:49, Carlos Reátegui <create...@gmail.com> wrote: > Hi Ian, > What version of cloud-init are you using? The default one that comes with > ubuntu 12.04 has a bug that causes is not to work on Cloudstack (uses > gateway instead of dhcp server as metadata server). > > I did something similar to convert the cloud images from ubuntu into a > XenServer image and have a patch for DataSourceCloudStack in cloud-init > here: > https://github.com/creategui/CloudStackImageScripts/blob/master/DataSourceCloudStack.patch > > cheers, > -Carlos > > > On Jun 23, 2014, at 1:17 PM, Ian Duffy <i...@ianduffy.ie> wrote: > > > Lucian, > > > > You were spot on. It is not supported. I've done similar to your work > > around by giving a init.d script. > > > > I've upload a automated system using packer for generating a OVA of a > > debian x64 template to github > > https://github.com/imduffy15/cloudstack-templates > > > > I included a built version of the template for xenserver to save somebody > > time in the future. > > https://github.com/imduffy15/cloudstack-templates/releases > > > > If people are interested I might build this out to generate KVM, Xen, > > HyperV and vSphere images and add CentOS and Ubuntu. > > > > > > On 23 June 2014 18:40, Ian Duffy <i...@ianduffy.ie> wrote: > > > >> Thanks Lucian! > >> > >> I'm currently digging through the cloud-init documentation. I'll let you > >> know if I find another way. > >> > >> > >> On 23 June 2014 18:34, Nux! <n...@li.nux.ro> wrote: > >> > >>> Yes, the Cloudstack root password feature is (to my knowledge) totally > >>> unsupported by cloud-init. > >>> So only ssh keys and user data works. > >>> To work around it, I usually throw the cloudstack-set-root-password > >>> script in /var/lib/cloud/scripts/per-boot so cloud-init will execute it > >>> every time the VM boots. > >>> > >>> HTH > >>> Lucian > >>> > >>> -- > >>> Sent from the Delta quadrant using Borg technology! > >>> > >>> Nux! > >>> www.nux.ro > >>> > >>> > >>> ----- Original Message ----- > >>> From: "Ian Duffy" <i...@ianduffy.ie> > >>> To: users@cloudstack.apache.org > >>> Sent: Monday, 23 June, 2014 6:09:30 PM > >>> Subject: Debian + Cloud-Init > >>> > >>> Hi All, > >>> > >>> In the past i've used the community supplied scripts over at > >>> https://github.com/shankerbalan/cloudstack-scripts for doing > injection of > >>> password / ssh keys. > >>> > >>> I'm trying to move to cloud-init to handle this for me however I am > having > >>> some issues. > >>> > >>> I modified my /etc/cloud/cloud.cfg file to use CloudStack as a > datasource: > >>> > >>> datasource_list: ['CloudStack'] > >>> > >>> datasource: > >>> > >>> CloudStack: {} > >>> > >>> > >>> I also set the following: > >>> > >>> disable_root: False > >>> > >>> user: root > >>> > >>> ssh_pwauth: True > >>> > >>> ssh_deletekeys: True > >>> > >>> ssh_genkeytypes: ['rsa', 'dsa'] > >>> > >>> ssh_svcname: ssh > >>> > >>> > >>> On booting up the machine I see the script run successfully and pull > the > >>> metadata down from the VR. The hostname is also set and new ssh keys > are > >>> generated. > >>> > >>> On attempting to login as root with the password provided on the > >>> Cloudstack > >>> UI I am unsuccessful. I'm unsure why. > >>> > >>> > >>> Anybody got an idea where I'm going wrong? > >>> > >>> > >>> Thanks, > >>> > >>> Ian > >>> > >> > >> > >