Quantcast
Channel: VMware Communities: Message List - VMware vCloud Director
Viewing all articles
Browse latest Browse all 7719

Re: Ubuntu Auto-Generate Password

$
0
0

Well, I can't tell you much based on what I see on that screenshot. Apparently there is an error reported by the Tools DeployPkg plugin. Most likely that means that one of the executed commands returned bad exit code or wrote something into stderr. If you attach full log files (I don't think there is any sensitive data in them, but you can double check), maybe I'll able to tell more.

 

Anyways, in 1.5 logging wasn't too verbose. I'm afraid you'll have to debug it a little bit if you want to get it working. The good news is that it isn't that hard. Customization on Linux is done by several files inside $VCD_HOME/guestcustomization/unix. The main ones are:

 

- customize-guest.sh: that's the one containing main flow

- resetpwd.awk: password change functionality

- updateEth.awk: updates MAC <-> IP match for Ubuntu/Debian

- base64decode.awk, getXML.awk: parsers, most likely no need to touch those

 

You can try to insert "Log" statements in several places to see what's going on similar to ones already there. You will see additional messages in one of the two log files.

 

There are two caveats:

- once you customized some VM for the first time, there will be a marker file created /.markerfile-$markerid.txt. Password reconfigure and pre-/post-customization won't run anymore. To reset the marker, you need to do "Power on and Force Recustomization"

- any changes to files above won't take effect unless you delete "cache" file $VCD_HOME/guestcustomization/unix_deployment_package.tar.gz. System should recreate it automatically, just make sure you backup the original one in case something goes wrong.

 

/Andrii


Viewing all articles
Browse latest Browse all 7719