Re: Base Image creation error - VMware host config

2011-10-25 Thread Aaron Coburn
Al,
if you plan to use the vSphere API, then you will need to install the vSphere 
SDK for Perl separately. The perl modules are available here -- just make sure 
that you download the release that matches your vCenter version.

http://www.vmware.com/support/developer/viperltoolkit/

Aaron Coburn


On Oct 25, 2011, at 10:03 AM, Evelio Quiros wrote:

 Thanks again Aaron. It seems we are taking baby steps here.
 
 Ok, next issue: When I click Configure Host in the vcl web interface,
 nothing happens.
 
 My Vmware server is listed there. It is in vmhostinuse state.
 
 I noticed some complaints below about the Vsphere perl module not being
 installed.
 I thought that was done in the install_perl_libraries script.
 
 Thanks again for all your help.
 
 Al Quiros
 
 
 On 10/25/11 9:43 AM, Aaron Peeler fapee...@ncsu.edu wrote:
 
 In the log output your missing the vmhost information.
 
 Make sure your vm host server have a correctly configured vmhost
 profile and you have assigned your vms to the virtual host server by
 using the Virtual Host interface.
 
 https://cwiki.apache.org/confluence/display/VCL/VCL+2.2.1+-+Further+Steps+
 if+Using+VMware
 https://cwiki.apache.org/confluence/display/VCL/VMware+Configuration
 
 I'm not seeing the virtual host interface mentioned directly in the
 vcl 2.2.1 install guide. I'll added that to the first link.
 
 Here is a link from a bootcamp that you can review this morning while
 I work on adding the content to Apache VCL:
 https://sites.google.com/a/ncsu.edu/vcl-bootcamp/exercises/assign-a-vm-to-
 a-virtual-host
 
 Aaron
 
 
 On Tue, Oct 25, 2011 at 9:19 AM, Evelio Quiros evq...@fiu.edu wrote:
 Thank you Aaron.
 
 Ok, now it can resolve the name redhat64base to the private IP address
 10.0.0.2.
 I tried to add the base image as the name linux64.
 It resides in the database as redhat64base, with the public IP of
 10.106.128.53, and set as available.
 I'm not sure what this error message is telling meŠ
 
 VCL::image object could not be created and initialized
 
 time: 2011-10-25 09:30:44
 caller: vcld:make_new_child(571)
 ( 0) vcld, make_new_child (line: 571)
 (-1) vcld, main (line: 346)
 
 management node: vcltst.fiu.edu
 reservation PID: 31318
 parent vcld PID: 15838
 
 request ID: 4
 reservation ID: 4
 request state/laststate: image/image
 request start time: 2011-10-25 09:30:37
 request end time: 2011-10-25 10:30:37
 for imaging: no
 log ID: none
 
 computer: redhat64base
 computer id: 12
 computer type: blade
 computer eth0 MAC address: undefined
 computer eth1 MAC address: undefined
 computer private IP address: 10.0.0.2
 computer public IP address: 10.106.128.53
 computer in block allocation: no
 provisioning module: VCL::Module::Provisioning::VMware::VMware
 
 image: vmwarelinux-linux6414-v0
 image display name: linux64
 image ID: 14
 image revision ID: 8
 image size: 1450 MB
 use Sysprep: yes
 root access: yes
 image owner ID: 1
 image owner affiliation: Local
 image revision date created: 2011-10-25 09:30:37
 image revision production: yes
 OS module: VCL::Module::OS::Linux
 
 user: admin
 user name: vcl admin
 user ID: 1
 user affiliation: Local
 
 RECENT LOG ENTRIES FOR THIS PROCESS:
 2011-10-25
 
 09:30:43|31318|4:4|image|VMware.pm:get_vmhost_api_object(1293)|attempting
 to load VMware control module:
 VCL::Module::Provisioning::VMware::vSphere_SDK
 2011-10-25
 09:30:43|31318|4:4|image|VMware.pm:get_vmhost_api_object(1299)|loaded
 VMware control module: VCL::Module::Provisioning::VMware::vSphere_SDK
 2011-10-25 09:30:43|31318|4:4|image|Module.pm:new(172)|set 'vmhost_data'
 key for VCL::Module::Provisioning::VMware::vSphere_SDK object from
 arguments
 2011-10-25 09:30:43|31318|4:4|image|Module.pm:new(172)|set 'vmhost_os'
 key
 for VCL::Module::Provisioning::VMware::vSphere_SDK object from arguments
 2011-10-25
 09:30:43|31318|4:4|image|Module.pm:create_mn_os_object(335)|management
 node OS object has already been created, address: 21956b8, returning 1
 2011-10-25
 
 09:30:43|31318|4:4|image|Module.pm:new(200)|VCL::Module::Provisioning::VM
 wa
 re::vSphere_SDK object created for computer redhat64base, address:
 21e6980
 2011-10-25
 09:30:43|31318|4:4|image|vSphere_SDK.pm:initialize(1826)|vSphere SDK for
 Perl does not appear to be installed on this managment node, unable to
 load VMware vSphere SDK Perl modules
 2011-10-25
 09:30:43|31318|4:4|image|VMware.pm:get_vmhost_api_object(1313)|API
 object
 could not be created: VCL::Module::Provisioning::VMware::vSphere_SDK
 |31318|4:4|image|  WARNING 
 |31318|4:4|image| 2011-10-25
 09:30:43|31318|4:4|image|DataStructure.pm:_automethod(812)|corresponding
 data has not been initialized for get_vmhost_computer_id:
 $self-request_data-{reservation}{4}{computer}{vmhost}{computerid}
 |31318|4:4|image| ( 0) 

