Re: problems with image windows 7

2011-04-07 Thread Juan Jose Zamanillo

That works fine :)

and naow I get a problem that was not presented , I think I repeat  
correctly the same steps here is the log.


Before I make the generation of the base image the program secedit.exe  
exists in the machine, where the creation of the base image, it did  
not exists.


thanks in advance

Juan Jose Zamanillo

vmwarewin7-Windows7Basepr730-v0 image creation failed

time: 2011-04-07 20:03:30
caller: image.pm:reservation_failed(385)
( 0) image.pm, reservation_failed (line: 385)
(-1) image.pm, process (line: 167)
(-2) vcld, make_new_child (line: 568)
(-3) vcld, main (line: 346)

management node: webvcl.qro.itesm.mx
reservation PID: 871
parent vcld PID: 31208

request ID: 49
reservation ID: 49
request state/laststate: image/image
request start time: 2011-04-07 20:00:36
request end time: 2011-04-07 21:00:36
for imaging: no
log ID: none

computer: windows7base1
computer id: 5
computer type: virtualmachine
computer eth0 MAC address: 00:50:56:00:10:06
computer eth1 MAC address: 00:50:56:00:10:07
computer private IP address: 192.168.113.240
computer public IP address: 10.25.19.174
computer in block allocation: no
provisioning module: VCL::Module::Provisioning::VMware::VMware

vm host: esxi.qro.itesm.mx
vm host ID: 1
vm host computer ID: 1
vm profile: VMware ESX - network storage
vm profile VM path: /vmfs/volumes/datastore1
vm profile repository path: 0
vm profile datastore path: /vmfs/volumes/datastore1
vm profile disk type: networkdisk

image: vmwarewin7-Windows7Basepr730-v0
image display name: Windows 7 Base pr7
image ID: 30
image revision ID: 30
image size: 1450 MB
use Sysprep: no
root access: yes
image owner ID: 1
image owner affiliation: Local
image revision date created: 2011-04-07 20:00:43
image revision production: yes
OS module: VCL::Module::OS::Windows::Version_6::7

user: admin
user name: vcl admin
user ID: 1
user affiliation: Local

RECENT LOG ENTRIES FOR THIS PROCESS:
|871|49:49|image| (-5) image.pm, process (line: 162)
2011-04-07 20:02:49|871|49:49|image| 
Windows.pm:apply_security_templates(7125)|attempting to copy file to:  
C:/Cygwin/home/root/VCL/Security/2_Disable_UAC.inf
2011-04-07 20:02:49|871|49:49|image|utils.pm:run_scp_command(5600)| 
attempting to copy file via SCP: '/usr/local/vcl/bin/../tools/ 
Windows_Version_6/Security/Disable_UAC.inf' --> 'windows7base1:C:/ 
Cygwin/home/root/VCL/Security/2_Disable_UAC.inf'
2011-04-07 20:02:51|871|49:49|image|utils.pm:run_scp_command(5636)| 
copied file via SCP: '/usr/local/vcl/bin/../tools/Windows_Version_6/ 
Security/Disable_UAC.inf' --> 'windows7base1:C:/Cygwin/home/root/VCL/ 
Security/2_Disable_UAC.inf'
2011-04-07 20:02:51|871|49:49|image| 
Windows.pm:apply_security_templates(7127)|copied file:  
windows7base1:C:/Cygwin/home/root/VCL/Security/2_Disable_UAC.inf
2011-04-07 20:02:56|871|49:49|image|Windows.pm:file_exists(1336)|file  
does NOT exist on windows7base1: '$SYSTEMROOT/security/Logs/ 
2_Disable_UAC.log'
2011-04-07 20:02:56|871|49:49|image|Windows.pm:delete_file(1095)| 
failed not deleted because it does not exist: '$SYSTEMROOT/security/ 
Logs/2_Disable_UAC.log'

|871|49:49|image|  WARNING 
|871|49:49|image| 2011-04-07 20:02:59|871|49:49|image| 
Windows.pm:apply_security_templates(7159)|failed to run secedit.exe to  
apply C:\\Cygwin\\home\\root\\VCL\\Security\\2_Disable_UAC.inf, exit  
status: 1, output:

