[xen-tools] Re: password used by script
Gal Buki
buki at torus.ch
Tue Apr 3 07:30:41 CEST 2007
Hi Steve
Thanks for the Update!
Steve Kemp wrote:
> On Mon, Apr 02, 2007 at 01:41:02AM +0200, Gal Buki wrote:
>
>> I'm looking for a way to generate the domUs automatically.
>> Is it possible to set a passwort with --passwd=mypassword?
>
> This is now possible, via a role-script. Checkout the latest
> CVS and run:
>
> xen-create-image --..... --role=passwd --role-args=somepassword
>
> It will then setup the root password of the new image to be the
> specified one. This is a cheap hack which relies upon you having
> the Perl expect module present ("apt-get install libexpect-perl")
> and suffers from three problems:
>
> 1. The password is visible in the "ps" listing.
>
> 2. The password is saved in plaintext in /var/log/xen-tools/*.log
>
> 3. You can only run one role at a time ..
>
> Still as proof of concept it works, and it seems neat to me to
> keep this code external to the main script.
>
> Steve
More information about the xen-tools-discuss
mailing list