Re: libvirt/KVM
I don't have a libvirtlinux OS entry. I use vmwarelinux for KVM-based Linux images. This is what should be set when you capture a base image using vcld --setup. There is no difference among OS modules which point to the same Perl package path. The OS table is actually somewhat of a mess right now. Eventually it will be collapsed/normalized down so the is a single entry for all Linux images, otherwise we will end up with n-squared entries (OS's and provisioning types). Issue VCL-566 addresses this. -Andy On Wed, Jun 20, 2012 at 8:21 PM, Dmitri Chebotarov dcheb...@gmu.edu wrote: Andy Success! Thank you for your help. Correct, I'm working with KVM-based Linux image. I was able to make it work with a slight changes. Do you have any entries in vcl.OS table with installtype='libvirt'? The only way I'm able to make reservations is by adding new entry into vcl.OS table and then setting image.osid to the id of the new entry (49 in my case): This is the entry I've added: select * from OS where installtype='libvirt'; ++--+--+---+-+---+--+ | id | name | prettyname | type | installtype | sourcepath | moduleid | ++--+--+---+-+---+--+ | 49 | libvirtlinux | CentOS 5/6 (libvirt) | linux | libvirt | vmware_images | 5 | ++--+--+---+-+---+--+ Thanks. -- Dmitri Chebotarov Virtual Computing Lab Systems Engineer, TSD - Ent Servers Messaging 223 Aquia Building, Ffx, MSN: 1B5 Phone: (703) 993-6175 Fax: (703) 993-3404 On Wednesday, June 20, 2012 at 15:43 , Andy Kurth wrote: I'm confused about what you're trying to load. Is centos5image-kvmlinuxv4105-v0 a bare metal image? The reservation info you sent earlier had this image being loaded on the virtual machine sandbox-vcl-19. Assuming you have a Linux VM image, its OSid should be set to vmwarelinux, which should be pointing to VCL::Module::OS::Linux. The computer.provisioningid value of the VM should be set the libvirt entry in the provisioning table, which should be pointing to VCL::Module::Provisioning::libvirt. -Andy On Wed, Jun 20, 2012 at 2:57 PM, Dmitri Chebotarov dcheb...@gmu.edu (mailto:dcheb...@gmu.edu) wrote: I think I'm missing something here. I fail to understand how KVM-based image is linked to libvirt.pm/KVM.pm modules in this case (and if it should). Once I set image.osid to 36, (36 is os.id for vmwarelinux, module 5 - VCL::Module::OS::Linux), vcld is trying to load KVM-based image to a computer with Provisioning Engine set to VMware and using a VMware host. It fails. In this case (image.OSid = 36) there is no link between KVM image and libvirt computers/KVM hosts. Thanks. --- Dmitri Chebotarov Virtual Computing Lab Systems Engineer, TSD - Ent Servers Messaging 223 Aquia Building, Ffx, MSN: 1B5 Phone: (703) 993-6175 Fax: (703) 993-3404 On Wednesday, June 20, 2012 at 13:06 , Andy Kurth wrote: image.OSid should be set to the id that corresponds to vmwarelinux. OS.moduleid should point to the os_linux module table entry, which has module.perlpackagepath = VCL::Module::OS::Linux. -Andy On Wed, Jun 20, 2012 at 12:30 PM, Dmitri Chebotarov dcheb...@gmu.edu (mailto:dcheb...@gmu.edu) wrote: Andy It's pointing to VCL::Module::Provisioning::libvirt This is a result of my earlier attempt to troubleshoot the issue. I've added new OSid, moduleid. The original image.osid was 29, which is CentOS Bare Metal, processed by VCL::Module::OS::Linux. With image.osid set to 29 VCL was trying to use xCAT module to process KVM reservations. At this moment I don't have any xCAT (bare metal) computers available and once I select the [KVM] image for reservation I get popup asking to select available time for reservation, which means that I don't have available resources to support this reservation. When I've added new OSid and moduleid (pointing to VCL::Module::Provisioning::libvirt), I'm able to start reservation, VCLd finds available computers (which are configured to use libvirt engine) and attempts to make reservation on correct KVM host, but fails with error attached in previous email. What should image.osid, moduleid be set to? -- Dmitri Chebotarov Virtual Computing Lab Systems Engineer, TSD - Ent Servers Messaging 223 Aquia Building, Ffx, MSN: 1B5 Phone: (703) 993-6175 Fax: (703) 993-3404 On Wednesday, June 20, 2012 at 11:52 , Andy Kurth wrote: For some reason the OS module for the image being loaded is showing as VCL::Module::Provisioning::libvirt. Check which module centos5image-kvmlinuxv4105-v0 is configured to use in the database: image.OSid -- OS.moduleid
Re: libvirt/KVM
For some reason the OS module for the image being loaded is showing as VCL::Module::Provisioning::libvirt. Check which module centos5image-kvmlinuxv4105-v0 is configured to use in the database: image.OSid -- OS.moduleid -- module.perlpackagepath -Andy On Wed, Jun 20, 2012 at 11:24 AM, Dmitri Chebotarov dcheb...@gmu.edu wrote: Andy I did 'svn up' and ran install_perl_libs.pl as well. While trying to make reservation still getting an error. Attached is reservation log. I'll try to trace the error, if you see something what causes it, please let me know. I'll try to capture image with new code little later today and will let you know if it fails. Thanks. --- Dmitri Chebotarov Virtual Computing Lab Systems Engineer, TSD - Ent Servers Messaging 223 Aquia Building, Ffx, MSN: 1B5 Phone: (703) 993-6175 Fax: (703) 993-3404 On Wednesday, June 20, 2012 at 10:38 , Andy Kurth wrote: There were some definite bugs which I hopefully corrected with the commit from this morning. Be sure to use the latest code from trunk. Also, you'll need to run install_perl_libs.pl (http://install_perl_libs.pl) again. Regarding KVM installation/configuration, I have mainly been working off of Fedora 16. The version of KVM included with Fedora 16 seems more stable than Red Hat or CentOS 6.x. The code should work under these OS's but automatic conversion of existing ESXi images to KVM-compatible qcow2 images probably won't work. The version of qemu-img included with Fedora 16 is able to do the conversion correctly. The versions included with Red Had and CentOS do not. Regarding image conversion, you should be able load an existing vmdk ESXi image on KVM if the image resides in the repository path. The code should copy it to the datastore in the format specified for the image type in the VM profile for your KVM host. Be sure to set this to qcow2. I fixed some bugs which caused base image creation to fail in the commit this morning. Please try this out. I started the following page which describes which components to install and how to configure networking and storage: https://cwiki.apache.org/confluence/display/VCL/KVM+Configuration -Andy On Tue, Jun 19, 2012 at 5:02 PM, Dmitri Chebotarov dcheb...@gmu.edu (mailto:dcheb...@gmu.edu) wrote: Hi Has anyone tried Libvirt in 2.3 RC3? I've updated VCL 2.2.1 to VCL 2.3 and cannot get Libvirt working. I've made some adjustments and able to successfully capture an image, but cannot make reservation based on the image. I'm using CentOS 6.2 with KVM as VM host (yum groupinstall Virtualization 'Virtualization Client' 'Virtualization Platform' 'Virtualization Tools'). If Libvirt is working for you, could you please share your configuration (ie. VM host version and packages, VCL computer configuration, etc) ? -- Thank you, Dmitri Chebotarov Virtual Computing Lab Systems Engineer, TSD - Ent Servers Messaging 223 Aquia Building, Ffx, MSN: 1B5 Phone: (703) 993-6175 Fax: (703) 993-3404
Re: libvirt/KVM
I'm confused about what you're trying to load. Is centos5image-kvmlinuxv4105-v0 a bare metal image? The reservation info you sent earlier had this image being loaded on the virtual machine sandbox-vcl-19. Assuming you have a Linux VM image, its OSid should be set to vmwarelinux, which should be pointing to VCL::Module::OS::Linux. The computer.provisioningid value of the VM should be set the libvirt entry in the provisioning table, which should be pointing to VCL::Module::Provisioning::libvirt. -Andy On Wed, Jun 20, 2012 at 2:57 PM, Dmitri Chebotarov dcheb...@gmu.edu wrote: I think I'm missing something here. I fail to understand how KVM-based image is linked to libvirt.pm/KVM.pm modules in this case (and if it should). Once I set image.osid to 36, (36 is os.id for vmwarelinux, module 5 - VCL::Module::OS::Linux), vcld is trying to load KVM-based image to a computer with Provisioning Engine set to VMware and using a VMware host. It fails. In this case (image.OSid = 36) there is no link between KVM image and libvirt computers/KVM hosts. Thanks. --- Dmitri Chebotarov Virtual Computing Lab Systems Engineer, TSD - Ent Servers Messaging 223 Aquia Building, Ffx, MSN: 1B5 Phone: (703) 993-6175 Fax: (703) 993-3404 On Wednesday, June 20, 2012 at 13:06 , Andy Kurth wrote: image.OSid should be set to the id that corresponds to vmwarelinux. OS.moduleid should point to the os_linux module table entry, which has module.perlpackagepath = VCL::Module::OS::Linux. -Andy On Wed, Jun 20, 2012 at 12:30 PM, Dmitri Chebotarov dcheb...@gmu.edu (mailto:dcheb...@gmu.edu) wrote: Andy It's pointing to VCL::Module::Provisioning::libvirt This is a result of my earlier attempt to troubleshoot the issue. I've added new OSid, moduleid. The original image.osid was 29, which is CentOS Bare Metal, processed by VCL::Module::OS::Linux. With image.osid set to 29 VCL was trying to use xCAT module to process KVM reservations. At this moment I don't have any xCAT (bare metal) computers available and once I select the [KVM] image for reservation I get popup asking to select available time for reservation, which means that I don't have available resources to support this reservation. When I've added new OSid and moduleid (pointing to VCL::Module::Provisioning::libvirt), I'm able to start reservation, VCLd finds available computers (which are configured to use libvirt engine) and attempts to make reservation on correct KVM host, but fails with error attached in previous email. What should image.osid, moduleid be set to? -- Dmitri Chebotarov Virtual Computing Lab Systems Engineer, TSD - Ent Servers Messaging 223 Aquia Building, Ffx, MSN: 1B5 Phone: (703) 993-6175 Fax: (703) 993-3404 On Wednesday, June 20, 2012 at 11:52 , Andy Kurth wrote: For some reason the OS module for the image being loaded is showing as VCL::Module::Provisioning::libvirt. Check which module centos5image-kvmlinuxv4105-v0 is configured to use in the database: image.OSid -- OS.moduleid -- module.perlpackagepath -Andy On Wed, Jun 20, 2012 at 11:24 AM, Dmitri Chebotarov dcheb...@gmu.edu (mailto:dcheb...@gmu.edu) wrote: Andy I did 'svn up' and ran install_perl_libs.pl (http://install_perl_libs.pl (http://_perl_libs.pl)) as well. While trying to make reservation still getting an error. Attached is reservation log. I'll try to trace the error, if you see something what causes it, please let me know. I'll try to capture image with new code little later today and will let you know if it fails. Thanks. --- Dmitri Chebotarov Virtual Computing Lab Systems Engineer, TSD - Ent Servers Messaging 223 Aquia Building, Ffx, MSN: 1B5 Phone: (703) 993-6175 Fax: (703) 993-3404 On Wednesday, June 20, 2012 at 10:38 , Andy Kurth wrote: There were some definite bugs which I hopefully corrected with the commit from this morning. Be sure to use the latest code from trunk. Also, you'll need to run install_perl_libs.pl (http://install_perl_libs.pl (http://_perl_libs.pl) (http://_perl_libs.pl)) again. Regarding KVM installation/configuration, I have mainly been working off of Fedora 16. The version of KVM included with Fedora 16 seems more stable than Red Hat or CentOS 6.x. The code should work under these OS's but automatic conversion of existing ESXi images to KVM-compatible qcow2 images probably won't work. The version of qemu-img included with Fedora 16 is able to do the conversion correctly. The versions included with Red Had and CentOS do not. Regarding image conversion, you should be able load an existing vmdk ESXi image on KVM if the image resides in the repository path. The code should copy it to the datastore in the format specified for the image type
Re: [DISCUSS] Graduation - Prepare Board Resolution
On Fri, May 18, 2012 at 10:06 AM, Andy Kurth andy_ku...@ncsu.edu wrote: I have created a Confluence page which we can use to work out the board resolution: https://cwiki.apache.org/confluence/display/VCL/Graduation+Board+Resolution Once we are comfortable with the resolution, one of the PPMC members will propose it on the general incubator list. The areas we need to work on are in bold. We need to define the project description and scope. I wrote this as dynamically provisioning and brokering remote access to compute resources. Thoughts? I'm not sure I would not really understand the scope of VCL from that statement. I agree more should be added. I kept it short since the example resolutions suggested on the graduation guide page are very short and general: ofbiz: open-source software related to enterprise automation Can we just use the description then?: open-source software related to a modular cloud computing platform which dynamically provisions and brokers remote access to compute resources I have updated the wiki to include this text and also added Alan to the list of members: https://cwiki.apache.org/confluence/display/VCL/Graduation+Board+Resolution I haven't seen a tally message for the chairperson vote. Once the vote is closed I'll add my name to the page. -Andy
Re: [DISCUSS] Graduation - Prepare Board Resolution
On Thu, May 31, 2012 at 11:03 AM, Aaron Coburn acob...@amherst.edu wrote: ... will propose it on the general incubator list. The areas we need to work on are in bold. We need to define the project description and scope. I wrote this as dynamically provisioning and brokering remote access to compute resources. Thoughts? I'm not sure I would not really understand the scope of VCL from that statement. I agree more should be added. I kept it short since the example resolutions suggested on the graduation guide page are very short and general: ofbiz: open-source software related to enterprise automation Can we just use the description then?: open-source software related to a modular cloud computing platform which dynamically provisions and brokers remote access to compute resources I think this is reasonable - but have a *minor* quibble - The bulk of what the VCL does (auth/auth, reservations, image storage, image loading, ...) seems to me to be fall under the provisions concept - but brokers seems to be getting equal emphasis even though it is an added capability. It's an important added capability, but perhaps this slight revision might help: I don't have a strong opinion about this, but I have always understood provisioning to relate to the infrastructure for image storage, capture and loading while brokering relates to connecting the virtualization or blade back-end to a user's request, which would include such things as authentication, authorization, reservations, scheduling, etc. I think the two are pretty equal in importance. Just my $0.02 -Aaron C That's what I was thinking. -Andy
[DISCUSS] Graduation - Prepare Board Resolution
I have created a Confluence page which we can use to work out the board resolution: https://cwiki.apache.org/confluence/display/VCL/Graduation+Board+Resolution Once we are comfortable with the resolution, one of the PPMC members will propose it on the general incubator list. The areas we need to work on are in bold. We need to define the project description and scope. I wrote this as dynamically provisioning and brokering remote access to compute resources. Thoughts? Please check the list of initial members to make sure I didn't leave anyone out. This list includes both PPMC members and committers, correct? If we are in agreement that the list will be the committers after graduation, should the status file be changed now? The PPMC members also need to appoint a chair for the project. I would be willing to do this. Anyone else interested? Also, 2 more issues regarding the status file: The stock bullets under Project info should be removed. The description is currently VCL is a management framework for building, dispensing and managing virtual machine images across a set of bare metal machines or systems with an installed virtual machine hypervisor. I don't think this is quite accurate. How about VCL is a modular cloud computing platform which dynamically provisions and brokers remote access to compute resources.? Thanks, Andy
Re: Update vmware-tools on many base images ?
Cool, that's good to know. You could add something like this to VMware.pm::prepare_vmx if ($self-data-get_request_forimaging()) { %vmx_parameters = (%vmx_parameters, (tools.upgrade.policy = upgradeAtPowerCycle)); } -Andy On Fri, May 18, 2012 at 12:17 PM, Dmitri Chebotarov dcheb...@gmu.edu wrote: Andy This is nice feature, I'll see if I can make it work. Thank you. Also I've found .vmx option : tools.upgrade.policy = upgradeAtPowerCycle Adding it to .vmx file during 'Manage Images - Create/Update an Image - Create Imaging Reservation' process should update vmware tools on the image automatically during boot time. I need to find the place in code where .vmx file is created for 'Create Imaging Reservation' task and test it. -- Thank you, Dmitri Chebotarov Virtual Computing Lab Systems Engineer, TSD - Ent Servers Messaging 223 Aquia Building, Ffx, MSN: 1B5 Phone: (703) 993-6175 Fax: (703) 993-3404 On Friday, May 18, 2012 at 10:39 , Andy Kurth wrote: Many of our images have older versions of VMware Tools installed. I don't know of any problems this has caused. Also, VMware Tools isn't required. I only install it to make controlling the VM through the vSphere console a little easier. If you do want to upgrade every image automatically, there is a new feature in partially done in VCL 2.3 which may help: https://issues.apache.org/jira/browse/VCL-564 It essentially allows you to drop scripts and other supporting files in the appropriate directories on the management node. The scripts are automatically run at a particular stage in the reservation. One of the intended uses is to allow customizations to be performed automatically before an image is captured such as installing/upgrading software. You would only need to add a couple lines to image.pm to enable this functionality. You would save the VMware Tools .msi and a script which installs it in tools/Windows/Scripts/pre_capture. During capture, the files in the directory are automatically copied to the computer and the script is executed. Let me know if you want to try this. -Andy On Fri, May 18, 2012 at 9:40 AM, Dmitri Chebotarov dcheb...@gmu.edu wrote: Hi We plan to update VCL ESXi hosts and it will require VMware Tools update for all VMs. I'm looking at different options on how to update vmware-tools on many base images. One option is to use web GUI to create new image revision with updated tools for each image. Other option would be to create temp. VMs using persistent disk images pointing to base images .vmdk files, then update vmware-tools and delete temp. VMs (in-place upgrade?). This will probably require full shutdown of VCL system to make sure no one is using any of the images during the upgrade. May be someone already done it and could share some recommendations ... -- Thank you, Dmitri Chebotarov Virtual Computing Lab Systems Engineer, TSD - Ent Servers Messaging 223 Aquia Building, Ffx, MSN: 1B5 Phone: (703) 993-6175 Fax: (703) 993-3404
Re: Windows 7 Capture Issue
It looks like you're using relatively new post-2.2.1 code but not the latest in trunk. The problem is due to a bug that has been fixed. The code is trying to run a command such as: cat blah ~/currentimage.txt The ~ variable isn't translated properly if the path is in quotes: ~/currentimage.txt. Are you running a checked out copy of trunk from Subversion? If so, you can do an svn update to get the latest code. If you just want to fix this specific problem, edit OS.pm and find the create_text_file subroutine. Edit the $command variable to the quotes from the output file path, change: \$file_path\ to $file_path If you have trouble with this please send the contents of the create_text_file subroutine. I'm not sure exactly what your version looks like. After making the changes, restart vcld. You don't have to run vcld --setup again. I would recommend against it or you'll wind up with extra, useless entries in your database. To reattempt the capture, edit the request table in the database. There should be an entry with stateid = 10 (maintenance), laststateid = 16 (image). Change stateid to 16 and vcld should automatically reattempt the capture. -Andy On Mon, May 14, 2012 at 8:09 PM, n.johnson10 n.johnso...@saints.mhcc.edu wrote: I followed the steps outlined in the VCL Documentation for creating a Windows 7 base image and everything goes fine until I attempt to capture it. It appears to be an issue with executing a command when creating 'currentimage.txt' on the Windows 7 VM... Windows Version: Windows 7 Enterprise Web/Database/Management Node: CentOS 6.2 Hypervisor: VMware ESXI 5.0 Thank you Error log: vmwarewin7-Windows7Base235-v0 image creation failed -- -- time: 2012-05-14 16:42:25 caller: image.pm:reservation_failed(385) ( 0) image.pm, reservation_failed (line: 385) (-1) image.pm, process (line: 167) (-2) vcld, make_new_child (line: 572) (-3) vcld, main (line: 350) management node: vclweb.vcl.mhcc.edu reservation PID: 8482 parent vcld PID: 7692 request ID: 26 reservation ID: 5 request state/laststate: image/image request start time: 2012-05-14 16:42:01 request end time: 2012-05-14 17:42:01 for imaging: no log ID: none computer: vclbaseimage computer id: 55 computer type: virtualmachine computer eth0 MAC address: 00:50:56:00:00:a1 computer eth1 MAC address: 00:50:56:00:00:a2 computer private IP address: 172.16.0.149 computer public IP address: 172.16.0.148 computer in block allocation: no provisioning module: VCL::Module::Provisioning::VMware::VMware vm host: HVS2 vm host ID: 2 vm host computer ID: 2 vm profile: VMware ESX - local storage vm profile VM path: /vmfs/volumes/datastore1/workingvm vm profile repository path: /vmfs/volumes/datastore1/imagerepo vm profile datastore path: /vmfs/volumes/datastore1/masterimage vm profile disk type: localdisk image: vmwarewin7-Windows7Base235-v0 image display name: Windows7Base2 image ID: 35 image revision ID: 34 image size: 1450 MB use Sysprep: no root access: yes image owner ID: 1 image owner affiliation: Local image revision date created: 2012-05-14 16:42:09 image revision production: yes OS module: VCL::Module::OS::Windows::Version_6::7 user: admin user name: vcl admin user ID: 1 user affiliation: Local RECENT LOG ENTRIES FOR THIS PROCESS: |8482|26:5|image| shared vmdk directory path: '/vmfs/volumes/datastore1/masterimage/vmwarewin7-Windows7Base235-v0' |8482|26:5|image| shared vmdk directory name: 'vmwarewin7-Windows7Base235-v0' 2012-05-14 16:42:20|8482|26:5|image|VMware.pm:set_vmdk_file_path(3968)|set overridden vmdk file path: '/vmfs/volumes/datastore1/Windows 7 Base/windows7base.vmdk' 2012-05-14 16:42:20|8482|26:5|image|VMware.pm:capture(682)|mode of vmdk to be captured is valid: persistent 2012-05-14 16:42:21|8482|26:5|image|utils.pm:run_ssh_command(5198)|executing SSH command on vclbaseimage: |8482|26:5|image| /usr/bin/ssh -i /etc/vcl/vcl.key -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectionAttempts=1 -o ConnectTimeout=3 -l root -p 22 -x vclbaseimage 'chown root currentimage.txt; chmod 777 currentimage.txt' 21 2012-05-14 16:42:21|8482|26:5|image|utils.pm:run_ssh_command(5316)|run_ssh_command output: 2012-05-14 16:42:21|8482|26:5|image|utils.pm:run_ssh_command(5330)|SSH command executed on vclbaseimage, returning (0, ) 2012-05-14 16:42:21|8482|26:5|image|utils.pm:write_currentimage_txt(5538)|updated ownership and permissions on currentimage.txt 2012-05-14 16:42:21|8482|26:5|image|utils.pm:run_ssh_command(5198)|executing SSH command on vclbaseimage: |8482|26:5|image| /usr/bin/ssh -i /etc/vcl/vcl.key -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectionAttempts=1 -o ConnectTimeout=3 -l
[VOTE] Apache VCL Ready to Graduate
This vote is to determine if the Apache VCL community believes the project is ready to graduate from the incubator to a top level project. Everyone in the community is encouraged to vote. Please reply expressing one of the following: +1 : yes, Apache VCL is ready to graduate to a top level project 0 : ambivalent -1 : no, Apache VCL is not ready to graduate to a top level project This vote will be closed on Tuesday, May 15, 2012 at 5:00 pm EST. If this vote passes, the community will draft a board resolution and present it to the IPMC. Thank You, Andy Kurth
Re: [VOTE] Apache VCL Ready to Graduate
+1 -Andy On Thu, May 10, 2012 at 11:01 AM, Andy Kurth andy_ku...@ncsu.edu wrote: This vote is to determine if the Apache VCL community believes the project is ready to graduate from the incubator to a top level project. Everyone in the community is encouraged to vote. Please reply expressing one of the following: +1 : yes, Apache VCL is ready to graduate to a top level project 0 : ambivalent -1 : no, Apache VCL is not ready to graduate to a top level project This vote will be closed on Tuesday, May 15, 2012 at 5:00 pm EST. If this vote passes, the community will draft a board resolution and present it to the IPMC. Thank You, Andy Kurth
Re: [DISCUSS] Graduation
Hi Aaron, Thanks for the info. I started a Rework the Apache VCL website? thread a few months ago. I'm going to reply in that thread regarding the technical website details in order to keep this thread focused on graduation issues. As for the timeline, if the graduation process continues I'm guessing we would shoot for acceptance at the June 20 or July 18 board meeting. If accepted, I'm not sure how long it will take to perform the handover tasks (http://incubator.apache.org/guides/graduation.html#life-after-graduation) but I think the website should be updated by then. -Andy On Fri, May 4, 2012 at 12:44 PM, Aaron Coburn acob...@amherst.edu wrote: I looked through a number of existing top-level ASF project websites, and they all appear to be serving up static HTML pages. Some of them use a wiki at http://wiki.apache.org/{project name}; otherwise, the sites appear to be generated by some sort of script/template combination. If there is a choice, I would recommend following this model: using static pages as much as possible will effectively eliminate almost all security and maintenance issues. Most ASF sites do not have a search feature, and those that do rely on third parties (e.g. google). It would be easy enough to follow that model, though if we use Sphinx, it has a built-in (javascript-based) search engine. There are a lot of template-based options for building sites, and I am completely unfamiliar with most of them. Velocity is another ASF project, but I have never worked with it. Several years ago I used Template::Toolkit quite a bit, which is written in perl. Since so much of the VCL uses perl, this might be a good option -- not that one actually needs to know perl to use it. It would also be possible to use an XSLT-based engine, but I XSL syntax can be very unforgiving. My current favorite is Sphinx, which relies on python to generate the HTML. Aaron Coburn On May 4, 2012, at 11:51 AM, Aaron Peeler wrote: As for the website, I agree that some design work would be really useful. I am assuming that ASF would provide a hosting arrangement, i.e. a domain like vcl.apache.org? Would that also include server space to run any type of CMS? Confluence is a nice all-in-one package, though if you are considering a complete overhaul of the site, I could also recommend a system like Drupal (MySQL + PHP). Drupal has a lot of bells and whistles that can make for a very nice, highly interactive site. The downside of drupal is that it is not specifically designed to handle software documentation. On the other hand, if we only need to serve static html pages that focus on documentation, etc, I can also recommend Sphinx. The downside of Sphinx is that it is really best for Python and C++ projects, and it doesn't support web-based updates -- it does create excellent sites, though. I believe we can run anything we like. ASF does provide the hosting and the top-level projects do have their own url projectname.apache.org. I'm not up-to speed yet on what our options are or what the other projects are using. The Apache infrastructure team is recommending projects to migrate away from confluence. Has anyone else had a chance to research which cms tools are available supported/recommended by ASF? I am also a little unclear on the timeframe for modifying the website -- it this something that would be done prior to graduation or upon graduation? I don't think it is a requirement, but ideally it would be nice to at least have a start on a new site by graduation time. Aaron Peeler
Re: Win 7 reservations sometimes fails with DCHP error
On Thu, Apr 19, 2012 at 7:43 PM, Dmitri Chebotarov dcheb...@gmu.edu wrote: Hi I'm looking for some help on this strangle problem. We are testing Win 7 images on VCL system and sometimes reservation would fail with this error (below). It only happens sometimes for different Win7 images. There is no pattern to the problem. For some reason Win 7 cannot obtain IP address from DHCP during reservation. But after I get this error and check on the image - it has valid public IP address. We are seeing the same problem with our Windows 7/2008 images. The first private network adapter gets installed and obtains an IP address pretty quickly when the computer boots. The computer then begins responding to SSH and vcld continues to perform the post-load steps. It gets tripped up because the 2nd public network adapter isn't installed or initialized yet. I verified this by watching a Windows 2008 VM load. When the root account automatically logged in, I closed the black command boxes from the console in order to prevent root from automatically being logged off. I then ran ipconfig over and over again. The private adapter had an address. Windows was still installing the 2nd adapter (the installing driver popups appeared in the system tray). When the 2nd appeared in the ipconfig output it had a 169 address for at least a minute then finally obtained the correct address. The delay between the 1st adapter getting a valid IP address and the 2nd was over 2 minutes. In attempt to cure it I have added a patch to Windows.pm module to issue 'ipconfig /release' before 'ipconfig /renew'. I've tested code and it runs OK, but it's not in production yet. Before patch goes to production I would like to ask if someone has/had the same issue with Win 7 images. This should help. Please create a Jira issue and submit a patch. Also, whenever running 'ipconfig /renew' on the public adapter, the DHCP mode of the management node should be checked first to make sure it isn't static: if ($self-data-get_management_node_public_ip_configuration() =~ /static/i) This check isn't in the current code but it should be added. The reason has to do with VCL installations using static public IPs. Windows has a hard-coded 60 second timeout on ipconfig /renew if no DHCP servers respond. This will slow every reservation. I'd also like code added to the wait_for_response subroutine to try to detect if devices are still being installed after the computer responds to SSH. There should be a drvinst.exe process running. The code can check for this and loop until there are no drvinst.exe processes running. This wouldn't guarantee that everything is done being installed. There may be periods in between different devices installs when no drvinst.exe process is running. There may be other ways of detecting when device installation is complete via WMI or by checking the setupapi.log file. Also also, the failed to update private IP address message is a typo. It should say public. This was corrected in trunk a couple months ago. Thanks, Andy The error message below. Thank you for your help. -- Dmitri Chebotarov Virtual Computing Lab Systems Engineer, TSD - Ent Servers Messaging 223 Aquia Building, Ffx, MSN: 1B5 Phone: (703) 993-6175 Fax: (703) 993-3404 Forwarded message: From: r...@www.vcl.gmu.edu Date: Thursday, April 19, 2012 3:56:50 Subject: PROBLEM -- 9141:9049|new|State.pm|vmguest-vcl12gt;BC3-4|vmwarewin7-Windows732bitSPSS19creating64-v5|sthomp17 reservation failed on vmguest-vcl12: failed to update private IP address time: 2012-04-19 15:56:27 caller: State.pm:reservation_failed(213) ( 0) State.pm, reservation_failed (line: 213) (-1) new.pm, reserve_computer (line: 894) (-2) new.pm, process (line: 363) (-3) vcld, make_new_child (line: 568) (-4) vcld, main (line: 346) management node: www.vcl.gmu.edu (http://www.vcl.gmu.edu) reservation PID: 1191 parent vcld PID: 30919 request ID: 9141 reservation ID: 9049 request state/laststate: new/new request start time: 2012-04-19 15:45:00 request end time: 2012-04-19 20:00:00 for imaging: no log ID: 10048 computer: vmguest-vcl12 computer id: 25 computer type: virtualmachine computer eth0 MAC address: 00:50:56:03:51:1c computer eth1 MAC address: 00:50:56:03:51:1d computer private IP address: 10.3.6.48 computer public IP address: 129.174.25.26 computer in block allocation: no provisioning module: VCL::Module::Provisioning::VMware::VMware vm host: BC3-4 vm host ID: 2 vm host computer ID: 8 vm profile: VMware ESX - network storage vm profile VM path: /vmfs/volumes/Running-Images vm profile repository path: 0 vm profile datastore path: /vmfs/volumes/Image-Library/baseprod vm profile disk type: networkdisk image: vmwarewin7-Windows732bitSPSS19creating64-v5 image display name: Windows 7
Re: Windows 7 and DHCP
A few things to try... Run the following command and then try to get a private DHCP address: netsh interface ip set interface private interface name ignoredefaultroutes=enabled This causes Windows to never route any traffic on the private interface through the default gateway. The VCL capture code actually sets this to prevent known/common routing problems with Windows 7/2008. If this doesn't help, try disabling the public interface and delete all default routes by running route delete 0.0.0.0. Try to get a private DHCP address. Could also try: -Disable IPv6 -Set a static speed and duplex for the interface -Disable Link-Layer Topology Discovery* on the interface Are there any switches or routers between the Windows 7 computer and the private DHCP server? I have seen posts discussing similar DHCP issues which were caused by the proxy arp configuration on a router. Hope this helps, Andy On Tue, Apr 17, 2012 at 9:57 AM, Hechler, Adam hec...@rpi.edu wrote: Thanks Mike and Dmitri, As to Mike reply… I’ve disabled the firewall completely, no help. I’ve also set a static IP (with the one the DHCP server is offering) and I am able to ssh from the management node to the vm. As to Dmitri’s reply… I’ve checked out that KB article and added those entries to the registry. No help. There is no Relay Agent being used. The DHCP server is the same subnet as the management node. Does anyone else have any other suggestions? How many of us are running Windows 7 VMs with VMWare Server 2.x? Thanks, Adam From: Dmitri Chebotarov [mailto:dcheb...@gmu.edu] Sent: Monday, April 16, 2012 12:45 PM To: vcl-user@incubator.apache.org Subject: Re: Windows 7 and DHCP Hi I have the same issue with DHCP, which seems to only affect Win 7 (32 and 64). Linux and XP work OK. I've disabled dhcp broadcast flag (http://support.microsoft.com/kb/928233) on both private and public interface on Win 7 image. Since then I get a lot less DHCP errors on Win 7 reservations, but still get few once in a while. Looking at my dhcpd logs files it seems like Win 7 doesn't not accept DHCPOFFER - I see multiple requests from Win 7, but it never gets IP address. Even when I manually run ipconfig /release, /renew. Where is your DHCP server located? Is it on the same subnet/broadcast domain or you have DHCP Relay agent on your subnet to communicate with DHCP server? Thanks. -- Dmitri Chebotarov Virtual Computing Lab Systems Engineer, TSD - Ent Servers Messaging 223 Aquia Building, Ffx, MSN: 1B5 Phone: (703) 993-6175 Fax: (703) 993-3404 On Monday, April 16, 2012 at 12:33 , Mike Haudenschild wrote: Hi Adam, Not to jump to the goofy, but could the Windows firewall be blocking it? Also, if you hand-assign an appropriate IP (disable DHCP on the adapter) can Windows communicate properly on the interface? Regards, Mike -- Mike Haudenschild Education Systems Manager Longsight Group (740) 599-5005 x809 m...@longsight.com www.longsight.com On Mon, Apr 16, 2012 at 11:52, Hechler, Adam hec...@rpi.edu wrote: Hi, We’re having a similar issue that’s been noted on the list before but I can’t seem to find if it was ever resolved. Here’s a link to the archives where it was discussed. http://mail-archives.apache.org/mod_mbox/incubator-vcl-user/201104.mbox/%3C4DB59638.5000609%40ncsu.edu%3E Anyway, I have a Windows 7 base image (not captured yet). Both network interfaces are set to DHCP. The public interface successfully grabs an IP address but the private interface does not. All it does is assign on auto-configuration address (169.254.x.x). We’ve tried the recommendation in the email message I linked to. Here’s what I see in the messages log: (note: I’ve changed the actual IP address offered to x.x.x.x – a real IP was offered). Apr 16 11:39:45 vclserver dhcpd: DHCPDISCOVER from 00:50:56:1a:01:11 via vmnet1 Apr 16 11:39:45 vclserver dhcpd: DHCPOFFER on x.x.x.x to 00:50:56:1a:01:11 via vmnet1 Apr 16 11:39:48 vclserver dhcpd: DHCPDISCOVER from 00:50:56:1a:01:11 via vmnet1 Apr 16 11:39:48 vclserver dhcpd: DHCPOFFER on x.x.x.x to 00:50:56:1a:01:11 via vmnet1 Apr 16 11:39:56 vclserver dhcpd: DHCPDISCOVER from 00:50:56:1a:01:11 via vmnet1 Apr 16 11:39:56 vclserver dhcpd: DHCPOFFER on x.x.x.x to 00:50:56:1a:01:11 via vmnet1 Apr 16 11:40:11 vclserver dhcpd: DHCPDISCOVER from 00:50:56:1a:01:11 via vmnet1 Apr 16 11:40:11 vclserver dhcpd: DHCPOFFER on x.x.x.x to 00:50:56:1a:01:11 via vmnet1 Apr 16 11:40:44 vclserver dhcpd: DHCPDISCOVER from 00:50:56:1a:01:11 via vmnet1 Apr 16 11:40:44 vclserver dhcpd: DHCPOFFER on x.x.x.x to 00:50:56:1a:01:11 via vmnet1 Apr 16 11:40:48 vclserver dhcpd: DHCPDISCOVER from 00:50:56:1a:01:11 via vmnet1 Apr 16 11:40:48 vclserver dhcpd: DHCPOFFER on x.x.x.x to 00:50:56:1a:01:11 via vmnet1 Apr 16 11:40:56 vclserver dhcpd: DHCPDISCOVER from 00:50:56:1a:01:11 via vmnet1 Apr
Re: VIM_SSH failed to login error
Hello, Welcome! You do not need the vSphere SDK and you don't need to configure the username/password in the profile. All that is required is that the management node is able to SSH without a password to both the VM host and VM. It looks like this is working. I don't think the problem has to do with your VCL configuration but seems to be related to VMware. I can't recall seeing the Failed to login: vim.fault.NoPermission error before and was not able to reproduce it. Can you log in to the VMware web console as root? If you can login, select the VM host in the Inventory pane and look at the Permissions tab. Does root have the Administrator role? Did you install any other VMware products except VMware Server 2.0? I have seen conflicts before when the vSphere SDK or VIX API was installed over VMware Server. At any rate, you'll need to be able to manually run the vmware-vim-cmd commands before attempting to capture the image with VCL again. When logged in to the management node shell, do either of these commands work?: vmware-vim-cmd hostsvc/datastore/listsummary ssh -i /etc/vcl/vcl.key alpha-vcl 'vmware-vim-cmd hostsvc/datastore/listsummary' If neither works, try restarting the vmware service. If the commands still don't work, try rerunning vmware-config.pl. -Andy On Mon, Apr 9, 2012 at 6:10 PM, B Hartlieb har...@rpi.edu wrote: Hi All, Being a newbie, I need some help in capturing my first Base Image. I have VMware Server 2.0, with a free license, installed on the same RHEL 5.8 hardware as my Management Node. I am not using the vSphere_SDK software. I am only using SSH. I believe that, I do not need the SDK in this situation. Is that true? My guest OS (winXP) is running, and I seem to be able to ssh to the guest with out a password. I tried my VM Host Profile with and without a password. VM Host Profile Select a profile to configure: Name: VMware Server 2.x - local storage Type: vmware Image: no image Repository Path: /vms/repository Data Store Path: /vms/datastore1 VM Path: (empty) Virtual Switch 0: HostOnly Virtual Switch 1: Bridged VM Disk: localdisk Generate eth0 MAC: No Generate eth1 MAC: No Username: root Password: * Confirm: * match Yet, VIM_SSH.pm it seems to be throwing a failed to login error. Which I think is my first major error message. I am assuming at this point, that vmi_ssh is trying to sign into the VMware Server. 16:05:55|3559|12:12|image|VIM_SSH.pm:_get_datastore_info(490)|unable to determine datastore names, unexpected output returned, VIM command arguments: 'hostsvc/datastore/listsummary', output: |3559|12:12|image| Failed to login: vim.fault.NoPermission Any ideas, anyone? If I do need the vSphere_SDK for perl, what version do I need for VMware Server 2.0? A more complete log follows. Thanks, /Brian -- -- Brian Hartlieb System Administrator TIS - Rensselaer at Hartford Rensselaer Polytechnic Institute (RPI) (860) 548-5459 har...@rpi.edu [root@alpha-vcl ~]# ssh -o CheckHostIP=no -o StrictHostKeyChecking=no -o BatchMode=no -i /etc/vcl/vcl.key 10.5.120.11 Warning: Permanently added '10.5.120.11' (RSA) to the list of known hosts. Last login: Mon Apr 9 16:02:39 2012 from 10.5.120.1 root@winxp3 ~ $ exit logout Connection to 10.5.120.11 closed. [root@alpha-vcl ~]# ssh 10.5.120.11 Warning: Permanently added '10.5.120.11' (RSA) to the list of known hosts. Permission denied (publickey,keyboard-interactive). [root@alpha-vcl ~]# [root@alpha-vcl ~]# /usr/local/vcl/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): 10.5.120.11 Computer to be captured: vmguest-1 (ID: 2) 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,
Re: ESXi 4.1 image for VCL reservation
Why yes, you sure could. :) Forgot I created that. It is used for our ESXi xCAT kickstart installs. All it does is override all of the things Linux.pm post_load does. It only waits for the ESXi computer to respond to SSH. Our kickstart file configures everything including the public and private networking. I can share this if its helpful. The module is adequate for ESXi server installs (tovmhostinuse state) and reload reservations. For user reservations, you would need to add the following subroutines: -reserve -grant_access -is_user_connected -sanitize (optional - If not implemented the computer will be reloaded if a user makes a reservation but never logs in) Also look at OS.pm::process_connect_methods. I haven't worked on this part of the code myself but you'll need to either implement the firewall subroutines that process_connect_methods calls. In order to use the module for the new server reservation feature in 2.3, you'd have to add a manage_server_access subroutine. To be able to capture images, a pre_capture subroutine is needed. -Andy On Thu, Mar 29, 2012 at 4:38 PM, Dmitri Chebotarov 4dim...@gmail.com wrote: Andy Could I extend existing ESXi.pm module at /usr/local/vcl/lib/VCL/Module/OS/Linux/ESXi.pm? Everyhing you described seems to be already in place - entry for esxi OS (OSid), module name/path. Thanks. -- Dmitri Chebotarov On Thursday, March 29, 2012 at 14:56 , Andy Kurth wrote: You could create an ESXi.pm OS module. It would inherit from Linux.pm since some of the Linux subroutines will work under ESXi. The module would reside at: lib/VCL/Module/OS/Linux/ESXi.pm Entries would have to be added to the module and OS tables in the database. Set your image.OSid value to the new value you enter in the OS table. Some of the subroutines in Linux.pm already work as you have noticed. I changed a few of them a while back to work with ESXi of them to which are called by the VMware.pm provisioning module when SSH is used to control the VM host. For the ones which don't work, you would define subroutines in ESXi.pm to override the ones in Linux.pm or OS.pm such as create_user. For the networking problems, you would probably define a post_load subroutine in ESXi.pm which performs operations necessary to configure the virtual switches appropriately such as running esxcfg-vswitch and esxcfg-vmknic. This would be very useful for us at NCSU. I would be happy to help get this added. -Andy On Thu, Mar 29, 2012 at 2:19 PM, Dmitri Chebotarov dcheb...@gmu.edu wrote: I'm not looking for nested hypervisors - this would work for someone who wants to play/study ESXi server. But even in this case VCL needs a module to handle ESXi reservation - this step would fail for nested esxi as well… How would I add/use/load a new pm module for ESXi reservation? I plan to use ESXi image along with a Windows sub-image with vSphere client, so ESXi server won't need public IP address in this case… I only need to address reservation steps (ie. get IP, add user, etc.) - xCAT/VCL already handles ESXi install process. Thanks. -- Dmitri Chebotarov Virtual Computing Lab Systems Engineer, TSD - Ent Servers Messaging 223 Aquia Building, Ffx, MSN: 1B5 Phone: (703) 993-6175 Fax: (703) 993-3404 On Thursday, March 29, 2012 at 14:04 , Mike Haudenschild wrote: There is definitely a performance penalty for running ESXi as a guest OS. I don't think the hardware virtualization features of the CPU can be passed on to an ESXi guest, which also means no 64-bit guests inside the ESXi guest. Suggest reading the notes on this blog: http://www.vcritical.com/2009/05/vmware-esx-4-can-even-virtualize-itself/ Regards, Mike On Thu, Mar 29, 2012 at 13:59, Aaron Peeler aaron_pee...@ncsu.edu wrote: Definitely doable. Also might be worth doing it within a ESXi server. Nested hypervisor - possibly a bit better control on which networks are visible. With the connection methods in the next release, you could define vsphere client as the connection method. Aaron P. On Thu, Mar 29, 2012 at 1:33 PM, Dmitri Chebotarov dcheb...@gmu.edu wrote: Hi, All Is it posible to add ESXi 4.1 image to VCL, so users can make reservation for ESXi 4.1 server? May be someone else already has it working…. May be there is separate module for ESXi support? I have configured xCAT/VCL and I'm able to reload a blade with ESXi 4.1 using kickstart script via Manage Computers. But when a user makes reservation for ESXi 4.1 - it fails. So far it fails for two reasons - no Public interface and cannot create user on ESXi hosts. VCL is using Linux.pm module and ESXi doesn't support it. Thanks. -- Dmitri Chebotarov Virtual Computing Lab Systems Engineer, TSD - Ent Servers Messaging 223 Aquia Building, Ffx, MSN: 1B5 Phone: (703) 993-6175 Fax: (703) 993-3404 -- Aaron Peeler Program Manager Virtual Computing Lab NC State University All electronic mail messages
Re: Xcat image capture issues
xCAT should be installed on the management node. It doesn't need to be installed on other machines. There are a few different xCAT installation instruction pages on their site. You may want to start with this simpler one: http://sourceforge.net/apps/mediawiki/xcat/index.php?title=Basic_Install_DHCP -Andy On Wed, Mar 7, 2012 at 3:16 PM, Evelio Quiros evq...@fiu.edu wrote: Hello, After working a while with VmWare images, we have started experimenting with Xcat bare metal images. To accommodate the added level of complexity with Xcat, I created a separate development environment with VCL and some dell 6100 high density nodes. I have installed RHEL 6.1 with Xcat on all the nodes. Following the instructions on the doc page, I installed partimage to the xcat installation. I think its correct, except that these are not IBM blades, so I am unsure how to build a stateless image on this hardware. Just attempting to capture the image as-is failed, and the error messages are below. Is there any more documentation on this process, and how to make Xcat work with VCL? Being new to Xcat, I guess that I am missing some background material on what is supposed to happen here. For example, the error log states that /opt/xcat does not exist, but it does exist on the node I was attempting to capture. Does Xcat need to be on the management node too ? The information I am using is located at: http://sourceforge.net/apps/mediawiki/xcat/index.php?title=Setting_Up_a_Linux_xCAT_Mgmt_Node And https://cwiki.apache.org/VCL/adding-support-for-partimage-and-partimage-ng-to-xcat-2x-unofficial.html Any other information available ? Thanks, Al Quiros Florida International University ** Error message from my attempt at capturing the image below: VCL::image object could not be created and initialized time: 2012-03-07 14:49:31 caller: vcld:make_new_child(571) ( 0) vcld, make_new_child (line: 571) (-1) vcld, main (line: 346) management node: vcldev01.p.fiu.edu reservation PID: 12372 parent vcld PID: 2044 request ID: 1 reservation ID: 1 request state/laststate: image/image request start time: 2012-03-07 14:49:30 request end time: 2012-03-07 15:49:30 for imaging: no log ID: none computer: 6100a computer id: 1 computer type: blade computer eth0 MAC address: undefined computer eth1 MAC address: undefined computer private IP address: 10.0.0.25 computer public IP address: 10.106.128.14 computer in block allocation: no provisioning module: VCL::Module::Provisioning::xCAT2 image: rh5image-rh6xcat5-v0 image display name: rh6xcat image ID: 5 image revision ID: 5 image size: 1450 MB use Sysprep: yes root access: yes image owner ID: 1 image owner affiliation: Local image revision date created: 2012-03-07 14:49:29 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: 2012-03-07 14:49:31|12372|1:1|image|Module.pm:new(172)|set 'id' key for VCL::image object from arguments 2012-03-07 14:49:31|12372|1:1|image|Module.pm:new(172)|set 'PID' key for VCL::image object from arguments 2012-03-07 14:49:31|12372|1:1|image|Module.pm:new(172)|set 'DURATION' key for VCL::image object from arguments 2012-03-07 14:49:31|12372|1:1|image|Module.pm:new(172)|set 'PPID' key for VCL::image object from arguments 2012-03-07 14:49:31|12372|1:1|image|Module.pm:new(172)|set 'datemodified' key for VCL::image object from arguments 2012-03-07 14:49:31|12372|1:1|image|Module.pm:new(172)|set 'RESERVATIONCOUNT' key for VCL::image object from arguments 2012-03-07 14:49:31|12372|1:1|image|Module.pm:new(172)|set 'end' key for VCL::image object from arguments 2012-03-07 14:49:31|12372|1:1|image|Module.pm:new(172)|set 'stateid' key for VCL::image object from arguments 2012-03-07 14:49:31|12372|1:1|image|Module.pm:new(172)|set 'PARENTIMAGE' key for VCL::image object from arguments 2012-03-07 14:49:31|12372|1:1|image|Module.pm:new(172)|set 'checkuser' key for VCL::image object from arguments 2012-03-07 14:49:31|12372|1:1|image|Module.pm:new(172)|set 'preload' key for VCL::image object from arguments 2012-03-07 14:49:31|12372|1:1|image|Module.pm:new(172)|set 'NOTICEINTERVAL' key for VCL::image object from arguments 2012-03-07 14:49:31|12372|1:1|image|Module.pm:new(172)|set 'start' key for VCL::image object from arguments 2012-03-07 14:49:31|12372|1:1|image|Module.pm:new(172)|set 'logid' key for VCL::image object from arguments 2012-03-07 14:49:31|12372|1:1|image|Module.pm:create_mn_os_object(361)|VCL::Module::OS::Linux::ManagementNode module loaded 2012-03-07
Re: KVM versus RHEV
I've been developing on Fedora 16 but as Aaron mentioned, it uses libvirt so the actual KVM interactions are abstracted and the OS shouldn't matter too much. The RHEV Manager uses libvirt under the hood to control VMs on RHEV Hypervisors -- which are running KVM. I haven't worked first-hand with RHEV but there is probably some overlap between what the RHEV Manager does and what VCL does. It would probably be fairly easy to add RHEV support to VCL. -Andy On Fri, Feb 17, 2012 at 1:28 PM, Anu Chirinos a...@fiu.edu wrote: Hello, The the VLC KVM development based on RHEV? Anu
Re: NFS in multiple VM servers
I made some updates to the following page: https://cwiki.apache.org/confluence/display/VCL/VMware+Configuration See the Network Storage Only - No Repository example at the bottom. I think this is close to your environment. -Andy On Tue, Feb 7, 2012 at 4:03 PM, Mike Haudenschild m...@longsight.com wrote: Hi Al, I'm assuming that you're mounting the NFS shares on ESXi hosts, and using those shares as the datastores for the 8 VM hosts. If you're using local storage as the VM host profile, the the management node retrieves the requested image from a centralized location, copies it to the VM host, and then starts that image up on the target host. In this set up, the management node is the component of VCL that needs to be aware of the location of the image repository. If you're using network storage as the VM host profile, the images are NOT captured to the management node's repository path during image capture. It assumes all the hosts are using the same network storage. It sounds like this might be your current setting. Check out the VM Disk parameter in the virtual host profile (scroll about 4/5 down): https://cwiki.apache.org/confluence/display/VCL/VMware+Configuration Check which VM host profile you're using: Click Virtual Hosts Select one of your 8 VM hosts from the pull-down Click Configure Host The current VM host profile is shown below Check where the management node is expecting images to be located: Click Management Nodes Click Submit (edit management node information) Click the Edit button next to a management node Check what's in the Install Path box Regards, Mike -- Mike Haudenschild Education Systems Manager Longsight Group (740) 599-5005 x809 m...@longsight.com www.longsight.com On Tue, Feb 7, 2012 at 15:46, Evelio Quiros evq...@fiu.edu wrote: Hello, Having a bit of a problem, and I guess it might be an assumption that I am making… I have 8 VM servers on VCL. Each server is attached to NFS disks. These are separate NFS shares for each VM server. I capture a base image on one server. I can reload any computer attached to that server with that image. That part is ok. The trouble comes when I try to reload a computer attached to a different VM server. VCL complains that it cant find the base image. I was under the impression that VCL knew where the base image resides, and transfers it to the host computer. At least, that was what the info under pending said it was doing. So, my question is… Do the NFS shares for multiple VM servers need to be the same mount point ? Can't I have VCL find the base image on whatever VM server it was created ? Thanks, Al Quiros Florida International University
Re: Capturing Windows 2003 Server Image
I have seen this before. For some reason, the firewall isn't enabled by default for new Windows 2003 installations and the firewall services aren't running. Enable the firewall via the Control Panel. Make sure TCP port 22 is open and that SSH is still working and then restart the capture process. Don't rerun 'vcld -setup' once you have run it once for a given base image because it will result in extra unnecessary image entries in the database. Instead, manually change the request table in the database. Find the imaging request that was created by 'vcld -setup'. The request.state value will be 10 (maintenance) and request.laststate will be 16 (image). change request.state to 16 and the normal running vcld process will restart the capture. -Andy On Tue, Dec 27, 2011 at 3:11 PM, Evelio Quiros evq...@fiu.edu wrote: Hello, Happy New Year to you all. I am having trouble capturing a Windows 2003 Server image. I setup Windows 2003 on the VM server and installed and configured Cygwin. I setup the gen-keys, and my Management node can SSH to the server fine without a password. When I tried to capture the new base image, it begins the process, and a little while later it reports having failed. I had been able to capture a linux image and a windows XP base image without any trouble, so I know VCL itself is working ok. Any ideas on what might be wrong ? Included below is the last part of the vcl log…. 2011-12-27 14:42:28|16120|34:34|image|Module.pm:code_loop_timeout(759)|attempt 9: waiting for vclimg12 to respond to SSH 2011-12-27 14:42:34|13511|vcld:main(167)|lastcheckin time updated for management node 1: 2011-12-27 14:42:34 2011-12-27 14:42:41|16120|34:34|image|OS.pm:is_ssh_responding(401)|vclimg12 is responding to SSH, port 22: open, port 24: closed 2011-12-27 14:42:41|16120|34:34|image|Module.pm:code_loop_timeout(762)|waiting for vclimg12 to respond to SSH, code returned true 2011-12-27 14:42:41|16120|34:34|image|Windows.pm:reboot(3454)|vclimg12 responded to ssh 2011-12-27 14:42:41|16120|34:34|image|Windows.pm:reboot(3471)|reboot complete on vclimg12, took 318 seconds 2011-12-27 14:42:41|16120|34:34|image|Windows.pm:disable_pagefile(2077)|computer was rebooted after disabling pagefile in the registry 2011-12-27 14:42:41|16120|34:34|image|utils.pm:run_ssh_command(5380)|executing SSH command on vclimg12: |16120|34:34|image| /usr/bin/ssh -i /etc/vcl/vcl.key -o StrictHostKeyChecking=no -l root -p 22 -x vclimg12 'for i in `ls /cygdrive 2/dev/null`; do echo $i; done;' 21 2011-12-27 14:42:42|16120|34:34|image|Windows.pm:get_volume_list(7958)|retrieved drive letter list under /cygdrive: |16120|34:34|image| c 2011-12-27 14:42:45|16120|34:34|image|Windows.pm:file_exists(1340)|file exists on vclimg12: 'c:/pagefile.sys' 2011-12-27 14:42:45|16120|34:34|image|Windows.pm:delete_file(1102)|attempting to delete file: 'c:/pagefile.sys' 2011-12-27 14:43:32|16120|34:34|image|Windows.pm:file_exists(1336)|file does NOT exist on vclimg12: 'c:/pagefile.sys' 2011-12-27 14:43:32|16120|34:34|image|Windows.pm:delete_file(1157)|deleted file: 'c:/pagefile.sys' 2011-12-27 14:43:32|16120|34:34|image|Windows.pm:disable_pagefile(2094)|deleted pagefile.sys on all c: 2011-12-27 14:43:32|16120|34:34|image|Windows.pm:get_network_configuration(5040)|network configuration has already been retrieved 2011-12-27 14:43:32|16120|34:34|image|DataStructure.pm:get_computer_private_ip_address(1557)|returning private IP address previously retrieved: 10.0.0.42 2011-12-27 14:43:32|16120|34:34|image|Windows.pm:get_network_configuration(5075)|private interface found: Local Area Connection, description: Intel(R) PRO/1000 MT Network Connection, address(es): 10.0.0.42 2011-12-27 14:43:32|16120|34:34|image|Windows.pm:get_private_interface_name(5177)|returning private interface name: Local Area Connection 2011-12-27 14:43:32|16120|34:34|image|Windows.pm:firewall_disable_rdp(4856)|RDP will be disabled on private interface: Local Area Connection 2011-12-27 14:43:32|16120|34:34|image|Windows.pm:get_network_configuration(5040)|network configuration has already been retrieved 2011-12-27 14:43:32|16120|34:34|image|DataStructure.pm:get_computer_private_ip_address(1557)|returning private IP address previously retrieved: 10.0.0.42 2011-12-27 14:43:32|16120|34:34|image|Windows.pm:get_network_configuration(5075)|private interface found: Local Area Connection, description: Intel(R) PRO/1000 MT Network Connection, address(es): 10.0.0.42 2011-12-27 14:43:32|16120|34:34|image|utils.pm:is_valid_ip_address(9266)|IP address is valid: 10.106.128.49 2011-12-27 14:43:32|16120|34:34|image|utils.pm:is_public_ip_address(9375)|private IP address: 10.106.128.49, returning 0 2011-12-27 14:43:32|16120|34:34|image|Windows.pm:get_network_configuration(5117)|interface found with non-public address not matching private address for reservation: Local Area Connection 2, address(es): 10.106.128.49
Re: xmlrpc
Try changing the X-APIVERSION line from 1 to 2: $header .= X-APIVERSION: 2; -Andy On Sun, Nov 20, 2011 at 11:13 PM, Mani Shafa'atDoost mani.do...@gmail.com wrote: Hello, I just used your sample file to use VCL through XMLRPC, but I received following error : Notice: xmlrpc: Unsupported API version, cannot continue. I just modified username and password in your sample PHP file. I will appreciate if you could guide me. Best Regards Mani
Re: Adding computer hosts
You need to add definitions for each VM. If you used the Add Multiple computers option, you should have been presented with the correct dhcpd.conf contents which you could copy/paste after the computers were added. You can still add the entries manually. The following page has an example of a dhcpd.conf file: https://cwiki.apache.org/confluence/display/VCL/Configuring+a+Standalone+VCL+Environment+using+VMware+Server+2.0 You should be able to copy/paste, then alter the hostnames, MACs, IP addresses. -Andy On Wed, Oct 19, 2011 at 2:34 PM, Evelio Quiros evq...@fiu.edu wrote: Hello, What do I need in dhcpd.conf when I am adding VM computers to manage? I put in a range of MAC addresses in the web interface, do I need to put those MACs in the dhcpd.conf file ? Thanks. Al Quiros Unix System Administrator Florida International University
Re: Help creating local users
I just made some updates to the install_perl_libs.pl script which may help to resolve your problems. Download it again if you already downloaded it. -Andy On Thu, Oct 13, 2011 at 1:10 PM, Aaron Peeler aaron_pee...@ncsu.edu wrote: If you ran install_perl_libs.pl, it's possible the epel repository rpm failed which would prevent perl-Mailtools from getting installed. You should use the latest out of the VCL repository. move the older script out of the way mv /usr/local/vcl/bin/install_perl_libs.pl /usr/local/vcl/bin/install_perl_libs.pl_old use wget https://svn.apache.org/repos/asf/incubator/vcl/trunk/managementnode/bin/install_perl_libs.pl and store it in the /usr/local/vcl/bin directory. Then rerun install_perl_libs.pl Aaron On Thu, Oct 13, 2011 at 12:22 PM, Anu Chirinos a...@fiu.edu wrote: [root@vcltst bin]# rpm -qa perl perl-5.10.1-119.el6.x86_64 On 10/13/11 12:12 PM, Aaron Peeler fapee...@ncsu.edu wrote: Anu, You can use the ./vcld --setup option Select 1 VCL Base Module to add accounts. Aaron On Thu, Oct 13, 2011 at 11:49 AM, Anu Chirinos a...@fiu.edu wrote: Hello, We are trying to create local users and when I click in ³Submit New User² button, nothing happens. Thanks, FIU/Anu -- Aaron Peeler Program Manager Virtual Computing Lab NC State University 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.
Re: Error at 473 in /var/www/html/vcl/.ht-inc/computers.php
The reason your reservations are failing is because DHCP isn't working correctly for the public interface. The VM (vm2) appears to have loaded successfully but was unable to get a valid DHCP-assigned public IP address. Make sure that your public DHCP server can assign an address to the public MAC address assigned to the VM: 00:50:56:00:00:06. The 'Failed to update private IP address' error in the log file is actually a typo in the code. It should say 'Failed to update public IP address'. I would troubleshoot by logging into the VM via the VMware console as root -- the default password is in the vcld.conf file. Run 'tail -f /var/log/messages | grep dhcpd' on the DHCP server and then run 'ipconfig /release Public' and 'ipconfig /renew Public' on the VM. There is no point in continuing to attempt to reload VMs via the VCL interface until this is resolved. I'm not sure what's causing the web page errors you are seeing. In addition to the table output you sent earlier, please also send the contents of the vmhost, vmprofile, and resource tables. Once DHCP is fixed, you can set the state of the VM to 'Available' via the VCL website - Manage Computers Computer Utilities. Then try to make a reservation. -Andy On Tue, Sep 13, 2011 at 5:32 PM, Jeries, Ibrahim (Student) ibrahim.jeri...@student.anglia.ac.uk wrote: Ooops sorry I misread your post. Please find attached vcld.log. The “Failed to update private ip address” error occurred on 2011-09-10 20:51:53 Many thanks, Ibrahim From: Andy Kurth [andy_ku...@ncsu.edu] Sent: 13 September 2011 21:32 To: vcl-user@incubator.apache.org Subject: Re: Error at 473 in /var/www/html/vcl/.ht-inc/computers.php No, the noimage image should NOT be deleted. I said in the previous post that if you had deleted it that it needs to be added back. I've seen this done before. Your database entries look correct. Please send the vcld.log output from the reservation where the Failed to update private IP address error occurred. -Andy On Tue, Sep 13, 2011 at 3:07 PM, Jeries, Ibrahim (Student) ibrahim.jeri...@student.anglia.ac.uk wrote: Andy, Many thanks. I can confirm that id 4 in the image table is the “no image” as you explained. However, I am unable to delete it when issuing the DELETE command while using the VCL database. mysql DELETE FROM image WHERE id=4; ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails (`vcl_db`.`computer`, CONSTRAINT `computer_ibfk_36` FOREIGN KEY (`currentimageid`) REFERENCES `image` (`id`) ON UPDATE CASCADE) If attempted using phpMyAdmin, the following is displayed: Error SQL query: DELETE FROM `vcl_db`.`image` WHERE `image`.`id` =4 MySQL said: Documentation #1451 - Cannot delete or update a parent row: a foreign key constraint fails (`vcl_db`.`computer`, CONSTRAINT `computer_ibfk_36` FOREIGN KEY (`currentimageid`) REFERENCES `image` (`id`) ON UPDATE CASCADE) Please note, the self created ESXi profile “image” field is currently pointing to the XP base image for some reason should this make a difference? Please see table’s info below as requested. Regards, Ibrahim Database changed mysql SELECT * FROM computer; ++-+-++++-+-+---++---+-+--++--+---+---+++---+-+---+---+--+--++--++--+-+--+--+ | id | stateid | ownerid | platformid | scheduleid | currentimageid | nextimageid | imagerevisionid | RAM | procnumber | procspeed | network | hostname | IPaddress | privateIPaddress | eth0macaddress | eth1macaddress | type | provisioningid | drivetype | deleted | notes | lastcheck | location | dsa | dsapub | rsa | rsapub | host | hostpub | vmhostid | vmtypeid | ++-+-++++-+-+---++---+-+--++--+---+---+++---+-+---+---+--+--++--++--+-+--+--+ | 1 | 20 | 1 | 1 | 1 | 4 | 4 | 4 | 12285 | 4 | 1990 | 1000 | esxi | 172.16.20.20 | NULL | NULL | NULL | blade | 6 | hda | 0 | | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | | 3 | 10 | 1 | 1 | 1 | 4 | 4 | 4 | 1024 | 1 | 1990 | 1000 | vm1
Re: Error at 473 in /var/www/html/vcl/.ht-inc/computers.php
This looks like it may be a problem in the database. The line in computers.php where error is occurring is attempting to print out the name of the current image loaded on the computer. The ID of the image is 4 -- which should be the noimage image: Unkown error type: [8] Undefined index: 4 By chance delete the noimage image from the database? If so, you'll need to add it back. If not, please include the output from: SELECT * FROM computer SELECT * FROM image SELECT * FROM imagerevision Regards, Andy On Mon, Sep 12, 2011 at 2:25 PM, Jeries, Ibrahim (Student) ibrahim.jeri...@student.anglia.ac.uk wrote: Dear all, Can anyone help with following issue? The network consist of: A CentOS 6.0 x64 server housing VCL 2.2.1 Management node, Web components and MySQL db. It is also a DHCP server serving both, the LAN (private) and WAN (public) networks. An ESXi 4.1 hypervisor housing 2 Virtual Machines (VMs) at the moment, 1 VM is an XP SP3, standard build with Cygwin fully functional. The 2nd VM is a BackTrack 5 r1 (Debian/Ubuntu based) with SSH enabled. Each machine have have 2 NICs, a public NIC connecting to the internet and a private NIC for the VCL management traffic as well as LAN connectivity. VCL was fully functional and allowed me to successfully create a base image of the XP VM. I then added the XP base image to a group (allVMImage) via the web interface using the default “admin” account. I then requested a “New reservation” of that XP image. 2 mins later while processing the reservation, it failed with error “Confirming image exists (22) Failed to update private IP address”. Since, the “New Reservation” page displays the normal reservation options but with a line of red text “Selection not currently available” and the “View Time Table” button instead of the “Reserve/submit” button. Clicking the “View time table” button shows a blank page with a single line: “There are currently no computers available that can run the application you selected.” I am unable to follow this mail archive suggestion: http://www.mail-archive.com/vcl-dev@incubator.apache.org/msg01706.html because if I navigate to Mange Computers - All VM Computers, or allComputers, or newvmimages (Edit computer information) I get the following error: Computers Error encountered Unkown error type: [8] Undefined index: 4 Error at 473 in /var/www/html/vcl/.ht-inc/computers.php And if I try commenting out line 3720 through 3734 in utils.php as per: http://www.mail-archive.com/vcl-dev@incubator.apache.org/msg01588.html the VCL web portal does not load up (blank browser page), tested in FireFox 6.0, IE 8 and Chrome 4.1.249.. All of the above was setup according to VCL docs: https://cwiki.apache.org/VCL/vcl-221-installation.html. What I would really like, is to: 1) Be able to place new reservation again 2) Create a base image of the Backtrack VM and make it an available image for users to reserve and use. One last thing, I had to crate an additional ESXi profile to point to the correct Datastore should this matter. Any help/pointers are greatly appreciated. Kind regards, Ibrahim
Re: problems intsalling perl-CPAN
I haven't seen this before. You could try installing/updating the module listed in the error via the following command: cpan Scalar::Util -Andy On Mon, Jul 11, 2011 at 10:33 PM, Juan Jose Zamanillo jjzam...@itesm.mx wrote: when I run the script for install perl modules I get errors when the script try to install de perl-CPAN modules, and when I try to start the vcld daemon I get the following error: [root@labvcl ~]# /sbin/service vcld start Starting vcld daemon: Uncaught exception from user code: OIO::Code error: Cannot use 'pure perl' version of Scalar::Util - 'weaken' missing Info: Upgrade/reinstall your version of Scalar::Util Package: VCL::DataStructure File: /usr/local/vcl/bin/../lib/VCL/DataStructure.pm Line: 79 Compilation failed in require at /usr/local/vcl/bin/../lib/VCL/DataStructure.pm line 79. BEGIN failed--compilation aborted at /usr/local/vcl/bin/../lib/VCL/DataStructure.pm line 79. Compilation failed in require at /usr/local/vcl/bin/vcld line 62. BEGIN failed--compilation aborted at /usr/local/vcl/bin/vcld line 62. at /usr/local/vcl/bin/vcld line 62 Use of uninitialized value in hash dereference at /usr/lib/perl5/site_perl/5.8.8/Object/InsideOut.pm line 891. Use of uninitialized value in array dereference at /usr/lib/perl5/site_perl/5.8.8/Object/InsideOut.pm line 990. [FAILED] thanks in Advance Regards
Re: VCL2.2.1 Windows 7 slow boot time
Am I understanding this correctly... on the NFS datastore with 1G RAM, the VM boots slow the first time. Subsequent powering on/off through the ESXi console is fast. Is the speed also fast if you issue a reboot command from the Windows 7 OS? I would first check if ESXi is correcting something in the vmx file when you restart it via the vSphere console. Load the image. Make a copy of the vmx file. Restart it via the vSphere client. Then diff the original and running vmx file. Also look in the vmware.log file that is generated in the vmx directory. Compare it for the same image loaded under conditions where boot time is slow and fast. There may be some clues in this file. Another way to troubleshoot is to view the performance statistics in the vSphere client. Check the latency statistics for the datastores where the vmx and vmdk files reside. Also look at the CPU utilization for the VM. I have seen very high CPU utilization for a VM when it boots if datastore latency is also high. -Andy On Tue, Jul 5, 2011 at 12:12 PM, Kelly Patrice Robinson krobinso...@gsu.edu wrote: Ok, I have another issue with slow boot times. We are testing VCL2.2.1 and ESXi 4.1. Observations: --Provisioning images (on an NFS datastore) is successful if RAM on the image is 1G. --If the RAM on this image is 1G, the reservation will fail. (Boot time is 10 mins). --Powering off/Powering on this image (from the ESXi console) results in a much faster boot time ( 1min) --Provisioning images of 1G of RAM to the local datastore can be performed successfully. (note: Nodes have 146GB SAS 15K drives. The SAN connected through NFS is composed of SATA drives) I would expect there to be performance differences between the local datastore and the SAN due to the differences in the types of drives, however we were able to provision 2G and 3G images successfully using VCL2.1 and ESXi 3.5. The only notable difference that I'm aware of is that the provisioning module we used in VCL2.1 made copies of the vmdk file each time an image was requested and VCL2.2.1 uses the same vmdk file and writes the deltas for each instance. Would this change cause the images to now fail? Does any one know of any changes in ESXi 4.1 that could also explain this occurrence? Thanks, Kelly
Re: VMware ESXi 4.1
We're using ESXi 4.1 with separate virtual switches for the public and private networks. Our hosts come up with the public interface receiving its IP address via DHCP using vSwitch0. It sounds like this is how yours is configured. The networking configuration panel has the following: Virtual Switch: vSwitch0 * Virtual Machine Port Group ** Name: Public * VMkernel Port ** Name: Management Network ** vmk0: public IP address To configure the private network virtual switch: -Add Networking -Connection Types: VMkernel -Create a virtual switch - select the private interface (vmnicx) -Network Label: VMkernel -Use the following IP settings: enter your private IP address and subnet mask -Finish -Click Properties next to Virtual Switch: vSwitch1 -Click Add -Connection Types: Virtual Machine -Network Label: Private -Finish ESXi doesn't like multiple interfaces receiving their addresses via DHCP so we have to configure a static IP address for the private interface. I would include a screenshot of our networking configuration in the vSphere Client but I doubt it will go through. Here is the output of the esxcfg-* commands after SSH'ing in: ~ # esxcfg-vswitch -l Switch Name Num Ports Used Ports Configured Ports MTU Uplinks vSwitch0 128 3 128 1500vmnic1 PortGroup NameVLAN ID Used Ports Uplinks Public00 vmnic1 Management Network01 vmnic1 Switch Name Num Ports Used Ports Configured Ports MTU Uplinks vSwitch1 128 3 128 1500vmnic2 PortGroup NameVLAN ID Used Ports Uplinks Private 00 vmnic2 VMkernel 01 vmnic2 ~ # esxcfg-vmknic -l Interface Port Group/DVPort IP Family IP AddressNetmask Broadcast MAC Address MTU TSO MSS Enabled Type vmk0 Management Network IPv4 public IP 255.255.254.0 152.7.99.255public MAC 150065535 trueDHCP vmk1 VMkernelIPv4 private IP 255.255.240.0 10.10.15.255private MAC 150065535 trueSTATIC -Andy On Tue, May 24, 2011 at 10:07 AM, Waldron, Michael H mwald...@email.unc.edu wrote: Has anyone used the free version of VMware ESXi 4.1? I started playing with it to possibly use with our VCL after it's been upgraded to 2.2.1, however I can't figure out how to get both our public and private networks defined on it. After initial install on a blade, it configures the public interface and I'm able to connect to it via the vSphere client. But everytime I try to add the private network to it, it configures a virtual mac address rather than using the mac address of the physical interface like it's doing for the public interface. The result is this interface is getting a 169.254.0.1 IP address, rather than the IP it should get from the DHCP server. I also enabled SSH on the security profile, however it's not answering SSH connection attempts. Just wondering if anyone has had some experience with setting this up. Mike Waldron Systems Specialist ITS Research Computing University of North Carolina at Chapel Hill CB #3420, ITS Manning, Rm 2509 919-962-9778
Re: Unable to create Base Image
I'd first fix the missing Perl module problem: |14944|13:13|image| Can't locate HTTP/Config.pm in @INC (@INC contains:... Did you run install_perl_libs.pl? Did it report any errors? Which instructions are you using to create the standalone system? There are a few floating around. I would recommend trying to use the following: https://cwiki.apache.org/confluence/display/VCL/Configuring+a+Standalone+VCL+Environment+using+VMware+Server+2.0 -Andy On 4/23/2011 2:17 AM, Vishnu D H wrote: Hello, I am installing VCL (Standalone system). When trying to create the Base image, it throws up a few errors and also pops up an OpenSSH box and asks me to put the password for 'vcluser'. Could anyone help with this? 2011-04-23 01:56:00|14840|utils.pm:insert_request(8443)|inserted new reload request into request table, request id=13 2011-04-23 01:56:00|14840|utils.pm:insert_request(8474)|inserted new reload request into reservation table, reservation id=13 2011-04-23 01:56:01|5088|13:13|image|utils.pm:reservation_being_processed(9010)|computerloadlog 'begin' entry does NOT exist for reservation 13 2011-04-23 01:56:01|5088|13:13|image|utils.pm:run_command(9082)|executed command: pgrep -fl 'vcld [0-9]+:13 ', pid: 14929, exit status: 1, output: 2011-04-23 01:56:01|5088|13:13|image|utils.pm:is_management_node_process_running(9259)|process is NOT running, identifier: 'vcld [0-9]+:13 ' 2011-04-23 01:56:01|5088|13:13|image|utils.pm:reservation_being_processed(9031)|reservation is NOT currently being processed 2011-04-23 01:56:01|5088|13:13|image|vcld:main(277)|reservation 13 is NOT already being processed 2011-04-23 01:56:01|5088|13:13|image|utils.pm:get_request_info(4589)|standalone affiliation found: Local 2011-04-23 01:56:01|5088|13:13|image|vcld:main(282)|retrieved request information from database 2011-04-23 01:56:01|5088|13:13|image|DataStructure.pm:is_parent_reservation(943)|returning true: parent reservation ID for this request: 13 2011-04-23 01:56:01|5088|13:13|image|utils.pm:update_request_state(2049)|request 13 state updated to: pending, laststate to: image 2011-04-23 01:56:01|5088|13:13|image|utils.pm:insertloadlog(3933)|inserted computer=6, begin, beginning to process, state is image 2011-04-23 01:56:01|5088|13:13|image|vcld:make_new_child(510)|loaded VCL::image module 2011-04-23 01:56:01|5088|13:13|image|vcld:make_new_child(567)|current number of forked kids: 1 2011-04-23 01:56:01|14944|13:13|image|vcld:make_new_child(583)|vcld environment variable set to 0 for this process 2011-04-23 01:56:01|14944|13:13|image|Module.pm:new(134)|constructor called, class=VCL::image 2011-04-23 01:56:01|14944|13:13|image|Module.pm:new(156)|VCL::image object created 2011-04-23 01:56:01|14944|13:13|image|State.pm:initialize(85)|obtained a database handle for this state process, stored as $ENV{dbh} 2011-04-23 01:56:01|14944|13:13|image|State.pm:check_image_os(836)|no corrections need to be made to image OS: vmwarelinux 2011-04-23 01:56:01|14944|13:13|image|DataStructure.pm:is_parent_reservation(943)|returning true: parent reservation ID for this request: 13 2011-04-23 01:56:01|14944|13:13|image|utils.pm:rename_vcld_process(7183)|reservation count: 1 2011-04-23 01:56:01|14944|13:13|image|utils.pm:rename_vcld_process(7202)|PARENTIMAGE: 1 2011-04-23 01:56:01|14944|13:13|image|utils.pm:rename_vcld_process(7203)|SUBIMAGE: 0 2011-04-23 01:56:01|14944|13:13|image|utils.pm:rename_vcld_process(7221)|renamed process to 'vcld 13:13 image vmguest-1 vmwarelinux-1524-v0 admin' 2011-04-23 01:56:01|14944|13:13|image|DataStructure.pm:is_parent_reservation(943)|returning true: parent reservation ID for this request: 13 2011-04-23 01:56:01|14944|13:13|image|DataStructure.pm:is_parent_reservation(943)|returning true: parent reservation ID for this request: 13 2011-04-23 01:56:01|14944|13:13|image|State.pm:initialize(118)|attempting to load provisioning module: VCL::Module::Provisioning::VMware::VMware 2011-04-23 01:56:02|14944|13:13|image|State.pm:initialize(124)|VCL::Module::Provisioning::VMware::VMware module loaded 2011-04-23 01:56:02|14944|13:13|image|Module.pm:new(134)|constructor called, class=VCL::Module::Provisioning::VMware::VMware 2011-04-23 01:56:02|14944|13:13|image|Module.pm:new(156)|VCL::Module::Provisioning::VMware::VMware object created 2011-04-23 01:56:02|14944|13:13|image|DataStructure.pm:_initialize(594)|computer ID argument was specified, retrieving data for computer ID: 4 2011-04-23 01:56:02|14944|13:13|image|VMware.pm:get_vmhost_datastructure(923)|created DataStructure object for VM host: localvmhost 2011-04-23 01:56:02|14944|13:13|image|DataStructure.pm:_initialize(594)|computer ID argument was specified, retrieving data for computer ID: 4 2011-04-23 01:56:02|14944|13:13|image|VMware.pm:get_vmhost_datastructure(923)|created DataStructure object for VM host: localvmhost 2011-04-23 01:56:02|14944|13:13|image|VMware.pm:get_vmhost_api_object(1027)|attempting to load VMware control module:
Re: Blades running out of space
Hello, More information is necessary. Which files are taking up the space? Which provisioning module are you using? Which version of VCL and VMware are you running? -Andy On 4/19/2011 8:15 AM, momoh Ibrahim wrote: Hi Everyone, My university have VCL (using vmware) running on 7 blades, it is difficult to make reservations because the blades are out of space. I have a feeling something is not being deleted after reservations are expired/completed. Any suggestions on what to do? Thank you. Ibrahim Momoh
Re: Windows 7 and Windows XP give same error when trying to capture
2011-04-06 12:40:07|1614|42:42|new|DataStructure.pm:_automethod(835)|data structure updated: $self-request_data\ -{reservation}{42}{computer}{state}{name} |1614|42:42|new| computer_state_name = reloading 2011-04-06 12:40:07|1614|42:42|new|DataStructure.pm:get_computer_private_ip_address(1582)|attempting to retrieve\ private IP address for computer: vm4 2011-04-06 12:40:07|1614|42:42|new|DataStructure.pm:get_computer_private_ip_address(1586)|retrieved contents of \ /etc/hosts on this management node, contains 8 lines 2011-04-06 12:40:07|1614|42:42|new|DataStructure.pm:get_computer_private_ip_address(1639)|returning IP address f\ rom /etc/hosts file: 192.168.128.3 2011-04-06 12:40:07|1614|42:42|new|utils.pm:is_inblockrequest(6147)|zero rows were returned from database select 2011-04-06 12:40:07|1614|42:42|new|DataStructure.pm:get_image_affiliation_name(2029)|image owner id: 1 2011-04-06 12:40:07|1614|42:42|new|utils.pm:getnewdbh(2709)|database requested (information_schema) does not mat\ ch handle stored in $ENV{dbh} (vcl:127.0.0.1) 2011-04-06 12:40:07|1614|42:42|new|utils.pm:getnewdbh(2760)|database handle stored in $ENV{dbh} 2011-04-06 12:40:08|30717|vcld:main(167)|lastcheckin time updated for management node 1: 2011-04-06 12:40:08 2011-04-06 12:40:08|1614|42:42|new|DataStructure.pm:retrieve_user_data(1353)|attempting to retrieve and store da\ ta for user: user.id http://user.id = '1' 2011-04-06 12:40:08|1614|42:42|new|utils.pm:getnewdbh(2709)|database requested (vcl) does not match handle store\ d in $ENV{dbh} (information_schema:127.0.0.1) 2011-04-06 12:40:08|1614|42:42|new|utils.pm:getnewdbh(2760)|database handle stored in $ENV{dbh} 2011-04-06 12:40:08|1614|42:42|new|DataStructure.pm:retrieve_user_data(1416)|data has been retrieved for user: a\ dmin (id: 1) /etc/mail/submit.cf http://submit.cf: line 544: fileclass: cannot open '/etc/mail/trusted-users': Group writable directory 2011-04-06 12:40:08|1614|42:42|new|utils.pm:mail(1268)|SUCCESS -- Sending mail To: tharde...@tylerhardesty.info mailto:tharde...@tylerhardesty.info,\ PROBLEM -- 42:42|new|State.pm|vm4localvmhost|vmwarewinxp-xp231-v0|admin |1614|42:42|new| CRITICAL |1614|42:42|new| 2011-04-06 12:40:07|1614|42:42|new|State.pm:reservation_failed(223)|reservation failed on vm4: \ process failed after trying to load or make available |1614|42:42|new| ( 0) State.pm, reservation_failed (line: 223) |1614|42:42|new| (-1) new.pm http://new.pm, process (line: 332) |1614|42:42|new| (-2) vcld, make_new_child (line: 568) |1614|42:42|new| (-3) vcld, main (line: 346) 2011-04-06 12:40:08|1614|42:42|new|utils.pm:insertloadlog(3875)|inserted computer=5, failed, process failed afte\ r trying to load or make available 2011-04-06 12:40:08|1614|42:42|new|State.pm:reservation_failed(226)|inserted computerloadlog entry 2011-04-06 12:40:08|1614|42:42|new|State.pm:reservation_failed(234)|updated log ending value to 'failed', logid=\ 11 2011-04-06 12:40:08|1614|42:42|new|utils.pm:update_computer_state(2033)|computer 5 state updated to: failed 2011-04-06 12:40:08|1614|42:42|new|State.pm:reservation_failed(245)|computer vm4 (5) state set to failed 2011-04-06 12:40:08|1614|42:42|new|utils.pm:update_request_state(1991)|request 42 state updated to: failed, last\ state to: new 2011-04-06 12:40:08|1614|42:42|new|State.pm:reservation_failed(258)|set request state to 'failed'/'new' 2011-04-06 12:40:08|1614|42:42|new|utils.pm:is_inblockrequest(6147)|zero rows were returned from database select 2011-04-06 12:40:08|1614|42:42|new|State.pm:reservation_failed(276)|vm4 is NOT in blockcomputers table 2011-04-06 12:40:08|1614|42:42|new|State.pm:reservation_failed(279)|exiting 1 2011-04-06 12:40:08|1614|42:42|new|State.pm:DESTROY(839)|VCL::new destructor called, address: 9d3c1e0 2011-04-06 12:40:08|1614|42:42|new|utils.pm:delete_computerloadlog_reservation(6726)|removing computerloadlog en\ tries matching loadstate = begin 2011-04-06 12:40:08|1614|42:42|new|utils.pm:delete_computerloadlog_reservation(6773)|deleted rows from computerl\ oadlog for reservation id=42 2011-04-06 12:40:08|1614|42:42|new|State.pm:DESTROY(858)|number of database handles state process created: 3 2011-04-06 12:40:08|1614|42:42|new|State.pm:DESTROY(886)|VCL::new process duration: 954 seconds 2011-04-06 12:40:08|1614|42:42|new|VIM_SSH.pm:DESTROY(1685)|vim-cmd call count: 13 2011-04-06 12:40:08|30717|vcld:REAPER(718)|VCL process exited for reservation 42, PID: 1614, signal: CHLD On Mon, Apr 4, 2011 at 12:20 PM, Andy Kurth andy_ku...@ncsu.edu mailto:andy_ku...@ncsu.edu wrote: Hello, I responded earlier to your dynamic vs static ip message before noticing this message. I think I see the problem. You seem to be using the same machine as the management node and VM host but the VM profile datastore path and repository path are the same. Configure the VM profile to not use the image repository: -Click Virtual Hosts -Select localvmhost from the list and click Configure Host
Re: Cygwin 1069 logon error
The password should be the actual password of the root account on the Windows computer. The quotes around the password are only necessary if it contains special characters. It looks like your cygwin-sshd-config.sh contains Windows line breaks. You'll see the 'unexpected token {\r' error when this is the case. This will happen in some circumstances if you save it under Windows. The file must only contain Unix line breaks in order to work. Run this command on the Windows computer in the Cygwin shell then try to run the script again: dos2unix /home/root/cygwin-sshd-config.sh -Andy On 4/5/2011 3:25 PM, Frento Burton wrote: I'm installing VCL on my fedora 13 desktop and I have created a Windows XP virtual machine. I am trying to run the cygwin-sshd-config.sh script. I set the file as an executable then proceed to run the command /home/root/cygwin-sshd-config.sh 'PASSWORD'. Everything goes smooth until the last step in which I receive a Win32 1069 logon failure. I wasn't sure if PASSWORD was suppose to be the actual root password I use to logon to my Windows XP virtual machine or a new password specifically for cygwin-sshd-confg.sh. I read around on a couple of forms that the password to run sshd should be at least 5 - 8 characters and alphanumeric. If this is so than my Windows XP root password does not meet that criteria. Also, when I try to simply run the command again i get this error message; /home/root/cygwin-sshd-config.sh: line 46: syntax error near unexpected token ' {\r' ' 'home/root/cygwin-sshd-config.sh: line 46: 'function set_config { Has anyone encountered this problem before? Your input is greatly appreciated...
Re: Windows 7 and Windows XP give same error when trying to capture
Hello, I responded earlier to your dynamic vs static ip message before noticing this message. I think I see the problem. You seem to be using the same machine as the management node and VM host but the VM profile datastore path and repository path are the same. Configure the VM profile to not use the image repository: -Click Virtual Hosts -Select localvmhost from the list and click Configure Host -Note the value next to VM Profile -Click VM Host Profiles -Select the profile being used by localvmhost and click Configure Profile -Clear the value of Data Store Path -Set VM Disk to networkdisk Your captured image should probably work in its current state even though the capture failed. The image capture only failed because it was unable to make a duplicate copy of the vmdk directory in the image repository. This feature isn't necessary if you're using a single box or all network storage. The only step that would have occurred if the image capture was successful would have been to set image.deleted and imagerevision.deleted to 0 in the database. You can easily set this if you have phpMyAdmin installed or run 'mysql' from the command line and execute: UPDATE image SET deleted = '0' WHERE name = 'vmwarewin7-vm4win720-v0'; UPDATE imagerevision SET deleted = '0' WHERE imagename = 'vmwarewin7-vm4win720-v0'; Make sure the image has been put into an image group. You should see the image in the New Reservation list. Try to make a reservation. Hope this helps, Andy On 3/28/2011 4:59 PM, Tyler Hardesty wrote: So I've been trying for about 3 weeks to get an image captured... I kept trying with a windows xp vm and finally decided to try win 7 to see if that made a difference, it didn't. I get this same error when trying to capture both win xp and win7 and can't figure it out. Any help would be fantastic!! 2011-03-28 14:39:43|11006|16:16|image|Linux.pm:file_exists(1368)|file or directory does not exist on localvmhost: '/var/lib/vmware/Virtual Machines/vmwarewin7-vm4win720-v0/vmwarewin7-vm4win720-v0.vmdk' 2011-03-28 14:39:43|11006|16:16|image|VMware.pm:rename_vmdk(4995)|attempting to rename vmdk: '/var/lib/vmware/Virtual Machines/vm4/vm4.vmdk' -- '/var/lib/vmware/Virtual Machines/vmwarewin7-vm4win720-v0/vmwarewin7-vm4win720-v0.vmdk' 2011-03-28 14:39:43|11006|16:16|image|Linux.pm:create_directory(1498)|directory created on localvmhost: '/var/lib/vmware/Virtual Machines/vmwarewin7-vm4win720-v0' 2011-03-28 14:39:43|11006|16:16|image|VMware.pm:rename_vmdk(5018)|'move_virtual_disk' subroutine has not been implemented by the API: VCL::Module::Provisioning::VMware::VIM_SSH 2011-03-28 14:39:43|11006|16:16|image|VMware.pm:rename_vmdk(5025)|attempting to rename vmdk file using vmware-vdiskmanager: /var/lib/vmware/Virtual Machines/vm4/vm4.vmdk -- /var/lib/vmware/Virtual Machines/vmwarewin7-vm4win720-v0/vmwarewin7-vm4win720-v0.vmdk 2011-03-28 14:39:44|11006|16:16|image|VMware.pm:rename_vmdk(5032)|renamed vmdk file by executing 'vmware-vdiskmanager' command on VM host: |11006|16:16|image| command: vmware-vdiskmanager -n /var/lib/vmware/Virtual Machines/vm4/vm4.vmdk /var/lib/vmware/Virtual Machines/vmwarewin7-vm4win720-v0/vmwarewin7-vm4win720-v0.vmdk |11006|16:16|image| output: Renaming completed successfully. 2011-03-28 14:39:44|11006|16:16|image|Linux.pm:file_exists(1382)|'/var/lib/vmware/Virtual Machines' exists on localvmhost, files: 0, directories: 1, links: 0 2011-03-28 14:39:44|11006|16:16|image|VMware.pm:is_repository_mounted_on_vmhost(5454)|image repository is mounted on VM host localvmhost: /var/lib/vmware/Virtual Machines 2011-03-28 14:39:44|11006|16:16|image|VMware.pm:capture(593)|vmdk will be copied directly from VM host localvmhost to the image repository in the 2gbsparse disk format 2011-03-28 14:39:45|11006|16:16|image|VMware.pm:get_vmhost_product_name(5374)|VMware product being used on VM host localvmhost: 'VMware Server 2.0.2 build-203138' 2011-03-28 14:39:45|11006|16:16|image|Linux.pm:file_exists(1382)|'/var/lib/vmware/Virtual Machines/vmwarewin7-vm4win720-v0/vmwarewin7-vm4win720-v0.vmdk' exists on localvmhost, files: 1, directories: 0, links: 0 2011-03-28 14:39:46|30717|vcld:main(167)|lastcheckin time updated for management node 1: 2011-03-28 14:39:46 2011-03-28 14:39:46|11006|16:16|image|Linux.pm:file_exists(1382)|'/var/lib/vmware/Virtual Machines/vmwarewin7-vm4win720-v0/vmwarewin7-vm4win720-v0.vmdk' exists on localvmhost, files: 1, directories: 0, links: 0 |11006|16:16|image| WARNING |11006|16:16|image| 2011-03-28 14:39:46|11006|16:16|image|VMware.pm:copy_vmdk(4750)|destination vmdk file path already exists on VM host localvmhost: /var/lib/vmware/Virtual Machines/vmwarewin7-vm4win720-v0/vmwarewin7-vm4win720-v0.vmdk |11006|16:16|image| ( 0) VMware.pm, copy_vmdk (line: 4750) |11006|16:16|image| (-1) VMware.pm, capture (line: 597) |11006|16:16|image| (-2) image.pm http://image.pm, process (line: 165) |11006|16:16|image| (-3) vcld, make_new_child (line: 568)
Re: VM video memory
There is currently no way to have the video memory set to a custom amount on a per-image basis unless you modify the code. A change was made from VCL 2.2 -- 2.2.1 to add the following line to the vmx file when it is generated: svga.autodetect = TRUE This causes the Video card setting to be set to Auto-detect video settings when viewed using the vSphere Client. This solved problems viewing the VM console in the vSphere Client. I'm not sure how the amount of video memory is determined using this setting but it may help your problem. The setting the the vmx file which sets a specific video memory amount is svga.vramSize. VCL does not set this. It would be possible to add a line to the prepare_vmx subroutine in VMware.pm such as: svga.vramSize = 8388608, Please submit a Jira issue if you'd like to see this value be customizable in a future release. -Andy On 3/11/2011 8:48 AM, Roger Herling wrote: Not sure if this is possible or not but we are using esx 4.1 free edition and I am trying to create a windows 7 image with adobe cs5 on it and I am having some performance issues and I am wondering if the fact that the VM only has 4mb of video memory allocated to it when the vm is created is there a way for the vcl to create a vm with a set amount of video memory? *Roger Herling* *Sr. Desktop Administrator* Marist College *Office:* 845-575-3347 *Cell:* 845-420-4298
Re: windows 7 sysprep???[Resolved]
Windows 7 Sysprep is very problematic and extremely slow. I recommend not using it by configuring the setting Patrick described. As of VCL 2.2.1, you should only have to do this for bare-metal images. Sysprep will be disabled for all VMware image captures as of VCL 2.2.1. The Unattend.xml file is a chore to configure. The file included with VCL has been configured using Windows 7 Enterprise. It may fail if other variants are used. NC State has been moving away from using Win7/2008 Sysprep wherever possible. We have removed access to our bare-metal Win7 base images, only allowing users to create VMware Win7 images. We have also converted some existing Windows 7 bare-metal images which had been using Sysprep to VM images using the VMware Converter utility. -Andy On 3/28/2011 12:07 PM, James Patrick Sigmon wrote: Issue Resolved. Be sure when going through the image capture process for a Windows 7 image that Use sysprep under Advanced Options is set to No. On Mar 24, 2011, at 1:16 AM, James Patrick Sigmon wrote: Hey Gerhard, Thanks for the info. My OS is the Ultimate Edition and is 64 bit. So I made the following changes to the file: component name=Microsoft-Windows-Shell-Setup processorArchitecture=x64 publicKeyToken=31bf3856ad364e35 language=neutral versionScope=nonSxS xmlns:wcm=http://schemas.microsoft.com/WMIConfig/2002/State; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; Display ColorDepth32/ColorDepth DPI120/DPI HorizontalResolution800/HorizontalResolution RefreshRate72/RefreshRate VerticalResolution600/VerticalResolution /Display ComputerName*/ComputerName TimeZoneEastern Standard Time/TimeZone ProductKey*MyProductKeyforUltimate*/ProductKey /component However, I'm still having the same issue, but the message has slightly changed: Windows could not parse or process unattend answer file [C:\Windows\Panther\unattend.xml] for pass [specialize]. The answer file is invalid. Can you think of what else I might need to change? Thanks again, Patrick On Mar 23, 2011, at 2:59 PM, Hartl, Gerhard L. wrote: VCL 2.2 does use a unattend.xml for sysprep. It is located at /usr/local/tools/Windows_7/Utilities/Sysprep/Unattend.xml. Are you imaging Win7 x64 or x86? What version? Enterprise, Pro, Ultimate, etc? The key provided is for the Enterprise edition and would fail if you are trying to create a Win 7 Pro image. Also the processorArchitecture must equal the architecture you are trying to image. This is the section that is apparently your issue: component name=Microsoft-Windows-Shell-Setup processorArchitecture=x86 publicKeyToken=31bf3856ad364e35 language=neutral versionScope=nonSxS xmlns:wcm=http://schemas.microsoft.com/WMIConfig/2002/State; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; - Display ColorDepth32/ColorDepth DPI120/DPI HorizontalResolution800/HorizontalResolution RefreshRate72/RefreshRate VerticalResolution600/VerticalResolution /Display ComputerName*/ComputerName TimeZoneEastern Standard Time/TimeZone ProductKey33PXH-7Y6KF-2VJC9-XBBR8-HVTHH/ProductKey /component - Gerhard Old Dominion University -Original Message- From: Alexander Patterson [mailto:alexander.patter...@csueastbay.edu] Sent: Wednesday, March 23, 2011 2:20 PM To: vcl-user@incubator.apache.org mailto:vcl-user@incubator.apache.org Subject: Re: windows 7 sysprep??? Hello Patrick, Windows 7 doesn't use sysprep. This is only used in Windows XP. Check in your php table under Imagemeta for your Windows 7 image id # that your using that sysprep is set to 0 then give that a try. For example Your Image Id =6 CheckUser =1 Subimage = 1 Sysprep = 0 -Alex On Wed, Mar 23, 2011 at 11:14 AM, James Patrick Sigmon jpsig...@ncsu.edu mailto:jpsig...@ncsu.edu wrote: Hey Guys, I've run into a problem with captured windows 7 images. They seem to capture fine, but when you make a reservation for them they time out at the ssh step. Looking at the console, I can see why. There is a pop-up box that reads: Windows could not parse or process the unattended answer file for pass [specialize]. The settings specified in the answer file cannot be applied. The error was detected while processing settings for component [Microsoft-Windows-Shell-Setup]. I've been frantically searching for a generic answer to this, and it sounds like to could be a sysprep issue, however, the image is a virtual machine. I'm still searching for solutions on my own, but I thought it would be best to go ahead and post this issue as our pilot went live and I'm trying to figure this out ASAP. Any help is much appreciated, -Patrick Sigmon -- Thanks, Alex Patterson User Support Services Operating System Analyst California State University, East Bay
Re: ssh on vmguest
Hello, The code first attempts to run nmap to check if the SSH ports are even open. Based on your log output, this is where it is failing: vm2 is NOT responding to SSH, ports 22 or 24 are both closed Try running this command: /usr/bin/nmap vm2 -P0 -p 22 -T Aggressive If you get a Failed to resolve given hostname/IP error then there is a problem with your hosts file. Make sure vm2's private IP address has been added to /etc/hosts/. Run host vm2. It should display: vm2 has address xxx.xxx.xxx.xxx If the SSH port is open you should see 1 host up. If this is the case, try running the following command: /usr/bin/ssh -i /etc/vcl/vcl.key -l root -p 22 -x vm2 'echo testing' Does this command succeed? -Andy On 3/8/2011 4:58 PM, Tyler Hardesty wrote: Hey thanks! adding those lines helped solve my permission denied problem but unfortunately I still can't create the base image... It keeps telling me that it is not responding to ssh (It also looks like Jay Diener-Brazelle had this problem that he posted at the end of Feb 2011 but I don't see a solution reply to his either) management node: [root@vcl vcl]# /usr/local/vcl/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): vm2 Computer to be captured: vm2 (ID: 3) 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): win_xp Added new image to database: 'win_xp' image.name http://image.name: vmwarewinxp-win_xp14-v0 image.id http://image.id: 14 imagerevision.id http://imagerevision.id: 14 imagemeta.id http://imagemeta.id: 12 resource.id http://resource.id: 24 Inserted imaging request to the database: request ID: 10 reservation ID: 10 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 '10:10' 2011-03-08 14:40:01|20476|utils.pm:insert_request(8343)|inserted new reload request into request table, request id=10 2011-03-08 14:40:01|20476|utils.pm:insert_request(8374)|inserted new reload request into reservation table, reservation id=10 2011-03-08 14:40:05|13551|10:10|image|utils.pm:reservation_being_processed(8923)|computerloadlog 'begin' entry does NOT exist for reservation 10 2011-03-08 14:40:05|13551|10:10|image|utils.pm:run_command(8995)|executed command: pgrep -fl 'vcld [0-9]+:10 ', pid: 20517, exit status: 1, output: 2011-03-08 14:40:05|13551|10:10|image|utils.pm:is_management_node_process_running(9177)|process is NOT running, identifier: 'vcld [0-9]+:10 ' 2011-03-08 14:40:05|13551|10:10|image|utils.pm:reservation_being_processed(8944)|reservation is NOT currently being processed 2011-03-08 14:40:05|13551|10:10|image|vcld:main(278)|reservation 10 is NOT already being processed 2011-03-08 14:40:05|13551|10:10|image|utils.pm:get_request_info(4510)|standalone affiliation found: Local 2011-03-08 14:40:05|13551|10:10|image|vcld:main(283)|retrieved request information from database 2011-03-08 14:40:05|13551|10:10|image|DataStructure.pm:is_parent_reservation(992)|returning true: parent reservation ID for this request: 10 2011-03-08 14:40:05|13551|10:10|image|utils.pm:update_request_state(1991)|request 10 state updated to: pending, laststate to: image 2011-03-08 14:40:05|13551|10:10|image|utils.pm:insertloadlog(3875)|inserted computer=3, begin, beginning to process, state is image 2011-03-08 14:40:05|13551|10:10|image|vcld:make_new_child(515)|loaded VCL::image module 2011-03-08 14:40:05|13551|10:10|image|vcld:make_new_child(539)|current number of forked kids: 1
Re: Fwd: Image Failing to boot up in VCL 2.2
There may be a more detailed error message if you try to manually power-on the VM from the vSphere Client. Also within the vSphere Client, try editing the settings of the VM. When there's a problem it often displays a more-useful error when you click Edit Settings. If neither of these provide useful information, you can look in the log file generated by VMware for the VM. The following file should exist: /vmfs/volumes/netappfiler02-sata1/vmguest-8_6-v0/vmware.log The info in this file is pretty raw but it sometimes is helpful for troubleshooting. The file grows each time an operation is attempted on the VM. To capture just the output from the power-on error, rename vmware.log to something else and attempt to power-on the VM again. vmware.log should be recreated. Please reply with the contents if the vSphere Client tests don't provide anything useful. -Andy On 3/2/2011 8:48 AM, Josh Thompson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm moving this to the vcl-user list. We're trying to separate the vcl-dev lists and vcl-user lists into development and user support. Josh - -- Forwarded Message -- Subject: Image Failing to boot up in VCL 2.2 Date: Tuesday March 01, 2011, 5:48:25 pm From: Alexander Pattersonalexander.patter...@csueastbay.edu To: vcl-...@incubator.apache.org 011-03-01 14:46:33|24259|52:44|new|VIM_SSH.pm:_run_vim_cmd(193)|vim-cmd call count: 12 (vmsvc/getallvms) 2011-03-01 14:46:33|24259|52:44|new|VIM_SSH.pm:_run_vim_cmd(208)|executed command on VM host vclesxi01: vim-cmd vmsvc/getallvms 2011-03-01 14:46:33|24259|52:44|new|VIM_SSH.pm:_run_vim_cmd(193)|vim-cmd call count: 13 (vmsvc/power.on 304) 2011-03-01 14:46:35|24259|52:44|new|VIM_SSH.pm:_run_vim_cmd(208)|executed command on VM host vclesxi01: vim-cmd vmsvc/power.on 304 2011-03-01 14:46:35|24259|52:44|new|VIM_SSH.pm:_run_vim_cmd(193)|vim-cmd call count: 14 (vmsvc/getallvms) 2011-03-01 14:46:35|24259|52:44|new|VIM_SSH.pm:_run_vim_cmd(208)|executed command on VM host vclesxi01: vim-cmd vmsvc/getallvms 2011-03-01 14:46:35|24259|52:44|new|VIM_SSH.pm:_run_vim_cmd(193)|vim-cmd call count: 15 (vmsvc/get.tasklist 304) 2011-03-01 14:46:36|24259|52:44|new|VIM_SSH.pm:_run_vim_cmd(208)|executed command on VM host vclesxi01: vim-cmd vmsvc/get.tasklist 304 2011-03-01 14:46:36|24259|52:44|new|VIM_SSH.pm:_wait_for_task(748)|checking status of task: haTask-304-vim.VirtualMachine.powerOn-90991068 2011-03-01 14:46:36|24259|52:44|new|VIM_SSH.pm:_run_vim_cmd(193)|vim-cmd call count: 16 (vimsvc/task_info haTask-304-vim.VirtualMachine.powerOn-90991068) 2011-03-01 14:46:36|24259|52:44|new|VIM_SSH.pm:_run_vim_cmd(208)|executed command on VM host vclesxi01: vim-cmd vimsvc/task_info haTask-304-vim.VirtualMachine.powerOn-90991068 |24259|52:44|new| WARNING |24259|52:44|new| 2011-03-01 14:46:36|24259|52:44|new|VIM_SSH.pm:_wait_for_task(783)|task haTask-304-vim.VirtualMachine.powerOn-90991068 did not complete successfully, state: error, error message: The task was canceled by a user. |24259|52:44|new| ( 0) VIM_SSH.pm, _wait_for_task (line: 783) |24259|52:44|new| (-1) VIM_SSH.pm, vm_power_on (line: 969) |24259|52:44|new| (-2) VMware.pm, load (line: 407) |24259|52:44|new| (-3) new.pm, reload_image (line: 687) |24259|52:44|new| (-4) new.pm, process (line: 282) |24259|52:44|new| (-5) vcld, make_new_child (line: 568) |24259|52:44|new| WARNING |24259|52:44|new| 2011-03-01 14:46:36|24259|52:44|new|VIM_SSH.pm:vm_power_on(974)|failed to power on VM: /vmfs/volumes/netappfiler02-sata1/vmguest-8_6-v0/vmguest-8_6-v0.vmx, the vim power on task did not complete successfully, vim-cmd vmsvc/power.on 304 output: |24259|52:44|new| Powering on VM: |24259|52:44|new| Power on failed |24259|52:44|new| ( 0) VIM_SSH.pm, vm_power_on (line: 974) |24259|52:44|new| (-1) VMware.pm, load (line: 407) |24259|52:44|new| (-2) new.pm, reload_image (line: 687) |24259|52:44|new| (-3) new.pm, process (line: 282) |24259|52:44|new| (-4) vcld, make_new_child (line: 568) |24259|52:44|new| (-5) vcld, main (line: 346) |24259|52:44|new| WARNING |24259|52:44|new| 2011-03-01 14:46:36|24259|52:44|new|VMware.pm:load(408)|failed to power on VM vmguest-8 on VM host: vclesxi01 |24259|52:44|new| ( 0) VMware.pm, load (line: 408) |24259|52:44|new| (-1) new.pm, reload_image (line: 687) |24259|52:44|new| (-2) new.pm, process (line: 282) |24259|52:44|new| (-3) vcld, make_new_child (line: 568) |24259|52:44|new| (-4) vcld, main (line: 346) |24259|52:44|new| WARNING |24259|52:44|new| 2011-03-01 14:46:36|24259|52:44|new|new.pm:reload_image(692)|vmwarewinxp-build33-v0 failed to load on vmguest-8, returning |24259|52:44|new| ( 0) new.pm, reload_image (line: 692) |24259|52:44|new| (-1) new.pm, process (line: 282) |24259|52:44|new| (-2) vcld, make_new_child (line: 568) |24259|52:44|new| (-3) vcld, main (line: 346) 2011-03-01 14:46:36|24259|52:44|new|utils.pm:insertloadlog(3875)|inserted computer=22, loadimagefailed,
Re: Window 7 x64 Sysprep.exe not running
Sysprep.exe may be initiated by quickly terminates due to an error. Check if the following log file exists and contains any useful error information: C:\Windows\System32\sysprep\Panther\setuperr.log Try running the command manually, trying to replicate the environment VCL attempts to run it in: -Log in as root -Open a Cygwin shell -Run this command: sysprep.exe /generalize /oobe /shutdown /quiet /unattend:C:/Windows/Sysnative/sysprep/Unattend.xml If this fails, try running it from a regular cmd.exe shell, but change the path to Unattend.xml to DOS\Windows format: sysprep.exe /generalize /oobe /shutdown /quiet /unattend:C:\Windows\Sysnative\sysprep\Unattend.xml Please reply with anything you find. -Andy On 3/1/2011 11:39 AM, Hartl, Gerhard L. wrote: I have been attempting to capture a Win 7 x64 image w/ sysprep on VCL 2.2 without success. I added the following: ***# Check if pre_capture() subroutine has been implemented by the OS module* *my $computer_nodename = $computer_shortname;* *if ($self-os-can(pre_capture)) {* *# Call OS pre_capture() - it should perform all OS steps necessary to capture an image* *# pre_capture() should shut down the computer when it is done* *notify($ERRORS{'OK'}, 0, calling OS module's pre_capture() subroutine);* *if (!$self-os-pre_capture({end_state = 'off'})) {* *notify($ERRORS{'WARNING'}, 0, OS module pre_capture() failed);* *return 0;* *}* *}* in esxthin.pm, as we use netapp hardware, and the pre_capture indeed runs properly when sysprep is set to 1. At the end of the pre_capture when sysprep.exe is actually called, nothing happens. The Unattend.xml is in the proper place but *sysprep.exe /generalize /oobe /shutdown /quiet /unattend:C:/Windows/Sysnative/sysprep/Unattend.xml* is never actually run. Eventually after the timeout, the poweroff() routine will power off the machine unclean and without sysprep. I have checked the taskman and sysprep.exe is not running. Ideas? /var/log/vcld.log *|19148|30:30|image| /usr/bin/ssh -i /etc/vcl/vcl.key -l root -p 22 -x vmwarewin7-base1-v1 '/bin/cygstart.exe C:/Windows/Sysnative/cmd.exe /c %SYSTEMROOT%/System32/ipconfig.exe /release %SYSTEMROOT%/System32/route.exe DELETE 0.0.0.0 MASK 0.0.0.0 %SYSTEMROOT%/System32/netsh.exe interface ip set address name=\Local Area Connection\ source=dhcp %SYSTEMROOT%/System32/netsh.exe interface ip set dns name=\Local Area Connection\ source=dhcp %SYSTEMROOT%/System32/netsh.exe interface ip set address name=\Local Area Connection 2\ source=dhcp %SYSTEMROOT%/System32/netsh.exe interface ip set dns name=\Local Area Connection 2\ source=dhcp %SYSTEMROOT%/System32/sysprep/sysprep.exe /generalize /oobe /shutdown /quiet /unattend:C:/Windows/Sysnative/sysprep/Unattend.xml' 21* *2011-02-28 17:19:55|19148|30:30|image|utils.pm:run_ssh_command(5526)|run_ssh_command output:* *2011-02-28 17:19:55|19148|30:30|image|utils.pm:run_ssh_command(5540)|SSH command executed on vmwarewin7-base1-v1, returning (0, )* *2011-02-28 17:19:55|19148|30:30|image|Version_6.pm:run_sysprep(1622)|initiated Sysprep.exe, waiting for vmwarewin7-base1-v1 to become unresponsive* *2011-02-28 17:19:55|19148|30:30|image|Module.pm:code_loop_timeout(396)|waiting for vmwarewin7-base1-v1 to NOT respond to ping, maximum of 720 seconds* *2011-02-28 17:19:55|19148|30:30|image|Module.pm:code_loop_timeout(413)|attempt 1: waiting for vmwarewin7-base1-v1 to NOT respond to ping* *2011-02-28 17:19:55|19148|30:30|image|Module.pm:code_loop_timeout(409)|attempt 1: code returned false, seconds elapsed/remaining: 0/720, sleeping for 15 seconds* *2011-02-28 17:20:10|3111|vcld:main(166)|lastcheckin time updated for management node 1: 2011-02-28 17:20:10* *2011-02-28 17:20:10|19148|30:30|image|Module.pm:code_loop_timeout(413)|attempt 2: waiting for vmwarewin7-base1-v1 to NOT respond to ping* *2011-02-28 17:20:11|19148|30:30|image|Module.pm:code_loop_timeout(416)|waiting for vmwarewin7-base1-v1 to NOT respond to ping, code returned true* *|19148|30:30|image| WARNING * *|19148|30:30|image| 2011-02-28 17:20:11|19148|30:30|image|Provisioning.pm:wait_for_power_off(354)|power_status subroutine has not been implemented by the provisioning module: VCL::Module::Provisioning::esxthin* *|19148|30:30|image| ( 0) utils.pm, notify (line: 630)* *|19148|30:30|image| (-1) Provisioning.pm, wait_for_power_off (line: 354)* *|19148|30:30|image| (-2) Version_6.pm, run_sysprep (line: 1642)* *|19148|30:30|image| (-3) 7.pm, pre_capture (line: 171)* *|19148|30:30|image| (-4) esxthin.pm, capture (line: 1238)* *|19148|30:30|image| (-5) image.pm, process (line: 165)* *|19148|30:30|image| (-6) vcld, make_new_child (line: 595)* *2011-02-28 17:20:11|19148|30:30|image|Version_6.pm:run_sysprep(1645)|unable to determine power status of vmwarewin7-base1-v1 from provisioning module, sleeping 5 minutes to allow computer time to shutdown* *2011-02-28 17:20:40|3111|vcld:main(166)|lastcheckin time updated for management node 1: 2011-02-28 17:20:40* *2011-02-28
Re: VCL fails to grant OS access
This was a bug which was fixed in VCL 2.2. You can resolve this by editing Windows.pm: -Find sub firewall_enable_rdp -Add the following line to the end of this subroutine: return 1; -Andy On 2/23/2011 6:30 PM, Kelly Robinson wrote: We've had occurrences where some reservations will load, but the login screen on the vm is slow and turns black and becomes unusable. When parsing through the logs, there seems to be issues at the point of configuring the firewall to allow RDP. The messages first state the firewall was configured to allow RDP access from the user's ip address, but then states that the firewall could not be configured to grant RDP access. Then a failed to grant OS access on computer_name message is given, but the reservation continues to load and does not fail. Has anyone had any similar issues or know what the problem could be? A snippet from that portion of the log is given below: (note: the user's ipaddress has been X'ed out) +++ 2011-02-23 14:58:55|29239|1436:1429|reserved|vcld:make_new_child(581)|vcld environment variable set to 0 for this process 2011-02-23 14:58:55|29239|1436:1429|reserved|Module.pm:new(132)|constructor called, class=VCL::reserved 2011-02-23 14:58:55|29239|1436:1429|reserved|Module.pm:new(154)|VCL::reserved object created 2011-02-23 14:58:55|29239|1436:1429|reserved|State.pm:initialize(85)|obtained a database handle for this state process, stored as $ENV{dbh} 2011-02-23 14:58:55|29239|1436:1429|reserved|State.pm:check_image_os(820)|no corrections need to be made, not an imaging request, returning 1 2011-02-23 14:58:55|29239|1436:1429|reserved|DataStructure.pm:is_parent_reservation(854)|returning true: parent reservation ID for this request: 1429 2011-02-23 14:58:55|29239|1436:1429|reserved|utils.pm:rename_vcld_process(7520)|reservation count: 1 2011-02-23 14:58:55|29239|1436:1429|reserved|utils.pm:rename_vcld_process(7539)|PARENTIMAGE: 1 2011-02-23 14:58:55|29239|1436:1429|reserved|utils.pm:rename_vcld_process(7540)|SUBIMAGE: 0 2011-02-23 14:58:55|29239|1436:1429|reserved|utils.pm:rename_vcld_process(7558)|renamed process to 'vcld VCL::reserved 1436:1429 reserved' 2011-02-23 14:58:55|29239|1436:1429|reserved|DataStructure.pm:is_parent_reservation(854)|returning true: parent reservation ID for this request: 1429 2011-02-23 14:58:55|29239|1436:1429|reserved|DataStructure.pm:is_parent_reservation(854)|returning true: parent reservation ID for this request: 1429 2011-02-23 14:58:55|29239|1436:1429|reserved|State.pm:initialize(121)|attempting to load provisioning module: VCL::Module::Provisioning::esx 2011-02-23 14:58:55|29239|1436:1429|reserved|esx.pm:initialize(138)|esx vmware toolkit root path found: /usr/lib/vmware-viperl/apps 2011-02-23 14:58:55|29239|1436:1429|reserved|esx.pm:initialize(140)|vmware ESX module initialized 2011-02-23 14:58:55|29239|1436:1429|reserved|State.pm:initialize(127)|VCL::Module::Provisioning::esx module loaded 2011-02-23 14:58:55|29239|1436:1429|reserved|Module.pm:new(132)|constructor called, class=VCL::Module::Provisioning::esx 2011-02-23 14:58:55|29239|1436:1429|reserved|Module.pm:new(154)|VCL::Module::Provisioning::esx object created 2011-02-23 14:58:55|29239|1436:1429|reserved|esx.pm:initialize(138)|esx vmware toolkit root path found: /usr/lib/vmware-viperl/apps 2011-02-23 14:58:55|29239|1436:1429|reserved|esx.pm:initialize(140)|vmware ESX module initialized 2011-02-23 14:58:55|29239|1436:1429|reserved|State.pm:initialize(131)|VCL::Module::Provisioning::esx provisioner object created 2011-02-23 14:58:55|29239|1436:1429|reserved|State.pm:initialize(145)|attempting to load OS module: VCL::Module::OS::Windows::Version_5::XP 2011-02-23 14:58:55|29239|1436:1429|reserved|State.pm:initialize(151)|VCL::Module::OS::Windows::Version_5::XP module loaded 2011-02-23 14:58:55|29239|1436:1429|reserved|Module.pm:new(132)|constructor called, class=VCL::Module::OS::Windows::Version_5::XP 2011-02-23 14:58:55|29239|1436:1429|reserved|Module.pm:new(154)|VCL::Module::OS::Windows::Version_5::XP object created 2011-02-23 14:58:55|29239|1436:1429|reserved|State.pm:initialize(154)|VCL::Module::OS::Windows::Version_5::XP OS object created 2011-02-23 14:58:55|29239|1436:1429|reserved|State.pm:initialize(169)|returning 1 2011-02-23 14:58:55|29239|1436:1429|reserved|vcld:make_new_child(590)|VCL::reserved object created and initialized 2011-02-23 14:58:55|29239|1436:1429|reserved|reserved.pm:process(120)|updated log table, set loaded time to now for id:912 2011-02-23 14:58:55|29239|1436:1429|reserved|reserved.pm:process(132)|imagemeta user group defined 2011-02-23 14:58:55|29239|1436:1429|reserved|utils.pm:getusergroupmembers(3601)|no data returned for usergroupid returning empty lists 2011-02-23 14:58:55|29239|1436:1429|reserved|reserved.pm:process(137)|imagemeta user group membership count = 0 2011-02-23 14:58:55|29239|1436:1429|reserved|reserved.pm:process(157)|computer
Re: SDK can not connect to VMWare
It looks like the MAC addresses aren't configured for your VM computers in the VCL database. This is required. When VCL creates the VM it sets MAC address to the database value. I looked at the documentation on the following page and noticed some problems: https://cwiki.apache.org/confluence/display/VCL/Further+steps+if+using+only+VMWare VM computers cannot currently be added individually. You must use the add multiple computers option. I have updated this page. I would suggest adding multiple VMs as described on this page, being sure to populate the MAC addresses. You may also manually add MAC addresses to the existing VM computer entries in the database. The computer.eth0macaddress and computer.eth1macaddress values need to be set. -Andy On 2/16/2011 5:16 PM, Mauricio César Ramírez Torres wrote: Thank you, now I can advance from this point, but now I have another problem, when the image capture process attempts to restore the virtual machine have problems calling the MAC, you'll have some idea why this happens? 2011-02-15 18:13:17|29129|2:2|reload|utils.pm:insertloadlog(3933)|inserted computer=3, transfervm, copied vmwarelinux-LinCent5-v0 to LinCent 2011-02-15 18:13:17|29129|2:2|reload|VMware.pm:get_vm_ram(3307)|image ram setting is too low: 0 MB, 512 MB will be used 2011-02-15 18:13:17|29129|2:2|reload|VMware.pm:get_vm_os_configuration(3211)|retrieved default VM configuration for OS: linux-x86 |29129|2:2|reload| : { |29129|2:2|reload| : ethernet-virtualDev = vlance, |29129|2:2|reload| : guestOS = otherlinux, |29129|2:2|reload| : scsi-virtualDev = busLogic |29129|2:2|reload| : } |29129|2:2|reload| WARNING |29129|2:2|reload| 2011-02-15 18:13:17|29129|2:2|reload|DataStructure.pm:_automethod(764)|corresponding data has not been initialized for get_computer_eth0_mac_address: $self-request_data-{reservation}{2}{computer}{eth0macaddress} |29129|2:2|reload| ( 0) utils.pm, notify (line: 630) |29129|2:2|reload| (-1) DataStructure.pm, _automethod (line: 764) |29129|2:2|reload| (-2) Autoload.pm, __ANON__ (line: 80) |29129|2:2|reload| (-3) VMware.pm, prepare_vmx (line: 1171) |29129|2:2|reload| (-4) VMware.pm, load (line: 341) |29129|2:2|reload| (-5) new.pm, reload_image (line: 687) |29129|2:2|reload| (-6) new.pm, process (line: 282) |29129|2:2|reload| WARNING |29129|2:2|reload| 2011-02-15 18:13:17|29129|2:2|reload|VMware.pm:load(342)|failed to prepare vmx file for LinCent on VM host: vclesx.nextdata.com.mx |29129|2:2|reload| ( 0) utils.pm, notify (line: 630) |29129|2:2|reload| (-1) VMware.pm, load (line: 342) |29129|2:2|reload| (-2) new.pm, reload_image (line: 687) |29129|2:2|reload| (-3) new.pm, process (line: 282) |29129|2:2|reload| (-4) vcld, make_new_child (line: 595) |29129|2:2|reload| (-5) vcld, main (line: 342) |29129|2:2|reload| WARNING |29129|2:2|reload| 2011-02-15 18:13:17|29129|2:2|reload|new.pm:reload_image(692)|vmwarelinux-LinCent5-v0 failed to load on LinCent, returning |29129|2:2|reload| ( 0) utils.pm, notify (line: 630) |29129|2:2|reload| (-1) new.pm, reload_image (line: 692) |29129|2:2|reload| (-2) new.pm, process (line: 282) |29129|2:2|reload| (-3) vcld, make_new_child (line: 595) |29129|2:2|reload| (-4) vcld, main (line: 342) 2011-02-15 18:13:17|29129|2:2|reload|utils.pm:insertloadlog(3933)|inserted computer=3, loadimagefailed, vmwarelinux-LinCent5-v0 failed to load on LinCent |29129|2:2|reload| WARNING |29129|2:2|reload| 2011-02-15 18:13:17|29129|2:2|reload|new.pm:process(329)|failed to load LinCent with vmwarelinux-LinCent5-v0 |29129|2:2|reload| ( 0) utils.pm, notify (line: 630) |29129|2:2|reload| (-1) new.pm, process (line: 329) |29129|2:2|reload| (-2) vcld, make_new_child (line: 595) |29129|2:2|reload| (-3) vcld, main (line: 342) 2011-02-15 18:13:17|29129|2:2|reload|DataStructure.pm:get_computer_state_name(2227)|attempting to retrieve current state of computer LinCent from the database 2011-02-15 18:13:17|29129|2:2|reload|DataStructure.pm:get_computer_state_name(2258)|retrieved current state of computer LinCent from the database: reloading 2011-02-15 18:13:17|29129|2:2|reload|DataStructure.pm:_automethod(786)|data structure updated: $self-request_data-{reservation}{2}{computer}{state}{name} |29129|2:2|reload| computer_state_name = reloading 2011-02-15 18:13:17|29129|2:2|reload|utils.pm:mail(1247)|SUCCESS -- Sending mail To: mrami...@cft.com.mx, PROBLEM -- State.pm |29129|2:2|reload| CRITICAL |29129|2:2|reload| 2011-02-15 18:13:17|29129|2:2|reload|State.pm:reservation_failed(287)|reservation failed on LinCent: process failed after trying to load or make available |29129|2:2|reload| ( 0) utils.pm, notify (line: 630) |29129|2:2|reload| (-1) State.pm, reservation_failed (line: 287) |29129|2:2|reload| (-2) new.pm, process (line: 332) |29129|2:2|reload| (-3) vcld, make_new_child (line: 595) |29129|2:2|reload| (-4) vcld, main (line: 342) On 16/02/11 15:21, Andy Kurth wrote: The image capture problem is occurring when
Re: Errors with network cards
Have you been able to resolve this? It seems like you were able to get the image capture to complete based on other messages to this list. If you're still having this problem, please send the ipconfig /all output from the computer you're attempting to capture. -Andy On 2/14/2011 2:09 PM, Mauricio César Ramírez Torres wrote: I'm out of ideas again, I could solve my problem of the path, but now when I start to create the image I marked some errors in the NIC, but I do not understand what the problem, the first error indicates that there is no NIC using the IP I'm giving, but if it exists, though it does by DHCP, should be fixed?? second thing that strikes me is that it marks error because the second NIC is not enabled, in theory this is what will the public IP, but right now I do not want to enable, there is a problem if I dont have the 2 cards enabled??; the 2 must have a fixed IP?? or may be dynamic IP's??. Regards and as always thank you very much. ECENT LOG ENTRIES FOR THIS PROCESS: 2011-02-14 12:32:05|19426|1:1|image|State.pm:initialize(128)|VCL::Module::Provisioning::VMware::VMware provisioner object created 2011-02-14 12:32:05|19426|1:1|image|State.pm:initialize(142)|attempting to load OS module: VCL::Module::OS::Windows::Version_5::XP 2011-02-14 12:32:05|19426|1:1|image|State.pm:initialize(148)|VCL::Module::OS::Windows::Version_5::XP module loaded 2011-02-14 12:32:05|19426|1:1|image|Module.pm:new(134)|constructor called, class=VCL::Module::OS::Windows::Version_5::XP 2011-02-14 12:32:05|19426|1:1|image|Module.pm:new(156)|VCL::Module::OS::Windows::Version_5::XP object created 2011-02-14 12:32:05|19426|1:1|image|State.pm:initialize(151)|VCL::Module::OS::Windows::Version_5::XP OS object created 2011-02-14 12:32:05|19426|1:1|image|State.pm:initialize(166)|returning 1 2011-02-14 12:32:05|19426|1:1|image|vcld:make_new_child(592)|VCL::image object created and initialized 2011-02-14 12:32:06|19426|1:1|image|utils.pm:mail(1247)|SUCCESS -- Sending mail To: mrami...@cft.com.mx, VCL IMAGE Creation Started: vmwarewinxp-winSEV5-v0 2011-02-14 12:32:08|19426|1:1|image|vSphere_SDK.pm:get_file_info(1937)|searching for matching file paths: base directory path: '[nfsesx] vmwarewinxp-winSEV5-v0', search pattern: 'vmwarewinxp-winSEV5-v0.vmdk' 2011-02-14 12:32:08|19426|1:1|image|vSphere_SDK.pm:get_file_info(1948)|base directory does not exist: '[nfsesx] vmwarewinxp-winSEV5-v0' 2011-02-14 12:32:08|19426|1:1|image|vSphere_SDK.pm:find_files(1705)|matching file count: 0 2011-02-14 12:32:08|19426|1:1|image|vSphere_SDK.pm:file_exists(1577)|file does not exist: [nfsesx] vmwarewinxp-winSEV5-v0/vmwarewinxp-winSEV5-v0.vmdk 2011-02-14 12:32:08|19426|1:1|image|VMware.pm:does_image_exist(2940)|image does not exist in the non-persistent directory on the VM host, checking the image repository 2011-02-14 12:32:08|19426|1:1|image|VMware.pm:get_repository_vmdk_base_directory_path(2650)|retrieved repository path from the VM profile: /mnt/nfsesx 2011-02-14 12:32:08|19426|1:1|image|utils.pm:run_command(9082)|executed command: find /mnt/nfsesx/vmwarewinxp-winSEV5-v0 -iname vmwarewinxp-winSEV5-v0.vmdk, pid: 19438, exit status: 0, output: 2011-02-14 12:32:08|19426|1:1|image|VMware.pm:does_image_exist(2967)|image does not exist in image repository: /mnt/nfsesx/vmwarewinxp-winSEV5-v0/vmwarewinxp-winSEV5-v0.vmdk 2011-02-14 12:32:08|19426|1:1|image|image.pm:process(148)|image vmwarewinxp-winSEV5-v0 does not exist in the repository 2011-02-14 12:32:08|19426|1:1|image|DataStructure.pm:_automethod(786)|data structure updated: $self-request_data-{reservation}{1}{image}{lastupdate} |19426|1:1|image| image_lastupdate = 2011-02-14 12:32:08 2011-02-14 12:32:08|19426|1:1|image|DataStructure.pm:_automethod(786)|data structure updated: $self-request_data-{reservation}{1}{imagerevision}{datecreated} |19426|1:1|image| imagerevision_date_created = 2011-02-14 12:32:08 2011-02-14 12:32:08|19426|1:1|image|image.pm:process(164)|calling provisioning module's capture() subroutine 2011-02-14 12:32:08|19426|1:1|image|utils.pm:run_command(9070)|$? is set to -1, setting exit status to 0, Perl bug likely encountered 2011-02-14 12:32:08|19426|1:1|image|utils.pm:nmap_port(2699)|port 22 is open on winSEV 2011-02-14 12:32:08|19426|1:1|image|utils.pm:nmap_port(2707)|port 24 is closed on winSEV 2011-02-14 12:32:09|19426|1:1|image|OS.pm:is_ssh_responding(430)|winSEV is responding to SSH, port 22: open, port 24: closed 2011-02-14 12:32:09|19426|1:1|image|utils.pm:nmap_port(2699)|port 22 is open on winSEV 2011-02-14 12:32:09|19426|1:1|image|utils.pm:nmap_port(2707)|port 24 is closed on winSEV 2011-02-14 12:32:10|19426|1:1|image|OS.pm:is_ssh_responding(430)|winSEV is responding to SSH, port 22: open, port 24: closed 2011-02-14 12:32:11|19426|1:1|image|Windows.pm:is_64_bit(7709)|32-bit Windows OS detected, PROCESSOR_IDENTIFIER: x86 Family 6 Model 44 Stepping 2, GenuineIntel 2011-02-14 12:32:11|19426|1:1|image|Windows.pm:get_system32_path(7753)|32-bit Windows OS installed on
Re: SDK can not connect to VMWare
computerloadlog entries matching loadstate = begin 2011-02-08 10:48:14|7235|6:6|image|utils.pm:delete_computerloadlog_reservation(6876)|deleted rows from computerloadlog for reservation id=6 2011-02-08 10:48:14|7235|6:6|image|State.pm:DESTROY(909)|removed computerloadlog rows with loadstate=begin for reservation 2011-02-08 10:48:14|7235|6:6|image|State.pm:DESTROY(921)|number of database handles state process created: 1 2011-02-08 10:48:14|7235|6:6|image|State.pm:DESTROY(930)|process has a database handle stored in $ENV{dbh}, attempting disconnect 2011-02-08 10:48:14|7235|6:6|image|State.pm:DESTROY(932)|$ENV{dbh}: database disconnect successful 2011-02-08 10:48:14|7235|6:6|image|State.pm:DESTROY(946)|VCL::image process 7235 exiting 2011-02-08 10:48:14|4299|vcld:main(166)|lastcheckin time updated for management node 1: 2011-02-08 10:48:14 2011-02-08 10:48:14|4299|vcld:REAPER(745)|VCL process exited for reservation 6, PID: 7235, signal: CHLD 2011-02-08 10:48:14|4299|vcld:main(166)|lastcheckin time updated for management node 1: 2011-02-08 10:48:14 2011-02-08 10:48:19|4299|vcld:main(166)|lastcheckin time updated for management node 1: 2011-02-08 10:48:19 You have new mail in /var/spool/mail/root [root@vcl bin]# On 06/02/11 10:22, Andy Kurth wrote: This sounds like it could be a caching problem or something in the database isn't correct. First try clearing the cache by browsing to: https://your VCL website/index.php?mode=clearCache Try to make another reservation. If it still displays the error, please run the following commands on your database and reply with the output: SELECT * FROM image; SELECT * FROM imagerevision; SELECT * FROM resource; SELECT * FROM resourcegroup; SELECT * FROM resourcegroupmembers; Regards, Andy Mauricio César Ramírez Torres wrote: 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
Re: SDK can not connect to VMWare
] = 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 ( ) ) ) ) --- *From:* Andy Kurth [mailto:andy_ku...@ncsu.edu] *To:* vcl-user@incubator.apache.org *Sent:* Fri, 04 Feb 2011 16:17:53 -0600 *Subject:* 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
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: Remove Users from Administrators Group
Correct. Users are always in the Users and Remote Desktop Users groups. Users are by default also added to the Administrators group unless administrative access is disabled. VCL does not do anything regarding the Power Users group. There hasn't been a need AFAIK. More elaborate Windows group management could be added. Please discuss if this would be useful. -Andy On 1/4/2011 10:00 AM, Kelly Robinson wrote: So this doesn't allow the user to operate as a power user? If the user is not selected to be part of the administrators group, are they only part of the RDP group? Kelly Andy Kurthandy_ku...@ncsu.edu 12/16/2010 3:01:21 PM This is controlled via the setting: Manage Images - Edit Image Profiles - Edit - Users have administrative access: Yes/No imagemeta_rootaccess refers to the rootaccess column in the imagemeta table. This only controls whether or not the users will be added to the Administrators group. -Andy On 12/16/2010 2:14 PM, Hartl, Gerhard L. wrote: What is the best method to enter users into the power users or users group instead of the Administrators Group? I found the section of code where: if (defined($imagemeta_rootaccess) $imagemeta_rootaccess eq '0') { notify($ERRORS{'DEBUG'}, 0, user will NOT be added to the Administrators group); Where is imagemeta_rootaccess defined? Thanks, Gerhard
Re: Remove Users from Administrators Group
This is controlled via the setting: Manage Images - Edit Image Profiles - Edit - Users have administrative access: Yes/No imagemeta_rootaccess refers to the rootaccess column in the imagemeta table. This only controls whether or not the users will be added to the Administrators group. -Andy On 12/16/2010 2:14 PM, Hartl, Gerhard L. wrote: What is the best method to enter users into the power users or users group instead of the Administrators Group? I found the section of code where: if (defined($imagemeta_rootaccess) $imagemeta_rootaccess eq '0') { notify($ERRORS{'DEBUG'}, 0, user will NOT be added to the Administrators group); Where is imagemeta_rootaccess defined? Thanks, Gerhard
Re: Reservation always in Pending-state
| ++--++-+-+-+-+-++-+--+-+--++-+---+--+--+-++---++ | 1 | 192.168.1.40 | vcl.ndi.com.mx | 1 | 2 | 2010-11-24 10:12:07 | 5 | /install | 0 | NULL | NULL | NULL | /etc/vcl/vcl.key | 8 | 22 | dynamicDHCP | NULL | NULL | NULL | mrami...@nextdata.com.mx,gcarba...@nextdata.com.mx | NULL | NULL | ++--++-+-+-+-+-++-+--+-+--++-+---+--+--+-++---++ 1 row in set (0.00 sec) mysql On 24/11/10 08:02, Andy Kurth wrote: It looks like something isn't correct in the database. The reservation isn't being processed at all because vcld is unable to gather all of the information it needs from the database. The only way to troubleshoot this is by looking at the tables. Please include the output from the following commands run from your database server: select * from request; select * from reservation; select * from computer; select * from vmhost; select * from image; select * from imagerevision; select * from managementnode; Regards, Andy On 11/19/2010 12:59 PM, Mauricio Cesar Ramirez Torres wrote: Good day, annex the last lines of vcld.log, verify that the username and password access to mysql, but marks a warning. I appreciate your comments. |6232|1:2|image| 2010-11-19 11:56:42|6232|1:2|image|utils.pm:get_request_info(4364)|request id 1 information could not be retrieved |6232|1:2|image| ( 0) utils.pm, notify (line: 630) |6232|1:2|image| (-1) utils.pm, get_request_info (line: 4364) |6232|1:2|image| (-2) vcld, main (line: 281) |6232|1:2|image| WARNING |6232|1:2|image| 2010-11-19 11:56:42|6232|1:2|image|vcld:main(294)|could not retrieve request information from database |6232|1:2|image| ( 0) utils.pm, notify (line: 630) |6232|1:2|image| (-1) vcld, main (line: 294) 2010-11-19 11:56:47|6232|vcld:main(166)|lastcheckin time updated for management node 1: 2010-11-19 11:56:47 2010-11-19 11:56:47|6232|1:2|image|utils.pm:reservation_being_processed(9010)|computerloadlog 'begin' entry does NOT exist for reservation 2 2010-11-19 11:56:47|6232|1:2|image|utils.pm:run_command(9082)|executed command: pgrep -fl 'vcld [0-9]+:2 ', pid: 26958, exit status: 1, output: 2010-11-19 11:56:47|6232|1:2|image|utils.pm:is_management_node_process_running(9259)|process is NOT running, identifier: 'vcld [0-9]+:2 ' 2010-11-19 11:56:47|6232|1:2|image|utils.pm:reservation_being_processed(9031)|reservation is NOT currently being processed 2010-11-19 11:56:47|6232|1:2|image|vcld:main(277)|reservation 2 is NOT already being processed |6232|1:2|image| WARNING |6232|1:2|image| 2010-11-19 11:56:47|6232|1:2|image|utils.pm:get_request_info(4364)|request id 1 information could not be retrieved |6232|1:2|image| ( 0) utils.pm, notify (line: 630) |6232|1:2|image| (-1) utils.pm, get_request_info (line: 4364) |6232|1:2|image| (-2) vcld, main (line: 281) |6232|1:2|image| WARNING |6232|1:2|image| 2010-11-19 11:56:47|6232|1:2|image|vcld:main(294)|could not retrieve request information from database |6232|1:2|image| ( 0) utils.pm, notify (line: 630) |6232|1:2|image| (-1) vcld, main (line: 294) On 18/11/10 18:13, Andy Kurth wrote: Hello, Please include the vcld.log output. Regards, Andy Mauricio Cesar Ramirez Torres wrote: Hi, I'm working in a RHEL 5.5 VCL 2 VMware Server 2 Local Storage, all this is installed in the same server (Dell Power Edge R510) 2 NIC's, all was installed with the manual instructions, seemingly all is fine, but when I try to make a reservation status remains pending until the period ends the reservation and in the statistics shows that the reservation was never used. When I click on the pending state shows the detail of reservation status and the time consumed by each task and the last item shown is ready to connect and do not know what to do to determine what is happening. In an earlier attempt had failed received emails when creating the reservation, but now I don't receive it and I think the settings are the same. Can someone help me identify my error. Thanks in advance. Mauricio. - Antes de imprimir este correo electrónico, piensa bien si es imprescindible hacerlo. El Medio Ambiente es cosa de todos. - Antes de
Re: unable to retrieve management node information from database -- please help
to database, (1045) Access denied for user 'vcluser'@'bester.lsit.ucsb.edu' (using password: YES) |24997| ( 0) utils.pm, notify (line: 737) |24997| (-1) utils.pm, getnewdbh (line: 3452) |24997| (-2) utils.pm, database_select (line: 4824) |24997| (-3) utils.pm, get_management_node_info (line: 6733) |24997| (-4) vcld, main (line: 126) |24997| WARNING |24997| 2010-08-11 09:29:31|24997|utils.pm:database_select(4825)|unable to obtain database handle, Access denied for user 'vcluser'@'bester.lsit.ucsb.edu' (using password: YES) |24997| ( 0) utils.pm, notify (line: 737) |24997| (-1) utils.pm, database_select (line: 4825) |24997| (-2) utils.pm, get_management_node_info (line: 6733) |24997| (-3) vcld, main (line: 126) |24997| WARNING |24997| 2010-08-11 09:29:31|24997|utils.pm:get_management_node_info(6737)|zero rows were returned from database select, management node identifier may be invalid: 'bester.lsit.ucsb.edu' |24997| SELECT |24997| managementnode.*, |24997| resource.id AS resource_id, |24997| predictivemodule.name AS predictive_name, |24997| predictivemodule.prettyname AS predictive_prettyname, |24997| predictivemodule.description AS predictive_description, |24997| predictivemodule.perlpackage AS predictive_perlpackage, |24997| state.name AS statename |24997| FROM |24997| managementnode, |24997| module predictivemodule, |24997| resource, |24997| resourcetype, |24997| state |24997| WHERE |24997| managementnode.predictivemoduleid = predictivemodule.id |24997| AND managementnode.stateid = state.id |24997| AND resource.resourcetypeid = resourcetype.id |24997| AND resource.subid = managementnode.id |24997| AND resourcetype.name = 'managementnode' |24997| AND managementnode.hostname like 'bester.lsit.ucsb.edu%' |24997| ( 0) utils.pm, notify (line: 737) |24997| (-1) utils.pm, get_management_node_info (line: 6737) |24997| (-2) vcld, main (line: 126) -- Andy Kurth Virtual Computing Lab Office of Information Technology North Carolina State University andy_ku...@ncsu.edu 919.513.4090
Re: sshd is NOT active on vmguest-41 yet
From the log output you included, it looks like the SSH commands are only working from the management node to the VM host vclesx02. The management node sends commands to both the VM host computer and the VM. It doesn't look like SSH is working to the VM vmguest-41. I would log in to vmguest-41 via the VMware console in order to troubleshoot. Check the following: -Did the VM get a private IP address via DHCP? -Is the SSHD service running? -What error do you get if you run a command manually from the management node to the VM such as: 'ssh -i /etc/vcl/vcl.key vmguest-41 ls' If you get SSH working on the private interface, I would double-check that the external sshd service is working correctly since you're using Ubuntu. Check if you have the problem discussed in this thread: http://markmail.org/thread/ychezllfymvruioc Hope this helps, Andy Duhon, Gregory D wrote: I am working with an Ubuntu image and cannot resolve this error. Looking at the vcld.log file, I find ssh commands are working when accessing the vmguest-41 computer. Below is a snippet of the log. There has to be something real simple I have forgot to check. 2010-05-18 23:38:36|28128|2906:2900|reload|utils.pm:run_ssh_command(6180)|executing SSH command on vclesx02: |28128|2906:2900|reload| /usr/bin/ssh -i /etc/vcl/vcl.key -l root -p 22 -x vclesx02 'vmware-cmd /virtualmachines/Ubuntu-v0vmguest-41/Ubuntu-v 0vmguest-41.vmx getstate' 21 2010-05-18 23:38:37|28128|2906:2900|reload|utils.pm:run_ssh_command(6262)|run_ssh_command output: |28128|2906:2900|reload| getstate() = on 2010-05-18 23:38:37|28128|2906:2900|reload|utils.pm:run_ssh_command(6276)|SSH command executed on vclesx02, returning (0, getstate() = on) 2010-05-18 23:38:37|28128|2906:2900|reload|vmware.pm:load(852)|rechecking state of vm vmguest-41 /virtualmachines/Ubuntu-v0vmguest-41/Ubuntu-v 0vmguest-41.vmx 2010-05-18 23:38:37|28128|2906:2900|reload|vmware.pm:load(857)|vm vmguest-41 reports on 2010-05-18 23:38:37|28128|2906:2900|reload|vmware.pm:load(868)|sshd is NOT active on vmguest-41 yet Gregory Duhon Infrastructure Architect Information Technology California State University, Northridge 818-677-4114 gregory.du...@csun.edu
Re: VCL Returns Private IP for Reservations
Hi Clifton, Can you please include the vcld.log file output from a reservation where the addresses are incorrect. Regards, Andy Clifton B Wood wrote: Hello, everyone. I've recently updated to the latest version of VCL that is in SVN, and now all of my reservations are returning the private IP instead of the public IP. Is there an easy way to fix this so that the provisioning engine returns the right IP when making reservations or do I have to manually reorder the network connections in all of my images? Thanks for any assistance you all can give. - Cliff Wood Morgan State University