Re: Capturing Windows 2003 Server Image

2011-12-28 Thread Andy Kurth
I have seen this before.  For some reason, the firewall isn't enabled
by default for new Windows 2003 installations and the firewall
services aren't running.  Enable the firewall via the Control Panel.
Make sure TCP port 22 is open and that SSH is still working and then
restart the capture process.

Don't rerun 'vcld -setup' once you have run it once for a given base
image because it will result in extra unnecessary image entries in the
database.  Instead, manually change the request table in the database.
 Find the imaging request that was created by 'vcld -setup'.  The
request.state value will be 10 (maintenance) and request.laststate
will be 16 (image).  change request.state to 16 and the normal running
vcld process will restart the capture.

-Andy

On Tue, Dec 27, 2011 at 3:11 PM, Evelio Quiros evq...@fiu.edu wrote:
 Hello,

 Happy New Year to you all.

 I am having trouble capturing a Windows 2003 Server image. I setup Windows
 2003 on the VM server and installed and configured Cygwin.
 I setup the gen-keys, and my Management node can SSH to the server fine
 without a password.
 When I tried to capture the new base image, it begins the process, and a
 little while later it reports having failed.

 I had been able to capture a linux image and a windows XP base image without
 any trouble, so I know VCL itself is working ok.

 Any ideas on what might be wrong ?

 Included below is the last part of the vcl log….

 2011-12-27
 14:42:28|16120|34:34|image|Module.pm:code_loop_timeout(759)|attempt 9:
 waiting for vclimg12 to respond to SSH
 2011-12-27 14:42:34|13511|vcld:main(167)|lastcheckin time updated for
 management node 1: 2011-12-27 14:42:34
 2011-12-27 14:42:41|16120|34:34|image|OS.pm:is_ssh_responding(401)|vclimg12
 is responding to SSH, port 22: open, port 24: closed
 2011-12-27
 14:42:41|16120|34:34|image|Module.pm:code_loop_timeout(762)|waiting for
 vclimg12 to respond to SSH, code returned true
 2011-12-27 14:42:41|16120|34:34|image|Windows.pm:reboot(3454)|vclimg12
 responded to ssh
 2011-12-27 14:42:41|16120|34:34|image|Windows.pm:reboot(3471)|reboot
 complete on vclimg12, took 318 seconds
 2011-12-27
 14:42:41|16120|34:34|image|Windows.pm:disable_pagefile(2077)|computer was
 rebooted after disabling pagefile in the registry
 2011-12-27
 14:42:41|16120|34:34|image|utils.pm:run_ssh_command(5380)|executing SSH
 command on vclimg12:
 |16120|34:34|image| /usr/bin/ssh -i /etc/vcl/vcl.key  -o
 StrictHostKeyChecking=no -l root -p 22 -x vclimg12 'for i in `ls /cygdrive
 2/dev/null`; do echo $i; done;' 21
 2011-12-27
 14:42:42|16120|34:34|image|Windows.pm:get_volume_list(7958)|retrieved drive
 letter list under /cygdrive:
 |16120|34:34|image| c
 2011-12-27 14:42:45|16120|34:34|image|Windows.pm:file_exists(1340)|file
 exists on vclimg12: 'c:/pagefile.sys'
 2011-12-27
 14:42:45|16120|34:34|image|Windows.pm:delete_file(1102)|attempting to delete
 file: 'c:/pagefile.sys'
 2011-12-27 14:43:32|16120|34:34|image|Windows.pm:file_exists(1336)|file does
 NOT exist on vclimg12: 'c:/pagefile.sys'
 2011-12-27 14:43:32|16120|34:34|image|Windows.pm:delete_file(1157)|deleted
 file: 'c:/pagefile.sys'
 2011-12-27
 14:43:32|16120|34:34|image|Windows.pm:disable_pagefile(2094)|deleted
 pagefile.sys on all c:
 2011-12-27
 14:43:32|16120|34:34|image|Windows.pm:get_network_configuration(5040)|network
 configuration has already been retrieved
 2011-12-27
 14:43:32|16120|34:34|image|DataStructure.pm:get_computer_private_ip_address(1557)|returning
 private IP address previously retrieved: 10.0.0.42
 2011-12-27
 14:43:32|16120|34:34|image|Windows.pm:get_network_configuration(5075)|private
 interface found: Local Area Connection, description: Intel(R) PRO/1000 MT
 Network Connection, address(es): 10.0.0.42
 2011-12-27
 14:43:32|16120|34:34|image|Windows.pm:get_private_interface_name(5177)|returning
 private interface name: Local Area Connection
 2011-12-27
 14:43:32|16120|34:34|image|Windows.pm:firewall_disable_rdp(4856)|RDP will be
 disabled on private interface: Local Area Connection
 2011-12-27
 14:43:32|16120|34:34|image|Windows.pm:get_network_configuration(5040)|network
 configuration has already been retrieved
 2011-12-27
 14:43:32|16120|34:34|image|DataStructure.pm:get_computer_private_ip_address(1557)|returning
 private IP address previously retrieved: 10.0.0.42
 2011-12-27
 14:43:32|16120|34:34|image|Windows.pm:get_network_configuration(5075)|private
 interface found: Local Area Connection, description: Intel(R) PRO/1000 MT
 Network Connection, address(es): 10.0.0.42
 2011-12-27 14:43:32|16120|34:34|image|utils.pm:is_valid_ip_address(9266)|IP
 address is valid: 10.106.128.49
 2011-12-27
 14:43:32|16120|34:34|image|utils.pm:is_public_ip_address(9375)|private IP
 address: 10.106.128.49, returning 0
 2011-12-27
 14:43:32|16120|34:34|image|Windows.pm:get_network_configuration(5117)|interface
 found with non-public address not matching private address for reservation:
 Local Area Connection 2, address(es): 10.106.128.49
 

Re: Capturing Windows 2003 Server Image

2011-12-28 Thread Evelio Quiros
That was it !

Thank you. Windows 2003 Server was successfully captured.
I would not have thought that the Windows Firewall was an issue.

Thanks again,
Al Quiros


On 12/28/11 8:50 AM, Andy Kurth andy_ku...@ncsu.edu wrote:

I have seen this before.  For some reason, the firewall isn't enabled
by default for new Windows 2003 installations and the firewall
services aren't running.  Enable the firewall via the Control Panel.
Make sure TCP port 22 is open and that SSH is still working and then
restart the capture process.

Don't rerun 'vcld -setup' once you have run it once for a given base
image because it will result in extra unnecessary image entries in the
database.  Instead, manually change the request table in the database.
 Find the imaging request that was created by 'vcld -setup'.  The
request.state value will be 10 (maintenance) and request.laststate
will be 16 (image).  change request.state to 16 and the normal running
vcld process will restart the capture.

-Andy

On Tue, Dec 27, 2011 at 3:11 PM, Evelio Quiros evq...@fiu.edu wrote:
 Hello,

 Happy New Year to you all.

 I am having trouble capturing a Windows 2003 Server image. I setup
Windows
 2003 on the VM server and installed and configured Cygwin.
 I setup the gen-keys, and my Management node can SSH to the server fine
 without a password.
 When I tried to capture the new base image, it begins the process, and a
 little while later it reports having failed.

 I had been able to capture a linux image and a windows XP base image
without
 any trouble, so I know VCL itself is working ok.

 Any ideas on what might be wrong ?

 Included below is the last part of the vcl logŠ.

 2011-12-27
 14:42:28|16120|34:34|image|Module.pm:code_loop_timeout(759)|attempt 9:
 waiting for vclimg12 to respond to SSH
 2011-12-27 14:42:34|13511|vcld:main(167)|lastcheckin time updated for
 management node 1: 2011-12-27 14:42:34
 2011-12-27 
14:42:41|16120|34:34|image|OS.pm:is_ssh_responding(401)|vclimg12
 is responding to SSH, port 22: open, port 24: closed
 2011-12-27
 14:42:41|16120|34:34|image|Module.pm:code_loop_timeout(762)|waiting for
 vclimg12 to respond to SSH, code returned true
 2011-12-27 14:42:41|16120|34:34|image|Windows.pm:reboot(3454)|vclimg12
 responded to ssh
 2011-12-27 14:42:41|16120|34:34|image|Windows.pm:reboot(3471)|reboot
 complete on vclimg12, took 318 seconds
 2011-12-27
 14:42:41|16120|34:34|image|Windows.pm:disable_pagefile(2077)|computer
was
 rebooted after disabling pagefile in the registry
 2011-12-27
 14:42:41|16120|34:34|image|utils.pm:run_ssh_command(5380)|executing SSH
 command on vclimg12:
 |16120|34:34|image| /usr/bin/ssh -i /etc/vcl/vcl.key  -o
 StrictHostKeyChecking=no -l root -p 22 -x vclimg12 'for i in `ls