|871|49:49|image| ( 0) Windows.pm, apply_security_templates (line: 7159)
|871|49:49|image| (-1) Windows.pm, pre_capture (line: 295)
|871|49:49|image| (-2) Version_6.pm, pre_capture (line: 114)
|871|49:49|image| (-3) 7.pm, pre_capture (line: 100)
|871|49:49|image| (-4) VMware.pm, capture (line: 556)
|871|49:49|image| (-5) image.pm, process (line: 162)
2011-04-07 20:02:59|871|49:49|image| 
Windows.pm:apply_security_templates(7125)|attempting to copy file to:  
C:/Cygwin/home/root/VCL/Security/3_My_Computer_Reg_Perms.inf
2011-04-07 20:02:59|871|49:49|image|utils.pm:run_scp_command(5600)| 
attempting to copy file via SCP: '/usr/local/vcl/bin/../tools/ 
Windows_Version_6/Security/My_Computer_Reg_Perms.inf' -->  
'windows7base1:C:/Cygwin/home/root/VCL/Security/ 
3_My_Computer_Reg_Perms.inf'
2011-04-07 20:03:01|871|49:49|image|utils.pm:run_scp_command(5636)| 
copied file via SCP: '/usr/local/vcl/bin/../tools/Windows_Version_6/ 
Security/My_Computer_Reg_Perms.inf' --> 'windows7base1:C:/Cygwin/home/ 
root/VCL/Security/3_My_Computer_Reg_Perms.inf'
2011-04-07 20:03:01|871|49:49|image| 
Windows.pm:apply_security_templates(7127)|copied file:  
windows7base1:C:/Cygwin/home/root/VCL/Security/ 
3_My_Computer_Reg_Perms.inf
2011-04-07 20:03:07|871|49:49|image|Windows.pm:file_exists(1336)|file  
does NOT exist on windows7base1: '$SYSTEMROOT/security/Logs/ 
3_My_Computer_Reg_Perms.log'
2011-04-07 20:03:07|871|49:49|image|Wi

Re: Windows 7 and Windows XP give same error when trying to capture

2011-04-07 Thread Andy Kurth
DHCP is a requirement for the private interface but you should still be 
able to get it to work.  I have configured similar installations before. 
 For the private network, you'll want to configure a VMware host-only 
network, not a bridged network.


I created updated instructions to configure a standalone environment 
using VMware Server 2.0:

https://cwiki.apache.org/confluence/display/VCL/Configuring+a+Standalone+VCL+Environment+using+VMware+Server+2.0

The instructions haven't been tested and there are probably a couple 
errors but this will hopefully point you in the right direction.


To use static public addresses, you just need to define them when you 
add new computers and configure the management node to use static 
addresses and specify the correct subnet mask, gateway, and DNS servers 
under Management Nodes > Edit.


-Andy


On 4/6/2011 4:03 PM, Tyler Hardesty wrote:

Thanks Andy, you have been sooo helpful!! My image seemed to capture
successfully, but it wasn't the Data Store Path I had to clear, it was
the Image repository path, then I ran setup again and it said image
capture successful... however now I can't seem to successfully reserve
the image... I still think it has something to do with the ip, do I need
to change to a static setup since I don't have a DHCP server handing out
IPs (i.e. this is a single machine running everything (vmware, Apache
VCL, management node, etc) that is located inside the network closet at
my school and is statically assigned an ip of 144.38.205.200 and I am
allowed to use IPs up til about 205.215 but they aren't handed out by a
DHCP server). Well you will probably know better, this is my log output:

2011-04-06
12:39:59|1614|42:42|new|Module.pm:code_loop_timeout(724)|attempt 107:
code returned false, seconds el\
apsed/remaining: 898/2, sleeping for 8 seconds
2011-04-06 12:40:03|30717|vcld:main(167)|lastcheckin time updated for
management node 1: 2011-04-06 12:40:03
2011-04-06
12:40:07|1614|42:42|new|Module.pm:code_loop_timeout(728)|attempt 108:
waiting for vm4 to respond to S\
SH
2011-04-06 12:40:07|1614|42:42|new|OS.pm:is_ssh_responding(386)|vm4 is
NOT responding to SSH, ports 22 or 24 are\
  both closed
