Josh Thompson

I have more things to ask you to clear for me.

1 - "the VM does need to be running"; how ?? do you mean the machine it
self is running ?

2 - what are the public and private IP's that I should give for the VM
profile info ?? the same as the host ??

3 - does the content of /etc/hosts need to be changed automatically or
manually by me ??

thanks for your help Josh.
Ahmad Diab


On Wed, Nov 13, 2013 at 7:56 PM, Josh Thompson <[email protected]>wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Ahmad,
>
> For the VM info on the VCL web site, you need to give it a public IP,
> private
> IP, public MAC address, and a private MAC address.  You need to have
> entries
> in /etc/hosts on your management node for your ESXi system and for your
> VMs.
> The IPs you use in /etc/hosts should be your private IPs.  The VM does
> need to
> be running to be able to capture it.  Yes, you can be connected to the
> image
> using vSphere when you start the capture process.
>
> Also, just to double check.  You need to have a computer entry for your
> ESXi
> system.  You should select "blade" as the type, "None" for "Provisioning
> Engine", "vmhostinuse" as the State, and a "VM Host Profile" that you have
> configured to match your ESXi system.  Finally, under Virtual Hosts->VM
> Hosts,
> you need to have your VMs assigned to your Virtual Host.
>
> Josh
>
> On Friday, November 08, 2013 8:30:17 PM Ahmad Diab wrote:
> > Greetings ..
> >
> > Im working for a while on VCL and Im still stuck in the phase where I
> have
> > to create a base image. I will briefly describe my configuration, any
> help
> > is appreciated.
> >
> > we have a management node running CentOS with all components (DB, web)
> and
> > we have one machine (worker) connected to this node via switch (private
> > network).
> > this machine has Esxi 5.0 running on it and we could create a virtual
> > machine ( with Ubuntu as OS) using another windows machine running
> Vsphere.
> >
> > now my question; I failed creating a base image, what IP's should I give
> > the VM info on the website ?? should it be running while creating the
> base
> > image ?? is it ok if I ran it using windows machine running Vsphere and
> > connected to it ??
> >
> > sorry if my questions seem simple, but I got confused when I failed and I
> > didn't know what to do.
> >
> > again, any help is appreciated, many thanks in advance
> > Ahmad Diab
> >
> >
> >
> > here is the part of my logfile where I think the problem is:
> > *************************************************************************
> >
> > 2013-11-06
> > 14:41:41|28511|11:11|image|utils.pm:rename_vcld_process(6823)|renamed
> > process to 'vcld 11:11 image VMN1
> >
> > vmwareubuntu-IAA19-v0 admin'
> > 2013-11-06
> >
> 14:41:41|28511|11:11|image|DataStructure.pm:is_parent_reservation(993)|retur
> > ning true: parent reservation ID
> >
> > for this request: 11
> > 2013-11-06
> >
> 14:41:41|28511|11:11|image|DataStructure.pm:is_parent_reservation(993)|retur
> > ning true: parent reservation ID
> >
> > for this request: 11
> > 2013-11-06
> >
> 14:41:41|28511|11:11|image|Module.pm:create_os_object(308)|VCL::Module::OS::
> > Linux::Ubuntu module loaded
> > 2013-11-06
> >
> 14:41:41|28511|11:11|image|Module.pm:new(196)|VCL::Module::OS::Linux::Ubuntu
> > object created for image
> >
> > vmwareubuntu-IAA19-v0, address: 2bf7870
> > 2013-11-06
> >
> 14:41:41|28511|11:11|image|Module.pm:create_os_object(314)|VCL::Module::OS::
> > Linux::Ubuntu OS object created,
> >
> > address: 2bf7870
> > 2013-11-06 14:41:41|28511|11:11|image|State.pm:initialize(132)|computer
> is
> > NOT a VM, VM host OS object not created
> > 2013-11-06
> >
> 14:41:41|28511|11:11|image|Module.pm:create_provisioning_object(519)|VCL::Mo
> > dule::Provisioning::VMware::VMware
> >
> > module loaded
> > 2013-11-06
> >
> 14:41:41|28511|11:11|image|Module.pm:new(200)|VCL::Module::Provisioning::VMw
> > are::VMware object created for
> >
> > computer VMN1, address: 2c93f80
> > 2013-11-06
> > 14:41:41|28511|11:11|image|VMware.pm:initialize(267)|initializing
> > VCL::Module::Provisioning::VMware::VMware
> >
> > object
> >
> > |28511|11:11|image| ---- WARNING ----
> > |28511|11:11|image| 2013-11-06
> >
> >
> 14:41:41|28511|11:11|image|DataStructure.pm:_automethod(814)|corresponding
> > data has not
> >
> > been initialized for get_vmhost_computer_id:
> > $self->request_data->{reservation}{11}{computer}{vmhost}{computerid}
> >
> > |28511|11:11|image| ( 0) DataStructure.pm, _automethod (line: 814)
> > |28511|11:11|image| (-1) Autoload.pm, __ANON__ (line: 80)
> > |28511|11:11|image| (-2) VMware.pm, get_vmhost_datastructure (line: 1363)
> > |28511|11:11|image| (-3) VMware.pm, initialize (line: 270)
> > |28511|11:11|image| (-4) Module.pm, new (line: 207)
> > |28511|11:11|image| (-5) Module.pm, create_provisioning_object (line:
> 522)
> > |28511|11:11|image| ---- WARNING ----
> > |28511|11:11|image| 2013-11-06
> >
> >
> 14:41:41|28511|11:11|image|DataStructure.pm:_automethod(814)|corresponding
> > data has not
> >
> > been initialized for get_vmhost_profile_image_id:
> > $self->request_data->{reservation}{11}{computer}{vmhost}{vmprofile}
> >
> > {imageid}
> >
> > |28511|11:11|image| ( 0) DataStructure.pm, _automethod (line: 814)
> > |28511|11:11|image| (-1) Autoload.pm, __ANON__ (line: 80)
> > |28511|11:11|image| (-2) VMware.pm, get_vmhost_datastructure (line: 1364)
> > |28511|11:11|image| (-3) VMware.pm, initialize (line: 270)
> > |28511|11:11|image| (-4) Module.pm, new (line: 207)
> > |28511|11:11|image| (-5) Module.pm, create_provisioning_object (line:
> 522)
> >
> > 2013-11-06
> >
> 14:41:41|28511|11:11|image|VMware.pm:get_vmhost_datastructure(1392)|created
> > DataStructure object for VM host:
> >
> > VMN1
> >
> > |28511|11:11|image| ---- WARNING ----
> > |28511|11:11|image| 2013-11-06
> >
> >
> 14:41:41|28511|11:11|image|DataStructure.pm:_automethod(814)|corresponding
> > data has not
> >
> > been initialized for get_vmhost_computer_id:
> > $self->request_data->{reservation}{11}{computer}{vmhost}{computerid}
> >
> > |28511|11:11|image| ( 0) DataStructure.pm, _automethod (line: 814)
> > |28511|11:11|image| (-1) Autoload.pm, __ANON__ (line: 80)
> > |28511|11:11|image| (-2) VMware.pm, initialize (line: 282)
> > |28511|11:11|image| (-3) Module.pm, new (line: 207)
> > |28511|11:11|image| (-4) Module.pm, create_provisioning_object (line:
> 522)
> > |28511|11:11|image| (-5) State.pm, initialize (line: 136)
> > |28511|11:11|image| ---- WARNING ----
> > |28511|11:11|image| 2013-11-06
> >
> >
> 14:41:41|28511|11:11|image|DataStructure.pm:_automethod(814)|corresponding
> > data has not
> >
> > been initialized for get_vmhost_profile_name:
> > $self->request_data->{reservation}{11}{computer}{vmhost}{vmprofile}
> >
> > {profilename}
> >
> > |28511|11:11|image| ( 0) DataStructure.pm, _automethod (line: 814)
> > |28511|11:11|image| (-1) Autoload.pm, __ANON__ (line: 80)
> > |28511|11:11|image| (-2) VMware.pm, initialize (line: 283)
> > |28511|11:11|image| (-3) Module.pm, new (line: 207)
> > |28511|11:11|image| (-4) Module.pm, create_provisioning_object (line:
> 522)
> > |28511|11:11|image| (-5) State.pm, initialize (line: 136)
> > |28511|11:11|image| ---- WARNING ----
> > |28511|11:11|image| 2013-11-06
> >
> > 14:41:41|28511|11:11|image|vcld:warning_handler(613)|Use of uninitialized
> > value in
> >
> > concatenation (.) or string at
> > /usr/local/vcl/bin/../lib/VCL/Module/Provisioning/VMware/VMware.pm line
> 287.
> > |28511|11:11|image| ( 0) vcld, warning_handler (line: 613)
> > |28511|11:11|image| (-1) VMware.pm, initialize (line: 287)
> > |28511|11:11|image| (-2) Module.pm, new (line: 207)
> > |28511|11:11|image| (-3) Module.pm, create_provisioning_object (line:
> 522)
> > |28511|11:11|image| (-4) State.pm, initialize (line: 136)
> > |28511|11:11|image| (-5) Module.pm, new (line: 207)
> >
> > 2013-11-06 14:41:41|28511|11:11|image|VMware.pm:initialize(287)|VM
> profile
> >
> > assigned to VMN1:
> > |28511|11:11|image| ---- WARNING ----
> > |28511|11:11|image| 2013-11-06
> >
> >
> 14:41:41|28511|11:11|image|DataStructure.pm:_automethod(814)|corresponding
> > data has not
> >
> > been initialized for get_vmhost_computer_id:
> > $self->request_data->{reservation}{11}{computer}{vmhost}{computerid}
> >
> > |28511|11:11|image| ( 0) DataStructure.pm, _automethod (line: 814)
> > |28511|11:11|image| (-1) Autoload.pm, __ANON__ (line: 80)
> > |28511|11:11|image| (-2) VMware.pm, get_vmhost_datastructure (line: 1363)
> > |28511|11:11|image| (-3) VMware.pm, get_vmhost_api_object (line: 1484)
> > |28511|11:11|image| (-4) VMware.pm, initialize (line: 290)
> > |28511|11:11|image| (-5) Module.pm, new (line: 207)
> > |28511|11:11|image| ---- WARNING ----
> > |28511|11:11|image| 2013-11-06
> >
> >
> 14:41:41|28511|11:11|image|DataStructure.pm:_automethod(814)|corresponding
> > data has not
> >
> > been initialized for get_vmhost_profile_image_id:
> > $self->request_data->{reservation}{11}{computer}{vmhost}{vmprofile}
> >
> > {imageid}
> >
> > |28511|11:11|image| ( 0) DataStructure.pm, _automethod (line: 814)
> > |28511|11:11|image| (-1) Autoload.pm, __ANON__ (line: 80)
> > |28511|11:11|image| (-2) VMware.pm, get_vmhost_datastructure (line: 1364)
> > |28511|11:11|image| (-3) VMware.pm, get_vmhost_api_object (line: 1484)
> > |28511|11:11|image| (-4) VMware.pm, initialize (line: 290)
> > |28511|11:11|image| (-5) Module.pm, new (line: 207)
> >
> > 2013-11-06
> >
> 14:41:41|28511|11:11|image|VMware.pm:get_vmhost_datastructure(1392)|created
> > DataStructure object for VM host:
> >
> > VMN1
> > 2013-11-06
> >
> 14:41:41|28511|11:11|image|VMware.pm:get_vmhost_api_object(1495)|attempting
> > to load VMware control module:
> >
> > VCL::Module::Provisioning::VMware::vSphere_SDK
> > 2013-11-06
> > 14:41:41|28511|11:11|image|VMware.pm:get_vmhost_api_object(1501)|loaded
> > VMware control module:
> >
> > VCL::Module::Provisioning::VMware::vSphere_SDK
> >
> > |28511|11:11|image| ---- WARNING ----
> > |28511|11:11|image| 2013-11-06
> >
> > 14:41:41|28511|11:11|image|Module.pm:vmhost_os(593)|unable to return VM
> > host OS object,
> >
> > $self->{vmhost_os} is not set
> >
> > |28511|11:11|image| ( 0) Module.pm, vmhost_os (line: 593)
> > |28511|11:11|image| (-1) VMware.pm, (eval) (line: 1505)
> > |28511|11:11|image| (-2) VMware.pm, get_vmhost_api_object (line: 1505)
> > |28511|11:11|image| (-3) VMware.pm, initialize (line: 290)
> > |28511|11:11|image| (-4) Module.pm, new (line: 207)
> > |28511|11:11|image| (-5) Module.pm, create_provisioning_object (line:
> 522)
> > |28511|11:11|image| ---- WARNING ----
> > |28511|11:11|image| 2013-11-06
> >
> > 14:41:41|28511|11:11|image|vcld:warning_handler(613)|Odd number of
> elements
> > in anonymous
> >
> > hash at
> /usr/local/vcl/bin/../lib/VCL/Module/Provisioning/VMware/VMware.pm
> > line 1505.
> >
> > |28511|11:11|image| ( 0) vcld, warning_handler (line: 613)
> > |28511|11:11|image| (-1) VMware.pm, (eval) (line: 1505)
> > |28511|11:11|image| (-2) VMware.pm, get_vmhost_api_object (line: 1505)
> > |28511|11:11|image| (-3) VMware.pm, initialize (line: 290)
> > |28511|11:11|image| (-4) Module.pm, new (line: 207)
> > |28511|11:11|image| (-5) Module.pm, create_provisioning_object (line:
> 522)
> >
> > 2013-11-06
> >
> 14:41:41|28511|11:11|image|Module.pm:new(200)|VCL::Module::Provisioning::VMw
> > are::vSphere_SDK object created for
> >
> > computer VMN1, address: 32899c0
> > 2013-11-06
> 14:41:41|28511|11:11|image|vSphere_SDK.pm:initialize(98)|vSphere
> > SDK for Perl does not appear to be installed
> >
> > on this managment node, unable to load VMware vSphere SDK Perl modules,
> >
> > error:
> > |28511|11:11|image| Can't locate VMware/VIRuntime.pm in @INC (@INC
> >
> > contains: /usr/local/vcl/bin/../../../..
> >
> > /usr/local/vcl/bin/../.. /usr/local/vcl/bin/../../..
> /usr/local/vcl/bin/..
> > /usr/local/vcl/bin/../lib
> >
> > /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
> > /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
> >
> > /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
> > /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl
> >
> > /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .)
> at
> > (eval 195) line 1.
> >
> > |28511|11:11|image| BEGIN failed--compilation aborted at (eval 195) line
> 1.
> >
> > 2013-11-06
> > 14:41:41|28511|11:11|image|VMware.pm:get_vmhost_api_object(1515)|API
> object
> > could not be created:
> >
> > VCL::Module::Provisioning::VMware::vSphere_SDK
> >
> > |28511|11:11|image| ---- WARNING ----
> > |28511|11:11|image| 2013-11-06
> >
> > 14:41:41|28511|11:11|image|Module.pm:vmhost_os(593)|unable to return VM
> > host OS object,
> >
> > $self->{vmhost_os} is not set
> >
> > |28511|11:11|image| ( 0) Module.pm, vmhost_os (line: 593)
> > |28511|11:11|image| (-1) VMware.pm, initialize (line: 297)
> > |28511|11:11|image| (-2) Module.pm, new (line: 207)
> > |28511|11:11|image| (-3) Module.pm, create_provisioning_object (line:
> 522)
> > |28511|11:11|image| (-4) State.pm, initialize (line: 136)
> > |28511|11:11|image| (-5) Module.pm, new (line: 207)
> > |28511|11:11|image| ---- WARNING ----
> > |28511|11:11|image| 2013-11-06
> >
> > 14:41:41|28511|11:11|image|VMware.pm:initialize(298)|unable to control VM
> > host VMN1,
> >
> > vSphere SDK cannot be used and the VM host OS object is not available
> >
> > |28511|11:11|image| ( 0) VMware.pm, initialize (line: 298)
> > |28511|11:11|image| (-1) Module.pm, new (line: 207)
> > |28511|11:11|image| (-2) Module.pm, create_provisioning_object (line:
> 522)
> > |28511|11:11|image| (-3) State.pm, initialize (line: 136)
> > |28511|11:11|image| (-4) Module.pm, new (line: 207)
> > |28511|11:11|image| (-5) vcld, make_new_child (line: 567)
> > |28511|11:11|image| ---- WARNING ----
> > |28511|11:11|image| 2013-11-06
> >
> >
> 14:41:41|28511|11:11|image|Module.pm:create_provisioning_object(530)|provisi
> > oning object
> >
> > could not be created, returning 0
> >
> > |28511|11:11|image| ( 0) Module.pm, create_provisioning_object (line:
> 530)
> > |28511|11:11|image| (-1) State.pm, initialize (line: 136)
> > |28511|11:11|image| (-2) Module.pm, new (line: 207)
> > |28511|11:11|image| (-3) vcld, make_new_child (line: 567)
> > |28511|11:11|image| (-4) vcld, main (line: 350)
> > |28511|11:11|image| ---- WARNING ----
> > |28511|11:11|image| 2013-11-06
> >
> > 14:41:41|28511|11:11|image|State.pm:initialize(145)|failed to create
> > provisioning object
> >
> > |28511|11:11|image| ( 0) State.pm, initialize (line: 145)
> > |28511|11:11|image| (-1) Module.pm, new (line: 207)
> > |28511|11:11|image| (-2) vcld, make_new_child (line: 567)
> > |28511|11:11|image| (-3) vcld, main (line: 350)
> >
> > 2013-11-06
> > 14:41:41|28511|11:11|image|utils.pm:
> delete_computerloadlog_reservation(6429
> > )|removing computerloadlog entries
> >
> > matching loadstate = begin
> > 2013-11-06
> > 14:41:41|28511|11:11|image|utils.pm:
> delete_computerloadlog_reservation(6476
> > )|deleted rows from computerloadlog
> >
> > for reservation id=11
> > 2013-11-06 14:41:41|28511|11:11|image|State.pm:DESTROY(929)|VCL::image
> > process duration: 0 seconds
> > 2013-11-06
> >
> 14:41:41|28511|11:11|image|DataStructure.pm:get_computer_private_ip_address(
> > 1630)|attempting to retrieve
> >
> > private IP address for computer: VMN1
> > 2013-11-06
> >
> 14:41:41|28511|11:11|image|DataStructure.pm:get_computer_private_ip_address(
> > 1634)|retrieved contents of
> >
> > /etc/hosts on this management node, contains 12 lines
> > 2013-11-06
> >
> 14:41:41|28511|11:11|image|DataStructure.pm:get_computer_private_ip_address(
> > 1673)|did not find any lines in
> >
> > /etc/hosts containing 'VMN1', returning private IP address defined in the
> > database: 192.168.1.21
> > 2013-11-06 14:41:41|28511|11:11|image|utils.pm:getnewdbh(2512)|unable to
> > use database handle stored in $ENV{dbh}
> > 2013-11-06 14:41:41|28511|11:11|image|utils.pm:getnewdbh(2569)|database
> > handle stored in $ENV{dbh}
> > 2013-11-06 14:41:41|28511|11:11|image|utils.pm:
> is_inblockrequest(5793)|zero
> > rows were returned from database select
> > 2013-11-06
> >
> 14:41:41|28511|11:11|image|DataStructure.pm:get_image_affiliation_name(2118)
> > |image owner id: 1
> > 2013-11-06
> >
> 14:41:41|28511|11:11|image|DataStructure.pm:retrieve_user_data(1401)|attempt
> > ing to retrieve and store data for
> >
> > user: user.id = '1'
> > 2013-11-06
> > 14:41:41|28511|11:11|image|DataStructure.pm:retrieve_user_data(1464)|data
> > has been retrieved for user: admin
> >
> > (id: 1)
> > 2013-11-06 14:41:42|28511|11:11|image|utils.pm:mail(1253)|SUCCESS --
> > Sending mail To: [email protected], PROBLEM --
> >
> > localhost|11:11|image|vcld|VMN1|vmwareubuntu-IAA19-v0|admin
> >
> > |28511|11:11|image| ---- CRITICAL ----
> > |28511|11:11|image| 2013-11-06
> >
> > 14:41:41|28511|11:11|image|vcld:make_new_child(574)|VCL::image object
> could
> > not be created
> >
> > and initialized
> >
> > |28511|11:11|image| ( 0) vcld, make_new_child (line: 574)
> > |28511|11:11|image| (-1) vcld, main (line: 350)
> >
> > 2013-11-06 14:41:42|28511|11:11|image|utils.pm:switch_state(6939)|called
> > from VCL::vcld::make_new_child(575)
> > 2013-11-06 14:41:42|28511|11:11|image|utils.pm:
> switch_state(6975)|parent:
> > parent reservation ID for this request: 11
> > 2013-11-06 14:41:42|28511|11:11|image|utils.pm:
> switch_state(6986)|previous
> > request state is image, not setting request
> >
> > state to failed, setting request state to maintenance
> > 2013-11-06 14:41:42|28511|11:11|image|utils.pm:
> insertloadlog(3703)|inserted
> > computer=11, info, VCL::vcld: switching
> >
> > request state to maintenance
> > 2013-11-06
> > 14:41:42|28511|11:11|image|utils.pm:update_request_state(1545)|request
> 11
> > state updated to: maintenance,
> >
> > laststate to: image
> > 2013-11-06 14:41:42|28511|11:11|image|utils.pm:
> switch_state(7010)|request
> > state changed: image->maintenance, laststate:
> >
> > image->image
> > 2013-11-06 14:41:42|28511|11:11|image|utils.pm:
> insertloadlog(3703)|inserted
> > computer=11, info, VCL::vcld: request state
> >
> > changed to maintenance, laststate to image
> > 2013-11-06 14:41:42|28511|11:11|image|utils.pm:
> insertloadlog(3703)|inserted
> > computer=11, info, VCL::vcld: switching
> >
> > computer state to maintenance
> > 2013-11-06
> > 14:41:42|28511|11:11|image|utils.pm:update_computer_state(1587)|computer
> 11
> > state updated to: maintenance
> > 2013-11-06 14:41:42|28511|11:11|image|utils.pm:
> switch_state(7028)|computer
> > VMN1 state changed: available->maintenance
> > 2013-11-06 14:41:42|28511|11:11|image|utils.pm:switch_state(7038)|log
> table
> > id=0, ending set to failed
> > 2013-11-06 14:41:42|28511|11:11|image|utils.pm:
> insertloadlog(3703)|inserted
> > computer=11, info, VCL::vcld: process exiting
> > 2013-11-06 14:41:42|28511|11:11|image|utils.pm:
> switch_state(7054)|process
> > exiting
> > 2013-11-06 14:41:42|4257|vcld:REAPER(721)|VCL process exited for
> > reservation 11, PID: 28511, signal: CHLD
> >
> >
> >
> ****************************************************************************
> > *************
> - --
> - -------------------------------
> 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-----
> Version: GnuPG v2.0.19 (GNU/Linux)
>
> iEYEARECAAYFAlKDr0wACgkQV/LQcNdtPQPuqQCeIKb524kym+WbNLRAcsLOn693
> UJcAnjifYPInrVvsIfla6LsjuDQ426RW
> =2rpJ
> -----END PGP SIGNATURE-----
>
>

Reply via email to