/cygdrive
 2/dev/null`; do echo $i; done;' 21
 2011-12-27
 14:42:42|16120|34:34|image|Windows.pm:get_volume_list(7958)|retrieved
drive
 letter list under /cygdrive:
 |16120|34:34|image| c
 2011-12-27 14:42:45|16120|34:34|image|Windows.pm:file_exists(1340)|file
 exists on vclimg12: 'c:/pagefile.sys'
 2011-12-27
 14:42:45|16120|34:34|image|Windows.pm:delete_file(1102)|attempting to
delete
 file: 'c:/pagefile.sys'
 2011-12-27 14:43:32|16120|34:34|image|Windows.pm:file_exists(1336)|file
does
 NOT exist on vclimg12: 'c:/pagefile.sys'
 2011-12-27 
14:43:32|16120|34:34|image|Windows.pm:delete_file(1157)|deleted
 file: 'c:/pagefile.sys'
 2011-12-27
 14:43:32|16120|34:34|image|Windows.pm:disable_pagefile(2094)|deleted
 pagefile.sys on all c:
 2011-12-27
 
14:43:32|16120|34:34|image|Windows.pm:get_network_configuration(5040)|net
work
 configuration has already been retrieved
 2011-12-27
 
14:43:32|16120|34:34|image|DataStructure.pm:get_computer_private_ip_addre
ss(1557)|returning
 private IP address previously retrieved: 10.0.0.42
 2011-12-27
 
14:43:32|16120|34:34|image|Windows.pm:get_network_configuration(5075)|pri
vate
 interface found: Local Area Connection, description: Intel(R) PRO/1000
MT
 Network Connection, address(es): 10.0.0.42
 2011-12-27
 
14:43:32|16120|34:34|image|Windows.pm:get_private_interface_name(5177)|re
turning
 private interface name: Local Area Connection
 2011-12-27
 14:43:32|16120|34:34|image|Windows.pm:firewall_disable_rdp(4856)|RDP
will be
 disabled on private interface: Local Area Connection
 2011-12-27
 
14:43:32|16120|34:34|image|Windows.pm:get_network_configuration(5040)|net
work
 configuration has already been retrieved
 2011-12-27
 
14:43:32|16120|34:34|image|DataStructure.pm:get_computer_private_ip_addre
ss(1557)|returning
 private IP address previously retrieved: 10.0.0.42
 2011-12-27
 
14:43:32|16120|34:34|image|Windows.pm:get_network_configuration(5075)|pri
vate
 interface found: Local Area Connection, description: Intel(R) PRO/1000
MT
 Network Connection, address(es): 10.0.0.42
 2011-12-27 
14:43:32|16120|34:34|image|utils.pm:is_valid_ip_address(9266)|IP
 address is valid: 10.106.128.49
 2011-12-27
 14:43:32|16120|34:34|image|utils.pm:is_public_ip_address(9375)|private
IP
 address: 10.106.128.49, 

Capturing Windows 2003 Server Image

2011-12-27 Thread Evelio Quiros
Hello,

Happy New Year to you all.

I am having trouble capturing a Windows 2003 Server image. I setup Windows 2003 
on the VM server and installed and configured Cygwin.
I setup the gen-keys, and my Management node can SSH to the server fine without 
a password.
When I tried to capture the new base image, it begins the process, and a little 
while later it reports having failed.

I had been able to capture a linux image and a windows XP base image without 
any trouble, so I know VCL itself is working ok.

Any ideas on what might be wrong ?

Included below is the last part of the vcl log….

2011-12-27 14:42:28|16120|34:34|image|Module.pm:code_loop_timeout(759)|attempt 
9: waiting for vclimg12 to respond to SSH
2011-12-27 14:42:34|13511|vcld:main(167)|lastcheckin time updated for 
management node 1: 2011-12-27 14:42:34
2011-12-27 14:42:41|16120|34:34|image|OS.pm:is_ssh_responding(401)|vclimg12 is 
responding to SSH, port 22: open, port 24: closed
2011-12-27 14:42:41|16120|34:34|image|Module.pm:code_loop_timeout(762)|waiting 
for vclimg12 to respond to SSH, code returned true
2011-12-27 14:42:41|16120|34:34|image|Windows.pm:reboot(3454)|vclimg12 
responded to ssh
2011-12-27 14:42:41|16120|34:34|image|Windows.pm:reboot(3471)|reboot complete 
on vclimg12, took 318 seconds
2011-12-27 
14:42:41|16120|34:34|image|Windows.pm:disable_pagefile(2077)|computer was 
rebooted after disabling pagefile in the registry
2011-12-27 14:42:41|16120|34:34|image|utils.pm:run_ssh_command(5380)|executing 
SSH command on vclimg12:
|16120|34:34|image| /usr/bin/ssh -i /etc/vcl/vcl.key  -o 
StrictHostKeyChecking=no -l root -p 22 -x vclimg12 'for i in `ls /cygdrive 
2/dev/null`; do echo $i; done;' 21
2011-12-27 
14:42:42|16120|34:34|image|Windows.pm:get_volume_list(7958)|retrieved drive 
letter list under /cygdrive:
|16120|34:34|image| c
2011-12-27 14:42:45|16120|34:34|image|Windows.pm:file_exists(1340)|file exists 
on vclimg12: 'c:/pagefile.sys'
2011-12-27 14:42:45|16120|34:34|image|Windows.pm:delete_file(1102)|attempting 
to delete file: 'c:/pagefile.sys'
2011-12-27 14:43:32|16120|34:34|image|Windows.pm:file_exists(1336)|file does 
NOT exist on vclimg12: 'c:/pagefile.sys'
2011-12-27 14:43:32|16120|34:34|image|Windows.pm:delete_file(1157)|deleted 
file: 'c:/pagefile.sys'
2011-12-27 14:43:32|16120|34:34|image|Windows.pm:disable_pagefile(2094)|deleted 
pagefile.sys on all c:
2011-12-27 
14:43:32|16120|34:34|image|Windows.pm:get_network_configuration(5040)|network 
configuration has already been retrieved
2011-12-27 
14:43:32|16120|34:34|image|DataStructure.pm:get_computer_private_ip_address(1557)|returning
 private IP address previously retrieved: 10.0.0.42
2011-12-27 
14:43:32|16120|34:34|image|Windows.pm:get_network_configuration(5075)|private 
interface found: Local Area Connection, description: Intel(R) PRO/1000 MT 
Network Connection, address(es): 10.0.0.42
2011-12-27 
14:43:32|16120|34:34|image|Windows.pm:get_private_interface_name(5177)|returning
 private interface name: Local Area Connection
2011-12-27 14:43:32|16120|34:34|image|Windows.pm:firewall_disable_rdp(4856)|RDP 
will be disabled on private interface: Local Area Connection
2011-12-27 
14:43:32|16120|34:34|image|Windows.pm:get_network_configuration(5040)|network 
configuration has already been retrieved
2011-12-27 
14:43:32|16120|34:34|image|DataStructure.pm:get_computer_private_ip_address(1557)|returning
 private IP address previously retrieved: 10.0.0.42
2011-12-27 
14:43:32|16120|34:34|image|Windows.pm:get_network_configuration(5075)|private 
interface found: Local Area Connection, description: Intel(R) PRO/1000 MT 
Network Connection, address(es): 10.0.0.42
2011-12-27 14:43:32|16120|34:34|image|utils.pm:is_valid_ip_address(9266)|IP 
address is valid: 10.106.128.49
2011-12-27 
14:43:32|16120|34:34|image|utils.pm:is_public_ip_address(9375)|private IP 
address: 10.106.128.49, returning 0
2011-12-27 
14:43:32|16120|34:34|image|Windows.pm:get_network_configuration(5117)|interface 
found with non-public address not matching private address for reservation: 
Local Area Connection 2, address(es): 10.106.128.49
2011-12-27 
14:43:32|16120|34:34|image|Windows.pm:get_network_configuration(5124)|interface 
will be returned if another with a public address isn't found
2011-12-27 
14:43:32|16120|34:34|image|Windows.pm:get_public_interface_name(5207)|returning 
public interface name: Local Area Connection 2
2011-12-27 14:43:32|16120|34:34|image|Windows.pm:firewall_disable_rdp(4872)|RDP 
will be disabled on public interface: Local Area Connection 2
2011-12-27 14:43:32|16120|34:34|image|utils.pm:run_ssh_command(5380)|executing 
SSH command on vclimg12:
|16120|34:34|image| /usr/bin/ssh -i /etc/vcl/vcl.key  -o 
StrictHostKeyChecking=no -l root -p 22 -x vclimg12 
'C:/Windows/System32/netsh.exe firewall delete portopening protocol = TCP port 
= 3389 interface = Local Area Connection ;C:/Windows/System32/netsh.exe 
firewall delete portopening protocol = TCP port = 3389 interface = Local