Re: SDK can not connect to VMWare
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 [ema
Re: SDK can not connect to VMWare
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
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
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.
Re: Image Capture issue
I don't think it's a naming issue. Your "xphost2" VM must be responding to SSH before attempting the capture. You should be able to connect to it via "ssh -i /etc/vcl/vcl.key xphost2". You'll need to troubleshoot this if it doesn't connect. Also, you don't need to run "vcld -setup" each time you encounter a problem like this. After troubleshooting, just change the request.stateid value in the database from 10 (maintenance) to 16 (image). If vcld is running, it will automatically pick up the reservation again and attempt the image capture. FYI, the new VMware code is pretty flexible regarding the paths to the VM being captured. It does the following to determine where the VM files reside for an image capture: -SSH in to the VM -Retrieve the MAC addresses being used according to the guest OS -Get a list of all .vmx files on the host -Check each .vmx file, try to find the one containing matching MAC addresses -Once found, make sure this is indeed the correct .vmx file by making sure the .vmx is registered and powered on -Get the .vmdk path from the .vmx file and perform virtual disk operations on this .vmdk -Andy On 1/28/2011 2:56 PM, Hayashi, Daiyu wrote: Hi Andy, Thank you for helping. I tried your fix - I got a little further - now a new error message. I think it cannot find my vm when it searches through the local disk on the ESX server. How does the script determine the vmdk file name? Is there a strict naming convention when making the vm on the ESX server or do I need to name the vmdk a specific file name? Error below: Thank you, Daiyu Hayashi Information Technology Consultant - Lead Mihaylo College of Business and Economics California State University at Fullerton dhaya...@fullerton.edu Phone: 657-278-7347 -new error- [root@vcl-manage bin]# ./vcld -setup VCL Management Node Setup Select a module to configure: 1. VCL Base Module 2. VCL Image State Module 3. Windows OS Module [vcld] Make a selection (1-3, 'c' to cancel): 2 Choose an operation: 1. Capture Base Image [vcld/Image] Make a selection (1, 'c' to cancel): 1 Enter the VCL login name or ID of the user who will own the image: [admin]: User who will own the image: admin (ID: 1) Enter the hostname or IP address of the computer to be captured: ('c' to cancel): xphost2 Computer to be captured: xphost2 (ID: 9) Provisioning module: provisioning_vmware Install type: vmware Select the OS to be captured (install type: vmware): 1. Generic Linux (VMware) 2. Windows 2003 Server (VMware) 3. Windows 7 (VMware) 4. Windows Server 2008 (VMware) 5. Windows Vista (VMware) 6. Windows XP (VMware) [vcld/Image/Capture Base Image] Make a selection (1-6, 'c' to cancel): 6 Selected OS: Windows XP (VMware) Image architecture: 1. x86 2. x86_64 [vcld/Image/Capture Base Image] Make a selection (1-2, 'c' to cancel): 1 Image architecture: x86 Use Sysprep: 1. Yes 2. No [vcld/Image/Capture Base Image] Make a selection (1-2, 'c' to cancel): 2 Use Sysprep: No Enter the name of the image to be captured: ('c' to cancel): xpbase2 Added new image to database: 'xpbase2' image.name: vmwarewinxp-xpbase29-v0 image.id: 9 imagerevision.id: 9 imagemeta.id: 7 resource.id: 23 Inserted imaging request to the database: request ID: 1 reservation ID: 1 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 '1:1' 2011-01-28 11:31:42|3982|utils.pm:setup_get_array_choice(9986)|choices argument: 2011-01-28 11:31:42|3520|vcld:main(166)|lastcheckin time updated for management node 1: 2011-01-28 11:31:42 2011-01-28 11:31:43|3982|utils.pm:setup_get_array_choice(9986)|choices argument: 2011-01-28 11:31:47|3520|vcld:main(166)|lastcheckin time updated for management node 1: 2011-01-28 11:31:47 2011-01-28 11:31:51|3982|utils.pm:insert_request(8443)|inserted new reload request into request table, request id=1 2011-01-28 11:31:51|3982|utils.pm:insert_request(8474)|inserted new reload request into reservation table, reservation id=1 2011-01-28 11:31:52|3520|vcld:main(166)|lastcheckin time updated for management node 1: 2011-01-28 11:31:52 2011-01-28 11:31:52|3520|1:1|image|utils.pm:reservation_being_processed(9010)|computerloadlog 'begin' entry does NOT exist for reservation 1 2011-01-28 11:31:52|3520|1:1|image|utils.pm:run_command(9082)|executed command: pgrep -fl 'vcld [0-9]+:1 ', pid: 4024, exit status: 1, output: 2011-01-28 11:31:52|3520|1:1|image|utils.pm:is_management_node_process_running(9259)|pr
Re: base image creation
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: base image creation
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