Sysprep.exe may be initiated by quickly terminates due to an error. Check if the following log file exists and contains any useful error information:
C:\Windows\System32\sysprep\Panther\setuperr.log

Try running the command manually, trying to replicate the environment VCL attempts to run it in:
-Log in as root
-Open a Cygwin shell
-Run this command:
sysprep.exe /generalize /oobe /shutdown /quiet /unattend:C:/Windows/Sysnative/sysprep/Unattend.xml

If this fails, try running it from a regular cmd.exe shell, but change the path to Unattend.xml to DOS\Windows format: sysprep.exe /generalize /oobe /shutdown /quiet /unattend:C:\Windows\Sysnative\sysprep\Unattend.xml

Please reply with anything you find.

-Andy



On 3/1/2011 11:39 AM, Hartl, Gerhard L. wrote:
I have been attempting to capture a Win 7 x64 image w/ sysprep on VCL
2.2 without success. I added the following:
***# Check if pre_capture() subroutine has been implemented by the OS
module*
*my $computer_nodename = $computer_shortname;*
*if ($self->os->can("pre_capture")) {*
*# Call OS pre_capture() - it should perform all OS steps necessary to
capture an image*
*# pre_capture() should shut down the computer when it is done*
*notify($ERRORS{'OK'}, 0, "calling OS module's pre_capture() subroutine");*
*if (!$self->os->pre_capture({end_state => 'off'})) {*
*notify($ERRORS{'WARNING'}, 0, "OS module pre_capture() failed");*
*return 0;*
*}*
*}*
in esxthin.pm, as we use netapp hardware, and the pre_capture indeed
runs properly when sysprep is set to 1. At the end of the pre_capture
when sysprep.exe is actually called, nothing happens. The Unattend.xml
is in the proper place but *sysprep.exe /generalize /oobe /shutdown
/quiet /unattend:C:/Windows/Sysnative/sysprep/Unattend.xml* is never
actually run. Eventually after the timeout, the poweroff() routine will
power off the machine unclean and without sysprep. I have checked the
taskman and sysprep.exe is not running.
Ideas?
/var/log/vcld.log
*|19148|30:30|image| /usr/bin/ssh -i /etc/vcl/vcl.key -l root -p 22 -x
vmwarewin7-base1-v1 '/bin/cygstart.exe C:/Windows/Sysnative/cmd.exe /c
"%SYSTEMROOT%/System32/ipconfig.exe /release &
%SYSTEMROOT%/System32/route.exe DELETE 0.0.0.0 MASK 0.0.0.0 &
%SYSTEMROOT%/System32/netsh.exe interface ip set address name=\"Local
Area Connection\" source=dhcp & %SYSTEMROOT%/System32/netsh.exe
interface ip set dns name=\"Local Area Connection\" source=dhcp &
%SYSTEMROOT%/System32/netsh.exe interface ip set address name=\"Local
Area Connection 2\" source=dhcp & %SYSTEMROOT%/System32/netsh.exe
interface ip set dns name=\"Local Area Connection 2\" source=dhcp &
%SYSTEMROOT%/System32/sysprep/sysprep.exe /generalize /oobe /shutdown
/quiet /unattend:C:/Windows/Sysnative/sysprep/Unattend.xml"' 2>&1*
*2011-02-28
17:19:55|19148|30:30|image|utils.pm:run_ssh_command(5526)|run_ssh_command 
output:*
*2011-02-28
17:19:55|19148|30:30|image|utils.pm:run_ssh_command(5540)|SSH command
executed on vmwarewin7-base1-v1, returning (0, "")*
*2011-02-28
17:19:55|19148|30:30|image|Version_6.pm:run_sysprep(1622)|initiated
Sysprep.exe, waiting for vmwarewin7-base1-v1 to become unresponsive*
*2011-02-28
17:19:55|19148|30:30|image|Module.pm:code_loop_timeout(396)|waiting for
vmwarewin7-base1-v1 to NOT respond to ping, maximum of 720 seconds*
*2011-02-28
17:19:55|19148|30:30|image|Module.pm:code_loop_timeout(413)|attempt 1:
waiting for vmwarewin7-base1-v1 to NOT respond to ping*
*2011-02-28
17:19:55|19148|30:30|image|Module.pm:code_loop_timeout(409)|attempt 1:
code returned false, seconds elapsed/remaining: 0/720, sleeping for 15
seconds*
*2011-02-28 17:20:10|3111|vcld:main(166)|lastcheckin time updated for
management node 1: 2011-02-28 17:20:10*
*2011-02-28
17:20:10|19148|30:30|image|Module.pm:code_loop_timeout(413)|attempt 2:
waiting for vmwarewin7-base1-v1 to NOT respond to ping*
*2011-02-28
17:20:11|19148|30:30|image|Module.pm:code_loop_timeout(416)|waiting for
vmwarewin7-base1-v1 to NOT respond to ping, code returned true*
*|19148|30:30|image| ---- WARNING ---- *
*|19148|30:30|image| 2011-02-28
17:20:11|19148|30:30|image|Provisioning.pm:wait_for_power_off(354)|power_status
subroutine has not been implemented by the provisioning module:
VCL::Module::Provisioning::esxthin*
*|19148|30:30|image| ( 0) utils.pm, notify (line: 630)*
*|19148|30:30|image| (-1) Provisioning.pm, wait_for_power_off (line: 354)*
*|19148|30:30|image| (-2) Version_6.pm, run_sysprep (line: 1642)*
*|19148|30:30|image| (-3) 7.pm, pre_capture (line: 171)*
*|19148|30:30|image| (-4) esxthin.pm, capture (line: 1238)*
*|19148|30:30|image| (-5) image.pm, process (line: 165)*
*|19148|30:30|image| (-6) vcld, make_new_child (line: 595)*
*2011-02-28
17:20:11|19148|30:30|image|Version_6.pm:run_sysprep(1645)|unable to
determine power status of vmwarewin7-base1-v1 from provisioning module,
sleeping 5 minutes to allow computer time to shutdown*
*2011-02-28 17:20:40|3111|vcld:main(166)|lastcheckin time updated for
management node 1: 2011-02-28 17:20:40*
*2011-02-28 17:21:10|3111|vcld:main(166)|lastcheckin time updated for
management node 1: 2011-02-28 17:21:10*
*2011-02-28 17:21:40|3111|vcld:main(166)|lastcheckin time updated for
management node 1: 2011-02-28 17:21:40*
*2011-02-28 17:22:10|3111|vcld:main(166)|lastcheckin time updated for
management node 1: 2011-02-28 17:22:10*
*2011-02-28 17:22:40|3111|vcld:main(166)|lastcheckin time updated for
management node 1: 2011-02-28 17:22:40*
*2011-02-28 17:23:10|3111|vcld:main(166)|lastcheckin time updated for
management node 1: 2011-02-28 17:23:10*
*2011-02-28 17:23:40|3111|vcld:main(166)|lastcheckin time updated for
management node 1: 2011-02-28 17:23:40*
*2011-02-28 17:24:10|3111|vcld:main(166)|lastcheckin time updated for
management node 1: 2011-02-28 17:24:10*
*2011-02-28 17:24:40|3111|vcld:main(166)|lastcheckin time updated for
management node 1: 2011-02-28 17:24:40*
*2011-02-28 17:25:10|3111|vcld:main(166)|lastcheckin time updated for
management node 1: 2011-02-28 17:25:10*
*2011-02-28 17:25:11|19148|30:30|image|7.pm:pre_capture(183)|returning 1*
*2011-02-28 17:25:11|19148|30:30|image|esxthin.pm:capture(1251)|Power
off command: /usr/lib/vmware-vcli/apps/vm/vmcontrol.pl --server 'holden'
--vmname vmwarewin7-base1-v1 --operation poweroff --username vclapp
--password **(PASSWORDREMOVED)*
*2011-02-28 17:25:17|19148|30:30|image|esxthin.pm:capture(1254)|Powered
off:*
*|19148|30:30|image| virtual machine 'vmwarewin7-base1-v1' under host
holden powered off*
- Gerhard Hartl
Old Dominion University

Reply via email to