Re: base image creation

2011-02-04 Thread Aaron Peeler

Jay,

Sorry - I realized I should have elaborated more on the errors in the 
log file.


First of all welcome to the community. :)

VCL with vmware provisioning can interact with the ESX(i) server in a 
couple different ways. The first error below is related to the vcl using 
the vmware sdk perl tookit, for this you'll need to set the password for 
the ESXi server in the vmware profile in through the vcl web interface. 
The second is also related to the sdk perl toolkit, from what I can tell 
it looks like it's not installed on your management node. The third 
error is related to the next method that vcl will try to manage vms on 
esxi, it's trying to ssh into the esxi server and run local cmds such as 
vmware-vim-cmd to manage the vms.
This latter method is probably the best approach, if you can make sure 
you have ssh enabled on esxi and have your ssh identity keys setup. Then 
you should get further.


Again welcome and I apologize for the initial short response.

Aaron Peeler


On 2/4/11 7:46 AM, Aaron Peeler wrote:

Can you also ssh into the esxi server using identity keys?

Aaron


On 2/1/11 11:11 AM, Jay Diener-Brazelle wrote:
Hello, I'm new to the community here. I'm trying to set up my first 
base image and I feel like I've missed a step.  I have a ESX 4.1 
server with a Win 7 setup loaded on it.  When I go to create the 
image I get this sent to my admin email account:


VCL::image object could not be created and initialized

Time: 2011-01-28 15:39:59
PID: 22852
Caller: vcld:make_new_child(598)

( 0) utils.pm, notify (line: 630)
(-1) vcld, make_new_child (line: 598)
(-2) vcld, main (line: 342)

RECENT LOG ENTRIES FOR THIS PROCESS:
2011-01-28 
15:39:58|22852|8:8|image|utils.pm:rename_vcld_process(7221)|renamed 
process to 'vcld 8:8 image node1 vmwarewin7-testcap611-v0 admin'

|22852|8:8|image|  WARNING 
|22852|8:8|image| 2011-01-28 
15:39:59|22852|8:8|image|vSphere_SDK.pm:initialize(1789)|VM host 
password is not configured in the database for the VM profile

|22852|8:8|image| ( 0) utils.pm, notify (line: 630)
|22852|8:8|image| (-1) vSphere_SDK.pm, initialize (line: 1789)
|22852|8:8|image| (-2) Module.pm, new (line: 159)
|22852|8:8|image| (-3) VMware.pm, (eval) (line: 1037)
|22852|8:8|image| (-4) VMware.pm, get_vmhost_api_object (line: 1037)
|22852|8:8|image| (-5) VMware.pm, initialize (line: 224)
|22852|8:8|image| (-6) Module.pm, new (line: 159)
|22852|8:8|image|  WARNING 
|22852|8:8|image| 2011-01-28 
15:39:59|22852|8:8|image|VMware.pm:get_vmhost_api_object(1040)|API 
object could not be created: 
VCL::Module::Provisioning::VMware::vSphere_SDK, no eval error

|22852|8:8|image| ( 0) utils.pm, notify (line: 630)
|22852|8:8|image| (-1) VMware.pm, get_vmhost_api_object (line: 1040)
|22852|8:8|image| (-2) VMware.pm, initialize (line: 224)
|22852|8:8|image| (-3) Module.pm, new (line: 159)
|22852|8:8|image| (-4) State.pm, initialize (line: 127)
|22852|8:8|image| (-5) Module.pm, new (line: 159)
|22852|8:8|image| (-6) vcld, make_new_child (line: 591)
2011-01-28 
15:39:59|22852|8:8|image|VMware.pm:get_vmhost_os_object(977)|VM host 
OS object created: VCL::Module::OS::Linux::UnixLab

|22852|8:8|image|  WARNING 
|22852|8:8|image| 2011-01-28 
15:39:59|22852|8:8|image|VMware.pm:initialize(254)|unable to control 
OS of VM host 192 using OS object: VCL::Module::OS::Linux::UnixLab, 
VM host is not responding to SSH

|22852|8:8|image| ( 0) utils.pm, notify (line: 630)
|22852|8:8|image| (-1) VMware.pm, initialize (line: 254)
|22852|8:8|image| (-2) Module.pm, new (line: 159)
|22852|8:8|image| (-3) State.pm, initialize (line: 127)
|22852|8:8|image| (-4) Module.pm, new (line: 159)
|22852|8:8|image| (-5) vcld, make_new_child (line: 591)
|22852|8:8|image| (-6) vcld, main (line: 342)
|22852|8:8|image|  WARNING 
|22852|8:8|image| 2011-01-28 
15:39:59|22852|8:8|image|State.pm:initialize(132)|provisioning object 
could not be created, returning 0

