You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vcl.apache.org by Vinay Venkatesh <vi...@gmail.com> on 2010/03/24 16:48:55 UTC

Sysprep : failed to delete existing DevicePath key

Hi,

While trying to capture a base windows image, I am getting the following
error. Sysprep is unable to obtain the DevicePath attribute value from the
windows registry.Is there any setting which I am missing before running
sysprep.



2010-03-24 11:15:50|7802|1:1|image|utils.pm:run_ssh_command(6276)|SSH
command executed on vmguest-1, returning (0, "12 File(s) copied")
2010-03-24 11:15:50|7802|1:1|image|Windows.pm:run_sysprep(5990)|copied
Sysprep files to C:/Sysprep
2010-03-24 11:15:50|7802|1:1|image|Windows.pm:run_sysprep(6003)|attempting
to copy and scan drivers
2010-03-24
11:15:50|7802|1:1|image|Windows.pm:prepare_drivers(6098)|attempting to
remove old C:/Sysprep\Drivers directory if it exists
2010-03-24
11:15:50|7802|1:1|image|Windows.pm:format_path_unix(7843)|formatted path for
Unix: C:/Sysprep/Drivers
2010-03-24
11:15:50|7802|1:1|image|Windows.pm:format_path_dos(7875)|formatted path for
DOS: C:\\Sysprep\\Drivers
2010-03-24 11:15:50|7802|1:1|image|utils.pm:run_ssh_command(6180)|executing
SSH command on vmguest-1:
|7802|1:1|image| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
vmguest-1 'cmd.exe /c dir /a /b "C:\\Sysprep\\Drivers"' 2>&1
2010-03-24
11:15:51|7802|1:1|image|Windows.pm:filesystem_entry_exists(1153)|filesystem
entry does NOT exist on vmguest-1: C:\\Sysprep\\Drivers
|7802|1:1|image| output:
|7802|1:1|image| File Not Found
2010-03-24 11:15:51|7802|1:1|image|Windows.pm:delete_file(898)|file not
deleted because it does not exist: C:/Sysprep/Drivers
2010-03-24
11:15:51|7802|1:1|image|Windows.pm:prepare_drivers(6102)|attempting to
remove old C:/Drivers directory if it exists
2010-03-24
11:15:51|7802|1:1|image|Windows.pm:format_path_unix(7843)|formatted path for
Unix: C:/Drivers
2010-03-24
11:15:51|7802|1:1|image|Windows.pm:format_path_dos(7875)|formatted path for
DOS: C:\\Drivers
2010-03-24 11:15:51|7802|1:1|image|utils.pm:run_ssh_command(6180)|executing
SSH command on vmguest-1:
|7802|1:1|image| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
vmguest-1 'cmd.exe /c dir /a /b "C:\\Drivers"' 2>&1
2010-03-24
11:15:52|7802|1:1|image|Windows.pm:filesystem_entry_exists(1153)|filesystem
entry does NOT exist on vmguest-1: C:\\Drivers
|7802|1:1|image| output:
|7802|1:1|image| File Not Found
2010-03-24 11:15:52|7802|1:1|image|Windows.pm:delete_file(898)|file not
deleted because it does not exist: C:/Drivers
2010-03-24 11:15:52|7802|1:1|image|utils.pm:run_ssh_command(6180)|executing
SSH command on vmguest-1:
|7802|1:1|image| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
vmguest-1 'mkdir -p "C:/Sysprep/Drivers" && cp -rf -T
"C:/Cygwin/home/root/VCL/Drivers" "C:/Sysprep/Drivers"' 2>&1
2010-03-24 11:15:53|7802|1:1|image|utils.pm:run_ssh_command(6262)|run_ssh_command
output:
|7802|1:1|image| none
2010-03-24 11:15:53|7802|1:1|image|utils.pm:run_ssh_command(6276)|SSH
command executed on vmguest-1, returning (0, "none")
2010-03-24 11:15:53|7802|1:1|image|Windows.pm:prepare_drivers(6110)|copied
driver files to C:/Sysprep/Drivers
2010-03-24
11:15:53|7802|1:1|image|Windows.pm:get_system32_path(7751)|System32 string
previously detected: C:/Windows/System32
2010-03-24 11:15:53|7802|1:1|image|utils.pm:run_ssh_command(6180)|executing
SSH command on vmguest-1:
|7802|1:1|image| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
vmguest-1 'C:/Windows/System32/reg.exe DELETE
"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion" /v DevicePath /f' 2>&1
2010-03-24 11:15:54|7753|vcld:main(165)|lastcheckin time updated for
management node 1: 2010-03-24 11:15:53
2010-03-24 11:15:55|7802|1:1|image|utils.pm:run_ssh_command(6262)|run_ssh_command
output:
|7802|1:1|image| Error: The system was unable to find the specified registry
key or value
2010-03-24 11:15:55|7802|1:1|image|utils.pm:run_ssh_command(6272)|SSH
command executed on vmguest-1, command:
|7802|1:1|image| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
vmguest-1 'C:/Windows/System32/reg.exe DELETE
"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion" /v DevicePath /f' 2>&1
|7802|1:1|image| returning (1, "Error: The system was unable t...")
2010-03-24 11:15:55|7802|1:1|image|Windows.pm:prepare_drivers(6129)|failed
to delete existing DevicePath key, exit status: 1, output:
|7802|1:1|image| Error: The system was unable to find the specified registry
key or value

