The log you attached shows no errors.
At the start of the image capture, vcld prints the log to the screen. It then
closes.
Run tail -f /var/log/vcld.log to see progress as it happens.
Joseph Fischetti
Linux System Administrator
Marist College
845-264-9530
Ariuntulga Kikoo --- Re: create windows base image captured failure ---
From:"Ariuntulga Kikoo"
<[email protected]>To:[email protected]:Tue, May 23, 2017 5:53
AMSubject:Re: create windows base image captured failure
hello
capturing base image failed
log shows :
Testing api call
OK: verified user affiliation exists in the database: 'Local'
OK: verified user exists in the database: 'vclsystem@Local'
OK: verfied xmlrpc_pass value is the correct password for
vclsystem@Local
VCL API call successful
Enter the VCL login name or ID of the user who will own the image:
('c' to cancel) [admin]: vclsystem
User who will own the image: vclsystem (ID: 3)
Enter the hostname or IP address of the computer to be captured:
('c' to cancel): 192.168.10.131
Computer to be captured: root-PC (ID: 2)
Computer shortname: root-PC
Computer State: available
Provisioning module: VMware Provisioning Module
OS install types: vmware
VM host name: localhost
VM host profile: VMware ESXi - local storage
Testing ssh access to root-PC
root-PC is responding to SSH, port 22: open, port 24: open
Select the OS to be captured (install type: vmware):
1. Generic Linux (VMware)
2. OSX Snow Leopard (VMware)
3. Ubuntu (VMware)
4. Windows 2003 Server (VMware)
5. Windows 7 (VMware)
6. Windows 8.x (VMware)
7. Windows Server 2008 (VMware)
8. Windows Server 2012 (VMware)
9. Windows Vista (VMware)
10. Windows XP (VMware ESX)
11. Windows XP (VMware)
[vcld/Image Management/Capture a Base Image]
Make a selection (1-11, 'c' to cancel or when done): 5
Selected OS: Windows 7 (VMware)
Image architecture:
1. x86
2. x86_64
[vcld/Image Management/Capture a Base Image]
Make a selection (1-2, 'c' to cancel or when done): 1
Image architecture: x86
Use Sysprep:
1. Yes
2. No
[vcld/Image Management/Capture a Base Image]
Make a selection (1-2, 'c' to cancel or when done): 2
Use Sysprep: No
Enter the name of the image to be captured: ('c' to cancel):
windows7-image
Added new image to database: 'windows7-image'
image.name: vmwarewin7-windows7image17-v0
image.id: 17
imagerevision.id: 17
imagemeta.id: 16
resource.id: 27
----------------------------------------------------------------------------
Inserted imaging request to the database:
request ID: 16
reservation ID: 16
This process will now display the contents of the vcld.log file if
the vcld
daemon is running. If you do not see many lines of additional
output, exit this
process, start the vcld daemon, and monitor the image capture
process by running
the command:
tail -f /var/log/vcld.log | grep -P '.\|[0-9]+\|[0-9]+\|16\|'
----------------------------------------------------------------------------
|14402|||vcld|utils.pm:xmlrpc_call|9616| username: vclsystem@Local
2017-05-23
02:50:35|14402|||vcld|utils.pm:insert_request|8403|inserted new image/image
request into request table, request id=16
2017-05-23
02:50:35|14402|||vcld|utils.pm:insert_request|8434|inserted new reservation for
request 16: 16
2017-05-23
02:50:41|14462|16|16|image|utils.pm:run_command|9339|executed command: 'ps -e
-o pid,args | grep -P "vcld .\|[0-9]+\|[0-9]+\|16\|"', exit status: 1, output:
2017-05-23
02:50:41|14462|16|16|image|utils.pm:is_management_node_process_running|9772|process
is NOT running, identifier: 'vcld .\|[0-9]+\|[0-9]+\|16\|'
2017-05-23
02:50:41|14462|16|16|image|utils.pm:reservation_being_processed|9275|reservation
16 is NOT currently being processed
|14462|16|16|image|utils.pm:reservation_being_processed|9275|
reservation ID: 16
|14462|16|16|image|utils.pm:reservation_being_processed|9275|
parent reservation ID: 16
|14462|16|16|image|utils.pm:reservation_being_processed|9275|
reservation computerloadlog 'begin' entry exists: no
|14462|16|16|image|utils.pm:reservation_being_processed|9275|
parent reservation computerloadlog 'begin' entry exists: no
|14462|16|16|image|utils.pm:reservation_being_processed|9275|
reservation process running: no
2017-05-23 02:50:41|14462|16|16|image|vcld:main|294|reservation 16
is NOT already being processed
2017-05-23
02:50:41|14462|16|16|image|utils.pm:get_imagemeta_info|3849|retrieved imagemeta
info:
|14462|16|16|image|utils.pm:get_imagemeta_info|3849| : {
|14462|16|16|image|utils.pm:get_imagemeta_info|3849| :
"architecture" => "",
|14462|16|16|image|utils.pm:get_imagemeta_info|3849| :
"checkuser" => 1,
|14462|16|16|image|utils.pm:get_imagemeta_info|3849| : "id" =>
16,
|14462|16|16|image|utils.pm:get_imagemeta_info|3849| :
"postoption" => "",
|14462|16|16|image|utils.pm:get_imagemeta_info|3849| :
"rootaccess" => 1,
|14462|16|16|image|utils.pm:get_imagemeta_info|3849| :
"sethostname" => "",
|14462|16|16|image|utils.pm:get_imagemeta_info|3849| :
"subimages" => 0,
|14462|16|16|image|utils.pm:get_imagemeta_info|3849| : "sysprep"
=> 0
|14462|16|16|image|utils.pm:get_imagemeta_info|3849| : }
2017-05-23
02:50:41|14462|16|16|image|utils.pm:get_user_info|6962|UID value is not
configured for user 'vclsystem', setting UID: 503, standalone: 1
2017-05-23
02:50:41|14462|16|16|image|utils.pm:get_production_imagerevision_info|3737|retrieved
info from database for production revision for image identifier '1',
production image: 'noimage'
2017-05-23
02:50:41|14462|16|16|image|utils.pm:get_computer_info|7324|skipping retrieval
of VM host 1 info for localhost to avoid recursion
2017-05-23
02:50:41|14462|16|16|image|utils.pm:get_computer_info|7344|retrieved info for
computer: localhost (1)
2017-05-23
02:50:41|14462|16|16|image|utils.pm:get_vmhost_info|4090|retrieved VM host 1
info, VM host ID: 1, computer: localhost, computer ID: 1
2017-05-23
02:50:41|14462|16|16|image|utils.pm:get_computer_info|7344|retrieved info for
computer: root-PC (2)
2017-05-23
02:50:41|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619|retrieved
connect method info for reservation 16:
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| : {
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| : 2 =>
{
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| :
"RETRIEVAL_TIME" => "1495533041",
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| :
"connectmethodmap" => {
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| :
"OSid" => undef,
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| :
"OStypeid" => 1,
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| :
"autoprovisioned" => undef,
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| :
"connectmethodid" => 2,
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| :
"disabled" => 0,
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| :
"imagerevisionid" => undef
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| : },
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| :
"connectmethodport" => {
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| :
2 => {
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| :
"connectmethodid" => 2,
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| :
"id" => 2,
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| :
"port" => 3389,
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| :
"protocol" => "TCP"
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| : }
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| : },
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| :
"description" => "Remote Desktop for Windows",
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| :
"id" => 2,
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| :
"name" => "RDP",
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| :
"servicename" => "TermService",
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| :
"startupscript" => undef
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| : }
|14462|16|16|image|utils.pm:get_reservation_connect_method_info|11619| : }
2017-05-23
02:50:41|14462|16|16|image|utils.pm:get_user_info|6962|UID value is not
configured for user 'vclsystem', setting UID: 503, standalone: 1
2017-05-23 02:50:41|14462|16|16|image|vcld:main|300|retrieved
request information from database
2017-05-23
02:50:41|14462|16|16|image|utils.pm:delete_computerloadlog_reservation|5844|deleted
rows from computerloadlog matching loadstate regex 'exited' for reservation
IDs: 16
2017-05-23
02:50:41|14462|16|16|image|utils.pm:insertloadlog|2758|inserted 'begin'
computerloadlog entry
2017-05-23
02:50:41|14462|16|16|image|vcld:make_new_child|514|request will be processed by
image.pm
2017-05-23
02:50:41|14462|16|16|image|vcld:make_new_child|536|created child process 14535
for reservation 16, state: image, current number of forked kids: 1
2017-05-23 02:50:41|14535|16|16|image|vcld:make_new_child|556|vcld
environment variable set to 0 for this process
2017-05-23
02:50:41|14535|16|16|image|DataStructure.pm:is_parent_reservation|1101|this is
the parent reservation
2017-05-23
02:50:41|14535|16|16|image|utils.pm:rename_vcld_process|6207|reservation count:
1
2017-05-23
02:50:41|14535|16|16|image|utils.pm:rename_vcld_process|6226|PARENTIMAGE: 1
2017-05-23
02:50:41|14535|16|16|image|utils.pm:rename_vcld_process|6227|SUBIMAGE: 0
2017-05-23
02:50:41|14535|16|16|image|utils.pm:rename_vcld_process|6245|renamed process to
'vcld '|14535|16|16|image|' root-PC>localhost vmwarewin7-windows7image17-v0
vclsystem'
2017-05-23
02:50:41|14535|16|16|image|vcld:make_new_child|575|loaded VCL::image module
2017-05-23 02:50:41|14535|16|16|image|Module.pm:new|184|VCL::image
object created for state image, address: 347d018
2017-05-23
02:50:41|14535|16|16|image|DataStructure.pm:_initialize|705|image identifier
argument was specified: noimage, DataStructure object will contain image
information for the production imagerevision of this image
2017-05-23
02:50:41|14535|16|16|image|utils.pm:get_production_imagerevision_info|3737|retrieved
info from database for production revision for image identifier 'noimage',
production image: 'noimage'
2017-05-23
02:50:41|14535|16|16|image|DataStructure.pm:_initialize|735|retrieved data for
imagerevision ID: 1
2017-05-23
02:50:41|14535|16|16|image|DataStructure.pm:_initialize|751|retrieved data for
image ID: 1
2017-05-23
02:50:42|14535|16|16|image|Module.pm:create_mn_os_object|481|VCL::Module::OS::Linux::ManagementNode
module loaded
2017-05-23
02:50:42|14535|16|16|image|Module.pm:new|195|VCL::Module::OS::Linux::ManagementNode
object created, address: 3b4dc08
2017-05-23
02:50:42|14535|16|16|image|utils.pm:hostname_to_ip_address|13910|resolved IP
address from hostname localhost --> 127.0.0.1
2017-05-23
02:50:42|14535|16|16|image|DataStructure.pm:set_computer_private_ip_address|1624|private
IP address of localhost set to 127.0.0.1
2017-05-23
02:50:42|14535|16|16|image|Module.pm:create_mn_os_object|486|VCL::Module::OS::Linux::ManagementNode
OS object created, address: 3b4dc08
2017-05-23
02:50:42|14535|16|16|image|Module.pm:set_mn_os|1032|storing reference to
managment node OS object (address: 3b4dc08) in this VCL::image object (address:
347d018)
2017-05-23
02:50:42|14535|16|16|image|State.pm:initialize|86|initializing
VCL::Module::State object
2017-05-23
02:50:42|14535|16|16|image|DataStructure.pm:is_parent_reservation|1101|this is
the parent reservation
2017-05-23
02:50:42|14535|16|16|image|State.pm:initialize|103|obtained a database handle
for this state process, stored as $ENV{dbh}
2017-05-23
02:50:42|14535|16|16|image|utils.pm:update_reservation_lastcheck|5551|updated
reservation.lastcheck to '2017-05-23 02:50:42' for reservation IDs: 16
2017-05-23
02:50:42|14535|16|16|image|utils.pm:update_request_state|1399|request 16 state
updated to pending/image
2017-05-23
02:50:42|14535|16|16|image|DataStructure.pm:is_parent_reservation|1101|this is
the parent reservation
2017-05-23
02:50:42|14535|16|16|image|DataStructure.pm:is_parent_reservation|1101|this is
the parent reservation
2017-05-23
02:50:42|14535|16|16|image|Module.pm:create_os_object|420|VCL::Module::OS::Windows::Version_6::7
module loaded
2017-05-23
02:50:42|14535|16|16|image|Module.pm:new|188|VCL::Module::OS::Windows::Version_6::7
object created for image vmwarewin7-windows7image17-v0, address: 3b58840
2017-05-23
02:50:42|14535|16|16|image|Module.pm:set_mn_os|1032|storing reference to
managment node OS object (address: 3b4dc08) in this
VCL::Module::OS::Windows::Version_6::7 object (address: 3b58840)
2017-05-23
02:50:42|14535|16|16|image|Windows.pm:initialize|212|beginning Windows module
initialization
2017-05-23
02:50:42|14535|16|16|image|Windows.pm:initialize|222|Windows module
initialization complete
please help me ???
On Mon, May 22, 2017 at 5:09 PM, Ariuntulga Kikoo
<[email protected]> wrote:
Thank you
1. show vcl.log
|5808|||vcld|utils.pm:get_management_node_info|4767|
2017-05-22 01:03:49|5808|||vcld|utils.pm:get_management_node_info|4767|zero
rows were returned from database select, image library functions will be
disabled
what is that ????
2. start base image capture process but i see this WARNING
Enter the name of the image to be captured: ('c' to cancel):
windows7
WARNING: Failed to add image to user's new images group
You might need to add manually to the new images or all images
image groups
Continuing to with image capture
it is very important to me
please help me
On Mon, May 22, 2017 at 2:50 PM, Ariuntulga Kikoo
<[email protected]> wrote:
Thank you
VCL Management Node Setup
defined(@array) is deprecated at
/usr/local/vcl-2.4.2/bin/../lib/VCL/Module/Provisioning/xCAT.pm line 694 (#1)
(D deprecated) defined() is not usually useful
on arrays because it
checks for an undefined scalar value. If you
want to see if the
array is empty, just use if (@array) { # not
empty } for example.
(Maybe you should just omit the defined()?)
defined(@array) is deprecated at
/usr/local/vcl-2.4.2/bin/../lib/VCL/Module/Provisioning/xCAT.pm line 698 (#1)
(Maybe you should just omit the defined()?)
defined(@array) is deprecated at
/usr/local/vcl-2.4.2/bin/../lib/VCL/Module/Provisioning/vbox.pm line 863 (#1)
(Maybe you should just omit the defined()?)
defined(@array) is deprecated at
/usr/local/vcl-2.4.2/bin/../lib/VCL/Module/Provisioning/vbox.pm line 867 (#1)
(Maybe you should just omit the defined()?)
defined(@array) is deprecated at
/usr/local/vcl-2.4.2/bin/../lib/VCL/Module/Provisioning/vbox.pm line 987 (#1)
(Maybe you should just omit the defined()?)
defined(@array) is deprecated at
/usr/local/vcl-2.4.2/bin/../lib/VCL/Module/Provisioning/vbox.pm line 991 (#1)
(Maybe you should just omit the defined()?)
----------------------------------------------------------------------------------------------------
Check Configuration
1: Check Windows OS Module
Image Management
2: Capture a Base Image
Management Node Configuration
3: Test RPC-XML Access
Management Node Operations
4: Check private IP addresses
User Accounts
5: Add Local VCL User Account
6: Set Local VCL User Account Password
VMware Provisioning Module
7: VM Host Operations
Windows Image Configuration
Activation
8: Configure Key Management Service (KMS)
Activation
9: Configure Multiple Activation Key (MAK)
Activation
[vcld]
Make a selection (1-9, 'c' to cancel):
running /usr/local/vcl/bin/vcld -setup
what is that ???
On Mon, May 22, 2017 at 11:18 AM, Joseph Fischetti
<[email protected]> wrote:
Make sure your web directory is owned by the user
running the web server (wwwrun, Apache, etc), and the directory has write
access (chmod 755 should be correct for that directory). Also make sure, if
using selinux, that the directory context is set correctly so it it doesn't
prevent httpd from writing.
Joseph Fischetti
Linux System Administrator
Marist College
845-264-9530
Ariuntulga Kikoo --- Re: create windows
base image captured failure ---
From:"Ariuntulga Kikoo"
<[email protected]>To:[email protected]:Sat, May 20, 2017 8:19
AMSubject:Re: create windows base image captured failure
i'm access to
https://192.168.81.130/vcl/testsetup.php
but
Checking that
.ht-inc/maintenance directory is writable ...
Maintenance directory is not writable
how to fix
???
On Thu, May 18, 2017 at 9:58 PM, Josh Thompson
<[email protected]> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ariuntulga,
That is an email sent to anyone who tries to create an image
where an error is
encountered. VCL currently does not have a way for users to
track the
progress of their image creations. So, the email is the only
way to notify
users of a problem. Also, when an image creation successfully
completes, the
user receives notification via email to let him or her know.
Presumably, a VCL administrator that is creating an image that
encounters a
failure already knows about it, but there's not a simple way
to only alert
normal users. If you want to salvage the image that would
have been created,
you should look through the vcld.log file to find any error
messages, correct
them, and use the Dashboard to restart the image capture
process.
As a side note, we can help you better if you will spend a few
minutes typing
up more information when asking questions. Sending an email
saying "I have
this mail ????" along with a screen shot doesn't give us much
information on
your problem and leaves us guessing at how to help you.
Consider asking a
question clearly as a way of saying thank you to those of us
volunteering our
time to help you.
Josh
On Thursday, May 18, 2017 1:45:20 AM Ariuntulga Kikoo wrote:
> i have this mail ????
>
> On Thu, May 18, 2017 at 1:06 AM, Ariuntulga Kikoo
<[email protected]
> > wrote:
> >
> >
> > what is that ?????
> >
> > On Thu, May 18, 2017 at 12:32 AM, Joseph Fischetti <
> >
> > [email protected]> wrote:
> >> Enter the IP address of the machine you want to capture
> >>
> >> In this case, the windows 7 machine 192.168.81.131
> >>
> >> Joseph Fischetti
> >> Linux System Administrator
> >> E-mail: [email protected]
> >> Cell: 845-264-9530 <(845)%20264-9530>
> >>
> >>
> >>
> >> ----- Original message -----
> >> From: Ariuntulga Kikoo <[email protected]>
> >> To: [email protected]
> >> Cc:
> >> Subject: Re: create windows base image captured failure
> >> Date: Wed, May 17, 2017 11:30 AM
> >>
> >> After running through Andy's steps, all done
> >> but have issue
> >> When i run vcld -setup, and select "create a new base
image", what enter
> >> the ip ??
> >>
> >> manage computer > add computer > (esxi private ip or vm
private ip
> >>
> >> [which ?????]) on vcl web page
> >>
> >> On Tue, May 16, 2017 at 9:04 PM, Joseph Fischetti <
> >> [email protected]> wrote:
> >>
> >> After running through Andy's steps, were you able to
make any more
> >> progress?
> >>
> >> The one thing he and I both pointed out was the
reference to localhost in
> >> your logs. It seems like your management node was
attempting to image
> >> itself, I would think most likely due to misconfigured
computer/IP
> >> address
> >> settings.
> >>
> >> When you run vcld -setup, and select "create a new base
image", what are
> >> you entering as the machine you'd like to capture?
> >>
> >> One thing you'll need to make sure of is that you have
ssh set up so that
> >> your management node can communicate with esx and with
the guests. I had
> >> a
> >> hard time with some things in windows 10 (probably
related to username
> >> conflicts), but I don't believe there's any snags
related to cygwin and
> >> windows 7.
> >>
> >> Joseph Fischetti
> >> Linux System Administrator
> >> E-mail: [email protected]
> >> Cell: 845-264-9530 <(845)%20264-9530>
> >>
> >>
> >>
> >> ----- Original message -----
> >> From: Ariuntulga Kikoo <[email protected]>
> >> To: [email protected]
> >> Cc:
> >> Subject: Re: create windows base image captured failure
> >> Date: Tue, May 16, 2017 5:14 AM
> >>
> >> i have 2 hosts.
> >> 1. Centos - VCL management node
> >> 2. ESXi hypervisor with installed windows7
> >>
> >> i haven't public address
> >>
> >> centos public ipaddress - 192.168.81.130
> >>
> >> private address - 192.168.10.129
> >>
> >> ESXi public ipaddress - 192.168.81.128
> >>
> >> private ipaddress - 192.168.10.130
> >>
> >> ESXi on windows7 ipaddress - 192.168.81.131
> >>
> >> give me computer information guide on vcl web
- --
- -------------------------------
Josh Thompson
VCL Developer
North Carolina State University
my GPG/PGP key can be found at pgp.mit.edu
All electronic mail messages in connection with State business
which
are sent to or received by this account are subject to the NC
Public
Records Law and may be disclosed to third parties.
-----BEGIN PGP SIGNATURE-----
iEYEARECAAYFAlkdmnkACgkQV/LQcNdtPQMrJQCeK4gYZO2hlaH5KIB1YZY8Wr2r
1kcAn24kkKMdtvOnMkG1d6PGbp0rHpHa
=KWFg
-----END PGP SIGNATURE-----