|22852|8:8|image| ( 0) utils.pm, notify (line: 630)
|22852|8:8|image| (-1) State.pm, initialize (line: 132)
|22852|8:8|image| (-2) Module.pm, new (line: 159)
|22852|8:8|image| (-3) vcld, make_new_child (line: 591)
|22852|8:8|image| (-4) vcld, main (line: 342)
2011-01-28 
15:39:59|22852|8:8|image|utils.pm:delete_computerloadlog_reservation(6876)|deleted 
rows from computerloadlog for reservation id=8
2011-01-28 15:39:59|22852|8:8|image|State.pm:DESTROY(946)|VCL::image 
process 22852 exiting


I can SSH to the Win 7 VM from the management node.  Any guidance 
would be appreciated. Thanks.  Jay






--

Aaron Peeler
Program Manager
Virtual Computing Lab
NC State University
aaron_pee...@ncsu.edu
919-513-4571



Re: SDK can not connect to VMWare

2011-02-04 Thread Andy Kurth
It looks like the username and possibly the password aren't configured 
in the VM profile:


unable to connect to VM host: https://myserver:8333/sdk, username: '0', 
error:


The username and password are currently required to use the vSphere SDK. 
 Otherwise, SSH must be enabled on the VM host and an identity key 
configured.


Regarding VMware licensing, VCL works using the free ESXi license as 
long as SSH is enabled.  The vSphere SDK can only be used if the VMware 
host is using a commercial license or running in evaluation mode.  The 
vSphere SDK and other methods provided by VMware are crippled when the 
free license code is applied.


-Andy


Mauricio César Ramírez Torres wrote:
  Another question requires a specific license from VMWare to use with 
the SDK?


Thanks.

On 04/02/11 11:10, Mauricio César Ramírez Torres wrote:
Good day, I annex the last lines of vcld.log, try to send this 
corresponds to the last attempt I made to import an image, the line 
100 to the 600 does not understand what that indicates, around line 
650 is where I believe this marking problems with the SDK.


I'm working with ESXi 4.0, 2.2 and SKD 4.0 VCL what I have installed 
everything on the same computer, ie the database, the node manager and 
web application, is this correct or recommend a different structure, I 
did this so for testing, only I have 2 desktop computers to use as 
customers at the time that works and to get familiar with the 
application, when working properly then think of a final structure.


Greetings and thanks for your time.


*From:* Andy Kurth [mailto:andy_ku...@ncsu.edu]
*To:* vcl-user@incubator.apache.org
*Sent:* Fri, 04 Feb 2011 10:03:10 -0600
*Subject:* Re: SDK can not connect to VMWare

Please include the vcld.log output. There are a few reasons why the
connection may fail. It could be an incorrect URL, incorrect
username/password, or the version of the SDK installed on the
management
node isn't compatible with the version on the VM host. I may be
able to
tell based on the log output.

Regards,
Andy

On 2/2/2011 6:30 PM, Mauricio César Ramírez Torres wrote:
 Good day, I have a problem with VCL 2.2 using VMWare ESXi 4.0
with SDK
 4, basically trying to create a base image says that the SDK can not
 connect to VMWare server, but do not know how I can prove it is
possible
 to connect to ESXi with the SDK. someone tell me how to prove?.

 I also want to know if any of you would be interested in
supporting me
 to finish my installation properly, and if you are interested
please say
 as it would be the approximate cost.








-
Antes de imprimir este correo electrónico, piensa bien si es imprescindible hacerlo. 
El Medio Ambiente es cosa de todos.







--
Atte.

Mauricio César Ramírez Torres.
Soporte Técnico Frigus Bohn.
Tel. (442) 296 4566








-
Antes de imprimir este correo electrónico, piensa bien si es imprescindible hacerlo. 
El Medio Ambiente es cosa de todos.






Re: SDK can not connect to VMWare

2011-02-04 Thread Mauricio César Ramírez Torres
Put the same password on all computers involved and working, probably wrong 
password, but now I have another problem, when I imported the image is not 
mistakes; then add the image to a group, but when trying to create a 
reservation I mark the following :  
   
there is an update to the database I need? or need to run a script.

Thanks for your help.  
   
Error encountered
Unkown error type: [8] Undefined index: imagerevision
Error at 332 in /var/www/html/vcl/.ht-inc/requests.php