2011-04-06
12:40:07|1614|42:42|new|Module.pm:code_loop_timeout(736)|waiting for vm4
to respond to SSH, code did \
not return true after waiting 900 seconds

|1614|42:42|new|  WARNING 
|1614|42:42|new| 2011-04-06
12:40:07|1614|42:42|new|OS.pm:wait_for_response(465)|failed to connect
to vm4 via SS\
H after 900 seconds
|1614|42:42|new| ( 0) OS.pm, wait_for_response (line: 465)
|1614|42:42|new| (-1) Windows.pm, post_load (line: 591)
|1614|42:42|new| (-2) VMware.pm, load (line: 415)
|1614|42:42|new| (-3) new.pm , reload_image (line: 687)
|1614|42:42|new| (-4) new.pm , process (line: 282)
|1614|42:42|new| (-5) vcld, make_new_child (line: 568)


|1614|42:42|new|  WARNING 
|1614|42:42|new| 2011-04-06
12:40:07|1614|42:42|new|Windows.pm:post_load(592)|vm4 never responded to SSH
|1614|42:42|new| ( 0) Windows.pm, post_load (line: 592)
|1614|42:42|new| (-1) VMware.pm, load (line: 415)
|1614|42:42|new| (-2) new.pm , reload_image (line: 687)
|1614|42:42|new| (-3) new.pm , process (line: 282)
|1614|42:42|new| (-4) vcld, make_new_child (line: 568)
|1614|42:42|new| (-5) vcld, main (line: 346)


|1614|42:42|new|  WARNING 
|1614|42:42|new| 2011-04-06
12:40:07|1614|42:42|new|VMware.pm:load(419)|failed to perform OS
post-load tasks on \
VM vm4 on VM host: localvmhost
|1614|42:42|new| ( 0) VMware.pm, load (line: 419)
|1614|42:42|new| (-1) new.pm , reload_image (line: 687)
|1614|42:42|new| (-2) new.pm , process (line: 282)
|1614|42:42|new| (-3) vcld, make_new_child (line: 568)
|1614|42:42|new| (-4) vcld, main (line: 346)


|1614|42:42|new|  WARNING 
|1614|42:42|new| 2011-04-06
12:40:07|1614|42:42|new|new.pm:reload_image(692)|vmwarewinxp-xp231-v0
failed to load\
  on vm4, returning
|1614|42:42|new| ( 0) new.pm , reload_image (line: 692)
|1614|42:42|new| (-1) new.pm , process (line: 282)
|1614|42:42|new| (-2) vcld, make_new_child (line: 568)
|1614|42:42|new| (-3) vcld, main (line: 346)

2011-04-06 12:40:07|1614|42:42|new|utils.pm:insertloadlog(3875)|inserted
computer=5, loadimagefailed, vmwarewinx\
p-xp231-v0 failed to load on vm4

|1614|42:42|new|  WARNING 
|1614|42:42|new| 2011-04-06
12:40:07|1614|42:42|new|new.pm:process(329)|failed to load vm4 with
vmwarewinxp-xp23\
1-v0
|1614|42:42|new| ( 0) new.pm , process (line: 329)
|1614|42:42|new| (-1) vcld, make_new_child (line: 568)
|1614|42:42|new| (-2) vcld, main (line: 346)

2011-04-06
12:40:07|1614|42:42|new|DataStructure.pm:get_computer_state_name(2299)|attempting
to retrieve current\
  state of computer vm4 from the database
2011-04-06
12:40:07|1614|42:42|new|DataStructure.pm:get_computer_state_name(2330)|retrieved
current state of com\
puter vm4 from the da

RE: "Get RDP File" Doesn't work first try if too fast

2011-04-07 Thread Hartl, Gerhard L.
For anyone that has this issue, I came up with a temporary solution that is 
easy to implement. This will show a count down of 5 seconds then show the Get 
RDP File button.  This allows enough time for the VCL client to be configured.  
Tested with IE and Firefox.  Use at own risk!


