You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Indra Pramana <in...@sg.or.id> on 2013/07/19 11:37:49 UTC

Password management doesn't work with Ubuntu?

Dear all,

I tried to add password management to my templates as per this guide:

http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html/Admin_Guide/add-password-management-to-templates.html

It works for my CentOS template but it doesn't work for my Ubuntu
templates. I created the templates for Ubuntu 12.04.2 and Ubuntu 13.04,
download the cloud-set-guest-password script from this URL (thanks to Ian
Duffy):

https://raw.github.com/shankerbalan/cloudstack-scripts/master/cloud-set-guest-password-ubuntu

Copy the file to /etc/init.d, rename it and make it executable:

mv /etc/init.d/cloud-set-guest-password-ubuntu
/etc/init.d/cloud-set-guest-password
chmod +x /etc/init.d/cloud-set-guest-password

Add into runlevel:

update-rc.d cloud-set-guest-password defaults

But it doesn't work. Using chkconfig (as per the guide's suggestion) also
doesn't work.

Anyone can advise?

Looking forward to your reply, thank you.

Cheers.

Re: Password management doesn't work with Ubuntu?

Posted by Lennert den Teuling <le...@pcextreme.nl>.
Op 19-07-13 11:37, Indra Pramana schreef:
> Dear all,
>
> I tried to add password management to my templates as per this guide:
>
> http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html/Admin_Guide/add-password-management-to-templates.html
>
> It works for my CentOS template but it doesn't work for my Ubuntu
> templates. I created the templates for Ubuntu 12.04.2 and Ubuntu 13.04,
> download the cloud-set-guest-password script from this URL (thanks to Ian
> Duffy):
>
> https://raw.github.com/shankerbalan/cloudstack-scripts/master/cloud-set-guest-password-ubuntu
>
> Copy the file to /etc/init.d, rename it and make it executable:
>
> mv /etc/init.d/cloud-set-guest-password-ubuntu
> /etc/init.d/cloud-set-guest-password
> chmod +x /etc/init.d/cloud-set-guest-password
>
> Add into runlevel:
>
> update-rc.d cloud-set-guest-password defaults
>
> But it doesn't work. Using chkconfig (as per the guide's suggestion) also
> doesn't work.
>
> Anyone can advise?

Have a look at the line with "DHCP_FOLDERS", it's not correct for Ubuntu.

We use the following:

DHCP_FOLDERS="/var/lib/dhclient/* /var/lib/dhcp/*"

I think this should be fixed, but then we need to make sure we cover all 
OSes.

> Looking forward to your reply, thank you.
>
> Cheers.
>


-- 
Met vriendelijke groet / Kind regards,

Lennert den Teuling

PCextreme B.V.

http://www.pcextreme.nl/contact
Tel direct: +31 (0)118 700 210

Re: Password management doesn't work with Ubuntu?

Posted by Shanker Balan <sh...@shapeblue.com>.
On 19-Jul-2013, at 10:37 AM, Indra Pramana <in...@sg.or.id>> wrote:

Dear all,

I tried to add password management to my templates as per this guide:

http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html/Admin_Guide/add-password-management-to-templates.html

It works for my CentOS template but it doesn't work for my Ubuntu
templates. I created the templates for Ubuntu 12.04.2 and Ubuntu 13.04,
download the cloud-set-guest-password script from this URL (thanks to Ian
Duffy):

https://raw.github.com/shankerbalan/cloudstack-scripts/master/cloud-set-guest-password-ubuntu

Copy the file to /etc/init.d, rename it and make it executable:

mv /etc/init.d/cloud-set-guest-password-ubuntu
/etc/init.d/cloud-set-guest-password
chmod +x /etc/init.d/cloud-set-guest-password

Add into runlevel:

update-rc.d cloud-set-guest-password defaults

But it doesn't work. Using chkconfig (as per the guide's suggestion) also
doesn't work.

Anyone can advise?

Have you looked at the logs? There might me something useful in there.


--
@shankerbalan
Managing Consultant

[cid:E7CE8425-E245-4C99-B967-713DF2967392@local]

M: +91 98860 60539
shanker.balan@shapeblue.com<ma...@shapeblue.com> | www.shapeblue.com<http://www.shapeblue.com> | Twitter:@shapeblue
ShapeBlue India, 22nd floor, Unit 2201A, World Trade Centre, Bangalore - 560 055

This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.