以下是我当初做密码功能时记的笔记,供参考 关于对模版启用密码管理功能,操作如下:
OS type: ubuntu12.04 三个步骤 1. chmod +x /etc/init.d/cloud-set-guest-password 2. sudo update-rc.d cloud-set-guest-password defaults 98 3. install whois 里面包含mkpasswd (apt-get install whois) OS type:centos 6.3 1. chmod +x /etc/init.d/cloud-set-guest-password 2.chkconfig cloud-set-guest-password on 3.安装mkpasswd yum -y install expect 参考: To activate this in a template, you need to install extra script in your VM: For windows, download the installer CloudInstanceManager.msi and run it in the Windows VM. For Linux, download the script cloud-set-guest-password into /etc/init.d (or /etc/rc.d/init.d), make it executable by chmod +x /etc/init.d/cloud-set-guest-password and do: If you are in Fedora, CentOS, RHEL, or Debian, run chkconfig --add cloud-set-guest-password. If you are in Ubuntu: first if you are running version 11.04, create a directory /var/lib/dhcp3, then run sudo update-rc.d cloud-set-guest-password defaults 98. You need to have mkpasswd installed (sudo apt-get install whois or sudo apt-get install mkpasswd depending on your Ubuntu version. windows系统启用密码管理: 安装如下软件 http://sourceforge.net/projects/cloudstack/files/Password%20Management%20Scripts/CloudInstanceManager.msi/download yuanshuai.develop 发件人: 张海峰 发送时间: 2013-05-14 15:54 收件人: users-cn@cloudstack.apache.org 主题: RE: 新建模板的时候,有个启动密码的checkbox,这个功能有什么用? 请教一下,怎么做重置密码的前置工作?用啥工具软件? 另外对windows和linux都有效吗,因为我看到这个密码的用户名是root. > Date: Mon, 13 May 2013 18:04:41 +0800 > Subject: Re: 新建模板的时候,有个启动密码的checkbox,这个功能有什么用? > From: breeze7...@gmail.com > To: users-cn@cloudstack.apache.org > > 因为你的模板没有做重置密码的前置工作 > 此功能的目的是让从同一个模板创建的机器产生不同的初始化密码给用户 > > > 在 2013年5月13日下午5:55,张海峰 <zhang.haif...@outlook.com>写道: > > > > > > > > > > > > > 我打开这个开关,用模板创建实例,提示我一个密码,但是登陆的时候也没有用到。不知道什么意思? > >