|7802|1:1|image| ---- WARNING ----
|7802|1:1|image| 2010-03-24
11:15:55|7802|1:1|image|Windows.pm:run_sysprep(6005)|unable to copy and scan
drivers
|7802|1:1|image| ( 0) utils.pm, notify (line: 737)
|7802|1:1|image| (-1) Windows.pm, run_sysprep (line: 6005)
|7802|1:1|image| (-2) Version_5.pm, pre_capture (line: 97)
|7802|1:1|image| (-3) vmware.pm, capture (line: 1202)
|7802|1:1|image| (-4) image.pm, process (line: 162)
|7802|1:1|image| (-5) vcld, make_new_child (line: 594)
|7802|1:1|image| (-6) vcld, main (line: 341)

thanks,
vinay

Re: Sysprep : failed to delete existing DevicePath key

Posted by Andy Kurth <an...@ncsu.edu>.
No, you're not missing a step but this is odd.  The key should be there.  I 
would try to manually create the key and try to capture the image again.  The 
key can be a string with an empty value.

-Andy

Vinay Venkatesh wrote:
> Hi,
> 
> While trying to capture a base windows image, I am getting the following
> error. Sysprep is unable to obtain the DevicePath attribute value from the
> windows registry.Is there any setting which I am missing before running
> sysprep.
> 
> 
> 
> 2010-03-24 11:15:50|7802|1:1|image|utils.pm:run_ssh_command(6276)|SSH
> command executed on vmguest-1, returning (0, "12 File(s) copied")
> 2010-03-24 11:15:50|7802|1:1|image|Windows.pm:run_sysprep(5990)|copied
> Sysprep files to C:/Sysprep
> 2010-03-24 11:15:50|7802|1:1|image|Windows.pm:run_sysprep(6003)|attempting
> to copy and scan drivers
> 2010-03-24
> 11:15:50|7802|1:1|image|Windows.pm:prepare_drivers(6098)|attempting to
> remove old C:/Sysprep\Drivers directory if it exists
> 2010-03-24
> 11:15:50|7802|1:1|image|Windows.pm:format_path_unix(7843)|formatted path for
> Unix: C:/Sysprep/Drivers
> 2010-03-24
> 11:15:50|7802|1:1|image|Windows.pm:format_path_dos(7875)|formatted path for
> DOS: C:\\Sysprep\\Drivers
> 2010-03-24 11:15:50|7802|1:1|image|utils.pm:run_ssh_command(6180)|executing
> SSH command on vmguest-1:
> |7802|1:1|image| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
> vmguest-1 'cmd.exe /c dir /a /b "C:\\Sysprep\\Drivers"' 2>&1
> 2010-03-24
> 11:15:51|7802|1:1|image|Windows.pm:filesystem_entry_exists(1153)|filesystem
> entry does NOT exist on vmguest-1: C:\\Sysprep\\Drivers
> |7802|1:1|image| output:
> |7802|1:1|image| File Not Found
> 2010-03-24 11:15:51|7802|1:1|image|Windows.pm:delete_file(898)|file not
> deleted because it does not exist: C:/Sysprep/Drivers
> 2010-03-24
> 11:15:51|7802|1:1|image|Windows.pm:prepare_drivers(6102)|attempting to
> remove old C:/Drivers directory if it exists
> 2010-03-24
> 11:15:51|7802|1:1|image|Windows.pm:format_path_unix(7843)|formatted path for
> Unix: C:/Drivers
> 2010-03-24
> 11:15:51|7802|1:1|image|Windows.pm:format_path_dos(7875)|formatted path for
> DOS: C:\\Drivers
> 2010-03-24 11:15:51|7802|1:1|image|utils.pm:run_ssh_command(6180)|executing
> SSH command on vmguest-1:
> |7802|1:1|image| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
> vmguest-1 'cmd.exe /c dir /a /b "C:\\Drivers"' 2>&1
> 2010-03-24
> 11:15:52|7802|1:1|image|Windows.pm:filesystem_entry_exists(1153)|filesystem
> entry does NOT exist on vmguest-1: C:\\Drivers
> |7802|1:1|image| output:
> |7802|1:1|image| File Not Found
> 2010-03-24 11:15:52|7802|1:1|image|Windows.pm:delete_file(898)|file not
> deleted because it does not exist: C:/Drivers
> 2010-03-24 11:15:52|7802|1:1|image|utils.pm:run_ssh_command(6180)|executing
> SSH command on vmguest-1:
> |7802|1:1|image| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
> vmguest-1 'mkdir -p "C:/Sysprep/Drivers" && cp -rf -T
> "C:/Cygwin/home/root/VCL/Drivers" "C:/Sysprep/Drivers"' 2>&1
> 2010-03-24 11:15:53|7802|1:1|image|utils.pm:run_ssh_command(6262)|run_ssh_command
> output:
> |7802|1:1|image| none
> 2010-03-24 11:15:53|7802|1:1|image|utils.pm:run_ssh_command(6276)|SSH
> command executed on vmguest-1, returning (0, "none")
> 2010-03-24 11:15:53|7802|1:1|image|Windows.pm:prepare_drivers(6110)|copied
> driver files to C:/Sysprep/Drivers
> 2010-03-24
> 11:15:53|7802|1:1|image|Windows.pm:get_system32_path(7751)|System32 string
> previously detected: C:/Windows/System32
> 2010-03-24 11:15:53|7802|1:1|image|utils.pm:run_ssh_command(6180)|executing
> SSH command on vmguest-1:
> |7802|1:1|image| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
> vmguest-1 'C:/Windows/System32/reg.exe DELETE
> "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion" /v DevicePath /f' 2>&1
> 2010-03-24 11:15:54|7753|vcld:main(165)|lastcheckin time updated for
> management node 1: 2010-03-24 11:15:53
> 2010-03-24 11:15:55|7802|1:1|image|utils.pm:run_ssh_command(6262)|run_ssh_command
> output:
> |7802|1:1|image| Error: The system was unable to find the specified registry
> key or value
> 2010-03-24 11:15:55|7802|1:1|image|utils.pm:run_ssh_command(6272)|SSH
> command executed on vmguest-1, command:
> |7802|1:1|image| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
> vmguest-1 'C:/Windows/System32/reg.exe DELETE
> "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion" /v DevicePath /f' 2>&1
> |7802|1:1|image| returning (1, "Error: The system was unable t...")
> 2010-03-24 11:15:55|7802|1:1|image|Windows.pm:prepare_drivers(6129)|failed
> to delete existing DevicePath key, exit status: 1, output:
> |7802|1:1|image| Error: The system was unable to find the specified registry
> key or value
> 
> |7802|1:1|image| ---- WARNING ----
> |7802|1:1|image| 2010-03-24
> 11:15:55|7802|1:1|image|Windows.pm:run_sysprep(6005)|unable to copy and scan
> drivers
> |7802|1:1|image| ( 0) utils.pm, notify (line: 737)
> |7802|1:1|image| (-1) Windows.pm, run_sysprep (line: 6005)
> |7802|1:1|image| (-2) Version_5.pm, pre_capture (line: 97)
> |7802|1:1|image| (-3) vmware.pm, capture (line: 1202)
> |7802|1:1|image| (-4) image.pm, process (line: 162)
> |7802|1:1|image| (-5) vcld, make_new_child (line: 594)
> |7802|1:1|image| (-6) vcld, main (line: 341)
> 
> thanks,
> vinay
>