You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-cn@cloudstack.apache.org by 雷帆 <fa...@coolcloudz.com> on 2012/12/14 08:59:52 UTC

回复: 答复: 密码管理服务无法生效

�Ҵ�centos 5.6����Գɹ�
���²��裺
1.����http://pastebin.com/raw.php?i=sk7UEHKh��һ��Ҫ�ѻ��и�ʽ�ij� ��LF��ֱ�����������wget�Dz��еģ�������tr����ɾ���ű����"\r"
2.��װmkpasswd���yum -y install expect
3.chmod +x /etc/init.d/cloud-set-guest-password    chkconfig --add cloud-set-guest-password    ֮��ͺ���




�׷�
�绰 0510-81122000-1036
www.coolcloudz.com                                         
��������̫�����ʿƼ�԰������200���й�΢�ɴ��������ʴ���԰B����¥   214135              
200 Linghu Blvd.,Bldg.B.3/F,Taihu lnt��l Science and Technology Park, Wuxi New District, Jiangsu 214135, PRC  
...................................................................................         
Please see the attached hyperlink for an important electronic communications disclaimer / �������������Ķ������ʼ�����
http://www.coolcloudz.com/emailstatement/

�����ˣ� yuanshuai
����ʱ�䣺 2012-12-14 14:13
�ռ��ˣ� cloudstack-users-cn@incubator.apache.org
���⣺ ��: ������������޷���Ч
��������ubuntu12.04��template������������ɹ���
��Ҫ����������
1. chmod +x /etc/init.d/cloud-set-guest-password
2. run sudo update-rc.d cloud-set-guest-password defaults 98
3. ��װwhois �������mkpasswd (apt-get install whois)

Ȼ���ٵ���ģ��

ϣ���ܶ�����������

Best Regards 
-----�ʼ�ԭ��-----
������: Royal Yang [mailto:rayang2004@gmail.com] 
����ʱ��: 2012��12��14�� 9:55
�ռ���: cloudstack-users-cn@incubator.apache.org
����: Re: ������������޷���Ч

���DZ��õ�CS4�ǰɣ�������������3.0.2��cloud-set-guest-password
������������http://pastebin.com/raw.php?i=sk7UEHKh


�� 2012��12��13������10:23��hotmail <mi...@hotmail.com>���

