Was the "Password Enabled" check box marked when the template was created? This is required when you want to be able to change the password on Linux and Windows for the script to work. Once the template is created and a new instances started with this "Password Enabled" template then instances launched will be able to generate password upon creation and give the ability to the end users of chaining the root password from CloudStack.
On Friday, June 28, 2013 at 5:51 AM, WXR wrote: > I have a similar question about the password resetting. > > I download the cloud-set-guest-password for linux and put it on my centos > guest vm. > > http://sourceforge.net/projects/cloudstack/files/Password%20Management%20Scripts/ > > # cp cloud-set-guest-password /etc/init.d/ > # chmod +x /etc/init.d/cloud-set-guest-password > # chkconfig --add cloud-set-guest-password > > But it doen't take effect. > The tool for windows guest vm can work well. > > > > > ------------------ Original ------------------ > From: "Geoff Higginbottom"<geoff.higginbot...@shapeblue.com > (mailto:geoff.higginbot...@shapeblue.com)>; > Date: Fri, Jun 28, 2013 06:32 PM > To: "users@cloudstack.apache.org > (mailto:users@cloudstack.apache.org)"<users@cloudstack.apache.org > (mailto:users@cloudstack.apache.org)>; > > Subject: RE: Cloudstack password enabled template > > > > Asmita, > > Are you adding the Password Reset Script to your Templates, if so then each > time you create a new VM it will get a randomly generated password. > > I believe you can then also use the getVMPassword API call to query the > existing password, although I have not tested this new 4.1 API command yet. > > Regards > > Geoff Higginbottom > > D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581 > > geoff.higginbot...@shapeblue.com (mailto:geoff.higginbot...@shapeblue.com) > > -----Original Message----- > From: Asmita Vagyani [mailto:asmita.vagy...@sigma-systems.com] > Sent: 28 June 2013 11:26 > To: cloudstack-us...@incubator.apache.org > (mailto:cloudstack-us...@incubator.apache.org) > Subject: Cloudstack password enabled template > > > Hi, > > I have some queries related to getting password of VM that is created. > > I am using deployVirtualMachine api to create virtual machine from templates > that I have configured in cloudstack. > > When VM is deployed I want to get username and password of the VM to login to > that VM instance. > Also I want to generate random password everytime new VM is created using the > same template. > > Can anyone help me with that? > > > Regards, > > Asmita. > > 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.