Re: libvirt/KVM

2012-06-21 Thread Andy Kurth
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  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 > (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 > > > (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 sel

Re: libvirt/KVM

2012-06-20 Thread Andy Kurth
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  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 > (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 > > > (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
>> > 

Re: libvirt/KVM

2012-06-20 Thread Andy Kurth
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  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 > (mailto:dcheb...@gmu.edu)> wrote:
>> >
>> > Andy
>> >
>> > I did 'svn up' and ran install_perl_libs.pl (http://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 (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 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 > > > (mailto:dcheb...@gmu.edu)> wrote:

Re: libvirt/KVM

2012-06-20 Thread Andy Kurth
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  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 > (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

2012-06-20 Thread Andy Kurth
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 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  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: [DISCUSS] Graduation - Prepare Board Resolution

2012-05-31 Thread Andy Kurth
On Thu, May 31, 2012 at 11:03 AM, Aaron Coburn  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


Re: [DISCUSS] Graduation - Prepare Board Resolution

2012-05-31 Thread Andy Kurth
>> On Fri, May 18, 2012 at 10:06 AM, Andy Kurth  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: Windows 7 Capture Issue

2012-05-21 Thread Andy Kurth
There are still some lingering networking issues with the Windows 7
code.  I made some changes to Version_6.pm a couple weeks ago which
will hopefully help.  Be sure to update all of the management node
files.

I'm not sure what you mean by public network mode.  Is the management
node configured to use DHCP for public addresses or assign static?
(Setting for Management Nodes > Edit Management Node Information >
Public NIC configuration method)

It would be helpful to include all of the vcld.log output for one of
the failed reservations, along with the output from "ipconfig /all"
and "route print" after the load fails and before anything else is
done to it.

-Andy



On Sat, May 19, 2012 at 4:03 PM, n.johnson10
 wrote:
> Andy,
>
> I downloaded several of the updated management node files from the SVN and 
> everything successfully captured.
>
> I have another problem..  when vcld is doing its setup routine on a Windows 7 
> VM it will get to the point of managing the network interfaces and it will 
> issue commands causing the network interfaces to go into "Public Network" 
> mode and traffic will not reach the VM unless I manually do a /release 
> /renew.      I did some searching and found a somewhat similar issue caused 
> by DHCP and the management node being on a different subnet..
>
> No fix was provided..  is there a way to include a specific route to the 
> management node belonging to a different subnet during setup?
>
> "n.johnson10"  wrote:
>
>
> Thanks for the reply, Andy.
>
> I just noticed the fix for this was submitted 12 days ago (a couple of days 
> after I had grabbed a SVN copy..) I will copy the the fixed subroutine into 
> my OS.pm file tomorrow and see if I am able to capture successfully.
> 
> From: Andy Kurth [andy_ku...@ncsu.edu]
> Sent: Tuesday, May 15, 2012 7:10 AM
> To: vcl-user@incubator.apache.org
> Subject: 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
>  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
>&

Re: Local and NFS VM Profiles

2012-05-18 Thread Andy Kurth
> 2012-05-18
> 12:22:33|14925|280:328|reload|DataStructure.pm:get_computer_private_ip_addr
> ess(1645)|returning IP address from /etc/hosts file: 10.0.0.156
> 2012-05-18 12:22:33|14925|280:328|reload|utils.pm:getnewdbh(2703)|unable
> to use database handle stored in $ENV{dbh}
> 2012-05-18 12:22:34|14925|280:328|reload|utils.pm:getnewdbh(2760)|database
> handle stored in $ENV{dbh}
> 2012-05-18
> 12:22:34|14925|280:328|reload|utils.pm:is_inblockrequest(6163)|zero rows
> were returned from database select
> 2012-05-18
> 12:22:34|14925|280:328|reload|DataStructure.pm:get_image_affiliation_name(2
> 035)|image owner id: 1
> 2012-05-18 12:22:34|14925|280:328|reload|utils.pm:getnewdbh(2709)|database
> requested (information_schema) does not match handle stored in $ENV{dbh}
> (vcl:vcldb01.fiu.edu)
> 2012-05-18 12:22:34|14925|280:328|reload|utils.pm:getnewdbh(2760)|database
> handle stored in $ENV{dbh}
> 2012-05-18
> 12:22:34|14925|280:328|reload|DataStructure.pm:retrieve_user_data(1352)|att
> empting to retrieve and store data for user: user.id = '1'
> 2012-05-18 12:22:34|14925|280:328|reload|utils.pm:getnewdbh(2709)|database
> requested (vcl) does not match handle stored in $ENV{dbh}
> (information_schema:vcldb01.fiu.edu)
> 2012-05-18 12:22:34|14925|280:328|reload|utils.pm:getnewdbh(2760)|database
> handle stored in $ENV{dbh}
> 2012-05-18
> 12:22:34|14925|280:328|reload|DataStructure.pm:retrieve_user_data(1415)|dat
> a has been retrieved for user: admin (id: 1)
>
>
>
>
> On 5/18/12 1:00 PM, "Andy Kurth"  wrote:
>
>>Need some more information.  Did you just change the settings in your
>>existing VM profile or create a new profile?  You should have 2
>>different VM profiles.
>>How is the repository path value currently configured in the VM
>>profiles?  Is this pointing to a directory on the management node?
>>Also, would it be possible to export this location via NFS from the
>>management node?
>>
>>-Andy
>>
>>On Fri, May 18, 2012 at 12:31 PM, Evelio Quiros  wrote:
>>> Hello,
>>>
>>> I have several VM servers using local storage. They are in use with
>>>several
>>> images stored on the management node. I want to add a few more VM
>>>servers
>>> with NFS storage. After adding them and setting the VM profile to
>>>Network
>>> storage, I cannot seem to reload my existing images from the management
>>>node
>>> to the server with NFS. I know that NFS VM profile doesn't store the
>>>images
>>> on the management node, but doesn't it try to pull the image from the
>>> management node if it does not exist in NFS ?
>>>
>>> Thanks,
>>> Al Quiros
>>>
>


Re: Local and NFS VM Profiles

2012-05-18 Thread Andy Kurth
Need some more information.  Did you just change the settings in your
existing VM profile or create a new profile?  You should have 2
different VM profiles.
How is the repository path value currently configured in the VM
profiles?  Is this pointing to a directory on the management node?
Also, would it be possible to export this location via NFS from the
management node?

-Andy

On Fri, May 18, 2012 at 12:31 PM, Evelio Quiros  wrote:
> Hello,
>
> I have several VM servers using local storage. They are in use with several
> images stored on the management node. I want to add a few more VM servers
> with NFS storage. After adding them and setting the VM profile to Network
> storage, I cannot seem to reload my existing images from the management node
> to the server with NFS. I know that NFS VM profile doesn't store the images
> on the management node, but doesn't it try to pull the image from the
> management node if it does not exist in NFS ?
>
> Thanks,
> Al Quiros
>


Re: Update vmware-tools on many base images ?

2012-05-18 Thread Andy Kurth
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  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  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: Update vmware-tools on many base images ?

2012-05-18 Thread Andy Kurth
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  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
>


[DISCUSS] Graduation - Prepare Board Resolution

2012-05-18 Thread Andy Kurth
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


[RESULT][VOTE] Apache VCL Ready to Graduate

2012-05-15 Thread Andy Kurth
The vote to determine if the Apache VCL community believes the project
is ready to graduate from the incubator to a top level project has
passed with 35 +1 votes, and no 0 or -1 votes.  Thank you everyone for
this very encouraging result!  The next step in the process is to
prepare a charter.  This will be discussed in a separate thread.

The following votes were cast (mentors are marked with an asterisk):
+1 (35):
John Bass
Charles Brant
Larry Burton
Alan Cabrera (*)
Dmitri Chebotarov
Anu Chirinos
Aaron Coburn
David Creech
Mark Gardner
Donna Grant
Emir Imamagic
Karuna Joshi
Phani Kiran
Andy Kurth
Alisha Malloy
Cameron Mann
Kevan Miller (*)
Tony Miller
Ibrahim Momoh
Jim O'Dell
Young Oh
Alex Patterson
Aaron Peeler
Evelio Quiros
Ivan Rako
Arbin Sanders
Henry Schaffer
Cameron Seay
Mani Shafa'atDoost
Josh Thompson
Steve Thorpe
Everett Toews
Art Vandenberg
Mike Waldron
Xianqing Yu

Thank You,
Andy Kurth


On Thu, May 10, 2012 at 11:01 AM, Andy Kurth  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: Windows 7 Capture Issue

2012-05-15 Thread Andy Kurth
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
 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' 2>&1
> 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
> StrictHostKey

Re: VCL 2.3

2012-05-10 Thread Andy Kurth
ecified: 56, DataStructure object will contain image 
>> > > information for the production imagerevision of this image
>> > > 2012-05-01 
>> > > 16:54:25|16065|433:425|reload|DataStructure.pm:_initialize(671)|retrieved
>> > >  data for imagerevision ID: 71
>> > > 2012-05-01 
>> > > 16:54:25|16065|433:425|reload|DataStructure.pm:_initialize(687)|retrieved
>> > >  data for image ID: 56
>> > > 2012-05-01 
>> > > 16:54:25|16065|433:425|reload|VMware.pm:get_vmhost_datastructure(1392)|created
>> > >  DataStructure object for VM host: VMHOST1
>> > > 2012-05-01 
>> > > 16:54:25|16065|433:425|reload|VMware.pm:get_vmhost_api_object(1495)|attempting
>> > >  to load VMware control module: 
>> > > VCL::Module::Provisioning::VMware::vmware_cmd
>> > > 2012-05-01 
>> > > 16:54:25|16065|433:425|reload|VMware.pm:get_vmhost_api_object(1501)|loaded
>> > >  VMware control module: VCL::Module::Provisioning::VMware::vmware_cmd
>> > > 2012-05-01 
>> > > 16:54:25|16065|433:425|reload|Module.pm:new(200)|VCL::Module::Provisioning::VMware::vmware_cmd
>> > >  object created for computer sandbox-vcl-4, address: 19882d70
>> > > 2012-05-01 16:54:25|16065|433:425|reload|OS.pm:(eval)(1944)|created 
>> > > Net::SSH::Expect object to control VMHOST1
>> > > |16065|433:425|reload|  WARNING 
>> > > |16065|433:425|reload| 2012-05-01 
>> > > 16:54:28|16065|433:425|reload|OS.pm:(eval)(1973)|unable to connect to 
>> > > VMHOST1, SSH is requesting a password but password authentication is not 
>> > > implemented, password is not configured, output:
>> > > |16065|433:425|reload| Password:
>> > > |16065|433:425|reload| ( 0) OS.pm, (eval) (line: 1973)
>> > > |16065|433:425|reload| (-1) OS.pm, execute_new (line: 1933)
>> > > |16065|433:425|reload| (-2) OS.pm, execute (line: 1804)
>> > > |16065|433:425|reload| (-3) vmware_cmd.pm, initialize (line: 101)
>> > > |16065|433:425|reload| (-4) Module.pm, new (line: 207)
>> > > |16065|433:425|reload| (-5) VMware.pm, (eval) (line: 1505)
>> > > |16065|433:425|reload|  WARNING 
>> > > |16065|433:425|reload| 2012-05-01 
>> > > 16:54:28|16065|433:425|reload|vmware_cmd.pm:initialize(103)|failed to 
>> > > run SSH command to determine if vmware-cmd is available on the VM host
>> > > |16065|433:425|reload| ( 0) vmware_cmd.pm, initialize (line: 103)
>> > > |16065|433:425|reload| (-1) Module.pm, new (line: 207)
>> > > |16065|433:425|reload| (-2) VMware.pm, (eval) (line: 1505)
>> > > |16065|433:425|reload| (-3) VMware.pm, get_vmhost_api_object (line: 1505)
>> > > |16065|433:425|reload| (-4) VMware.pm, initialize (line: 312)
>> > > |16065|433:425|reload| (-5) Module.pm, new (line: 207)
>> > > 2012-05-01 
>> > > 16:54:28|16065|433:425|reload|VMware.pm:get_vmhost_api_object(1515)|API 
>> > > object could not be created: 
>> > > VCL::Module::Provisioning::VMware::vmware_cmd
>> > > |16065|433:425|reload|  WARNING 
>> > > |16065|433:425|reload| 2012-05-01 
>> > > 16:54:28|16065|433:425|reload|VMware.pm:initialize(319)|failed to create 
>> > > an object to control VM host: VMHOST1
>> > > |16065|433:425|reload| ( 0) VMware.pm, initialize (line: 319)
>> > > |16065|433:425|reload| (-1) Module.pm, new (line: 207)
>> > > |16065|433:425|reload| (-2) Module.pm, create_provisioning_object (line: 
>> > > 521)
>> > > |16065|433:425|reload| (-3) State.pm, initialize (line: 136)
>> > > |16065|433:425|reload| (-4) Module.pm, new (line: 207)
>> > > |16065|433:425|reload| (-5) vcld, make_new_child (line: 568)
>> > > |16065|433:425|reload|  WARNING 
>> > > |16065|433:425|reload| 2012-05-01 
>> > > 16:54:28|16065|433:425|reload|Module.pm:create_provisioning_object(529)|provisioning
>> > >  object could not be created, returning 0
>> > > |16065|433:425|reload| ( 0) Module.pm, create_provisioning_object (line: 
>> > > 529)
>> > > |16065|433:425|reload| (-1) State.pm, initialize (line: 136)
>> > > |16065|433:425|reload| (-2) Module.pm, new (line: 207)
>> > > |16065|433:425|reload| (-3) vcld, make_new_child (line: 568)
>> > > |16065|433:425|reload| (-4) vcld, main (line: 350)
>> > > |16065|433:425|reload|  WARNING 
>> > > |16065|433:42

Re: [VOTE] Apache VCL Ready to Graduate

2012-05-10 Thread Andy Kurth
+1

-Andy

On Thu, May 10, 2012 at 11:01 AM, Andy Kurth  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


[VOTE] Apache VCL Ready to Graduate

2012-05-10 Thread Andy Kurth
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: Other Uses for VCL

2012-05-10 Thread Andy Kurth
NCSU is seeing increasing interest in using VCL for day-to-day operational
IT tasks.  We are currently investigating the feasibility of using VCL to
manage some of the university's ERP infrastructure.  If things pan out, I
envision a future version of Apache VCL to include some seriously cool
configuration management features -- possibly some integration with Puppet,
Chef, etc.

The current version (2.2.1) and the upcoming 2.3 already include
functionality beyond HPC and VDI applications.  One example... in the past
year, NCSU has used VCL to migrate the data in our legacy campus-wide
Groupwise email system to Google.  We were supplied with a utility to
migrate accounts and data from Groupwise to Google.  Running this
utility to migrate all of the data on a single computer or even a small
farm of servers would have taken several months if not years.  Turns out
the main limiting factor was a throttle imposed by Google per IP address
for the computers doing the migration.  Using VCL, we created an image
containing the utility and were able to easily load it on as many VMs as we
needed.  We loaded up approximately 60 VMs to perform the migration, let it
run, and completed the migration in a fraction of the time it would have
taken otherwise.  Since we usually run the most current code available in
production, we used the new server request feature in 2.3 to make the
reservations though normal reservations would have also worked.

Another project involves using Elluminate Live software (recently bought
out by blackboard).  The software has a manager node and 1 or more server
nodes.  We created a VCL image for the manager and one for the server.  The
manager is loaded as a very long-term reservation.  I wrote a daemon in
Perl which runs on the manager.  It checks the number of upcoming sessions
that need to be hosted by the servers and uses the VCL XML-RPC API to
dynamically load additional servers as needed.  It also ends server
reservations when demand is reduced.

Hope this helps,
Andy

On Wed, May 9, 2012 at 8:19 PM, Sanders, Arbin D  wrote:

> All,
>
> ** **
>
> I am apologize in advance for posting to both groups but I think each one
> has its own unique info and opinions. As NCCU goes into the new fiscal
> year, I am looking at acquiring more hardware and software for NCCU VCL
> project. Do any of you all have other uses for VCL other than HPC and
> Virtual Desktops?
>
> ** **
>
> Thanks in advance!
>
> ** **
>
> *Arbin Darren Sanders*
>
>  
>
> IT Manager – Academic Computing
>
> North Carolina Central University
>
> 712 Cecil Street
>
> Suite 3014
>
> Durham, NC 27707
>
> 919.530.6307
>
> 919.530.5097 (Fax)
>
> ** **
>
> *For the Latest ITS Updates and Tips Join Us Online** **   **[image:
> Description: Description: Description: Description:
> cid:image003.png@01CB6AD0.97665900]*
> * *[image: Description: Description: Description: Description:
> cid:image004.png@01CB6AD0.97665900] 
>
>  
>
> CONFIDENTIALITY: This email (including any attachments) may contain
> confidential, proprietary and privileged information, and unauthorized
> disclosure or use is prohibited. If you received this email in error,
> please notify the sender and delete this e-mail from your system.
>
> ** **
>
> __
> This email has been scanned by the Symantec Email Security.cloud service.
> For more information please visit http://www.symanteccloud.com
> __
>


Re: Rework the Apache VCL website?

2012-05-04 Thread Andy Kurth
On Fri, May 4, 2012 at 10:46 AM, Aaron Coburn  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?

Yes, ASF hosts all project websites and provides server space.
If/when we graduate, the podling website will be moved to
vcl.apache.org.  Apache provides a CMS but it is up to the community
whether to use it or something else as long as the content is static.
More info is here:
http://www.apache.org/dev/project-site.html
-and-
http://www.apache.org/dev/cms.html

> 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 also like Drupal but don't think it can be used due to the static
requirement.  We actually use this for NCSU's VCL front page.

I'm not familiar with Sphinx.  It looks like at least one other
project is using Sphinx:
http://chemistry.apache.org/python/docs/docs.html

-Andy


On Wed, Dec 7, 2011 at 7:54 AM, Aaron Peeler  wrote:
> Yes, I agree the site needs to be updated. I'm fine to move to ASF
> CMS, especially if this the future direction.
>
> Aaron
>
> On Tue, Dec 6, 2011 at 3:58 PM, Andy Kurth  wrote:
>> The Apache VCL project website (https://cwiki.apache.org/VCL) could
>> use some improving.  It is automatically generated from the Confluence
>> wiki site (https://cwiki.apache.org/confluence/display/VCL/Apache+VCL).
>>  I'm not sure exactly how this works but some things have never worked
>> quite right... small details such as the left nav bar not showing up.
>>
>> I'd like to start reworking the site and would like ideas/help from
>> anyone interested.  The first step would be to decide on an underlying
>> platform/CMS.  I have nothing against Confluence but the ASF is moving
>> away from it in favor of the "ASF Content Management System".  More
>> information is here:
>> http://www.apache.org/dev/cms.html
>> http://www.apache.org/dev/cmsref.html
>>
>> Tools have been written to assist in migrating from Confluence to the
>> ASF CMS.  See the bottom of the wiki page:
>> http://wiki.apache.org/general/ApacheCms2010
>>
>> At first glance this seems like a logical path to pursue.  Thoughts?
>>
>> -Andy
>>
>
>
>
> --
> 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: [DISCUSS] Graduation

2012-05-04 Thread Andy Kurth
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  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
>> .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: VCL 2.3

2012-05-03 Thread Andy Kurth
; > argument was specified: 56, DataStructure object will contain image 
>> > > information for the production imagerevision of this image
>> > > 2012-05-01 
>> > > 16:54:25|16065|433:425|reload|DataStructure.pm:_initialize(671)|retrieved
>> > >  data for imagerevision ID: 71
>> > > 2012-05-01 
>> > > 16:54:25|16065|433:425|reload|DataStructure.pm:_initialize(687)|retrieved
>> > >  data for image ID: 56
>> > > 2012-05-01 
>> > > 16:54:25|16065|433:425|reload|VMware.pm:get_vmhost_datastructure(1392)|created
>> > >  DataStructure object for VM host: VMHOST1
>> > > 2012-05-01 
>> > > 16:54:25|16065|433:425|reload|VMware.pm:get_vmhost_api_object(1495)|attempting
>> > >  to load VMware control module: 
>> > > VCL::Module::Provisioning::VMware::vmware_cmd
>> > > 2012-05-01 
>> > > 16:54:25|16065|433:425|reload|VMware.pm:get_vmhost_api_object(1501)|loaded
>> > >  VMware control module: VCL::Module::Provisioning::VMware::vmware_cmd
>> > > 2012-05-01 
>> > > 16:54:25|16065|433:425|reload|Module.pm:new(200)|VCL::Module::Provisioning::VMware::vmware_cmd
>> > >  object created for computer sandbox-vcl-4, address: 19882d70
>> > > 2012-05-01 16:54:25|16065|433:425|reload|OS.pm:(eval)(1944)|created 
>> > > Net::SSH::Expect object to control VMHOST1
>> > > |16065|433:425|reload|  WARNING 
>> > > |16065|433:425|reload| 2012-05-01 
>> > > 16:54:28|16065|433:425|reload|OS.pm:(eval)(1973)|unable to connect to 
>> > > VMHOST1, SSH is requesting a password but password authentication is not 
>> > > implemented, password is not configured, output:
>> > > |16065|433:425|reload| Password:
>> > > |16065|433:425|reload| ( 0) OS.pm, (eval) (line: 1973)
>> > > |16065|433:425|reload| (-1) OS.pm, execute_new (line: 1933)
>> > > |16065|433:425|reload| (-2) OS.pm, execute (line: 1804)
>> > > |16065|433:425|reload| (-3) vmware_cmd.pm, initialize (line: 101)
>> > > |16065|433:425|reload| (-4) Module.pm, new (line: 207)
>> > > |16065|433:425|reload| (-5) VMware.pm, (eval) (line: 1505)
>> > > |16065|433:425|reload|  WARNING 
>> > > |16065|433:425|reload| 2012-05-01 
>> > > 16:54:28|16065|433:425|reload|vmware_cmd.pm:initialize(103)|failed to 
>> > > run SSH command to determine if vmware-cmd is available on the VM host
>> > > |16065|433:425|reload| ( 0) vmware_cmd.pm, initialize (line: 103)
>> > > |16065|433:425|reload| (-1) Module.pm, new (line: 207)
>> > > |16065|433:425|reload| (-2) VMware.pm, (eval) (line: 1505)
>> > > |16065|433:425|reload| (-3) VMware.pm, get_vmhost_api_object (line: 1505)
>> > > |16065|433:425|reload| (-4) VMware.pm, initialize (line: 312)
>> > > |16065|433:425|reload| (-5) Module.pm, new (line: 207)
>> > > 2012-05-01 
>> > > 16:54:28|16065|433:425|reload|VMware.pm:get_vmhost_api_object(1515)|API 
>> > > object could not be created: 
>> > > VCL::Module::Provisioning::VMware::vmware_cmd
>> > > |16065|433:425|reload|  WARNING 
>> > > |16065|433:425|reload| 2012-05-01 
>> > > 16:54:28|16065|433:425|reload|VMware.pm:initialize(319)|failed to create 
>> > > an object to control VM host: VMHOST1
>> > > |16065|433:425|reload| ( 0) VMware.pm, initialize (line: 319)
>> > > |16065|433:425|reload| (-1) Module.pm, new (line: 207)
>> > > |16065|433:425|reload| (-2) Module.pm, create_provisioning_object (line: 
>> > > 521)
>> > > |16065|433:425|reload| (-3) State.pm, initialize (line: 136)
>> > > |16065|433:425|reload| (-4) Module.pm, new (line: 207)
>> > > |16065|433:425|reload| (-5) vcld, make_new_child (line: 568)
>> > > |16065|433:425|reload|  WARNING 
>> > > |16065|433:425|reload| 2012-05-01 
>> > > 16:54:28|16065|433:425|reload|Module.pm:create_provisioning_object(529)|provisioning
>> > >  object could not be created, returning 0
>> > > |16065|433:425|reload| ( 0) Module.pm, create_provisioning_object (line: 
>> > > 529)
>> > > |16065|433:425|reload| (-1) State.pm, initialize (line: 136)
>> > > |16065|433:425|reload| (-2) Module.pm, new (line: 207)
>> > > |16065|433:425|reload| (-3) vcld, make_new_child (line: 568)
>> > > |16065|433:425|reload| (-4) vcld, main (line: 350)
>> > > |16065|433:425|reload|  WARNING 
>> > > |16065|433:425|rel

Re: VCL 2.3

2012-05-01 Thread Andy Kurth
Please send all of the vcld.log output for a failed reservation.
-Andy

On Tue, May 1, 2012 at 4:46 PM, Dmitri Chebotarov  wrote:
> Hi
>
> I've upgraded from 2.2.1 to 2.3.
> Web and management node seems to be working OK - vcld communicated with the
> database and front-end displays right information.
>
> For some reason after the upgrade I cannot communicate with any of vmhosts.
> It seems like VCL ignoring vcl.key and  try to login with username/password:
>
> ...
> |14100|427:419|reload| 2012-05-01
> 16:22:04|14100|427:419|reload|OS.pm:(eval)(1974)|unable to connect to
> VMHOST-1, SSH is requesting a password but password authentication is not
> implemented, password is not configured, output:
> |14100|427:419|reload| Password:
> …
>
> Is it normal and I need to configure username/password, or am I missing
> something in VCL 2.3?
>
> 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
>


[DISCUSS] Graduation

2012-05-01 Thread Andy Kurth
This thread is to discuss whether the Apache VCL community feels that
this incubating project is ready to proceed with the process to
graduate to a top level ASF project.  There are several requirements
which must be met and steps completed in order to graduate.   This
discussion thread is the first step towards graduation.  Please review
the following pages.
http://incubator.apache.org/guides/graduation.html
http://incubator.apache.org/incubation/Incubation_Policy.html#Graduating+from+the+Incubator

There are many items described in the ASF graduation documentation
which we have obviously satisfied (create a release, etc).  The
following are issues that I feel either need to be addressed, would be
concerned about regarding board/mentor approval, or have been brought
up before.  Please share your thoughts.  Also, please review the ASF
graduation documentation and bring up anything else which might be a
concern.

Status File:
(https://svn.apache.org/repos/asf/incubator/public/trunk/content/projects/vcl.xml)
This is not up to date and is missing information.  Previous board
reports need to be added.  News items need to be added containing the
string "new committer".  Doing this will cause the numberCommittersNew
column on the "Status of the Clutch" page to turn green
(http://incubator.apache.org/clutch.html).

Also, the list of commiters in the status file and project page hasn't
changed since Apache VCL started.  The new committers obviously need
to be added.  I'm not sure how the original list was decided upon, but
I feel several names should be removed since they have not contributed
any code and some have not been involved in the community at all.  I
think the list should be Aaron Coburn, David Hutchins, Andy Kurth,
James O'Dell, Aaron Peeler, Josh Thompson.  Also, Brian Bouterse
contributed some code a while ago.  I'm not sure if he is still
interested in being a committer.

Diversity:
ASF requirement: "The project is not highly dependent on any single
contributor (there are at least 3 legally independent committers and
there is no single company or entity that is vital to the success of
the project)."
This issue has been raised before.  I feel we meet this requirement
and that the community is generally diverse, can govern itself, and be
self-sufficient.

Website:
This is not necessarily a requirement for graduation but I feel that
it should be addressed prior to graduation.  Our website/documentation
is pretty rough and really should be redesigned.  I'm guessing the
board members will look at it prior to voting.  In addition, there
will likely be a press release if/when we graduate and website views
will spike.  This shouldn't hold up the graduation process, but I
would like agreement that this should be completed by graduation.

Thank You,
Andy


Re: Win 7 reservations sometimes fails with DCHP error

2012-04-24 Thread Andy Kurth
On Thu, Apr 19, 2012 at 7:43 PM, Dmitri Chebotarov  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-vcl12>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

Re: Windows 7 and DHCP

2012-04-17 Thread Andy Kurth
A few things to try...

Run the following command and then try to get a private DHCP address:
netsh interface ip set interface ""
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  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  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: DHC

Re: VIM_SSH failed to login error

2012-04-17 Thread Andy Kurth
On Mon, Apr 16, 2012 at 2:29 PM, B Hartlieb  wrote:
> Hi Andy,
>
> Once I added 'root' with an Administrator role to Vmware Server 2, as per
> your suggestion, it worked. I was able to capture a base image.

Glad you got it working.

> I added the Base Image to an Image Group.
>
> Mmm, I am noticed that the Base Image name has change it name with in Vmware
> server, which is good. But the instance is still running. which I assume is
> normal.

Yes, this is normal.  Whenever an image is created, the computer that
was used is automatically reloaded with the captured image when the
imaging process is complete.  The name wasn't just changed -- the
original VM was totally erased and a new one was created named after
the captured image.

> I'm guessing that the next step is to create a new image from this Base
> Image.
>
> I choose 'Create / Update an Image', and the Reservation screen opens, which
> is normal. I can't seem to be able to choose NOW. I can schedule a time in
> the future, and the reservation works fine. Is this normal? Is there a way
> to shut down the Base Image instance (letting vcl/database know that it is
> now free), with out making a reservation for some future time frame?

Have you defined more than 1 VM in VCL?  If the only VM you have
defined is the one that was used to capture the image then you won't
be able to make a reservation until the end time of the reload
reservation is reached.  You can look at the request table to see if
there are any reservations preventing you from making a "Now"
reservation.

If you have multiple VMs, then there are a few things to check.  First
check the state of the VMs which the image is configured to load on.
Look at Manage Computers > Computer Utilities.  Are there any VMs in
the "Available" state?

If there are available computers, check the image-computer grouping
and mapping.  Make sure a path exists from your image to the computers
which are available according to the diagram on this page:
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=25200408

If everything seems to be mapped correctly, does the database reside
on the same computer as the web server?  There could be a time sync or
timezone issue.

-Andy


Re: VIM_SSH failed to login error

2012-04-10 Thread Andy Kurth
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  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
>
> Imag

Re: ESXi 4.1 image for VCL reservation

2012-03-30 Thread Andy Kurth
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  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  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  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 tw

Re: ESXi 4.1 image for VCL reservation

2012-03-29 Thread Andy Kurth
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  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  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  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 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: Xcat image capture issues

2012-03-07 Thread Andy Kurth
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  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: 
> computer eth1 MAC address: 
> 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::ManagementN

Re: VCL software licensing

2012-03-07 Thread Andy Kurth
Just FYI, the same issues apply to VMware View, Citrix XenDesktop, etc.
-Andy

On Wed, Mar 7, 2012 at 2:01 PM, Alexander Patterson
 wrote:
> Hello Michael,
>
> We have %100 of the same model that you are using, we are working on getting
> everything into complacency and we are running into big walls starting with
> Microsoft for copies of the OS that is running on the VCL.
>
> Have you talked with Microsoft and do they know you are using the VCL to
> install virtual instances of the Microsoft product into a Virtual
> machine environment? We are in talks with Microsoft and they want to charge
> us X more for doing this, it could lead to the end of our pilot. We have the
> same campus license that you have and just wanted more insight if anyone has
> worked closer to the vendors to work on a VCL licensing for software
>
> -Alex
>
>
> On Wed, Mar 7, 2012 at 10:55 AM, Waldron, Michael H 
> wrote:
>>
>> Alex
>>
>> In our case, we really haven't had to do anything special in regards to
>> licensing.
>>
>> For Microsoft products, we have a campus license which allows us to
>> install on any University-owned systems using the campus site key.
>>
>> For many applications we have network license servers, so the VCL images
>> with that software point to the license servers to get licenses.
>>
>> For all other licenses we have, the license is for a specific number of
>> seats, not specific computers, so we just set the maximum concurrent usage
>> setting on the image to the number of licenses there are for the
>> application.
>>
>> Mike
>>
>> Mike Waldron
>> Systems Specialist
>> ITS Research Computing
>> University of North Carolina at Chapel Hill
>> CB #3420, ITS Manning, Rm 2509
>> 919-962-9778
>> 
>> From: Alexander Patterson [alexander.patter...@csueastbay.edu]
>> Sent: Wednesday, March 07, 2012 1:12 PM
>> To: vcl-user@incubator.apache.org
>> Subject: VCL software licensing
>>
>> Hello,
>>
>> I wanted to know how are people dealing with software licensing for VCL?
>> Does anyone have a document or information on how they are dealing with the
>> different vendors when it comes to VCL.
>>
>> For example with Microsoft you are using 1 license for each virtual
>> machine you spin up in a Windows environment.
>> Do you have one per user base? Is this for concurrent users?
>> Are you able to split up lab licensing for in house software to be used in
>> the VCL? Do the companies know you are doing this?
>> Does anyone have an agreement with any vendors that goes within the
>> current VCL licensing that they are using?
>>
>> If someone has like an overview or general information on how you
>> are licensing the VCL for educational use; that would be very helpful.
>>
>> We are starting to run into licensing walls and I would love some inside
>> information from someone who has gone through this.
>>
>> --
>> Thanks,
>> Alex  Patterson
>> User Support Services
>> Operating System Analyst
>> California State University, East Bay
>
>
>
>
> --
> Thanks,
> Alex  Patterson
> User Support Services
> Operating System Analyst
> California State University, East Bay


Re: NFS in multiple VM servers

2012-02-20 Thread Andy Kurth
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  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  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: KVM versus RHEV

2012-02-20 Thread Andy Kurth
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  wrote:
> Hello,
> The the VLC KVM development based on RHEV?
>
>
> Anu


Re: Capturing Windows 2003 Server Image

2011-12-28 Thread Andy Kurth
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  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;' 2>&1
> 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

Re: Cannot make reservations with Static IP

2011-12-20 Thread Andy Kurth
I believe your default gateway value of 10.106.128.0 is the problem.  This
would be the network address for the IP/subnet configured for the computer:
10.106.128.34/255.255.254.0.  The default gateway would have to fall
somewhere in 10.106.128.1-10.106.129.254.

-Andy


> 2011-12-15
> 13:26:00|14708|658:658|new|Linux.pm:set_static_public_address(508)|attempting
> to set static public IP address on vclimg4:
> |14708|658:658|new| public interface name: eth1
> |14708|658:658|new| public IP address: 10.106.128.34
> |14708|658:658|new| public subnet mask: 255.255.254.0
> |14708|658:658|new| public default gateway: 10.106.128.0
> |14708|658:658|new| public DNS server(s): 131.94.205.10
>
> |14708|658:658|new|  WARNING 
> |14708|658:658|new| 2011-12-15
> 13:26:05|14708|658:658|new|Linux.pm:set_static_public_address(583)|failed
> to add default route to 10.106.128.0 on public interface eth1 on vclimg4,
> exit status: 7, command: '/sbin/route add default gw 10.106.128.0 metric 0
> eth1 2>&1 && /sbin/route -n', output:
> |14708|658:658|new| SIOCADDRT: No such process
>
>


Re: Joining a VCL Virtual Machine to an MS Active Directory Domain

2011-12-06 Thread Andy Kurth
This is a desirable feature.  I would like to incorporate AD functions
into the codebase -- possible for VCL 2.3.  It is possible but there
are many details which make this a pretty complicated task.

Computer SIDs are an issue.  Sysprep could be used to join the domain,
rename the computer, and update the SID but using it is not desirable
- it causes significant performance problems in shared storage
environments and causes load times to increase.

You could try to write a startup script to use netdom.exe to join the
domain.  Duplicate SIDs may be an issue using this approach.  Also,
after the computer boots and joins the domain it needs to be rebooted.
 You'd have to make sure the reboot doesn't interfere with the normal
VCL startup scripts.

You'll also have to make sure group policies to interfere with any
assumptions made by VCL.  In our campus AD environment, the default
policy renames the Administrator account, requires passwords longer
than the those automatically generated within VCL, and blocks SSH port
22.  In order for VCL to work with a computer joined to our AD, I had
to override several policies and manually join it to the domain.

Anyway... it is a feature which will eventually make its way into VCL.
 Attempting to get the current version to work will be quite
difficult.

-Andy

On Tue, Nov 29, 2011 at 4:31 PM, Fay, Cornelius R.  wrote:
> Dear VCL Community,
>
>
>
> We would like to streamline our VCL user experience by allowing them to
> (re-)authenticate to the Windows VM image using their Active Directory
> credentials.
>
> We have succeeded in allowing them to use their AD password in the VCL
> Reservation component.  However we cannot pass those credentials to the RDP
> file, but if we can ‘join’ the virtual machine to the AD domain, Users could
> use their AD password (a second time) to start the Windows image in place of
> the random pswd generated by the VCL system.
>
>
>
> Has anyone tried this?
>
> Does it seem possible (assuming a unique SID is issued for each new image)?
>
>
>
> Thanks,
>
> Neil Fay, Hood College


Re: xmlrpc

2011-11-21 Thread Andy Kurth
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
 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: VCL board report due on Nov 9th

2011-11-10 Thread Andy Kurth
I'll start working on it now.
-Andy

On Thu, Nov 10, 2011 at 3:20 PM, Alan D. Cabrera  wrote:
> We may still be able to squeak in.  Any takers?
>
>
> Regards,
> Alan
>
> On Nov 3, 2011, at 5:43 AM, Josh Thompson wrote:
>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> The November board report is due this coming Wednesday.  It is really pretty
>> easy to do and a simple way to get a little more involved with the VCL
>> community.  The following page explains what needs to be done to create it,
>> including explaining how to just copy the last one so that you can just make 
>> a
>> few changes to it instead of having to write it from scratch.
>>
>> https://cwiki.apache.org/confluence/display/VCL/Board+Reports
>>
>> Josh
>> - --
>> - ---
>> Josh Thompson
>> VCL Developer
>> North Carolina State University
>>
>> my GPG/PGP key can be found at pgp.mit.edu
>> -BEGIN PGP SIGNATURE-
>> Version: GnuPG v2.0.17 (GNU/Linux)
>>
>> iEYEARECAAYFAk6yjGkACgkQV/LQcNdtPQPiUACfbPP92dHrvBiYH32EyzbIprTW
>> U5sAnieYhlSUySnfhmVMxT0G3GbfbG7y
>> =4H51
>> -END PGP SIGNATURE-
>
>


Re: Adding computer hosts

2011-10-19 Thread Andy Kurth
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  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: vcld setup error

2011-10-14 Thread Andy Kurth
Also, in vcld.conf, remove the quotes from these lines:

LockerWrtUser='anu'
wrtPass='anu2011vcl'

Change to:
LockerWrtUser=anu
wrtPass=anu2011vcl

-Andy

On Fri, Oct 14, 2011 at 4:09 PM, Anu Chirinos  wrote:

>  We solved it, the .conf file had fully qualified name and db had
> localhost.
>
> Anu
>
>
>
> On 10/14/11 3:55 PM, "Anu Chirinos"  wrote:
>
>  PHP version: 5.3.3
>
> Including .ht-inc/conf.php ...
>
>- successfully included .ht-inc/conf.php
>
> Checking COOKIEDOMAIN setting in .ht-inc/conf.php ...
>
>- COOKIEDOMAIN (.fiu.edu) appears to be set correctly
>
> Checking that BASEURL in conf.php is set to use https ...
>
>- BASEURL correctly set to use https
>
> Checking that SCRIPT is set appropriately ...
>
>- SCRIPT appears to be set correctly
>
> Checking that .ht-inc/maintenance directory exists ...
>
>- /.ht-inc/maintenance directory exists
>
> Checking that .ht-inc/maintenance directory is writable ...
>
>- Maintenance directory is writable
>
> Testing for required php extensions ...
>
>- All required modules are installed
>
> Checking values in .ht-inc/secrets.php ...
>
>- all required values in .ht-inc/secrets.php appear to be set
>
> Testing mysql connection ...
>
>- Successfully connected to mysql on localhost
>- Successfully selected database (vcl) on localhost
>
> Testing mcrypt ...
>
>- Successfully encrypted test string
>- Successfully decrypted test string
>
> checking openssl encryption keys ...
>
>- successfully created private key from private key file
>- successfully created public key from public key file
>
> Testing openssl encryption ...
>
>- successfully encrypted test string
>- successfully decrypted test string
>
> Testing for existance of dojo directory ...
>
>- dojo directory exists
>- dojo directory is readable
>
> Checking value of PHP display_errors ...
>
>- display_errors: *disabled*
>- NOTE: Displaying errors in a production system is a security risk;
>however,
>- while getting VCL up and running, having them displayed makes
>debugging
>- a little easier. Edit your php.ini file to modify this setting.
>
> Done
>
>
> On 10/14/11 3:32 PM, "Anu Chirinos"  wrote:
>
>  Here is what we have
>
>
> *LOG
> *
> 2530| 2011-10-14 15:42:38|2530|vcld:main(131)|unable to retrieve management
> node information from database
> |2530| ( 0) vcld, main (line: 131)
>
> ^[:^Z
> [6]+  Stopped tail -f /var/log/vcld.log
> [root@vcltst vcl]#
>
> */usr/local/vcl/bin/vcld.conf
> *# REQUIRED Configuration settings 
>
> # FQDN: DNS name of the management node
> # Example: mgtnode1.hpc.someschool.edu
> FQDN=vcltst.fiu.edu
>
> # processname: name to call VCL daemon process
> # Default: vcld
> processname=vcld
>
> # log: log file location
> # Default: /var/log/vcld.log
> # If left undefined it will be named according to the above processname
> # i.e. /var/log/$PROCESSNAME.log
> log=/var/log/vcld.log
>
> # pidfile: process id file location
> # Default: /var/run/vcld.pid
> # If left undefined it will be named according to the above processname
> # i.e. /var/run/$PROCESSNAME.pid
> pidfile=/var/run/vcld.pid
>
> # Database connection information
>
> # database: name of MySQL database (required)
> database=vcl
>
> # server: IP address or FQDN of the database server (required)
> server=localhost
>
> # LockerWrtUser: MySQL user account name with write privileges (required)
> LockerWrtUser='anu'
>
> # wrtPass: MySQL password of the above LockerWrtUser (required)
> # Any length is supported by MySQL
> # Must be a string of characters: A-Z a-z 0-9
> wrtPass='anu2011vcl'
>
>
>
>
>
>
>
>
>
>
>
>
>
> On 10/14/11 2:13 PM, "Andy Kurth"  wrote:
>
> > I'm guessing it isn't able to connect to the database.  You should see
> > a list of numbered modules.  What does /var/log/vcld.log contain?
> >
> > -Andy
> >
> > On Fri, Oct 14, 2011 at 12:12 PM, Evelio Quiros  wrote:
> >> Hello,
> >> I am working on the initial vcld setup.
> >> This is what we get when we run vcld —setup:
> >> [root@vcltst bin]# ./vcld --setup
> >> VCL Management Node Setup
> >>
> 
> >> Select a module to configure:
> >> [vcld]
> >> Make a selection (1, 'c' to cancel): 1
> >> *** Choice must be an integer between 1 and 0 ***
> >>
> >> Any choice except c will result in the above error.
> >> Any ideas why this is happening ?
> >> Regards,
> >> Al Quiros
> >> Unix System Administrator
> >> Florida International University
> >>
>
>
>


Re: vcld setup error

2011-10-14 Thread Andy Kurth
I'm guessing it isn't able to connect to the database.  You should see
a list of numbered modules.  What does /var/log/vcld.log contain?

-Andy

On Fri, Oct 14, 2011 at 12:12 PM, Evelio Quiros  wrote:
> Hello,
> I am working on the initial vcld setup.
> This is what we get when we run vcld —setup:
> [root@vcltst bin]# ./vcld --setup
> VCL Management Node Setup
> 
> Select a module to configure:
> [vcld]
> Make a selection (1, 'c' to cancel): 1
> *** Choice must be an integer between 1 and 0 ***
>
> Any choice except c will result in the above error.
> Any ideas why this is happening ?
> Regards,
> Al Quiros
> Unix System Administrator
> Florida International University
>


Re: Help creating local users

2011-10-13 Thread Andy Kurth
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  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  wrote:
>> [root@vcltst bin]# rpm -qa perl
>> perl-5.10.1-119.el6.x86_64
>>
>>
>>
>> On 10/13/11 12:12 PM, "Aaron Peeler"  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  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: Windows 7 SP1 boot hangs

2011-09-28 Thread Andy Kurth
I have also seen Windows 7 and 2008 R2 occasionally hang on boot.  The
behavior is very inconsistent and I haven't found a solution.  I have
disabled GUI boot and enabled boot logging via msconfig.exe on some of
our base images to try to have a chance of diagnosing the problem.
Hopefully the hotfix is the answer.

I'm not sure if this will affect the problem you're describing, but I
would recommend creating new base images for Windows 6.x+ whenever a
service pack comes out rather than installing the service pack in the
existing image.  This can result in a much smaller image.  The problem
is the C:\Windows\winsxs directory.  It grows whenever anything is
updated by retaining every version of every DLL file ever installed on
the computer, eventually consuming many GB.  Installing the
slipstreamed ISO causes the new base image to only contain the
versions included with Win7+SP1, rather than also containing the
versions included with the original Win7 release and every update
prior to SP1.

I like the idea of having the timeout thresholds stored in the
database rather than being hard-coded.

-Andy



On Fri, Sep 23, 2011 at 10:40 AM, Waldron, Michael H
 wrote:
> This solution looks very promising. I installed this hotfix and so far, it 
> doesn't seem to hang anymore. The image has reloaded at least 10 times now 
> without any problems. Hopefully it's resolved.
>
> Thanks for finding that James.
>
> Mike
>
> Mike Waldron
> Systems Specialist
> ITS Research Computing
> University of North Carolina at Chapel Hill
> CB #3420, ITS Manning, Rm 2509
> 919-962-9778
> 
> From: James O'Dell [jod...@fullerton.edu]
> Sent: Thursday, September 22, 2011 5:51 PM
> To: vcl-user@incubator.apache.org
> Subject: Re: Windows 7 SP1 boot hangs
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Maybe it's just a windows thing. They came out with a hotfix for it
> anyway.
>
>
>> Fix Windows 7 SP1 Slow Startup Due to Large Number of Restore Points
>> http://news.softpedia.com/news/Fix-Windows-7-SP1-Slow-Startup-Due-to-Large-Number-of-Restore-Points-217883.shtml
>
>> “This issue occurs because the boot plan for the ReadyBoot feature exceeds 
>> the size limit of 512 kilobytes (KB). Each restore point creates a snapshot 
>> of Windows that Volsnap.sys must validate during the startup process,” 
>> Microsoft explained.
>
> But it doesn't explain why sometimes its fast and sometimes it's slow.
>
> Maybe disabling ReadyBoot would help?
>
>
> On 9/22/2011 1:48 PM, Waldron, Michael H wrote:
>> James,
>>
>> Thanks for the suggestions. I've already increased the ssh timeout, however 
>> this hang goes way beyond a reasonable amount of time, anywhere from 20-30 
>> minutes.
>>
>> I'll test with your dhcp suggestion. Although again, my Win7 images that 
>> haven't been updated to SP1 are booting just fine, so I'm trying to figure 
>> what got changed in the OS with the SP1 update that's causing this. One time 
>> it might only spend 30 seconds at the Windows Starting screen, the next it 
>> might be 10 minutes.
>>
>>
>> Mike Waldron
>> Systems Specialist
>> ITS Research Computing
>> University of North Carolina at Chapel Hill
>> CB #3420, ITS Manning, Rm 2509
>> 919-962-9778
>> 
>> From: James O'Dell [jod...@fullerton.edu]
>> Sent: Thursday, September 22, 2011 3:36 PM
>> To: vcl-user@incubator.apache.org
>> Subject: Re: Windows 7 SP1 boot hangs
>>
>>
>> I've got the same setup, and run into what looks to be the same
>> problem. ( Win7 booting taking so long that the ssh connection
>> times out )
>>
>> I've done a couple things, and it seems to have gotten better.
>>
>> 1) adjust the ssh timeout from 5 to 10 minutes
>>
>>       /opt/vcl/lib/VCL/Module/OS.pm
>>
>>          '$ssh_response_timeout_seconds = 1200;'
>>
>>    Why is this hard coded anyway?
>>
>> 2) Turn off the WINS, and the netbios-over-tcp using settings in
>>    the dhcp server to prevent the booting system from registering
>>    with a WINS server, and from using NBoT.
>>
>> shared-network VCLGuestRDPnetwork {
>> ...
>>     option netbios-name-servers noip;
>>     if substring ( option vendor-class-identifier, 0, 8 ) = "MSFT 5.0" {
>>        vendor-option-space MSFT;
>>        # 1 = enable, 2 = disable - NetBIOS over TCP/IP:
>>        option MSFT.nbt 2;
>>     }
>> ...
>> }
>>
>> 'noip' does not resolve to anything. Which causes dhcp to clear the
>> 'netbios-name-servers' (aka WINS) setting if it is globally set.
>>
>> Maybe this will help
>>
>> __Jim
>>
>> On 9/22/2011 11:53 AM, Waldron, Michael H wrote:
>>> I've been running Windows 7 images on ESXi 4.1 hosts in our VCL without
>>> problem. When I updated several of those Windows 7 images to service
>>> pack 1, I'm seeing an issue where more times than not, the VM will hang
>>> at the Windows Starting screen for up to 30 minutes. If I revert back to
>>> the pre-SP1 image, it boots just fine.
>>
>>> What's maddening is that it's not consistent. 

Re: Error at 473 in /var/www/html/vcl/.ht-inc/computers.php

2011-09-15 Thread Andy Kurth
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)
 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)
>  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 | 1

Re: Error at 473 in /var/www/html/vcl/.ht-inc/computers.php

2011-09-13 Thread Andy Kurth
-+
> | id | name               | prettyname | ownerid | platformid | OSid | 
> imagemetaid | minram | minprocnumber | minprocspeed | minnetwork | 
> maxconcurrent | reloadtime | deleted | test | lastupdate          | 
> forcheckout | maxinitialtime | project | size  | architecture | description   
>                     | usage                                                   
>                    | basedoffrevisionid |
> ++++-++--+-++---+--++---++-+--+-+-++-+---+--+---+++
> |  4 | noimage            | No Image   |       1 |          1 |    2 |        
> NULL |      0 |             1 |            0 |         10 |          NULL |   
>        0 |       0 |    0 | NULL                |           0 |              
> 0 | vcl     |  1450 | x86          | NULL                              | NULL 
>                                                                       |       
>            0 |
> |  7 | vmwarewinxp-xp7-v0 | xp         |       1 |          1 |   16 |        
>    6 |   1024 |             1 |         1990 |       1000 |          NULL |   
>       10 |       0 |    0 | 2011-09-10 18:39:56 |           1 |              
> 0 | vcl     | 10240 | x86          | MS Windows SP SP3 standard build. | RDP 
> cannot be used at the moment due to networking permissions. VCL admin. |      
>             4 |
> ++++-++--+-++---+--++---++-+--+-+-++-+---+--+---+++
> 2 rows in set (0.00 sec)
>
> mysql>
> mysql> SELECT * FROM imagerevision;
> ++-+--++-+-+-++--++
> | id | imageid | revision | userid | datecreated         | deleted | 
> datedeleted | production | comments | imagename          |
> ++-+--++-+-+-++--++
> |  4 |       4 |        0 |      1 | 1980-01-01 00:00:00 |       0 | NULL     
>    |          1 | NULL     | noimage            |
> |  7 |       7 |        0 |      1 | 2011-09-10 18:39:56 |       0 | NULL     
>    |          1 | NULL     | vmwarewinxp-xp7-v0 |
> ++-+--++-+-+-++--++
> 2 rows in set (0.00 sec)
> mysql>
>
>
> 
> From: Andy Kurth [andy_ku...@ncsu.edu]
> Sent: 13 September 2011 17:19
> To: vcl-user@incubator.apache.org
> Subject: 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)
>  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
&g

Re: Error at 473 in /var/www/html/vcl/.ht-inc/computers.php

2011-09-13 Thread Andy Kurth
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)
 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: "Until" not available in new reservations interface

2011-08-12 Thread Andy Kurth
Click on Manage Groups.  Add the user to the "Specify End Time" user group.

-Andy

On Fri, Aug 12, 2011 at 11:53 AM, Douglas Dodson  wrote:
> Hi,
>
> I apologize if this is addressed somewhere, but I can't find it...
>
> I see some screenshots in the documentation and on the Wiki that show an
> "Until" option on the "New Reservation" page.  How can I configure a user or
> group to have that option available to them?
>
> Thanks.
>
>  - Doug -
>
>
>


Re: VCL to MS Active Directory (LDAP) Authentication

2011-08-10 Thread Andy Kurth
Error 49 is often a problem with the format of the user DN.  Try
changing the line:
"userid" => "sAMAccountName=%s,cn=Users,dc=hood,dc=edu",
to
"userid" => "cn=%s,cn=Users,dc=hood,dc=edu",

-Andy

On Tue, Aug 9, 2011 at 5:51 PM, Fay, Cornelius R.  wrote:
> Help Needed.
>
>
>
> We have a pilot VCL running using local user accounts, and are now
> attempting authentication through our Active Directory (Windows Server 2003
> /LDAP v.3) infrastructure.  We can successfully authenticate with ‘service
> accounts’ (such as ), but not with normal user accounts.  We
> consistently get ‘Error 49 invalid credentials’.  We run Exchange here as
> well.
>
>
>
> We would appreciate any hints as to where our failure lies.   I have
> included a segment of our ‘conf.php’ file for your perusal.
>
>
>
> Thanks in advance for any advice on where to look.
>
>
>
> Neil Fay
>
> CTO, Hood College
>
>
>
> /*
>
>  Snippet from VCL conf.php, trying to authenticate to Microsoft Active
> Directory (MSAD) via LDAP
>
>  - removed all the other examples etc
>
>  - Service domain works, but Hood domain does not
>
> */
>
> $authMechs = array(
>
>         "Hood" => array("type" => "ldap",
>
>                                    "server" => "x.x.x.x:389",
>
>                                    "binddn" => "dc=hood,dc=edu",
>
>                                    "userid" =>
> "sAMAccountName=%s,cn=Users,dc=hood,dc=edu",
>
>                                    "unityid" => "samAccountName",
>
>                                    "firstname" => "givenname",
>
>                                    "lastname" => "sn",
>
>                                    "email" => "userPrincpalName",
>
>                                    "defaultemail" => "@example.com",
>
>                                    "masterlogin" =>
> "cn=vclservice,ou=serviceaccounts,dc=hood,dc=edu",
>
>                                    "masterpwd" => "xxx",
>
>                                    "affiliationid" => 3,
>
>                                    "help" => "Use Hood for testing Hood
> Domain"),
>
>         "Service" => array("type" => "ldap",
>
>                                    "server" => "x.x.x.x:389",
>
>                                    "binddn" => "dc=hood,dc=edu",
>
>                                    "userid" =>
> "cn=%s,ou=serviceaccounts,dc=hood,dc=edu",
>
>                                    "unityid" => "samAccountName",
>
>                                    "firstname" => "givenname",
>
>                                    "lastname" => "sn",
>
>                                    "email" => "userPrincipalName",
>
>                                    "defaultemail" => "@hood.edu",
>
>                                    "masterlogin" =>
> "cn=vclservice,ou=serviceaccounts,dc=hood,dc=edu",
>
>                                    "masterpwd" => "xxx",
>
>                                    "affiliationid" => 5,
>
>                                    "help" => "Use Service to test login
> using service account"),
>
>         "Local Account"    => array("type" => "local",
>
>                                     "affiliationid" => 1,
>
>                                     "help" => "Only use Local Account if
> there are no other options"),
>
>
>
>


Re: VCL Bootcamp notes on creating base images

2011-08-10 Thread Andy Kurth
Hi Mark,
It looks like the MAC addresses aren't set for the VM computer that is
being loaded.  This will happen if you attempt to add a single
computer rather than selecting the "Add Multiple" option.  There isn't
currently a way to populate these values via the website so you'll
either have to
-edit the database to set the MAC address values for the VM computer
or
-delete the VM, then add multiple VMs back via the website.

The database can be updated with a query like this:
UPDATE computer SET eth0macaddress='00:50:56:01:01:01',
eth1macaddress='00:50:56:01:01:02' WHERE hostname = 'vm-1';

Hope this helps,
Andy

On Mon, Aug 8, 2011 at 3:45 PM, Mark Gardner  wrote:
> I appear to be sneaking up on it... However image capture failed again.
> I am enclosing an excerpt from the log. Not sure what the problem is but it
> appears that it found a vmdk when it didn't expect to find one. This may be
> due to my misconfiguration of the VMHost - local storage. I specified the
> Data Store Path to be /vmfs/volumes/datastore1/datastore and the Repository
> Path to be /vmfs/volumes/datastore1/repository and created those
> directories.
> Mark
>
> --
> Mark Gardner
> --
>


Re: problems intsalling perl-CPAN

2011-07-15 Thread Andy Kurth
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  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: why does it take so long to provision a VM that already has the correct image on it?

2011-07-15 Thread Andy Kurth
Hi Roger,
Can you send the vcld.log output for a reservation that should have been
preloaded but reloaded anyway.

-Andy

On Fri, Jul 15, 2011 at 12:20 PM, Roger Herling wrote:

> To be more precise Vmware esx local and network storage
>
> *Roger Herling*
> *Sr. Desktop Administrator*
> Marist College
> *Office:* 845-575-3347
> *Cell:* 845-240-4298
>
>
>
>
>
> From:Aaron Peeler 
> To:vcl-user@incubator.apache.org
> Date:07/15/2011 12:17 PM
> Subject:Re: why does it take so long to provision a VM that
> already has the correct image on it?
> --
>
>
>
> Hello Roger,
>
> Which provisioning module are you using for your vms? In an older release,
> there was a *esx.pm*  module which has this behavior.
>
> Make sure your not using that prov module.
> Aaron
>
> On Fri, Jul 15, 2011 at 11:59 AM, Roger Herling <*roger.herl...@marist.edu
> * > wrote:
> Hi all we have been having an issue where all of our vm's are pre loaded
> with an image but when you request a reservation the VM is deleted and reset
> why is this happening.  I thought that the whole purpose of having the vms
> ready to go was that provisioning time should only be 1-2 minutes instead it
> 5-7.
>
> *
> Roger Herling* *
> Sr. Desktop Administrator*
> Marist College *
> Office:* 845-575-3347 *
> Cell:* 845-240-4298
>
>
>
>
>
> --
> 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: VCL2.2.1 & Windows 7 slow boot time

2011-07-08 Thread Andy Kurth
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
 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: VCL2.2.1 & Windows 7 slow boot time

2011-06-14 Thread Andy Kurth
Forgot to mention - also check "OS boot information" under the Boot tab.


Re: VCL2.2.1 & Windows 7 slow boot time

2011-06-14 Thread Andy Kurth
I'd try to configure the image to not show the GUI "Starting Windows"
screen so you can see where it is hanging.
-Run msconfig
-Select the Boot tab
-Select "No GUI boot" and "Boot log"

If the delay is happening each time you restart the image you can just
manually reboot at this point.  If not, you'll have to save a revision
with these settings applied.

When the VM boots you should see a list of items being loaded.  The
last one to appear before the delay doesn't really tell you much by
itself but it is useful when you Google the problem.

My guess would be a driver problem.  Have you tried reinstalling VMware tools?

-Andy



On Mon, Jun 13, 2011 at 4:43 PM, Kelly Robinson  wrote:
> It remains on the "Starting Windows" screen.  It happens when I perform the
> "Create/Update Image" function and the image is cloned to create the new vm.
>  The Windows (System) log doesn't show anything out of the ordinary,
> although I did notice that there is about a 9min delay from the
> "Kernel-Processor-Power" entry and "Service Control Manager" entry.  Details
> of both entries are listed below:
>
> --
>
> Information  6/13/2011 4:13:25 PM Kernel-Processor-Power:
>
> Event Properties -Event 26, Kernel-Processor Power
>
> Processor 0 in group 0 exposes the following:
>
> 1 idle state(s)
>
> 0 performance state(s)
>
> 8 throttle states(s)
>
> ---
>
> Information 6/13/2011 4:21:56 EventLog:
>
> Event Properties - Event 6005, EventLog
>
> The Event Log service was started.
>
> ---
>
> Any ideas on the issue(s)?
>
> -Kelly
>
>
>>>> Andy Kurth  06/06/11 10:12 AM >>>
>
> I haven't experienced this.  What is on the console during this time?
> Do you see the "Starting Windows" screen.  Does it happen every time
> you reboot the VM or only the first time it is powered on?  There may
> also be helpful information in the Windows event log.
>
> -Andy
>
> On Fri, May 27, 2011 at 3:25 PM, Kelly Robinson 
> wrote:
>> I'm testing a Windows 7 image (on ESXi 4.1) and have experienced extremely
>> slow boot times which causes imaging reservations (or reloading) of the
>> Windows 7 image to fail due to timeouts.  The vm eventually boots, but it
>> takes about 12 minutes for the login screen to appear.  The Windows 7
>> image
>> is configured with 2Gs of memory, 1 CPU and with the LSI Logic Parallel
>> SCSI
>> controller.  Are there other values that need to be tweaked?   I was able
>> to
>> successfully perform imaging reservations for Windows XP, but Window 7 has
>> given us problems.  Has anyone else experienced this issue?
>>
>> Kelly
>>
>> Georgia State University
>


Re: Console Error in VMware 2.0

2011-06-10 Thread Andy Kurth
I'd give up trying to open the console within Firefox 3.6.  It won't
work unless VMware updates VMware Server 2.x.  This thread discusses
it:
http://communities.vmware.com/thread/252218

You can try to downgrade to Firefox 3.5 and see if it works.  You can
also try to run the vmware-vmrc executable directly as described in
this post:
http://communities.vmware.com/message/1717705#1717705

-Andy


On Wed, Jun 8, 2011 at 2:57 AM, Cameron Seay  wrote:
> Has anyone seen this error when trying to run the remote console using
> vmware 2.0 and Firefox 3.6?
>
> "Cannot access virtual machine console.  The request timed out"
>
> The online forums say it has something to do with  the Add On in Firefox
> 3.6, but I've taken them all out and I still get the error.  Using IE won't
> work for me because I do everything on the box via VNC through port 22
> (ssh).  Any hints?  I have tried Opera, but it doesn't work very well with
> vmware.
>
> Thanks.
>
> Cameron
>
>


Re: VCL2.2.1 & Windows 7 slow boot time

2011-06-06 Thread Andy Kurth
I haven't experienced this.  What is on the console during this time?
Do you see the "Starting Windows" screen.  Does it happen every time
you reboot the VM or only the first time it is powered on?  There may
also be helpful information in the Windows event log.

-Andy

On Fri, May 27, 2011 at 3:25 PM, Kelly Robinson  wrote:
> I'm testing a Windows 7 image (on ESXi 4.1) and have experienced extremely
> slow boot times which causes imaging reservations (or reloading) of the
> Windows 7 image to fail due to timeouts.  The vm eventually boots, but it
> takes about 12 minutes for the login screen to appear.  The Windows 7 image
> is configured with 2Gs of memory, 1 CPU and with the LSI Logic Parallel SCSI
> controller.  Are there other values that need to be tweaked?   I was able to
> successfully perform imaging reservations for Windows XP, but Window 7 has
> given us problems.  Has anyone else experienced this issue?
>
> Kelly
>
> Georgia State University


Re: VCL 2.2.1 imaging reservation

2011-05-31 Thread Andy Kurth
It looks like you're running code newer than VCL 2.2.1.  It's trying
to call the Windows check_cygwin subroutine which I added after 2.2.1.
 Your best bet is to revert to 2.2.1.

-Andy

On Tue, May 31, 2011 at 2:27 PM, Kelly Robinson  wrote:
> I'm testing the "Create Image" from base image function and I receive the
> following error during the imaging reservation (before it exits completely)
>
> |18034|90:90|image|  CRITICAL 
>
> |18034|90:90|image| 2011-05-31
> 14:19:37|18034|90:90|image|vcld:die_handler(636)|Can't locate object method
> "execute" via package "VCL::Module::OS::Windows::Version_6::7" at
> /apps/vcl/bin/../lib/VCL/Module/OS/Windows.pm line 10466.
>
> |18034|90:90|image| ( 0) vcld, die_handler (line: 636)
>
> |18034|90:90|image| (-1) Windows.pm, get_environment_variable_value (line:
> 10466)
>
> |18034|90:90|image| (-2) Windows.pm, check_cygwin (line: 10390)
>
> |18034|90:90|image| (-3) Windows.pm, pre_capture (line: 272)
>
> |18034|90:90|image| (-4) Version_6.pm, pre_capture (line: 114)
>
> |18034|90:90|image| (-5) 7.pm, pre_capture (line: 100)
>
> |18034|90:90|image| (-6) VMware.pm, capture (line: 556)
>
> |18034|90:90|image| (-7) image.pm, process (line: 162)
>
> |18034|90:90|image| (-8) vcld, make_new_child (line: 568)
>
> |18034|90:90|image| (-9) vcld, main (line: 346)
>
> 2011-05-31 14:19:37|18034|90:90|image|State.pm:DESTROY(829)|VCL::image
> destructor called, address: 101d7600
>
> Does anyone know the reason for this error?
>
> Kelly
>
> Georgia State University
>
> krobinso...@gsu.edu


Re: VMware ESXi 4.1

2011-05-24 Thread Andy Kurth
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: 

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   255.255.254.0
152.7.99.255 150065535 trueDHCP
vmk1   VMkernelIPv4   255.255.240.0
10.10.15.255 150065535 trueSTATIC

-Andy


On Tue, May 24, 2011 at 10:07 AM, Waldron, Michael H
 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: reservation failed after trying to load or make available

2011-05-05 Thread Andy Kurth
I came across this myself last week.  It's another Cygwin 1.7 problem. 
When you run a Cygwin command such as sed and pass it a non-Cygwin 
formatted path you get this warning:


CYGWIN environment variable option "nodosfilewarning" turns off this warning

This is throwing off the post-load code which sanitizes various files. 
If you run the command a 2nd time it runs normally.  I have written the 
code to overcome the problem but haven't committed it yet.


You can fix your image by modifying cygwin-sshd-config.sh, running it, 
and then gen-node-keys.sh again.


Find this line:
ssh-host-config -y -c ntsec -w "$PASSWORD"

Change it to:
ssh-host-config -y -c "ntsec nodosfilewarning" -w "$PASSWORD"

You'll need to make an imaging reservation.  Once the load fails, change 
the request state, laststate, and computer state in the database to 
inuse.  You should be able to ssh into it from the management node. 
Perform the steps above then save a new revision of the image.


Hope this helps,
Andy

Roger Herling wrote:

using 2.2.1 with win7 x64 and cygwin 1.7.

Image captured fine but when you go to load it you get this failure even 
though the machine boots like it should



|26750|277:243|new| cygwin warning:
|26750|277:243|new| MS-DOS style path detected: C:\Windows/System32/sysprep
|26750|277:243|new| Preferred POSIX equivalent is: 
/cygdrive/c/Windows/System32/sysprep
|26750|277:243|new| CYGWIN environment variable option 
"nodosfilewarning" turns off this warning.
|26750|277:243|new| Consult the user's guide for more details about 
POSIX paths:
|26750|277:243|new| 
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
2011-05-04 16:52:19|3516|vcld:main(166)|lastcheckin time updated for 
management node 1: 2011-05-04 16:52:19


|26750|277:243|new|  WARNING 
|26750|277:243|new| 2011-05-04 
16:52:21|26750|277:243|new|Windows.pm:search_and_replace_in_files(6013)|file 
was not found: cygwin warning:, sed output:
|26750|277:243|new| /bin/sed: can't read cygwin warning:: No such file 
or directory

|26750|277:243|new| ( 0) utils.pm, notify (line: 630)
|26750|277:243|new| (-1) Windows.pm, search_and_replace_in_files (line: 
6013)

|26750|277:243|new| (-2) Windows.pm, sanitize_files (line: 9626)
|26750|277:243|new| (-3) Version_6.pm, sanitize_files (line: 1809)
|26750|277:243|new| (-4) Windows.pm, post_load (line: 710)
|26750|277:243|new| (-5) Version_6.pm, post_load (line: 194)
|26750|277:243|new| (-6) VMware.pm, load (line: 362)


|26750|277:243|new|  WARNING 
|26750|277:243|new| 2011-05-04 
16:52:23|26750|277:243|new|Windows.pm:search_and_replace_in_files(6013)|file 
was not found:   MS-DOS style path detected: 
C:/Windows/System32/sysprep, sed output:
|26750|277:243|new| /bin/sed: can't read   MS-DOS style path detected: 
C:/Windows/System32/sysprep: No such file or directory

|26750|277:243|new| ( 0) utils.pm, notify (line: 630)
|26750|277:243|new| (-1) Windows.pm, search_and_replace_in_files (line: 
6013)

|26750|277:243|new| (-2) Windows.pm, sanitize_files (line: 9626)
|26750|277:243|new| (-3) Version_6.pm, sanitize_files (line: 1809)
|26750|277:243|new| (-4) Windows.pm, post_load (line: 710)
|26750|277:243|new| (-5) Version_6.pm, post_load (line: 194)
|26750|277:243|new| (-6) VMware.pm, load (line: 362)

2011-05-04 16:52:24|3516|vcld:main(166)|lastcheckin time updated for 
management node 1: 2011-05-04 16:52:24


|26750|277:243|new|  WARNING 
|26750|277:243|new| 2011-05-04 
16:52:24|26750|277:243|new|Windows.pm:search_and_replace_in_files(6013)|file 
was not found:   Preferred POSIX equivalent is: 
/cygdrive/c/Windows/System32/sysprep, sed output:
|26750|277:243|new| /bin/sed: can't read   Preferred POSIX equivalent 
is: /cygdrive/c/Windows/System32/sysprep: No such file or directory

|26750|277:243|new| ( 0) utils.pm, notify (line: 630)
|26750|277:243|new| (-1) Windows.pm, search_and_replace_in_files (line: 
6013)

|26750|277:243|new| (-2) Windows.pm, sanitize_files (line: 9626)
|26750|277:243|new| (-3) Version_6.pm, sanitize_files (line: 1809)
|26750|277:243|new| (-4) Windows.pm, post_load (line: 710)
|26750|277:243|new| (-5) Version_6.pm, post_load (line: 194)
|26750|277:243|new| (-6) VMware.pm, load (line: 362)


|26750|277:243|new|  WARNING 
|26750|277:243|new| 2011-05-04 
16:52:26|26750|277:243|new|Windows.pm:search_and_replace_in_files(6013)|file 
was not found:   CYGWIN environment variable option "nodosfilewarning" 
turns off this warning., sed output:
|26750|277:243|new| /bin/sed: can't read   CYGWIN environment variable 
option nodosfilewarning turns off this warning.: No such file or directory

|26750|277:243|new| ( 0) utils.pm, notify (line: 630)
|26750|277:243|new| (-1) Windows.pm, search_and_replace_in_files (line: 
6013)

|26750|277:243|new| (-2) Windows.pm, sanitize_files (line: 9626)
|26750|277:243|new| (-3) Version_6.pm, sanitize_files (line: 1809)
|26750|277:243|new| (-4) Windows.pm, post_load (line: 710)
|26750|277:243|new| (-5) Version_6.pm, post_lo

Re: Unable to create Base Image

2011-04-25 Thread Andy Kurth

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:
VCL::Module::Provisioning::VMwar

Re: windows 7 and dhcp

2011-04-25 Thread Andy Kurth
DHCP is never receiving the DHCPACK from the VM.  It could be a default 
gateway/routing problem on the Windows 7 VM.  You don't need to perform 
the entire VCL reload to troubleshoot this.  Try this:


-Start `tail -f /var/log/messages` on the management node
-Log into the Windows 7 VM via the VMware console
-Open a command prompt
-Run `ipconfig /release` then `ipconfig /renew`, see what appears in the 
messages file

-Disable the public network interface
-Run `ipconfig /release` then `ipconfig /renew` again, did this change 
anything?


-Andy


On 4/20/2011 2:40 AM, Tyler Hardesty wrote:

Ok, so I do have some problem with windows 7... I've created two windows
XP machines and they work just fine but when trying windows 7, it never
acknowledges the IP, I just get the following in /var/log/messages...and
when I open the image up on vmware it seems just fine, looks like it's
using lsi logic and just sits at the login screen...:

Apr 20 00:29:43 vcl /usr/lib/vmware/bin/vmware-hostd[15093]: Accepted
password for user root from 127.0.0.1
Apr 20 00:30:15 vcl last message repeated 12 times
Apr 20 00:30:22 vcl last message repeated 3 times
Apr 20 00:30:22 vcl kernel: device eth0 entered promiscuous mode
Apr 20 00:30:22 vcl kernel: bridge-eth0: enabled promiscuous mode
Apr 20 00:30:24 vcl /usr/lib/vmware/bin/vmware-hostd[15093]: Accepted
password for user root from 127.0.0.1
Apr 20 00:30:29 vcl last message repeated 2 times
Apr 20 00:30:55 vcl dhcpd: DHCPDISCOVER from 00:50:56:1a:01:03 via vmnet1
Apr 20 00:30:55 vcl dhcpd: DHCPOFFER on 192.168.1.2 to 00:50:56:1a:01:03
via vmnet1
Apr 20 00:31:00 vcl dhcpd: DHCPDISCOVER from 00:50:56:1a:01:03 via vmnet1
Apr 20 00:31:00 vcl dhcpd: DHCPOFFER on 192.168.1.2 to 00:50:56:1a:01:03
via vmnet1
Apr 20 00:31:08 vcl dhcpd: DHCPDISCOVER from 00:50:56:1a:01:03 via vmnet1
Apr 20 00:31:08 vcl dhcpd: DHCPOFFER on 192.168.1.2 to 00:50:56:1a:01:03
via vmnet1
Apr 20 00:31:24 vcl dhcpd: DHCPDISCOVER from 00:50:56:1a:01:03 via vmnet1
Apr 20 00:31:24 vcl dhcpd: DHCPOFFER on 192.168.1.2 to 00:50:56:1a:01:03
via vmnet1
Apr 20 00:31:56 vcl dhcpd: DHCPDISCOVER from 00:50:56:1a:01:03 via vmnet1
Apr 20 00:31:56 vcl dhcpd: DHCPOFFER on 192.168.1.2 to 00:50:56:1a:01:03
via vmnet1
Apr 20 00:32:00 vcl dhcpd: DHCPDISCOVER from 00:50:56:1a:01:03 via vmnet1
Apr 20 00:32:00 vcl dhcpd: DHCPOFFER on 192.168.1.2 to 00:50:56:1a:01:03
via vmnet1
Apr 20 00:32:09 vcl dhcpd: DHCPDISCOVER from 00:50:56:1a:01:03 via vmnet1
Apr 20 00:32:09 vcl dhcpd: DHCPOFFER on 192.168.1.2 to 00:50:56:1a:01:03
via vmnet1
Apr 20 00:32:26 vcl dhcpd: DHCPDISCOVER from 00:50:56:1a:01:03 via vmnet1
Apr 20 00:32:26 vcl dhcpd: DHCPOFFER on 192.168.1.2 to 00:50:56:1a:01:03
via vmnet1


On Tue, Apr 19, 2011 at 12:48 AM, Tyler Hardesty mailto:tharde...@gmail.com>> wrote:

Man, sorry to take up space but I actually found it here in the
month of April. I changed the logic type in vmware to lsi logic SAS
and it powered up just fine... so tomorrow I'll try and create a new
image and double check to make sure its set to lsi logic and not lsi
logic sas. If that still doesn't work I'll let you know.


On Tue, Apr 19, 2011 at 12:23 AM, Tyler Hardesty
mailto:tharde...@gmail.com>> wrote:

Oh, follow-up, I didn't even bother checking the machine on
vmware before. So I just did now and when windows 7 tries to
boot it goes into start up repair. When going through the
archive I think I remember seeing someone else with the problem
and I think it got resolved?! But I just can't find it now, if
anyone knows which month it's under (if it even exists) just let
me know and I'll be happy to try some more trouble shooting and
researching on my own.


On Tue, Apr 19, 2011 at 12:09 AM, Tyler Hardesty
mailto:tharde...@gmail.com>> wrote:

Is there anything different between windows xp and windows7
that would cause windows 7 not to respond to dhcp? I have my
windows XP image and everything works fine so I decided to
set up a Win7 machine to test it out... the image captures
fine but when trying to reserve it, it gives me the same not
responding to ssh message I had before. I checked the
/var/log/messages and it never shows a offer/request/ack
message for the IP like it does when I reserve the windows
XP image.






Re: Unable to ssh from VM host to itself

2011-04-22 Thread Andy Kurth
I haven't gone through those instructions myself.  They appear to be 
quite dated -- VCL 2.1 and VMware 1.x.  Some of the steps included are 
no longer necessary.


The instructions on the page I referenced were written for VCL 2.2 or 
2.2.1 and VMware Server 2.x.


-Andy

On 4/22/2011 11:58 AM, Frento Burton wrote:

This documentation looks a bit different from the VMware install I did.
I've been following these instructions to set up VCL on a single
machine. Will these instructions suffice in order for VCL to work
correctly on a stand alone?

http://renoir.csc.ncsu.edu/VCL/Program/VCL%20Installation%20Guide%20v1.4.pdf









Re: Unable to ssh from VM host to itself

2011-04-21 Thread Andy Kurth

https://cwiki.apache.org/confluence/display/VCL/Configuring+a+Standalone+VCL+Environment+using+VMware+Server+2.0

Frento Burton wrote:
I think I have fixed the problem, not sure what I did but I'm no longer 
getting that error message (maybe rebooting the machine was all it 
took). Also, where can I find the documentation for Configuring a 
Standalone VCL Environment using VMware Server 2.0?


Re: Blades running out of space

2011-04-19 Thread Andy Kurth

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: Unable to ssh from VM host to itself

2011-04-19 Thread Andy Kurth
I haven't seen this before but I'm guessing localvmhost hasn't been 
added to /etc/hosts.  Whenever you see 'Name or service not known' it 
means hostname resolution failed.


If you were trying to follow the "Configuring a Standalone VCL 
Environment using VMware Server 2.0" then I think I figured out the 
problem.  I had reworked the page and the step to configure /etc/hosts 
was placed after the "Configure The VM Host To Be Able To SSH To Itself" 
step.  Sorry about that.  I changed the order on that page.


-Andy

On 4/15/2011 5:34 PM, Frento Burton wrote:

Hello all,

I'm getting an error message in the install phase of VCL when I try to
configure my VM host to be able to ssh to itself. I type the command on
the management node (My current VCL installation is all on one desktop);

/ssh-copy-id –i /etc/vcl/vcl.key.pub localvmhost/

I receive this error message each time;

/ssh: \342\200\223i: Name or service not known/

Not sure what exactly those numbers mean nor am I really getting much
from google with this problem. I was hoping someone can show me where I
should began troubleshooting...



Re: Windows 7 and Windows XP give same error when trying to capture

2011-04-15 Thread Andy Kurth
   ;;
 stop)
 stop
 RETVAL=$?
 ;;
 restart|force-reload)
 stop ; start
 RETVAL=$?
 ;;
 condrestart)
 if [ -f $lockfile ]; then
 stop ; start
 RETVAL=$?
 fi
 ;;
 configtest)
 configtest
 RETVAL=$?
     ;;
 status)
 status $dhcpd
 RETVAL=$?
 ;;
 *)
 echo $"Usage: $0
{start|stop|restart|condrestart|configtest|status}"
 RETVAL=3
 ;;
esac

exit $RETVAL

-Tyler

On Wed, Apr 13, 2011 at 10:50 AM, Andy Kurth mailto:andy_ku...@ncsu.edu>> wrote:

I have updated the DHCP instructions on:

https://cwiki.apache.org/confluence/display/VCL/VCL+2.2.1+Management+Node+Installation

Redo the "Install & Configure the DHCP Service" instructions.
  Remove the "vmnet1" string if you previously added it to
/etc/init.d/dhcpd. The instructions now explain to modify
/etc/sysconfig/dhcpd to achieve the same result.  Having "vmnet1"
added to both of these files will cause the "No subnet declaration
for vmnet1 (0.0.0.0)" message.

I tested the instructions and DHCP is working for me.  My
/var/log/messages output looks like this:

Apr 13 12:43:44 blade1g2-6 dhcpd: Internet Systems Consortium DHCP
Server V3.0.5-RedHat
Apr 13 12:43:44 blade1g2-6 dhcpd: Copyright 2004-2006 Internet
Systems Consortium.
Apr 13 12:43:44 blade1g2-6 dhcpd: All rights reserved.
Apr 13 12:43:44 blade1g2-6 dhcpd: For info, please visit
http://www.isc.org/sw/dhcp/
Apr 13 12:43:44 blade1g2-6 dhcpd: WARNING: Host declarations are
global.  They are not limited to the scope you declared them in.
Apr 13 12:43:44 blade1g2-6 dhcpd: Wrote 0 deleted host decls to
leases file.
Apr 13 12:43:44 blade1g2-6 dhcpd: Wrote 0 new dynamic host decls to
leases file.
Apr 13 12:43:44 blade1g2-6 dhcpd: Wrote 0 leases to leases file.
Apr 13 12:43:44 blade1g2-6 dhcpd: Listening on
LPF/vmnet1/00:50:56:c0:00:01/vmnet1
Apr 13 12:43:44 blade1g2-6 dhcpd: Sending on
LPF/vmnet1/00:50:56:c0:00:01/vmnet1
Apr 13 12:43:44 blade1g2-6 dhcpd: Sending on
Socket/fallback/fallback-net
Apr 13 12:48:45 blade1g2-6 dhcpd: DHCPREQUEST for 192.168.1.1 from
00:50:56:1a:01:01 via vmnet1
Apr 13 12:48:45 blade1g2-6 dhcpd: DHCPACK on 192.168.1.1 to
00:50:56:1a:01:01 via vmnet1

-Andy



On 4/12/2011 7:24 PM, Tyler Hardesty wrote:

Here is also another update.. after killing the vmnet-dhcpd I
tried just
creating a whole new base image and capturing it again, although
I get
the same "not responding to ssh message", a new message popped up in
/var/log/messages... it says no subnet declaration for vmnet1,
but as
you can see from my previous email I do have that set in
/etc/dhcpd ...:

Apr 12 15:07:15 vcl /usr/lib/vmware/bin/vmware-hostd[4112]: Accepted
password for user root from 127.0.0.1
Apr 12 15:07:16 vcl kernel: device eth0 left promiscuous mode
Apr 12 15:07:16 vcl kernel: bridge-eth0: disabled promiscuous mode
Apr 12 15:07:16 vcl kernel: device eth0 entered promiscuous mode
Apr 12 15:07:16 vcl kernel: bridge-eth0: enabled promiscuous mode
Apr 12 15:07:17 vcl /usr/lib/vmware/bin/vmware-hostd[4112]: Accepted
password for user root from 127.0.0.1
Apr 12 17:03:24 vcl dhcpd: Internet Systems Consortium DHCP Server
V3.0.5-RedHat
Apr 12 17:03:24 vcl dhcpd: Copyright 2004-2006 Internet Systems
Consortium.
Apr 12 17:03:24 vcl dhcpd: All rights reserved.
Apr 12 17:03:24 vcl dhcpd: For info, please visit
http://www.isc.org/sw/dhcp/
Apr 12 17:03:24 vcl dhcpd: WARNING: Host declarations are
global.  They
are not limited to the scope you declared them in.
Apr 12 17:03:24 vcl dhcpd: Wrote 0 deleted host decls to leases
file.
Apr 12 17:03:24 vcl dhcpd: Wrote 0 new dynamic host decls to
leases file.
Apr 12 17:03:24 vcl dhcpd: Wrote 0 leases to leases file.
Apr 12 17:03:24 vcl dhcpd: Listening on
LPF/vmnet1/00:50:56:c0:00:01/vmnet1
Apr 12 17:03:24 vcl dhcpd: Sending on
LPF/vmnet1/00:50:56:c0:00:01/vmnet1
Apr 12 17:03:24 vcl dhcpd:
Apr 12 17:03:24 vcl dhcpd: No subnet declaration for vmnet1
(0.0.0.0).
Apr 12 17:03:24 vcl dhcpd: ** Ignoring requests on vmnet1.  If
this is
not what
Apr 12 17:03:24 vcl dhcpd:you want, please write a subnet
declaration
Apr 12 17:03:24 vcl dhcpd:in your dhcpd.conf file for the
network
segment
Apr 12 17:03:24 vcl dhcpd:to which interface vmnet1 is
attached. **
Apr 12 17:03:24 vcl dhcpd:
Apr 12 17:03:24

Re: Windows 7 and Windows XP give same error when trying to capture

2011-04-13 Thread Andy Kurth
lib/vmware/bin/vmware-hostd[1533]: Accepted
password for user root from 127.0.0.1
Apr 12 12:45:10 vcl last message repeated 2 times
Apr 12 12:45:12 vcl kernel: device eth0 left promiscuous mode
Apr 12 12:45:12 vcl kernel: bridge-eth0: disabled promiscuous mode
Apr 12 12:45:12 vcl kernel: device eth0 entered promiscuous mode
Apr 12 12:45:12 vcl kernel: bridge-eth0: enabled promiscuous mode

-Tyler

On Tue, Apr 12, 2011 at 11:54 AM, Andy Kurth mailto:andy_ku...@ncsu.edu>> wrote:

It looks like you're close.  DHCP on the private host-only
network isn't working.  The VM that VCL created was assigned the
correct MAC addresses:
|15920|53:53|reload| : "ethernet0.address" => "00:50:56:1a:01:01",
|15920|53:53|reload| : "ethernet1.address" => "00:50:56:1a:01:02",

I think it may be failing because VMware installed and started
its own DHCP service when the host-only network was configured.
  Run this command:
ps -ef | grep dhcp

Do you see 2 processes that look like this?:
/usr/sbin/dhcpd vmnet1

/usr/bin/vmnet-dhcpd -cf /etc/vmware/vmnet1/dhcpd/dhcpd.conf -lf
/etc/vmware/vmnet1/dhcpd/dhcpd.leases -pf
/var/run/vmnet-dhcpd-vmnet1.pid vmnet1

If you do see the vmnet-dhcpd process along with dhcpd, try
killing the vmnet-dhcpd process.  Hopefully this allows the
normal dhcpd process to respond to the VM's DHCP request.

The main way to debug DHCP problems is to look at
/var/log/messages. Try running the following command:
tail -f /var/log/messages | grep -i dhcp

Then reboot the VM that VCL created.  If the VM's DHCP request
is getting to the dhcpd service running on the management node
then you should see output containing the private MAC address:
00:50:56:1a:01:01.

The public IP address isn't necessarily a problem.  Once the
private interface gets an IP address and responds to SSH, vcld
will SSH in and configure the public interface with a static
address if you have configured the management node and IP
address for the VM in the VCL database accordingly.

-Andy


On 4/11/2011 1:41 PM, Tyler Hardesty wrote:

Ok, sorry to be such a bug with the same problem but I've done
everything exactly how it is in the link that you provided
and after
this image is created, it still fails to be reserved saying
it's not
responding to ssh. Here are some of my configs:

[root@vcl ~]# ifconfig
eth0  Link encap:Ethernet  HWaddr 00:1B:63:99:DA:B6
   inet addr:144.38.205.200 
>
  Bcast:144.38.205.255 
>  Mask:255.255.255.128

   inet6 addr: fe80::21b:63ff:fe99:dab6/64 Scope:Link
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   RX packets:26728797 errors:0 dropped:0 overruns:0
frame:0
   TX packets:14037294 errors:0 dropped:0 overruns:0
carrier:0
   collisions:0 txqueuelen:1000
   RX bytes:3637195452 (3.3 GiB)  TX
bytes:2717331485 (2.5 GiB)
   Interrupt:185

loLink encap:Local Loopback
   inet addr:127.0.0.1  Mask:255.0.0.0
   inet6 addr: ::1/128 Scope:Host
   UP LOOPBACK RUNNING  MTU:16436  Metric:1
   RX packets:714243376 errors:0 dropped:0
overruns:0 frame:0
   TX packets:714243376 errors:0 dropped:0
overruns:0 carrier:0
   collisions:0 txqueuelen:0
   RX bytes:2461321418 (2.2 GiB)  TX
bytes:2461321418 (2.2 GiB)

vmnet1Link encap:Ethernet  HWaddr 00:50:56:C0:00:01
   inet addr:192.168.0.1  Bcast:192.168.255.255
  Mask:255.255.0.0
   inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   RX packets:4237 errors:0 dropped:0 overruns:0 frame:0
   TX packets:6875 errors:0 dropped:0 overruns:0
carrier:0
   collisions:0 txqueuelen:1000
   RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

[root@vcl ~]# cat /etc/dhcpd.conf
#
# DHCP Server Configuration file.
#   see /usr/share/doc/dhcp*/dhcpd.conf.sample
#
ddns-update-style none; shared-network vmnet1 {
  subnet 192.168.0.0 netmask 255.255.0.0 {
  ignore unknown-clients

Re: Windows 7 and Windows XP give same error when trying to capture

2011-04-12 Thread Andy Kurth
2:13:50|15920|53:53|reload|utils.pm:insertloadlog(3875)|inserted
computer=8, failed, process failed after trying to load or make available
2011-04-11
02:13:50|15920|53:53|reload|State.pm:reservation_failed(226)|inserted
computerloadlog entry
2011-04-11
02:13:50|15920|53:53|reload|utils.pm:update_computer_state(2033)|computer 8
state updated to: failed
2011-04-11
02:13:50|15920|53:53|reload|State.pm:reservation_failed(245)|computer
vm-1 (8) state set to failed
2011-04-11
02:13:50|15920|53:53|reload|utils.pm:update_request_state(1991)|request
53 state updated to: failed, laststate to: image
2011-04-11
02:13:50|15920|53:53|reload|State.pm:reservation_failed(258)|set request
state to 'failed'/'image'
2011-04-11
02:13:50|15920|53:53|reload|utils.pm:is_inblockrequest(6147)|zero rows
were returned from database select
2011-04-11
02:13:50|15920|53:53|reload|State.pm:reservation_failed(276)|vm-1 is NOT
in blockcomputers table
2011-04-11
02:13:50|15920|53:53|reload|State.pm:reservation_failed(279)|exiting 1
2011-04-11 02:13:50|15920|53:53|reload|State.pm:DESTROY(839)|VCL::new
destructor called, address: 9eacb6c
2011-04-11
02:13:50|15920|53:53|reload|utils.pm:delete_computerloadlog_reservation(6726)|removing
computerloadlog entries matching loadstate = begin
2011-04-11
02:13:50|15920|53:53|reload|utils.pm:delete_computerloadlog_reservation(6773)|deleted
rows from computerloadlog for reservation id=53
2011-04-11 02:13:50|15920|53:53|reload|State.pm:DESTROY(858)|number of
database handles state process created: 3
2011-04-11 02:13:50|15920|53:53|reload|State.pm:DESTROY(886)|VCL::new
process duration: 957 seconds
2011-04-11 02:13:50|15920|53:53|reload|VIM_SSH.pm:DESTROY(1685)|vim-cmd
call count: 13
2011-04-11 02:13:50|30717|vcld:REAPER(718)|VCL process exited for
reservation 53, PID: 15920, signal: CHLD
2011-04-11 02:13:50|30717|vcld:main(167)|lastcheckin time updated for
management node 1: 2011-04-11 02:13:50
2011-04-11 02:13:50|30717|53:53|failed|vcld:main(252)|request deleted
2011-04-11 02:13:55|30717|vcld:main(167)|lastcheckin time updated for
management node 1: 2011-04-11 02:13:55



On Thu, Apr 7, 2011 at 2:24 PM, Andy Kurth mailto:andy_ku...@ncsu.edu>> wrote:

DHCP is a requirement for the private interface but you should still
be able to get it to work.  I have configured similar installations
before.  For the private network, you'll want to configure a VMware
host-only network, not a bridged network.

I created updated instructions to configure a standalone environment
using VMware Server 2.0:

https://cwiki.apache.org/confluence/display/VCL/Configuring+a+Standalone+VCL+Environment+using+VMware+Server+2.0

The instructions haven't been tested and there are probably a couple
errors but this will hopefully point you in the right direction.

To use static public addresses, you just need to define them when
you add new computers and configure the management node to use
static addresses and specify the correct subnet mask, gateway, and
DNS servers under Management Nodes > Edit.

-Andy




Re: Windows 7 and Windows XP give same error when trying to capture

2011-04-07 Thread Andy Kurth
ure.pm:get_computer_state_name(2330)|retrieved
current state of com\
puter vm4 from the database: reloading
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|vm4>localvmhost|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 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 d

Re: Fwd: problems with image windows 7

2011-04-06 Thread Andy Kurth
My guess is that it's a storage controller problem.  Check the storage 
controller type that is assigned to the VM in the vSphere Client:

-Select the VM
-Edit Settings
-SCSI controller 0

Try changing the type to LSI Logic SAS and then power on the VM.  If 
this allows the VM to boot then the original base image was saved using 
the SAS controller.  VCL does not currently assign a SAS controller due 
to a VMware bug.  It will be easiest to recreate your base image.  When 
creating the initial VM, be sure to select LSI Logic Parallel.


-Andy

On 4/6/2011 12:28 AM, Juan Jose Zamanillo wrote:




*De: *Juan Jose Zamanillo mailto:jjzam...@itesm.mx>>
*Fecha: *5 de abril de 2011 11:16:22 p.m. GMT-05:00
*Para: *vcl-user-i...@incubator.apache.org

*Asunto: **Fwd: problems with image windows 7*



Inicio del mensaje reenviado:


*De: *Juan Jose Zamanillo mailto:jjzam...@itesm.mx>>
*Fecha: *5 de abril de 2011 11:04:05 p.m. GMT-05:00
*Para: *vcl-user-i...@incubator.apache.org

*Asunto: **problems with image windows 7*

I generate aWindows 7 Image, all things works ok, but when the
virtual machine reboot, the console of the virtual machine begin with
a blue screen and then tell me that there is a problem with the OS
and start de windows recovery system and ask me if I want to try to
repair the image o start normaly windows, either options did not
work, if i select repair maybe 10 times always is the same problem.

I am copying the mails and logs

thanks in advance


Your VCL image creation request for Windows Base P6 has
succeeded. Please visit http://cwiki.apache.org/VCL and
you should see an image called Windows Base P6.
Please test this image to confirm it works correctly.

Thank You,
VCL Team

===

VCL Image Creation Completed

Request ID: 5
Reservation ID: 5
PID: 6740

Image ID: 9
Image name: vmwarewin7-WindowsBaseP69-v0
Image size change: 1450 --> 15360

Revision ID: 9

Management node: webvcl

Username: admin
User ID: 1

Computer ID: 2
Computer name: windowsbase1

Use Sysprep: 0



reservation failed on windowsbase1: process failed after trying to
load or make available

time: 2011-04-05 21:58:47
caller: State.pm:reservation_failed(213)
( 0) State.pm, reservation_failed (line: 213)
(-1) new.pm, process (line: 298)
(-2) vcld, make_new_child (line: 568)
(-3) vcld, main (line: 346)

management node: webvcl.qro.itesm.mx
reservation PID: 9566
parent vcld PID: 31208

request ID: 6
reservation ID: 6
request state/laststate: reload/image
request start time: 2011-04-05 21:48:11
request end time: 2011-04-05 22:18:11
for imaging: no
log ID: none

computer: windowsbase1
computer id: 2
computer type: virtualmachine
computer eth0 MAC address: 00:50:56:00:10:00
computer eth1 MAC address: 00:50:56:00:10:01
computer private IP address: 192.168.113.242
computer public IP address: 10.25.19.166
computer in block allocation: no
provisioning module: VCL::Module::Provisioning::VMware::VMware

vm host: esxi.qro.itesm.mx
vm host ID: 1
vm host computer ID: 1
vm profile: VMware ESX - network storage
vm profile VM path: /vmfs/volumes/datastore1
vm profile repository path: 0
vm profile datastore path: /vmfs/volumes/datastore1
vm profile disk type: networkdisk

image: vmwarewin7-WindowsBaseP69-v0
image display name: Windows Base P6
image ID: 9
image revision ID: 9
image size: 15360 MB
use Sysprep: no
root access: yes
image owner ID: 1
image owner affiliation: Local
image revision date created: 2011-04-05 21:03:48
image revision production: yes
OS module: VCL::Module::OS::Windows::Version_6::7

user: vclreload
user name: vcl reload
user ID: 2
user affiliation: Local

RECENT LOG ENTRIES FOR THIS PROCESS:
2011-04-05
21:55:25|9566|6:6|reload|Module.pm:code_loop_timeout(759)|attempt 27:
waiting for windowsbase1 to respond to SSH
2011-04-05
21:55:26|9566|6:6|reload|OS.pm:is_ssh_responding(386)|windowsbase1 is
NOT responding to SSH, ports 22 or 24 are both closed
2011-04-05
21:55:26|9566|6:6|reload|Module.pm:code_loop_timeout(755)|attempt 27:
code returned false, seconds elapsed/remaining: 403/197, sleeping for
15 seconds
2011-04-05
21:55:41|9566|6:6|reload|Module.pm:code_loop_timeout(759)|attempt 28:
waiting for windowsbase1 to respond to SSH
2011-04-05
21:55:41|9566|6:6|reload|OS.pm:is_ssh_responding(386)|windowsbase1 is
NOT responding to SSH, ports 22 or 24 are both closed
2011-04-05
21:55:41|9566|6:6|reload|Module.pm:code_loop_timeout(755)|attempt 28:
code returned false, seconds elapsed/remaining: 418/182, sleeping for
15 seconds
2011-04-05
21:55:56|9566|6:6|reload|Module.pm:code_loop_timeout(759)|attempt 29:
waiting for windowsbase1 to respond to SS

Re: Cygwin 1069 logon error

2011-04-06 Thread Andy Kurth
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 ''. Everything goes smooth
until the last step in which I receive a Win32 1069 logon failure. I
wasn't sure if  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 sysprep???[Resolved]

2011-04-04 Thread Andy Kurth
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:

http://schemas.microsoft.com/WMIConfig/2002/State";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

32
120
800
72
600

*
Eastern Standard Time
*MyProductKeyforUltimate*


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:

http://schemas.microsoft.com/WMIConfig/2002/State";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
- 
32
120
800
72
600

*
Eastern Standard Time
33PXH-7Y6KF-2VJC9-XBBR8-HVTHH




- 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 
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
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: VM video memory

2011-04-04 Thread Andy Kurth
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 and Windows XP give same error when trying to capture

2011-04-04 Thread Andy Kurth

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 , process (line: 165)
|11006|16:16|image| (-3) vcld, make_new_child 

Re: "Get RDP File" Doesn't work first try if too fast

2011-04-04 Thread Andy Kurth
I have seen the same issue myself.  It's a timing issue related to the 
'reserved' state.  During this state, the vcld process loops until it 
detects a value in reservation.remoteIP which gets set when the user 
clicks 'Connect'.  There is a 5 second wait in between attempts.  This 
could be reduced but the downside would be a little more processing on 
the management node.


Once it detects the remote IP has been set, it can take 3-9 seconds for 
the firewall-opening commands to be executed.


Quickly looking at the code, I think some improvements can be made to 
reduce the lag time.  I created an issue for this:

https://issues.apache.org/jira/browse/VCL-442

-Andy

On 4/1/2011 2:58 PM, Hartl, Gerhard L. wrote:

(disregard previous, forgot to retitle)

Since upgrading to 2.2, when a user browses to the 'connect' page, I've noticed that the 
clients ip is captured and the management node then ssh's to the vm and opens up the port 
for the clients ip on 3389.   While I understand this is best practice, I have noticed 
that if they user is to quick clicking through the page that they sometimes have to click 
the "Get RDP File" twice since the first time tries to connect prior to the 
port being opened up.  Is there any way around this?

- Gerhard Hartl
Old Dominion University
Norfolk, VA


Re: dynamic vs static ip

2011-04-04 Thread Andy Kurth
The capture process enables DHCP on both the public and private 
interface just before the VM is powered off at the end of the capture 
process.  This is necessary or else an image with a static address could 
be loaded multiple times causing IP address conflicts.


Do you have DHCP configured for the private interface?  This is a 
requirement for VCL.


I'm guessing DHCP isn't the reason your capture is failing.  Please send 
the vcld.log file output and I'll be able to provide additional help.


Regards,
Andy Kurth


On 4/1/2011 7:19 PM, Tyler Hardesty wrote:

I'm still trying to debug why my image capturing keeps failing and I
noticed that might be a problem but I'm not sure... I have my virtual
machines all set up with static IP address because I am not able to use
DHCP in my current situation. Well I noticed that once I try to capture
an image and it fails, if I load that VM up through vmware, it's public
network interface has been switched to automatically obtain IP instead
of the static one that I gave it, could this be why the image fails to
be captured and/or how do I change it to stop reseting it back to obtain
IP automatically?

-Tyler


Re: VCL fails to grant OS access

2011-03-10 Thread Andy Kurth
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 " 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
info: id=133,

Re: Window 7 x64 Sysprep.exe not running

2011-03-10 Thread Andy Kurth
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"' 2>&1*
*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:

Re: Fwd: Image Failing to boot up in VCL 2.2

2011-03-10 Thread Andy Kurth
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 Patterson
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, vmwarewinxp-build33-v0 failed to load on
vmguest-8

Re: ssh on vmguest

2011-03-10 Thread Andy Kurth

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 : vmwarewinxp-win_xp14-v0
image.id : 14
imagerevision.id : 14
imagemeta.id : 12
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 

Re: Errors with network cards

2011-02-18 Thread Andy Kurth
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 inst

Re: SDK can not connect to VMWare

2011-02-18 Thread Andy Kurth
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)
|2

Re: SDK can not connect to VMWare

2011-02-16 Thread Andy Kurth
011-02-08 10:48:14|7235|6:6|image|image.pm:reservation_failed(460)|exiting
2011-02-08 10:48:14|7235|6:6|image|State.pm:DESTROY(902)|destructor
called, ref($self)=VCL::image
2011-02-08
10:48:14|7235|6:6|image|utils.pm:delete_computerloadlog_reservation(6829)|removing
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:///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]

Re: SDK can not connect to VMWare

2011-02-06 Thread Andy Kurth
gt; Array ( ) ) ) ) 





Backtrace:
=-=-=-=-=-=-=-=-=-=-=-=
Call#:1 => index.php:submitRequest() (line#:85)
Call#:2 => requests.php:errorHandler() (line#:332)

Backtrace with Arguments:
=-=-=-=-=-=-=-=-=-=-=-=
Call#:1 => index.php:submitRequest() (line#:85)
Arguments(none):
---
Call#:2 => requests.php:errorHandler() (line#:332)
Arguments(5)

Argument#: 1 => 8
Argument#: 2 => Undefined index:  imagerevision
Argument#: 3 => /var/www/html/vcl/.ht-inc/requests.php
Argument#: 4 => 332
Argument#: 5 => Array
(
[submitErr] => 
[user] => Array

(
[unityid] => admin
[affiliationid] => 1
[affiliation] => Local
[firstname] => vcl
[lastname] => admin
[preferredname] => 
[email] => root@localhost

[emailnotices] => 0
[IMtype] => none
[IMid] => 
[id] => 1

[adminlevel] => developer
[adminlevelid] => 3
[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:

Re: SDK can not connect to VMWare

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


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


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


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


-Andy


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


Thanks.

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


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


Greetings and thanks for your time.

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

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

Regards,
Andy

On 2/2/2011 6:30 PM, Mauricio César Ramírez Torres wrote:
> Good day, I have a problem with VCL 2.2 using VMWare ESXi 4.0
with SDK
> 4, basically trying to create a base image says that the SDK can not
> connect to VMWare server, but do not know how I can prove it is
possible
> to connect to ESXi with the SDK. someone tell me how to prove?.
>
> I also want to know if any of you would be interested in
supporting me
> to finish my installation properly, and if you are interested
please say
> as it would be the approximate cost.








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







--
Atte.

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








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






Re: SDK can not connect to VMWare

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


Regards,
Andy

On 2/2/2011 6:30 PM, Mauricio César Ramírez Torres wrote:

Good day, I have a problem with VCL 2.2 using VMWare ESXi 4.0 with SDK
4, basically trying to create a base image says that the SDK can not
connect to VMWare server, but do not know how I can prove it is possible
to connect to ESXi with the SDK. someone tell me how to prove?.

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


Re: Image Capture issue

2011-02-04 Thread Andy Kurth
bh}, attempting disconnect
2011-01-28 11:32:04|4026|1:1|image|State.pm:DESTROY(932)|$ENV{dbh}: database 
disconnect successful
2011-01-28 11:32:04|4026|1:1|image|State.pm:DESTROY(946)|VCL::image process 
4026 exiting
2011-01-28 11:32:04|3520|vcld:REAPER(745)|VCL process exited for reservation 1, 
PID: 4026, signal: CHLD
2011-01-28 11:32:04|3520|vcld:main(166)|lastcheckin time updated for management 
node 1: 2011-01-28 11:32:04



-Original Message-
From: Andy Kurth [mailto:andy_ku...@ncsu.edu]
Sent: Friday, January 28, 2011 11:32 AM
To: vcl-user@incubator.apache.org
Subject: Re: Image Capture issue

It looks like your VM computer "xpbase1" hasn't been assigned to a VM
host.  Try assigning it via the "Virtual Hosts" link on the VCL website.

-Andy




Re: Image Capture issue

2011-01-28 Thread Andy Kurth
It looks like your VM computer "xpbase1" hasn't been assigned to a VM 
host.  Try assigning it via the "Virtual Hosts" link on the VCL website.


-Andy


On 1/26/2011 5:54 PM, Hayashi, Daiyu wrote:

Help – need assistance with VCL 2.2

vHost on ESXi4.1

Issue with Image Capture for Base Image using Windows XP

Error message below-

Thank you,

Daiyu Hayashi

Information Technology Consultant

Mihaylo College of Business and Economics

California State University at Fullerton

dhaya...@fullerton.edu



[root@vcl-manage bin]# ./vcld -setup

VCL Management Node Setup



Select a module to configure:

1. VCL Base Module

2. VCL Image State Module

3. Windows OS Module

[vcld]

Make a selection (1-3, 'c' to cancel): 2



Choose an operation:

1. Capture Base Image

[vcld/Image]

Make a selection (1, 'c' to cancel): 1

Enter the VCL login name or ID of the user who will own the image:
[admin]: 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): xpbase1

Computer to be captured: xpbase1 (ID: 8)

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): xpbase1

Added new image to database: 'xpbase1'

image.name: vmwarewinxp-xpbase17-v0

image.id: 7

imagerevision.id: 7

imagemeta.id: 4

resource.id: 20



Inserted imaging request to the database:

request ID: 3

reservation ID: 3

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 '3:3'



2011-01-26 14:15:01|3906|utils.pm:setup_get_array_choice(9986)|choices
argument:

|3906| x86

|3906| x86_64

2011-01-26 14:15:02|3906|utils.pm:setup_get_array_choice(9986)|choices
argument:

|3906| Yes

|3906| No

2011-01-26 14:15:02|3514|vcld:main(166)|lastcheckin time updated for
management node 1: 2011-01-26 14:15:02

2011-01-26 14:15:07|3514|vcld:main(166)|lastcheckin time updated for
management node 1: 2011-01-26 14:15:07

2011-01-26 14:15:10|3906|utils.pm:insert_request(8443)|inserted new
reload request into request table, request id=3

2011-01-26 14:15:10|3906|utils.pm:insert_request(8474)|inserted new
reload request into reservation table, reservation id=3

2011-01-26 14:15:12|3514|vcld:main(166)|lastcheckin time updated for
management node 1: 2011-01-26 14:15:12

2011-01-26
14:15:12|3514|3:3|image|utils.pm:reservation_being_processed(9010)|computerloadlog
'begin' entry does NOT exist for reservation 3

2011-01-26 14:15:13|3514|3:3|image|utils.pm:run_command(9082)|executed
command: pgrep -fl 'vcld [0-9]+:3 ', pid: 3912, exit status: 1, output:

2011-01-26
14:15:13|3514|3:3|image|utils.pm:is_management_node_process_running(9259)|process
is NOT running, identifier: 'vcld [0-9]+:3 '

2011-01-26
14:15:13|3514|3:3|image|utils.pm:reservation_being_processed(9031)|reservation
is NOT currently being processed

2011-01-26 14:15:13|3514|3:3|image|vcld:main(277)|reservation 3 is NOT
already being processed

2011-01-26
14:15:13|3514|3:3|image|utils.pm:get_request_info(4589)|standalone
affiliation found: Local

2011-01-26 14:15:13|3514|3:3|image|vcld:main(282)|retrieved request
information from database

2011-01-26
14:15:13|3514|3:3|image|DataStructure.pm:is_parent_reservation(943)|returning
true: parent reservation ID for this request: 3

2011-01-26
14:15:13|3514|3:3|image|utils.pm:update_request_state(2049)|request 3
state updated to: pending, laststate to: image

2011-01-26 14:15:13|3514|3:3|image|utils.pm:insertloadlog(3933)|inserted
computer=8, begin, beginning to process, state is image

2011-01-26 14:15:13|3514|3:3|image|vcld:make_new_child(510)|loaded
VCL::image module

2011-01-26 14:15:13|3914|3:3|image|vcld:make_new_child(583)|vcld
environment variable set to 0 for this process

2011-01-26 14:15:13|39

Re: Reservation failed

2011-01-18 Thread Andy Kurth
There is a bug in the VCL 2.2 code that is causing the "unable to 
determine relative datastore path" problem.  I have traced through the 
2.2 code and the latest code and believe this has been fixed.  I would 
recommend downloading and trying the latest code in the repository:
-Install a Subversion client on your management node if not already 
installed

-/sbin/service vcld stop
-Rename the directory where the management node components are 
installed, usually /usr/local/vcl

-Checkout the management node code from Subversion with the command:
svn co 
http://svn.apache.org/repos/asf/incubator/vcl/tags/release-2.2/managementnode 
/usr/local/vcl

-/sbin/service vcld stop

Running 'svn co' to checkout the code will allow you to easily update it 
later on by running 'svn update'.


SSH will need to be working from the management node to the VM host. 
The latest code will use SSH/vim-cmd to control the VMware host rather 
than the vSphere SDK because the ability to manage some features are 
missing from the vSphere SDK under VMware Server 2.0, so SSH access is 
required.  It appears that you're using the same computer for the 
management node and VM host.  This is fine but the following command 
must work (change the path to your private SSH identity key if not using 
/etc/vcl/vcl.key):

ssh -i /etc/vcl/vcl.key localvmhost

Also, the other warnings that appear in your log file can be suppressed 
by setting a sysadmin email address for the management node:
Management Nodes > Edit Management Node Information > Edit > SysAdmin 
Email Address(es):


Hope this helps,
Andy



On 1/6/2011 7:26 AM, Hicham Gibet Tani wrote:

Hello everybody,

We did fix the problem of copying the VM images.


The image capture return an output describing that the image capture was
successfully using the provisioning engine but after that when the image
is being reloaded the reservation failed.


We tried to access the image from the web browser but it displays that
there is no selection currently available.


Please we need your help!!


Cordially,

Gibet Tani Hicham

Eloutouate Lamiae


Here is the output:

2010-12-27
10:41:04|7331|1:2|image|image.pm:process(165)|vmwarelinux-base9-v3 image
was successfully captured by the provisioning module

2010-12-27
10:41:04|7331|1:2|image|image.pm:process(222)|vmwarelinux-base9-v3 image
files successfully saved

2010-12-27
10:41:04|7331|1:2|image|utils.pm:update_request_state(2049)|request 1
state updated to: completed, laststate to: image

2010-12-27 10:41:04|7331|1:2|image|image.pm:process(225)|request state
updated to completed, laststate to image

2010-12-27
10:41:04|7331|1:2|image|VMware.pm:get_repository_vmdk_base_directory_path(2654)|repository
path is not set for the VM profile, using management node install path:
/install/vmware_images

2010-12-27
10:41:04|7331|1:2|image|VMware.pm:get_image_size_bytes(2855)|checking
size of image in image repository:
/install/vmware_images/vmwarelinux-base9-v3/vmwarelinux-base9-v3*.vmdk

2010-12-27
10:41:04|7331|1:2|image|VMware.pm:get_image_size_bytes(2870)|retrieved
size of image in image repository: 3587376055

2010-12-27
10:41:04|7331|1:2|image|VMware.pm:get_image_size_bytes(2900)|size of
vmwarelinux-base9-v3 image: 3,587,376,055 bytes (3,421 MB, 3.34 GB)

2010-12-27 10:41:04|7331|1:2|image|image.pm:process(234)|size of
vmwarelinux-base9-v3: 3421

2010-12-27
10:41:04|7331|1:2|image|DataStructure.pm:_automethod(786)|data structure
updated: $self->request_data->{reservation}{2}{image}{size}

|7331|1:2|image| image_size = 3421

2010-12-27 10:41:04|7331|1:2|image|image.pm:process(263)|image and
imagerevision tables updated for image=9, imagerevision=10,
name=vmwarelinux-base9-v3, lastupdate=2010-12-27 10:24:54, deleted=0,
size=3421

|7331|1:2|image|  WARNING 

|7331|1:2|image| 2010-12-27
10:41:04|7331|1:2|image|DataStructure.pm:_automethod(764)|corresponding
data has not been initialized for get_management_node_sysadmin_email:
$ENV{management_node_info}{SYSADMIN_EMAIL}

|7331|1:2|image| ( 0) utils.pm , notify (line: 630)

|7331|1:2|image| (-1) DataStructure.pm, _automethod (line: 764)

|7331|1:2|image| (-2) Autoload.pm, __ANON__ (line: 80)

|7331|1:2|image| (-3) image.pm ,
reservation_successful (line: 307)

|7331|1:2|image| (-4) image.pm , process (line: 273)

|7331|1:2|image| (-5) vcld, make_new_child (line: 595)

|7331|1:2|image| (-6) vcld, main (line: 342)

2010-12-27 10:41:04|4041|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-27 10:41:04

2010-12-27 10:41:09|4041|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-27 10:41:09

2010-12-27 10:41:14|4041|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-27 10:41:14

2010-12-27 10:41:19|4041|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-27 10:41:19

2010-12-27 10:41:25|4041|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-27 10:41:

Re: Reservation failed

2011-01-06 Thread Andy Kurth

Hello,
Sorry for the delay.  The "unable to determine datastore path" is a 
problem.  What version of VMware are you using?


-Andy



On 1/6/2011 7:26 AM, Hicham Gibet Tani wrote:

Hello everybody,

We did fix the problem of copying the VM images.


The image capture return an output describing that the image capture was
successfully using the provisioning engine but after that when the image
is being reloaded the reservation failed.


We tried to access the image from the web browser but it displays that
there is no selection currently available.


Please we need your help!!


Cordially,

Gibet Tani Hicham

Eloutouate Lamiae


Here is the output:

2010-12-27
10:41:04|7331|1:2|image|image.pm:process(165)|vmwarelinux-base9-v3 image
was successfully captured by the provisioning module

2010-12-27
10:41:04|7331|1:2|image|image.pm:process(222)|vmwarelinux-base9-v3 image
files successfully saved

2010-12-27
10:41:04|7331|1:2|image|utils.pm:update_request_state(2049)|request 1
state updated to: completed, laststate to: image

2010-12-27 10:41:04|7331|1:2|image|image.pm:process(225)|request state
updated to completed, laststate to image

2010-12-27
10:41:04|7331|1:2|image|VMware.pm:get_repository_vmdk_base_directory_path(2654)|repository
path is not set for the VM profile, using management node install path:
/install/vmware_images

2010-12-27
10:41:04|7331|1:2|image|VMware.pm:get_image_size_bytes(2855)|checking
size of image in image repository:
/install/vmware_images/vmwarelinux-base9-v3/vmwarelinux-base9-v3*.vmdk

2010-12-27
10:41:04|7331|1:2|image|VMware.pm:get_image_size_bytes(2870)|retrieved
size of image in image repository: 3587376055

2010-12-27
10:41:04|7331|1:2|image|VMware.pm:get_image_size_bytes(2900)|size of
vmwarelinux-base9-v3 image: 3,587,376,055 bytes (3,421 MB, 3.34 GB)

2010-12-27 10:41:04|7331|1:2|image|image.pm:process(234)|size of
vmwarelinux-base9-v3: 3421

2010-12-27
10:41:04|7331|1:2|image|DataStructure.pm:_automethod(786)|data structure
updated: $self->request_data->{reservation}{2}{image}{size}

|7331|1:2|image| image_size = 3421

2010-12-27 10:41:04|7331|1:2|image|image.pm:process(263)|image and
imagerevision tables updated for image=9, imagerevision=10,
name=vmwarelinux-base9-v3, lastupdate=2010-12-27 10:24:54, deleted=0,
size=3421

|7331|1:2|image|  WARNING 

|7331|1:2|image| 2010-12-27
10:41:04|7331|1:2|image|DataStructure.pm:_automethod(764)|corresponding
data has not been initialized for get_management_node_sysadmin_email:
$ENV{management_node_info}{SYSADMIN_EMAIL}

|7331|1:2|image| ( 0) utils.pm , notify (line: 630)

|7331|1:2|image| (-1) DataStructure.pm, _automethod (line: 764)

|7331|1:2|image| (-2) Autoload.pm, __ANON__ (line: 80)

|7331|1:2|image| (-3) image.pm ,
reservation_successful (line: 307)

|7331|1:2|image| (-4) image.pm , process (line: 273)

|7331|1:2|image| (-5) vcld, make_new_child (line: 595)

|7331|1:2|image| (-6) vcld, main (line: 342)

2010-12-27 10:41:04|4041|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-27 10:41:04

2010-12-27 10:41:09|4041|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-27 10:41:09

2010-12-27 10:41:14|4041|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-27 10:41:14

2010-12-27 10:41:19|4041|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-27 10:41:19

2010-12-27 10:41:25|4041|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-27 10:41:24

2010-12-27 10:41:30|4041|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-27 10:41:30

2010-12-27 10:41:35|4041|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-27 10:41:35

2010-12-27 10:41:40|4041|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-27 10:41:40

2010-12-27 10:41:45|4041|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-27 10:41:45

2010-12-27 10:41:50|4041|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-27 10:41:50

2010-12-27 10:41:55|4041|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-27 10:41:55

2010-12-27 10:42:00|4041|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-27 10:42:00

2010-12-27 10:42:05|4041|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-27 10:42:05

2010-12-27 10:42:10|4041|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-27 10:42:10

2010-12-27 10:42:15|4041|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-27 10:42:15

2010-12-27 10:42:20|4041|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-27 10:42:20

2010-12-27 10:42:25|4041|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-27 10:42:25

2010-12-27 10:42:30|4041|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-27 10:42:30

2010-12-27 10:42:35|4041|vcld:main(16

Re: Remove Users from Administrators Group

2011-01-06 Thread Andy Kurth
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 Kurth  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

2010-12-16 Thread Andy Kurth

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

2010-12-10 Thread Andy Kurth
ervation
2010-12-03 13:45:35|7935|27:28|new|State.pm:DESTROY(921)|number of
database handles state process created: 1
2010-12-03 13:45:35|7935|27:28|new|State.pm:DESTROY(930)|process has a
database handle stored in $ENV{dbh}, attempting disconnect
2010-12-03 13:45:35|7935|27:28|new|State.pm:DESTROY(932)|$ENV{dbh}:
database disconnect successful
2010-12-03 13:45:35|7935|27:28|new|State.pm:DESTROY(946)|VCL::new
process 7935 exiting
2010-12-03 13:45:35|26406|vcld:REAPER(745)|VCL process exited for
reservation 28, PID: 7935, signal: CHLD
2010-12-03 13:45:35|26406|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-03 13:45:35
2010-12-03 13:45:40|26406|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-03 13:45:40
2010-12-03 13:45:45|26406|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-03 13:45:45
2010-12-03 13:45:50|26406|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-03 13:45:50
2010-12-03 13:45:55|26406|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-03 13:45:55
2010-12-03 13:46:00|26406|vcld:main(166)|lastcheckin time updated for
management node 1: 2010-12-03 13:46:00




On 03/12/10 09:06, Andy Kurth wrote:

Hello,
Sorry for the delay. I believe the problem is caused by the
imagerevision ID. The value set for the request is 7 but there is no
entry in the imagerevision table with ID=7. The imagerevision entry
for your new image is 5. Change reservation.imagerevisionid to 5. This
should allow the imaging reservation to proceed.

Hope this helps,
Andy

On 11/24/2010 11:16 AM, Mauricio Cesar Ramirez Torres wrote:

This is the content in my database.


Last login: Tue Nov 23 18:42:53 2010
[r...@vcl ~]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 66394
Server version: 5.0.77 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use vcl;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> select * from request;
++-++-+---++--+-+-+-+-+--+---+

| id | stateid | userid | laststateid | logid | forimaging | test |
preload | start | end | daterequested | datemodified | checkuser |
++-++-+---++--+-+-+-+-+--+---+

| 1 | 16 | 1 | 16 | 0 | 1 | 0 | 0 | 2010-11-12 17:10:06 | 2010-11-12
19:10:06 | 2010-11-12 17:10:06 | NULL | 1 |
| 10 | 14 | 1 | 13 | 3 | 0 | 0 | 0 | 2010-11-16 16:45:00 | 2010-11-16
18:00:00 | 2010-11-16 16:54:44 | NULL | 1 |
| 12 | 14 | 1 | 13 | 4 | 0 | 0 | 0 | 2010-11-16 18:45:00 | 2010-11-16
19:15:00 | 2010-11-16 18:01:36 | NULL | 1 |
| 13 | 14 | 2 | 19 | 0 | 0 | 0 | 0 | 2010-11-16 18:45:00 | 2010-11-16
19:05:00 | 2010-11-16 18:52:07 | NULL | 1 |
| 14 | 14 | 1 | 13 | 5 | 0 | 0 | 0 | 2010-11-17 17:15:00 | 2010-11-17
18:00:00 | 2010-11-17 17:22:47 | NULL | 1 |
| 15 | 14 | 1 | 13 | 6 | 0 | 0 | 0 | 2010-11-17 18:15:00 | 2010-11-17
19:00:00 | 2010-11-17 18:26:02 | NULL | 1 |
| 16 | 14 | 1 | 13 | 7 | 0 | 0 | 0 | 2010-11-18 13:30:00 | 2010-11-18
14:15:00 | 2010-11-18 13:32:22 | NULL | 1 |
| 17 | 14 | 1 | 13 | 8 | 0 | 0 | 0 | 2010-11-18 16:30:00 | 2010-11-18
17:15:00 | 2010-11-18 16:32:26 | NULL | 1 |
| 18 | 14 | 1 | 13 | 10 | 0 | 0 | 0 | 2010-11-18 17:30:00 | 2010-11-18
18:00:00 | 2010-11-18 17:01:08 | NULL | 1 |
| 19 | 14 | 1 | 13 | 11 | 0 | 0 | 0 | 2010-11-18 18:15:00 | 2010-11-18
18:45:00 | 2010-11-18 18:09:18 | NULL | 1 |
| 20 | 14 | 1 | 13 | 12 | 0 | 0 | 0 | 2010-11-18 19:00:00 | 2010-11-18
19:45:00 | 2010-11-18 19:09:35 | NULL | 1 |
| 21 | 14 | 1 | 13 | 13 | 0 | 0 | 0 | 2010-11-19 08:30:00 | 2010-11-19
09:15:00 | 2010-11-19 08:38:46 | NULL | 1 |
++-++-+---++--+-+-+-+-+--+---+

12 rows in set (0.00 sec)

mysql> select * from reservation;
++---++-+-+--+--+-+--+

| id | requestid | computerid | imageid | imagerevisionid |
managementnodeid | remoteIP | lastcheck | pw |
++---++-+-+--+--+-+--+

| 2 | 1 | 2 | 7 | 7 | 1 | NULL | NULL | NULL |
| 11 | 10 | 2 | 7 | 5 | 1 | NULL | -00-00 00:00:00 | NULL |
| 13 | 12 | 2 | 7 | 5 | 1 | NULL | -00-00 00:00:00 | NULL |
| 14 | 13 | 2 | 7 | 5 | 1 | NULL | -00-00 00:00:00 | NULL |
| 15 | 14 | 2 | 7 | 5 | 1 | NULL | -00-00 00:00:00 | NULL |
| 16 | 15 | 2 | 7 | 5 | 1 | NULL | -00-00 00:00:00 | NULL |
| 17 | 16 | 2 | 7 | 5 | 1 | NUL

Re: VCL installation issues

2010-12-03 Thread Andy Kurth

Hello,
This sounds like it may be a problem with the database.  I don't think 
the Perl components have anything to do with what you're describing. 
Also, it sounds like the web components are working correctly because 
you can map image groups to computer groups.


My first guess would be that there is a problem with the corresponding 
resource table entry for the image you're trying to map.  Please provide 
the following:


The name of the image you're trying to map and the following output:

select * from image;
select * from imagerevision;
select * from resource;
select * from resourcegroup;
select * from resourcegroupmembers;
select * from resourcemap;

Regards,
Andy

On 11/30/2010 6:53 PM, Nikhil Talpallikar wrote:

Hi,

I actually did perform this step (installing perl lib). I was successful
in getting the VCL installation done. I could add new resource groups,
new images (via phpmyadmin) and map image groups to computer groups.
Only when I try to map images to image groups the process stalls and no
mapping is done.


My understanding is that if I can update the database and get the web
gui of VCL, there is no issue of version dependencies. Correct me if I
am wrong.


Thanks,
Nikhil

On Tue, Nov 30, 2010 at 3:14 PM, Aaron Peeler mailto:aaron_pee...@ncsu.edu>> wrote:

Hello Nikhil,

You'll also need the mysql-client rpm and perl libraries.

There is a script in the vcl/bin directory called install_perl_libs
that should take care of the required perl modules for you.

Aaron


On 11/30/10 2:02 PM, Nikhil Talpallikar wrote:

Hi all,

I am new to this list, so I do not know whether this question
should go to VCL dev or VCL user list.

I am trying to build a standalone VCL sandbox. I am using the
following versions. Please let me know if there should be an
incompatibility issue with the version numbers.

mysql 5.0
php 5.1
VCL 2.2
VMware Server 1.0
installed guest OS : CentOS-5.5-i386


[r...@bn17-4 nvtalpal]# rpm -qa | grep mysql
php-mysql-5.1.6-27.el5
mysql-5.0.77-4.el5_5.4
mysql-server-5.0.77-4.el5_5.4
[r...@bn17-4 nvtalpal]# rpm -qa | grep php
php-gd-5.1.6-27.el5
php-xml-5.1.6-27.el5
php-pdo-5.1.6-27.el5
php-ldap-5.1.6-27.el5
php-mysql-5.1.6-27.el5
php-common-5.1.6-27.el5
php-5.1.6-27.el5
php-cli-5.1.6-27.el5
php-xmlrpc-5.1.6-27.el5
php-mcrypt-5.1.6-15.el5.centos.1
[r...@bn17-4 nvtalpal]# rpm -qa | grep VMware
VMware-server-1.0.10-203137
[r...@bn17-4 nvtalpal]#



--
Thanks and Regards,
Nikhil Talpallikar



--

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







Re: Reservation always in Pending-state

2010-12-03 Thread Andy Kurth
 sysadminEmailAddress | sharedMailBox | NOT_STANDALONE |
++--++-+-+-+-+-++-+--+-+--++-+---+--+--+-++---++
| 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.








-

Re: Reservation always in Pending-state

2010-11-24 Thread Andy Kurth
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 imprimir este correo electrónico, piensa bien si es
imprescindible hacerlo.
El Medio Ambiente es cosa de todos.





Re: Reservation always in Pending-state

2010-11-18 Thread Andy Kurth

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.






Re: VCL2.2 VMware ESX profile

2010-11-16 Thread Andy Kurth

Hello,
I'm not sure if you have come across this page.  I wrote it up a few 
weeks ago:


https://cwiki.apache.org/confluence/display/VCL/VMware+Configuration

The error doesn't appear to be the result of a misconfigured VM profile. 
 It is failing to create an object connected to the VM host.  I'm 
wondering if this is intermittent because the log output you included 
isn't at the very beginning of the load process, and other tasks must 
have completed successfully earlier.


Are you still having trouble?  If so, please include all of the log 
output for the failed reservation.


Hope this helps,
Andy

On 10/22/2010 3:33 PM, John Ma wrote:

Hello,

I run into an issue when trying to reload a windows 2008 image with
VCL2.2/ESXi 4.1. See the attached vcld.log for the error text. I think
it's because I didn't set the parameters right on the profile for VMware
ESX host, screen capture attached.

Could someone give me a short description of the three paths there:
Repository Path, Datastore Path and VM Path?

.


Thanks,
John Ma
Sys Admin
Marist College


Re: Change NetBios Name for vms

2010-10-20 Thread Andy Kurth
I don't think it will necessarily cause performance problems.  The duplicate 
computer names will prevent netbios name resolution from working which may not 
even be used/required in most images.  The duplicate names do cause errors 
appear in the event log and possibly on the console because of netbios.  The 
errors can be suppressed by disabling netbios.  More info is available here:

http://www.petri.co.il/disable_netbios_in_w2k_xp_2003.htm

There is actually code in VCL to disable netbios but it isn't being called at 
the current time.  I'm thinking when the feature is added to separate the 
Sysprep and computer renaming settings that netbios should be automatically 
disabled if the computer name isn't changed.


-Andy

Kelly Robinson wrote:
Andy, 

Will the computer name not changing cause performance problems?  I've noticed that a message stating "Duplicate Name exists on the network" shows on the vm when you view it through ESXi, which leads me to wonder if this is an issue. 


Kelly


Andy Kurth  10/19/10 4:25 PM >>>

Currently, the computer name is only changed if Sysprep is enabled.  I would
like to add the ability to control whether or not the name gets changes
independent from Sysprep and created an issue a few weeks ago:
https://issues.apache.org/jira/browse/VCL-392

-Andy

Kelly Robinson wrote:

At what point in the provisioning of the vm does the netbios name get changed 
for each vm?  I've noticed that the our vms are retaining the netbios name of 
the base image.  I see in the code that there is a script called 
set_computer_name.vbs that works if you have wsname.exe in place (which we do), 
but the computer is supposed to get a random name even if this the wsname.exe 
utility is not available.  What could be the possible issue?

Kelly


Kelly P. Robinson
Georgia State University / IS&T
Software Systems Engineer, Lead
Platforms and Storage Engineering
krobinso...@gsu.edu  / 404-413-4757








  1   2   >