> ��������/var/log/messages û�п����κ���Ϣ..
>
> ֱ��ִ��֮����console ֮��ֻ������.. �Ҿ����Dz��ǽű�����domip Ū����..
domip
> �Dz���Ӧ���ǹ�����������IP������ʾ����о����� ����·�ɵ�ip..
>
> --2012-12-13 22:18:50--  http://202.120.58.83:8080/
> Connecting to 202.120.58.83:8080... connected.
> HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9
> Length: unspecified
> Saving to: `STDOUT'
>
>     [<=>                                               ] 0
> --.-K/s              saved_password
>     [ <=>                                              ] 16
>  --.-K/s   in 0s
>
> 2012-12-13 22:18:50 (1.36 MB/s) - written to stdout [16]
>
>
>
> �� 2012-12-13������10:41��Royal Yang <ra...@gmail.com> ���
>
> > �������ֶ�ִ����/etc/init.d/cloud-set-guest-password
> > ֮�н�����ȥ/var/log/messages�²鿴�Ƿ���������������������Ӧ���Ǹ���
���Ľ����
> > /*
> > Dec 13 02:09:54 node1 cloud: Found password server IP 10.99.0.4 in
> > /var/lib/dhclient/dhclient-eth0.leases
> > Dec 13 02:09:54 node1 cloud: Sending request to password server at
> > 10.99.0.4
> > Dec 13 02:09:54 node1 cloud: Got response from server at 10.99.0.4
> > Dec 13 02:09:54 node1 cloud: VM has already saved a password from the
> > password server at 10.99.0.4
> > Dec 13 02:09:54 node1 cloud: Found password server IP in
> > /var/lib/dhclient/resolv.conf.predhclient.eth0
> > Dec 13 02:09:54 node1 cloud: Sending request to password server at
> > Dec 13 02:09:54 node1 cloud: Got response from server at
> > Dec 13 02:09:54 node1 cloud: Password server at did not have any
password
> > for the VM
> > Dec 13 02:09:54 node1 cloud: Did not need to change password.
> > Dec 13 02:10:03 node1 init: tty (/dev/tty1) main process ended,
> respawning
> > */
> > ------------------------------
> > rayang2004
> >  *From:* hotmail <mi...@hotmail.com>
> > *Date:* 2012-12-13 09:55
> > *To:* cloudstack-users-cn <cl...@incubator.apache.org>
> > *Subject:* Re: ������������޷���Ч
> > ������Ѿ����ӵ�..
> > ���ǻ�����Ч..
> > �� 2012-12-13������9:11���̃̊��� <ra...@qq.com> д����
> >> �㻹��Ҫchkconfig --add cloud-set-guest-password
> >>
> >>
> >>
> >>
> >> ------------------ ԭʼ�ʼ� ------------------
> >> ������: "hotmail"<mi...@hotmail.com>;
> >> ����ʱ��: 2012��12��12��(������) ����11:35
> >> �ռ���:
"cloudstack-users-cn"<cl...@incubator.apache.org>;
> >>
> >> ����: ������������޷���Ч
> >>
> >>
> >>
> >> ���չٷ�ָ���ĵ�
> >>
> >
>
http://incubator.apache.org/cloudstack/docs/en-US/Apache_CloudStack/4.0.0-in
cubating/html/Admin_Guide/add-password-management-to-templates.html
> >>
> >> ��ͨ��centos 6.3 �� ISO ����һ��instance A . Ȼ���� ��������ٷ��ĵ�...
copy
> > cloud-set-guest-password ��/etc/init.d/��.��������+x��Ȩ��
> >>
> >> Ȼ�� ͨ��instance A �Ŀ��� ������һ�� ģ��.. ͨ��ģ������ instance B ��
ϵͳ�������һ������..
> > ������ʵ����������Ч��..
> >>
> >> ����������������Ҫ������������Щ����..
>
>

Re: 答复: 答复: 密码管理服务无法生效

Posted by 马营 <br...@gmail.com>.
Ӧ�������centosģ��������Ѿ���װ����mkpasswd��û��������get����Ľű������в�����

�� 2012��12��14������5:16��yuanshuai <yu...@gmail.com>���

> ** **
>
> �Ҹո�������centos6.3��ģ�棬û�а�װmkpasswd Ҳ�ܹ���������****
>
> ** **
>
> *������:* �׷� [mailto:fan.lei@coolcloudz.com]
> *����ʱ��:* 2012��12��14�� 16:00
> *�ռ���:* cloudstack-users-cn@incubator.apache.org
> *����:* �ظ�: ��: ������������޷���Ч****
>
> ** **
>
> �Ҵ�centos 5.6����Գɹ�****
>
> ���²��裺****
>
> 1.����http://pastebin.com/raw.php?i=sk7UEHKh��һ��Ҫ�ѻ��и�ʽ�ij� ��LF��ֱ�����������wget
> �Dz��еģ�������tr����ɾ���ű����"\r"****
>
> 2.��װmkpasswd���yum -y install expect****
>
> 3.chmod +x /etc/init.d/cloud-set-guest-password    chkconfig --add
> cloud-set-guest-password    ֮��ͺ���****
>
>  ****
>  ------------------------------
>
> �׷�****
>
> �绰 0510-81122000-1036****
>
> www.coolcloudz.com                                         ****
>
> ��������̫�����ʿƼ�԰������200���й�΢�ɴ��������ʴ���԰B����¥   214135              ****
>
> 200 Linghu Blvd.,Bldg.B.3/F,Taihu lnt��l Science and Technology Park, Wuxi
> New District, Jiangsu 214135, PRC  ****
>
> ...................................................................................
> ****
>
> Please see the attached hyperlink for an important electronic
> communications disclaimer / �������������Ķ������ʼ�����****
>
> http://www.coolcloudz.com/emailstatement/****
>
>  ****
>
> *�����ˣ�* yuanshuai <yu...@gmail.com>****
>
> *����ʱ�䣺* 2012-12-14 14:13****
>
> *�ռ��ˣ�* cloudstack-users-cn@incubator.apache.org****
>
> *���⣺* ��: ������������޷���Ч****
>
> ��������ubuntu12.04��template������������ɹ���****
>
> ��Ҫ����������****
>
> 1. chmod +x /etc/init.d/cloud-set-guest-password****
>
> 2. run sudo update-rc.d cloud-set-guest-password defaults 98****
>
> 3. ��װwhois �������mkpasswd (apt-get install whois)****
>
>  ****
>
> Ȼ���ٵ���ģ��****
>
>  ****
>
> ϣ���ܶ�����������****
>
>  ****
>
> Best Regards ****
>
> -----�ʼ�ԭ��-----****
>
> ������: Royal Yang [mailto:rayang2004@gmail.com] ****
>
> ����ʱ��: 2012��12��14�� 9:55****
>
> �ռ���: cloudstack-users-cn@incubator.apache.org****
>
> ����: Re: ������������޷���Ч****
>
>  ****
>
> ���DZ��õ�CS4�ǰɣ�������������3.0.2��cloud-set-guest-password****
>
> ������������http://pastebin.com/raw.php?i=sk7UEHKh****
>
>  ****
>
>  ****
>
> �� 2012��12��13������10:23��hotmail <mi...@hotmail.com>���****
>
>  ****
>
> > ��������/var/log/messages û�п����κ���Ϣ..****
>
> >** **
>
> > ֱ��ִ��֮����console ֮��ֻ������.. �Ҿ����Dz��ǽű�����domip Ū����..****
>
> domip****
>
> > �Dz���Ӧ���ǹ�����������IP������ʾ����о����� ����·�ɵ�ip..****
>
> >** **
>
> > --2012-12-13 22:18:50--  http://202.120.58.83:8080/****
>
> > Connecting to 202.120.58.83:8080... connected.****
>
> > HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9
> ****
>
> > Length: unspecified****
>
> > Saving to: `STDOUT'****
>
> >** **
>
> >     [<=>                                               ] 0****
>
> > --.-K/s              saved_password****
>
> >     [ <=>                                              ] 16****
>
> >  --.-K/s   in 0s****
>
> >** **
>
> > 2012-12-13 22:18:50 (1.36 MB/s) - written to stdout [16]****
>
> >** **
>
> >** **
>
> >** **
>
> > �� 2012-12-13������10:41��Royal Yang <ra...@gmail.com> ���****
>
> >** **
>
> > > �������ֶ�ִ����/etc/init.d/cloud-set-guest-password****
>
> > > ֮�н�����ȥ/var/log/messages�²鿴�Ƿ���������������������Ӧ���Ǹ���****
>
> ���Ľ����****
>
> > > /*****
>
> > > Dec 13 02:09:54 node1 cloud: Found password server IP 10.99.0.4 in****
>
> > > /var/lib/dhclient/dhclient-eth0.leases****
>
> > > Dec 13 02:09:54 node1 cloud: Sending request to password server at****
>
> > > 10.99.0.4****
>
> > > Dec 13 02:09:54 node1 cloud: Got response from server at 10.99.0.4****
>
> > > Dec 13 02:09:54 node1 cloud: VM has already saved a password from the*
> ***
>
> > > password server at 10.99.0.4****
>
> > > Dec 13 02:09:54 node1 cloud: Found password server IP in****
>
> > > /var/lib/dhclient/resolv.conf.predhclient.eth0****
>
> > > Dec 13 02:09:54 node1 cloud: Sending request to password server at****
>
> > > Dec 13 02:09:54 node1 cloud: Got response from server at****
>
> > > Dec 13 02:09:54 node1 cloud: Password server at did not have any****
>
> password****
>
> > > for the VM****
>
> > > Dec 13 02:09:54 node1 cloud: Did not need to change password.****
>
> > > Dec 13 02:10:03 node1 init: tty (/dev/tty1) main process ended,****
>
> > respawning****
>
> > > */****
>
> > > ------------------------------****
>
> > > rayang2004****
>
> > >  *From:* hotmail <mi...@hotmail.com>****
>
> > > *Date:* 2012-12-13 09:55****
>
> > > *To:* cloudstack-users-cn <cl...@incubator.apache.org>**
> **
>
> > > *Subject:* Re: ������������޷���Ч****
>
> > > ������Ѿ����ӵ�..****
>
> > > ���ǻ�����Ч..****
>
> > > �� 2012-12-13������9:11���̃̊��� <ra...@qq.com> д����****
>
> > >> �㻹��Ҫchkconfig --add cloud-set-guest-password****
>
> > >>****
>
> > >>****
>
> > >>****
>
> > >>****
>
> > >> ------------------ ԭʼ�ʼ� ------------------****
>
> > >> ������: "hotmail"<mi...@hotmail.com>;****
>
> > >> ����ʱ��: 2012��12��12��(������) ����11:35****
>
> > >> �ռ���:****
>
> "cloudstack-users-cn"<cl...@incubator.apache.org>;****
>
> > >>****
>
> > >> ����: ������������޷���Ч****
>
> > >>****
>
> > >>****
>
> > >>****
>
> > >> ���չٷ�ָ���ĵ�****
>
> > >>****
>
> > >****
>
> >** **
>
>
> http://incubator.apache.org/cloudstack/docs/en-US/Apache_CloudStack/4.0.0-in
> ****
>
> cubating/html/Admin_Guide/add-password-management-to-templates.html****
>
> > >>****
>
> > >> ��ͨ��centos 6.3 �� ISO ����һ��instance A . Ȼ���� ��������ٷ��ĵ�...****
>
> copy****
>
> > > cloud-set-guest-password ��/etc/init.d/��.��������+x��Ȩ��****
>
> > >>****
>
> > >> Ȼ�� ͨ��instance A �Ŀ��� ������һ�� ģ��.. ͨ��ģ������ instance B ��****
>
> ϵͳ�������һ������..****
>
> > > ������ʵ����������Ч��..****
>
> > >>****
>
> > >> ����������������Ҫ������������Щ����..****
>
> >** **
>
> >** **
>

