Quantcast
Channel: VMware Communities : All Content - VMware® ThinApp®
Viewing all articles
Browse latest Browse all 1382

ThinApp Factory from GitHub: Guest username or password error

$
0
0

Hi,

 

with a risk of making a double post, I wanted to explain a tad further on what I've done in order to almost get the GitHub version of Thinapp Factory to work - in the hope that it might help others.

 

I've been struggling on getting ThinApp Factory 0.3.2 from Github to run on Ubuntu 12.04 LTS.

Versions:

Windows 7-32 bit (SP1 + latest patches), used as Workpool image. Swedish release.

vSphere 5.5.0 Build 1331820

vCenter 5.5.0 Build 1398495

Thinapp 5.0.0 Build 1391583

VMware-VIX-1.12.0-812388.x86_64.bundle  (version 1.11 didn't work at all, coredump).

 

I added the prerequisite packages according to the README-file, but also had to add the git package and some more:

sudo apt-get install git

sudo apt-get install pwgen

git clone git://github.com/vmware/thinapp_factory

 

 

In order to be able and build the initial packages, I had to make these changes:

cp setup.cfg.example setup.cfg

setup.cfg

Replaced the following line:

db_password=pwgen 20 1

With:

db_password=01234567800123456780 (actually, the hash generated from executing pwgen 20 1 from the shell).


In the setup.sh file I made the following change:

# echo -e "$db_password\n$db_password" | smbpasswd -s -a $taf_user

echo -e "$db_password" | tee - | smbpasswd -s -a $taf_user

Because it wouldn't compile without errors otherwise.


After that:

make all

make deploy


So far so god.


When I create a workpool it creates a snapshot of my base image.

When I do an autocapture, TAF requests a new clone of my base image to be made and customized which is working great. It also seems to create an Administrator users with an unknown password.

After the customization phase Windows reboots and logins automatically as user "Administrator", TAF tries to execute a script via a "vmrun" command, and here's where the problem is:

It can't execute the script due to unknown username or password, see the catalina.out logfile:

--- catalina.out ---

12:31:29,314  INFO pool-2-thread-7 workpool.GuestCommands$RunCommand:96 - Running command: [vmrun, -T, vc, -h, https://vmvc001.myprivatedomain.com/sdk, -u, root, -p, ********, -gu, administrator, -gp, ********, runScriptInGuest, [LD-SSD-R5_001] TFA_cleanpool Instance e2960/TFA_cleanpool Instance e2960.vmx, -interactive, , echo test].

12:31:29,532 DEBUG pool-3-thread-1 util.VCPerformancePollTask:156 - Performance data for VirtualMachine vm-859 Wed Jan 22 12:31:40 CET 2014: cp

u.usage.average=4206 net.usage.average=0 disk.usage.average=14261

12:31:30,002 ERROR pool-2-thread-7 workpool.GuestCommands$RunCommand:112 - Error: Invalid user name or password for the guest OS

12:31:30,004  INFO pool-2-thread-7 workpool.GuestCommands:433 - Run script in guest exited with code: 255 (Error: Invalid user name or password

for the guest OS

).

12:31:30,005 DEBUG pool-2-thread-7 server.AutomaticCapturer:414 - Unable to run command, assuming user is not logged into guest.

12:31:30,005 DEBUG pool-2-thread-7 server.AutomaticCapturer:417 - Waiting a few seconds to try the command again.

--- end ---

 

Because I have not set any password for Administrator I guess that the initialization of the Workpool image did it, and because Administrator is logged on - why isn't the system responding?

 

After several attempts, TAF will shutdown the workpool image and fail the attempt with an error stating that it doesn't think anyone is logged into windows.

 

Has anyone attempted to install Thinapp Factory from Github before and have a good description in how to make it work, because the README file is a tad too high level?

 

Regards

Anders


Viewing all articles
Browse latest Browse all 1382

Trending Articles