Re: Base Image creation error - VMware host config

2011-10-25 Thread Evelio Quiros
Thank you Josh. 
I found the missing Dojo javascript.
Now I get the correct response when adding the VM to the host.

Cheers,
Q

On 10/25/11 10:32 AM, Josh Thompson josh_thomp...@ncsu.edu wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

If nothing is happening when you click on Configure Host on the Manage
Virtual 
Hosts page, then you are most likely getting a javascript error due to a
misconfiguration.  Can you check to see if your browser is saying there
was an 
error?  If you use Firefox, you can install the Firebug Add-on to really
see 
what is happening.  If you can give me an error message, I could probably
tell 
you what is not configured correctly.

Josh

On Tuesday October 25, 2011, Evelio Quiros wrote:
 Yes, that was done. The server is set to vmhostinuse.
 In the Manage Virtual Hosts page, none of the buttons seem to do
 anything.
 
 In troubleshooting this, I did set the state to available, and then
found
 I could not set it back to vmhostinuse.
 I deleted the entry, and added a new one with a slightly different
 hostname, but same IP, and set that to vmhostinuse.
 I added the new hostname to my hosts file.
 
 Shall I attempt to add the vSphere perl module with cpan ?
 
 Al Quiros
 
 On 10/25/11 10:12 AM, Aaron Peeler aaron_pee...@ncsu.edu wrote:
 When you added your VM host servers did you set the state to
vmhostinuse?
 
 
https://cwiki.apache.org/confluence/display/VCL/VCL+2.2.1+-+Further+Step
s+
 if+Using+VMware
 
 If not then you'll need to go into the mysql cmdline or phpmyadmin and
 set that server to vmhostinuse state and assigne the vmhost profile.
 
 Aaron
 
 2011/10/25 Evelio Quiros evq...@fiu.edu:
  Thanks again Aaron. It seems we are taking baby steps here.
  
  Ok, next issue: When I click Configure Host in the vcl web
interface,
  nothing happens.
  
  My Vmware server is listed there. It is in vmhostinuse state.
  
  I noticed some complaints below about the Vsphere perl module not
being
  installed.
  I thought that was done in the install_perl_libraries script.
  
  Thanks again for all your help.
  
  Al Quiros
  
  On 10/25/11 9:43 AM, Aaron Peeler fapee...@ncsu.edu wrote:
 In the log output your missing the vmhost information.
 
 Make sure your vm host server have a correctly configured vmhost
 profile and you have assigned your vms to the virtual host server by
 using the Virtual Host interface.
 
 
https://cwiki.apache.org/confluence/display/VCL/VCL+2.2.1+-+Further+St
ep
 s+
 if+Using+VMware
 https://cwiki.apache.org/confluence/display/VCL/VMware+Configuration
 
 I'm not seeing the virtual host interface mentioned directly in the
 vcl 2.2.1 install guide. I'll added that to the first link.
 
 Here is a link from a bootcamp that you can review this morning while
 I work on adding the content to Apache VCL:
 
https://sites.google.com/a/ncsu.edu/vcl-bootcamp/exercises/assign-a-vm
-t
 o-
 a-virtual-host
 
 Aaron
 
 On Tue, Oct 25, 2011 at 9:19 AM, Evelio Quiros evq...@fiu.edu
wrote:
  Thank you Aaron.
  
  Ok, now it can resolve the name redhat64base to the private IP
address
  10.0.0.2.
  I tried to add the base image as the name linux64.
  It resides in the database as redhat64base, with the public IP of
  10.106.128.53, and set as available.
  I'm not sure what this error message is telling meŠ
  
  VCL::image object could not be created and initialized
 
 
-
--
 -
 
  time: 2011-10-25 09:30:44
  caller: vcld:make_new_child(571)
  ( 0) vcld, make_new_child (line: 571)
  (-1) vcld, main (line: 346)
 
 
-
--
 -
 
  management node: vcltst.fiu.edu
  reservation PID: 31318
  parent vcld PID: 15838
  
  request ID: 4
  reservation ID: 4
  request state/laststate: image/image
  request start time: 2011-10-25 09:30:37
  request end time: 2011-10-25 10:30:37
  for imaging: no
  log ID: none
  
  computer: redhat64base
  computer id: 12
  computer type: blade
  computer eth0 MAC address: undefined
  computer eth1 MAC address: undefined
  computer private IP address: 10.0.0.2
  computer public IP address: 10.106.128.53
  computer in block allocation: no
  provisioning module: VCL::Module::Provisioning::VMware::VMware
  
  image: vmwarelinux-linux6414-v0
  image display name: linux64
  image ID: 14
  image revision ID: 8
  image size: 1450 MB
  use Sysprep: yes
  root access: yes
  image owner ID: 1
  image owner affiliation: Local
  image revision date created: 2011-10-25 09:30:37
  image revision production: yes
  OS module: VCL::Module::OS::Linux
  
  user: admin
  user name: vcl admin
  user ID: 1
  user affiliation: Local
 
 
-
--
 -
 
  RECENT LOG ENTRIES FOR THIS PROCESS:
  2011-10-25
 
 
09:30:43|31318|4:4|image|VMware.pm:get_vmhost_api_object(1293)|attemp
ti
 ng
 
  to load VMware control module:
  VCL::Module::Provisioning::VMware::vSphere_SDK
  2011-10-25