Re: 密码管理服务无法生效

Posted by 马营 <br...@gmail.com>.
Device eth0 does not seem to be present,delaying initialization
ϵͳδ�ҵ���Ϊeth0����������ifconfig -a�鿴һ��

�� 2012��12��14������8:21��hotmail <mi...@hotmail.com>���

> �ܼ�˵һ��centos 6.3ģ����ô����ô... ��������centos ģ�����ɵ�vm �����Զ����ip
> ִ��ifup eth0
> ��ʾ:Device eth0 does not seem to be present,delaying initialization
>
> ����Ҫ���ⰲװʲô������ô...
>
>
>
> �� 2012-12-14������5:16��"yuanshuai" <yu...@gmail.com> ���
>
> > �Ҹո�������centos6.3��ģ�棬û�а�װmkpasswd Ҳ�ܹ���������
> >
> > ������: �׷� [mailto:fan.lei@coolcloudz.com]
> > ����ʱ��: 2012��12��14�� 16:00
> > �ռ���: cloudstack-users-cn@incubator.apache.org
> > ����: �ظ�: ��: ������������޷���Ч
> >
> > �Ҵ�centos 5.6����Գɹ�
> > ���²��裺
> > 1.����http://pastebin.com/raw.php?i=sk7UEHKh��һ��Ҫ�ѻ��и�ʽ�ij�
> ��LF��ֱ�����������wget�Dz��еģ�������tr����ɾ���ű����"\r"
> > 2.��װmkpasswd���yum -y install expect
> > 3.chmod +x /etc/init.d/cloud-set-guest-password    chkconfig --add
> cloud-set-guest-password    ֮��ͺ���
> >
> > �׷�
> > �绰 0510-81122000-1036
> > www.coolcloudz.com
> > ��������̫�����ʿƼ�԰������200���й�΢�ɴ��������ʴ���԰B����¥   214135
> > 200 Linghu Blvd.,Bldg.B.3/F,Taihu lnt��l Science and Technology Park,
> Wuxi New District, Jiangsu 214135, PRC
> >
> ...................................................................................
> > Please see the attached hyperlink for an important electronic
> communications disclaimer / �������������Ķ������ʼ�����
> > http://www.coolcloudz.com/emailstatement/
> >
> > �����ˣ� yuanshuai
> > ����ʱ�䣺 2012-12-14 14:13
> > �ռ��ˣ� cloudstack-users-cn@incubator.apache.org
> > ���⣺ ��: ������������޷���Ч
> > ��������ubuntu12.04��template������������ɹ���
> > ��Ҫ����������
> > 1. chmod +x /etc/init.d/cloud-set-guest-password
> > 2. run sudo update-rc.d cloud-set-guest-password defaults 98
> > 3. ��װwhois �������mkpasswd (apt-get install whois)
> >
> > Ȼ���ٵ���ģ��
> >
> > ϣ���ܶ�����������
> >
> > Best Regards
> > -----�ʼ�ԭ��-----
> > ������: Royal Yang [mailto:rayang2004@gmail.com]
> > ����ʱ��: 2012��12��14�� 9:55
> > �ռ���: cloudstack-users-cn@incubator.apache.org
> > ����: Re: ������������޷���Ч
> >
> > ���DZ��õ�CS4�ǰɣ�������������3.0.2��cloud-set-guest-password
> > ������������http://pastebin.com/raw.php?i=sk7UEHKh
> >
> >
> > �� 2012��12��13������10:23��hotmail <mi...@hotmail.com>���
> >
> > > ��������/var/log/messages û�п����κ���Ϣ..
> > >
> > > ֱ��ִ��֮����console ֮��ֻ������.. �Ҿ����Dz��ǽű�����domip Ū����..
> > domip
> > > �Dz���Ӧ���ǹ�����������IP������ʾ����о����� ����·�ɵ�ip..
> > >
> > > --2012-12-13 22:18:50--  http://202.120.58.83:8080/
> > > Connecting to 202.120.58.83:8080... connected.
> > > HTTP request sent, awaiting response... 200 No headers, assuming
> HTTP/0.9
> > > Length: unspecified
> > > Saving to: `STDOUT'
> > >
> > >     [<=>                                               ] 0
> > > --.-K/s              saved_password
> > >     [ <=>                                              ] 16
> > >  --.-K/s   in 0s
> > >
> > > 2012-12-13 22:18:50 (1.36 MB/s) - written to stdout [16]
> > >
> > >
> > >
> > > �� 2012-12-13������10:41��Royal Yang <ra...@gmail.com> ���
> > >
> > > > �������ֶ�ִ����/etc/init.d/cloud-set-guest-password
> > > > ֮�н�����ȥ/var/log/messages�²鿴�Ƿ���������������������Ӧ���Ǹ���
> > ���Ľ����
> > > > /*
> > > > Dec 13 02:09:54 node1 cloud: Found password server IP 10.99.0.4 in
> > > > /var/lib/dhclient/dhclient-eth0.leases
> > > > Dec 13 02:09:54 node1 cloud: Sending request to password server at
> > > > 10.99.0.4
> > > > Dec 13 02:09:54 node1 cloud: Got response from server at 10.99.0.4
> > > > Dec 13 02:09:54 node1 cloud: VM has already saved a password from the
> > > > password server at 10.99.0.4
> > > > Dec 13 02:09:54 node1 cloud: Found password server IP in
> > > > /var/lib/dhclient/resolv.conf.predhclient.eth0
> > > > Dec 13 02:09:54 node1 cloud: Sending request to password server at
> > > > Dec 13 02:09:54 node1 cloud: Got response from server at
> > > > Dec 13 02:09:54 node1 cloud: Password server at did not have any
> > password
> > > > for the VM
> > > > Dec 13 02:09:54 node1 cloud: Did not need to change password.
> > > > Dec 13 02:10:03 node1 init: tty (/dev/tty1) main process ended,
> > > respawning
> > > > */
> > > > ------------------------------
> > > > rayang2004
> > > >  *From:* hotmail <mi...@hotmail.com>
> > > > *Date:* 2012-12-13 09:55
> > > > *To:* cloudstack-users-cn <cl...@incubator.apache.org>
> > > > *Subject:* Re: ������������޷���Ч
> > > > ������Ѿ����ӵ�..
> > > > ���ǻ�����Ч..
> > > > �� 2012-12-13������9:11���̃̊��� <ra...@qq.com> д����
> > > >> �㻹��Ҫchkconfig --add cloud-set-guest-password
> > > >>
> > > >>
> > > >>
> > > >>
> > > >> ------------------ ԭʼ�ʼ� ------------------
> > > >> ������: "hotmail"<mi...@hotmail.com>;
> > > >> ����ʱ��: 2012��12��12��(������) ����11:35
> > > >> �ռ���:
> > "cloudstack-users-cn"<cl...@incubator.apache.org>;
> > > >>
> > > >> ����: ������������޷���Ч
> > > >>
> > > >>
> > > >>
> > > >> ���չٷ�ָ���ĵ�
> > > >>
> > > >
> > >
> >
> http://incubator.apache.org/cloudstack/docs/en-US/Apache_CloudStack/4.0.0-in
> > cubating/html/Admin_Guide/add-password-management-to-templates.html
> > > >>
> > > >> ��ͨ��centos 6.3 �� ISO ����һ��instance A . Ȼ���� ��������ٷ��ĵ�...
> > copy
> > > > cloud-set-guest-password ��/etc/init.d/��.��������+x��Ȩ��
> > > >>
> > > >> Ȼ�� ͨ��instance A �Ŀ��� ������һ�� ģ��.. ͨ��ģ������ instance B ��
> > ϵͳ�������һ������..
> > > > ������ʵ����������Ч��..
> > > >>
> > > >> ����������������Ҫ������������Щ����..
> > >
> > >
>
>

Re: 密码管理服务无法生效

Posted by hotmail <mi...@hotmail.com>.
能简单说一下centos 6.3模版怎么制作么... 我制作的centos 模版生成的vm 不能自动活得ip
执行ifup eth0 
提示:Device eth0 does not seem to be present,delaying initialization

是需要额外安装什么软件包么... 



在 2012-12-14,下午5:16,"yuanshuai" <yu...@gmail.com> 写道:

> 我刚刚制作了centos6.3的模版,没有安装mkpasswd 也能管理密码了
>  
> 发件人: 雷帆 [mailto:fan.lei@coolcloudz.com] 
> 发送时间: 2012年12月14日 16:00
> 收件人: cloudstack-users-cn@incubator.apache.org
> 主题: 回复: 答复: 密码管理服务无法生效
>  
> 我从centos 5.6里测试成功
> 以下步骤:
> 1.下载http://pastebin.com/raw.php?i=sk7UEHKh,一定要把换行格式改成 仅LF,直接在虚拟机里wget是不行的,可以用tr命令删除脚本里的"\r"
> 2.安装mkpasswd命令,yum -y install expect
> 3.chmod +x /etc/init.d/cloud-set-guest-password    chkconfig --add cloud-set-guest-password    之后就好了
>  
> 雷帆
> 电话 0510-81122000-1036
> www.coolcloudz.com                                        
> 无锡新区太湖国际科技园菱湖大道200号中国微纳传感网国际创新园B幢三楼   214135             
> 200 Linghu Blvd.,Bldg.B.3/F,Taihu lnt’l Science and Technology Park, Wuxi New District, Jiangsu 214135, PRC  
> ...................................................................................        
> Please see the attached hyperlink for an important electronic communications disclaimer / 请点击以下链接阅读电子邮件声明
> http://www.coolcloudz.com/emailstatement/
>  
> 发件人: yuanshuai
> 发送时间: 2012-12-14 14:13
> 收件人: cloudstack-users-cn@incubator.apache.org
> 主题: 答复: 密码管理服务无法生效
> 我做的是ubuntu12.04的template,我密码管理成功了
> 主要有三个步骤
> 1. chmod +x /etc/init.d/cloud-set-guest-password
> 2. run sudo update-rc.d cloud-set-guest-password defaults 98
> 3. 安装whois 里面包含mkpasswd (apt-get install whois)
>  
> 然后再导出模版
>  
> 希望能对你有所帮助
>  
> Best Regards 
> -----邮件原件-----
> 发件人: Royal Yang [mailto:rayang2004@gmail.com] 
> 发送时间: 2012年12月14日 9:55
> 收件人: cloudstack-users-cn@incubator.apache.org
> 主题: Re: 密码管理服务无法生效
>  
> 你那边用的CS4是吧?建议你试下用3.0.2的cloud-set-guest-password
> 我贴到了这里http://pastebin.com/raw.php?i=sk7UEHKh
>  
>  
> 在 2012年12月13日下午10:23,hotmail <mi...@hotmail.com>写道:
>  
> > 好像我在/var/log/messages 没有看到任何信息..
> > 
> > 直接执行之后在console 之后只这样的.. 我觉得是不是脚本参数domip 弄错了..
> domip
> > 是不是应该是管理服务器的IP。我显示结果感觉像是 虚拟路由的ip..
> > 
> > --2012-12-13 22:18:50--  http://202.120.58.83:8080/
> > Connecting to 202.120.58.83:8080... connected.
> > HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9
> > Length: unspecified
> > Saving to: `STDOUT'
> > 
> >     [<=>                                               ] 0
> > --.-K/s              saved_password
> >     [ <=>                                              ] 16
> >  --.-K/s   in 0s
> > 
> > 2012-12-13 22:18:50 (1.36 MB/s) - written to stdout [16]
> > 
> > 
> > 
> > 在 2012-12-13,上午10:41,Royal Yang <ra...@gmail.com> 写道:
> > 
> > > 建议你手动执行下/etc/init.d/cloud-set-guest-password
> > > 之行结束后去/var/log/messages下查看是否有类似这样的输出(这个应该是个正
> 常的结果)
> > > /*
> > > Dec 13 02:09:54 node1 cloud: Found password server IP 10.99.0.4 in
> > > /var/lib/dhclient/dhclient-eth0.leases
> > > Dec 13 02:09:54 node1 cloud: Sending request to password server at
> > > 10.99.0.4
> > > Dec 13 02:09:54 node1 cloud: Got response from server at 10.99.0.4
> > > Dec 13 02:09:54 node1 cloud: VM has already saved a password from the
> > > password server at 10.99.0.4
> > > Dec 13 02:09:54 node1 cloud: Found password server IP in
> > > /var/lib/dhclient/resolv.conf.predhclient.eth0
> > > Dec 13 02:09:54 node1 cloud: Sending request to password server at
> > > Dec 13 02:09:54 node1 cloud: Got response from server at
> > > Dec 13 02:09:54 node1 cloud: Password server at did not have any
> password
> > > for the VM
> > > Dec 13 02:09:54 node1 cloud: Did not need to change password.
> > > Dec 13 02:10:03 node1 init: tty (/dev/tty1) main process ended,
> > respawning
> > > */
> > > ------------------------------
> > > rayang2004
> > >  *From:* hotmail <mi...@hotmail.com>
> > > *Date:* 2012-12-13 09:55
> > > *To:* cloudstack-users-cn <cl...@incubator.apache.org>
> > > *Subject:* Re: 密码管理服务无法生效
> > > 我这个已经增加的..
> > > 但是还是无效..
> > > 在 2012-12-13,上午9:11,兲兲姠仩 <ra...@qq.com> 写道:
> > >> 你还需要chkconfig --add cloud-set-guest-password
> > >>
> > >>
> > >>
> > >>
> > >> ------------------ 原始邮件 ------------------
> > >> 发件人: "hotmail"<mi...@hotmail.com>;
> > >> 发送时间: 2012年12月12日(星期三) 晚上11:35
> > >> 收件人:
> "cloudstack-users-cn"<cl...@incubator.apache.org>;
> > >>
> > >> 主题: 密码管理服务无法生效
> > >>
> > >>
> > >>
> > >> 按照官方指导文档
> > >>
> > >
> > 
> http://incubator.apache.org/cloudstack/docs/en-US/Apache_CloudStack/4.0.0-in
> cubating/html/Admin_Guide/add-password-management-to-templates.html
> > >>
> > >> 我通过centos 6.3 的 ISO 生成一个instance A . 然后在 按照上面官方文档...
> copy
> > > cloud-set-guest-password 到/etc/init.d/下.并且增加+x的权限
> > >>
> > >> 然后 通过instance A 的快照 制作成一个 模板.. 通过模版生成 instance B ,
> 系统会随机给一个密码..
> > > 但是事实上密码是无效的..
> > >>
> > >> 请问这个密码服务需要另外再配置哪些内容..
> > 
> >