Roughly around line 2217 (v2.2.1) on requests.php replace the Get RDP File form 
section with:

print "\n";
print " .off {\n";
print " visibility: hidden;\n";
print " } .on {\n";
print " visibility: visible;\n";
print " }\n";
print "\n";
print "\n";
print " window.onload = function() {\n";
print " var timeInterval = 5;\n";
print " if (typeof timeInterval === 'undefined' || parseInt(timeInterval) <= 0) 
{\n";
print " timeInterval = 1\n";
print " }\n";
print "document.getElementById('counter').innerHTML = \" Ready to connect in \" 
+ timeInterval + \" seconds\";\n";
print "var si = setInterval(function() {\n";
print "if (timeInterval === 0) {\n";
print " clearInterval(si);\n";
print " } else {\n";
print "--timeInterval;\n";
print "if (timeInterval !== 0) {\n";
print " document.getElementById('counter').innerHTML = \" Ready to 
connect in \" + timeInterval + \" seconds\";\n";
print "} else {\n";
print " document.getElementById('counter').className = 'off'; //Hiding 
the counter area.\n";
print " document.getElementById('submit').className = 'on'; //Unhide 
the Submit button\n";
print "}\n";
print "}\n";
print "}, 1000);\n";
print "setTimeout(function() {\n";
print "}, timeInterval * 1000);\n";
print "}\n";
print "\n";

print "For automatic connection, you can download an RDP file that can ";
print "be opened by the Remote Desktop Connection program.\n";
print "";
print "\n";
print "  \n";
print "\n";
print "  \n";
$cdata = array('requestid' => $requestid,
'resid' => $requestData['reservations'][0]['reservationid']);
$expire = datetimeToUnix($requestData['end']) -
datetimeToUnix($requestData['start']) + 1800; # reservation time plus 
30 min
$cont = addContinuationsEntry('sendRDPfile', $cdata, $expire);
print "  \n";
print "  \n";
print "  \n";
print "\n";
print "  \n";
print "\n";




- Gerhard Hartl
Old Dominion University
Norfolk, VA

-Original Message-
From: Andy Kurth [mailto:andy_ku...@ncsu.edu] 
Sent: Monday, April 04, 2011 1:33 PM
To: vcl-user@incubator.apache.org
Subject: Re: "Get RDP File" Doesn't work first try if too fast

I have seen the same issue myself.  It's a timing issue related to the 
'reserved' state.  During this state, the vcld process loops until it detects a 
value in reservation.remoteIP which gets set when the user clicks 'Connect'.  
There is a 5 second wait in between attempts.  This could be reduced but the 
downside would be a little more processing on the management node.

Once it detects the remote IP has been set, it can take 3-9 seconds for the 
firewall-opening commands to be executed.

Quickly looking at the code, I think some improvements can be made to reduce 
the lag time.  I created an issue for this:
https://issues.apache.org/jira/browse/VCL-442

-Andy

On 4/1/2011 2:58 PM, Hartl, Gerhard L. wrote:
> (disregard previous, forgot to retitle)
>
> Since upgrading to 2.2, when a user browses to the 'connect' page, I've 
> noticed that the clients ip is captured and the management node then ssh's to 
> the vm and opens up the port for the clients ip on 3389.   While I understand 
> this is best practice, I have noticed that if they user is to quick clicking 
> through the page that they sometimes have to click the "Get RDP File" twice 
> since the first time tries to connect prior to the port being opened up.  Is 
> there any way around this?
>
> - Gerhard Hartl
> Old Dominion University
> Norfolk, VA


--
BEGIN-ANTISPAM-VOTING-LINKS
--

Teach CanIt if this mail (ID 465117226) is spam:
Spam:
https://www.spamtrap.odu.edu/b.php?i=465117226&m=1354587fa689&t=20110404&c=s
Not spam:
https://www.spamtrap.odu.edu/b.php?i=465117226&m=1354587fa689&t=20110404&c=n
Forget vote: 
https://www.spamtrap.odu.edu/b.php?i=465117226&m=1354587fa689&t=20110404&c=f
--
END-ANTISPAM-VOTING-LINKS