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 >