答复: 答复: 密码管理服务无法生效

Posted by yuanshuai <yu...@gmail.com>.
�Ҹո�������centos6.3��ģ�棬û�а�װmkpasswd Ҳ�ܹ���������

 

������: �׷� [mailto:fan.lei@coolcloudz.com] 
����ʱ��: 2012��12��14�� 16:00
�ռ���: cloudstack-users-cn@incubator.apache.org
����: �ظ�: ��: ������������޷���Ч

 

�Ҵ�centos 5.6����Գɹ�

���²��裺

1.����http://pastebin.com/raw.php?i=sk7UEHKh��һ��Ҫ�ѻ��и�ʽ�ij� ��LF��ֱ
�����������wget�Dz��еģ�������tr����ɾ���ű����"\r"

2.��װmkpasswd���yum -y install expect

3.chmod +x /etc/init.d/cloud-set-guest-password    chkconfig --add
cloud-set-guest-password    ֮��ͺ���

 

  _____  

�׷�

�绰 0510-81122000-1036

 
<file:///D:\Users\TK\Documents\Tencent%20Files\398906928\FileRecv\www.coolcl
oudz.com> www.coolcloudz.com                                         

��������̫�����ʿƼ�԰������200���й�΢�ɴ��������ʴ���԰B����¥   214135