Array  (  [submitErr] =   [user] = Array  (  
[unityid] = admin  [affiliationid] = 1  [affiliation] 
= Local  [firstname] = vcl  [lastname] = admin   
   [preferredname] =   [email] = root@localhost  
[emailnotices] = 0  [IMtype] = none  [IMid] =
   [id] = 1  [adminlevel] = developer  
[adminlevelid] = 3  [width] = 1024  [height] = 768   
   [bpp] = 16  [audiomode] = local  
[mapdrives] = 1  [mapprinters] = 1  [mapserial] = 1  
[showallgroups] = 1  [lastupdated] = 2007-05-17 
09:58:39  [shibonly] = 0  [groups] = Array
  (  [3] = adminUsers  [1] = 
global  [4] = manageNewImages  [5] = 
Specify End Time  )[privileges] = Array
  (  [0] = cascade  [1] = 
computerAdmin  [2] = groupAdmin  [3] 
= imageAdmin  [4] = imageCheckOut  
[5] = mgmtNodeAdmin  [6] = nodeAdmin  
[7] = resourceGrant  [8] = scheduleAdmin  
[9] = userGrant  )[login] = admin 
 [memberCurrentBlock] = 0  )[viewmode] = 3  
[HTMLheader] = 

 

[mode] = submitRequest [printedHTMLheader] = 0 [data] = Array ( [requestid] 
= [day] = 2/4/2011 [hour] = 6 [minute] = 00 [meridian] = pm [endday] = 
[endhour] = [endminute] = 00 [endmeridian] = [length] = 30 [started] = 
[os] = [imageid] = 11 [prettyimage] = [time] = future [revisionid] = Array 
( ) [ending] = length [enddate] = [extend] = [testjavascript] = 0 [imaging] 
= 0 [lengthchanged] = 0 ) [imaging] = 0 [resources] = Array ( [computer] = 
Array ( [1] = vclesx.nextdata.com.mx [2] = WindowsXP ) [image] = Array ( 
[11] = WinXP6 [4] = No Image ) [managementnode] = Array ( [1] = 
vcl.nextdata.com.mx ) [schedule] = Array ( [1] = VCL 24x7 ) ) [validImageids] 
= Array ( [0] = 11 [1] = 4 ) [showrevisions] = 0 [subimages] = 0 [images] 
= Array ( [4] = Array ( [id] = 4 [name] = noimage [prettyname] = No Image 
[ownerid] = 1 [owner] = admin@Local [platformid] = 1 [platform] = i386 
[osid] = 2 [os] = sun4x_58 [minram] = 0 [minprocnumber] = 1 [minprocspeed] 
= 0 [minnetwork] = 10 [maxconcurrent] = [reloadtime] = 0 [deleted] = 0 
[test] = 0 [resourceid] = 4 [lastupdate] = [forcheckout] = 0 
[maxinitialtime] = 0 [imagemetaid] = [imagerevision] = Array ( [4] = Array 
( [id] = 4 [revision] = 0 [userid] = 1 [user] = admin@Local [datecreated] 
= 1980-01-01 00:00:00 [prettydate] = 1/01/80 12:00 AM [production] = 1 
[imagename] = noimage ) ) ) [11] = Array ( [id] = 11 [name] = 
vmwarewinxp-WinXP611-v0 [prettyname] = WinXP6 [ownerid] = 1 [owner] = 
admin@Local [platformid] = 1 [platform] = i386 [osid] = 16 [os] = 
vmwarewinxp [minram] = 0 [minprocnumber] = 0 [minprocspeed] = 0 [minnetwork] 
= 0 [maxconcurrent] = [reloadtime] = 10 [deleted] = 0 [test] = 0 
[resourceid] = 18 [lastupdate] = 2011-02-04 16:55:35 [forcheckout] = 1 
[maxinitialtime] = 0 [imagemetaid] = 7 [checkuser] = 1 [rootaccess] = 1 
[usergroupid] = [usergroup] = [sysprep] = 0 [subimages] = Array ( ) ) ) ) 






Backtrace:  =-=-=-=-=-=-=-=-=-=-=-=  Call#:1 = index.php:submitRequest() 
(line#:85)  Call#:2 = requests.php:errorHandler() (line#:332)Backtrace 
with Arguments:  =-=-=-=-=-=-=-=-=-=-=-=  Call#:1 = index.php:submitRequest() 
(line#:85)  Arguments(none):  ---  Call#:2 = 
requests.php:errorHandler() (line#:332)  Arguments(5)Argument#: 1 = 8  
Argument#: 2 = Undefined index:  imagerevision  Argument#: 3 = 
/var/www/html/vcl/.ht-inc/requests.php  Argument#: 4 = 332  Argument#: 5 = 
Array  (  [submitErr] =   [user] = Array  (  
[unityid] = admin  [affiliationid] = 1  [affiliation] 
= Local  [firstname] = vcl  [lastname] = admin   
   [preferredname] =   [email] = root@localhost  
[emailnotices] = 0  [IMtype] = none  [IMid] =
   [id] = 1  [adminlevel] = developer  
[adminlevelid] = 3