cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurice Lawler <maurice.law...@me.com>
Subject Password Enabled Template on KVM | CentOS
Date Sat, 27 Apr 2013 01:44:35 GMT
Hello Everyone:


I am having an issue allowing/making cloud-set-guest-password to actually work.

How I installed it:

Download the script file cloud-set-guest-password:
>>
>> Linux: http://cloudstack.org/dl/cloud-set-guest-password
>> Windows:
>> http://sourceforge.net/projects/cloudstack/files/Password%20Management%20Scripts/CloudInstanceManager.msi/download
>>
>> Copy this file to /etc/init.d.
>> On some Linux distributions, copy the file to /etc/rc.d/init.d.
>> Run the following command to make the script executable:
>>
>> chmod +x /etc/init.d/cloud-set-guest-password
>>
>> Depending on the Linux distribution, continue with the appropriate step.
>> On Fedora, CentOS/RHEL, and Debian, run:
>>
>> chkconfig --add cloud-set-guest-password

--------------------

chkconfig output:

[root@CentOS63 ~]# chkconfig --list |grep cloud-set-guest-password
cloud-set-guest-password    0:off    1:off    2:off    3:on    4:on    5:on    6:off
[root@CentOS63 ~]#


------

/var/log/messages

[root@CentOS63 ~]# tail -f /var/log/messages
Apr 26 15:19:38 CentOS63 cloud: VM has already saved a password from the password server at
dhcp/virtualrouterIP
Apr 26 15:19:38 CentOS63 cloud: Could not find password server IP in /var/lib/dhclient/resolv.conf.predhclient.eth0
Apr 26 15:19:38 CentOS63 cloud: Did not need to change password.
Apr 26 18:37:51 CentOS63 cloud: Found password server IP dhcp/virtualrouterIPin /var/lib/dhclient/dhclient-eth0.leases
Apr 26 18:37:51 CentOS63 cloud: Sending request to password server at dhcp/virtualrouterIP
Apr 26 18:37:51 CentOS63 cloud: Got response from server at dhcp/virtualrouterIP
Apr 26 18:37:51 CentOS63 cloud: VM has already saved a password from the password server at
dhcp/virtualrouterIP
Apr 26 18:37:51 CentOS63 cloud: Could not find password server IP in /var/lib/dhclient/resolv.conf.predhclient.eth0
Apr 26 18:37:51 CentOS63 cloud: Did not need to change password.

------

The bash -x output is:

[root@CentOS63 ~]# bash -x /etc/init.d/cloud-set-guest-password
+ user=root
+ DHCP_FOLDERS='/var/lib/dhclient/* /var/lib/dhcp3/* /var/lib/dhcp/*'
+ password_received=0
+ file_count=0
+ error_count=0
+ for DHCP_FILE in '$DHCP_FOLDERS'
+ '[' -f /var/lib/dhclient/dhclient-eth0.leases ']'
+ file_count=1
++ tr -d '\;'
++ awk '{print $NF}'
++ tail -1
++ grep dhcp-server-identifier /var/lib/dhclient/dhclient-eth0.leases
+ PASSWORD_SERVER_IP=IP.OF.INSTANCE
+ '[' -n IPOFINSTANCE]'
+ logger -t cloud 'Found password server IP IP.OF.INSTANCE in /var/lib/dhclient/dhclient-eth0.leases'
+ logger -t cloud 'Sending request to password server at 66.232.104.214'
++ wget -q -t 3 -T 20 -O - --header 'DomU_Request: send_my_password' IP.OF.INSTANCE:8080
+ password=$'saved_password\r'
++ tr -d '\r'
++ echo $'saved_password\r'
+ password=saved_password
+ '[' 0 -eq 0 ']'
+ logger -t cloud 'Got response from server at IP.OF.INSTANCE'
+ case $password in
+ logger -t cloud 'VM has already saved a password from the password server at IP.OF.INSTANCE'
+ continue
+ for DHCP_FILE in '$DHCP_FOLDERS'
+ '[' -f /var/lib/dhclient/resolv.conf.predhclient.eth0 ']'
+ file_count=2
++ tr -d '\;'
++ awk '{print $NF}'
++ tail -1
++ grep dhcp-server-identifier /var/lib/dhclient/resolv.conf.predhclient.eth0
+ PASSWORD_SERVER_IP=
+ '[' -n '' ']'
+ logger -t cloud 'Could not find password server IP in /var/lib/dhclient/resolv.conf.predhclient.eth0'
+ error_count=1
+ for DHCP_FILE in '$DHCP_FOLDERS'
+ '[' -f '/var/lib/dhcp3/*' ']'
+ for DHCP_FILE in '$DHCP_FOLDERS'
+ '[' -f '/var/lib/dhcp/*' ']'
+ '[' 0 == 0 ']'
+ '[' 1 == 2 ']'
+ logger -t cloud 'Did not need to change password.'
+ exit 0
[root@CentOS63 ~]#


I hope I have provided enough information for assistance´╗┐.

- Maurice




Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
    • Unnamed multipart/related (inline, None, 0 bytes)
View raw message