200 Linghu Blvd.,Bldg.B.3/F,Taihu lnt��l Science and Technology Park, Wuxi
New District, Jiangsu 214135, PRC  

............................................................................
.......         

Please see the attached hyperlink for an important electronic communications
disclaimer / �������������Ķ������ʼ�����

 <http://www.coolcloudz.com/emailstatement/>
http://www.coolcloudz.com/emailstatement/

 

�����ˣ� yuanshuai <ma...@gmail.com> 

����ʱ�䣺 2012-12-14 14:13

�ռ��ˣ� cloudstack-users-cn@incubator.apache.org

���⣺ ��: ������������޷���Ч

��������ubuntu12.04��template������������ɹ���

��Ҫ����������

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

2. run sudo update-rc.d cloud-set-guest-password defaults 98

3. ��װwhois �������mkpasswd (apt-get install whois)

 

Ȼ���ٵ���ģ��

 

ϣ���ܶ�����������

 

Best Regards 

-----�ʼ�ԭ��-----

������: Royal Yang [mailto:rayang2004@gmail.com] 

����ʱ��: 2012��12��14�� 9:55

�ռ���: cloudstack-users-cn@incubator.apache.org

����: Re: ������������޷���Ч

 

���DZ��õ�CS4�ǰɣ�������������3.0.2��cloud-set-guest-password

