Details
Description
The passwd utility on Debian based distributions does not support the --stdin option. I propose updating the script located at http://cloudstack.org/dl/cloud-set-guest-password to use the chpasswd utility instead.
Additionally, Ubuntu 12.04 places DHCP lease information in /etc/dhcp/*. I propose adding this to the search patch used when looking for the DHCP server.
Patch attached