������������http://pastebin.com/raw.php?i=sk7UEHKh

 

 

�� 2012��12��13������10:23��hotmail <mi...@hotmail.com>���

 

> ��������/var/log/messages û�п����κ���Ϣ..

> 

> ֱ��ִ��֮����console ֮��ֻ������.. �Ҿ����Dz��ǽű�����domip Ū����..

domip

> �Dz���Ӧ���ǹ�����������IP������ʾ����о����� ����·�ɵ�ip..

> 

> --2012-12-13 22:18:50--  http://202.120.58.83:8080/

> Connecting to 202.120.58.83:8080... connected.

> HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9

> Length: unspecified

> Saving to: `STDOUT'

> 

>     [<=>                                               ] 0

> --.-K/s              saved_password

>     [ <=>                                              ] 16

>  --.-K/s   in 0s

> 

> 2012-12-13 22:18:50 (1.36 MB/s) - written to stdout [16]

> 

> 

> 

> �� 2012-12-13������10:41��Royal Yang <ra...@gmail.com> ���

> 

> > �������ֶ�ִ����/etc/init.d/cloud-set-guest-password

> > ֮�н�����ȥ/var/log/messages�²鿴�Ƿ���������������������Ӧ���Ǹ���

���Ľ����

> > /*

> > Dec 13 02:09:54 node1 cloud: Found password server IP 10.99.0.4 in

> > /var/lib/dhclient/dhclient-eth0.leases

> > Dec 13 02:09:54 node1 cloud: Sending request to password server at

> > 10.99.0.4

> > Dec 13 02:09:54 node1 cloud: Got response from server at 10.99.0.4

> > Dec 13 02:09:54 node1 cloud: VM has already saved a password from the

> > password server at 10.99.0.4

> > Dec 13 02:09:54 node1 cloud: Found password server IP in

> > /var/lib/dhclient/resolv.conf.predhclient.eth0

> > Dec 13 02:09:54 node1 cloud: Sending request to password server at

> > Dec 13 02:09:54 node1 cloud: Got response from server at

> > Dec 13 02:09:54 node1 cloud: Password server at did not have any

password

> > for the VM

> > Dec 13 02:09:54 node1 cloud: Did not need to change password.

> > Dec 13 02:10:03 node1 init: tty (/dev/tty1) main process ended,

> respawning

> > */

> > ------------------------------

> > rayang2004

> >  *From:* hotmail <mi...@hotmail.com>

> > *Date:* 2012-12-13 09:55

> > *To:* cloudstack-users-cn <cl...@incubator.apache.org>

> > *Subject:* Re: ������������޷���Ч

> > ������Ѿ����ӵ�..

> > ���ǻ�����Ч..

> > �� 2012-12-13������9:11���̃̊��� <ra...@qq.com> д����

> >> �㻹��Ҫchkconfig --add cloud-set-guest-password

> >>

> >>

> >>

> >>

> >> ------------------ ԭʼ�ʼ� ------------------

> >> ������: "hotmail"<mi...@hotmail.com>;

> >> ����ʱ��: 2012��12��12��(������) ����11:35

> >> �ռ���:

"cloudstack-users-cn"<cl...@incubator.apache.org>;

> >>

> >> ����: ������������޷���Ч

> >>

> >>

> >>

> >> ���չٷ�ָ���ĵ�

> >>

> >

> 

http://incubator.apache.org/cloudstack/docs/en-US/Apache_CloudStack/4.0.0-in

cubating/html/Admin_Guide/add-password-management-to-templates.html

> >>

> >> ��ͨ��centos 6.3 �� ISO ����һ��instance A . Ȼ���� ��������ٷ��ĵ�...

copy

> > cloud-set-guest-password ��/etc/init.d/��.��������+x��Ȩ��

> >>

> >> Ȼ�� ͨ��instance A �Ŀ��� ������һ�� ģ��.. ͨ��ģ������ instance B ��

ϵͳ�������һ������..

> > ������ʵ����������Ч��..

> >>

> >> ����������������Ҫ������������Щ����..

> 

>