Re: Problem to create Base Image - VCL 2.2

2012-07-02 Thread Dmitri Chebotarov
|utils.pm:delete_computerloadlog_reservation(6829)|removing
  computerloadlog entries matching loadstate = begin
 2012-06-29 
 08:23:19|14897|31:31|image|utils.pm:delete_computerloadlog_reservation(6876)|deleted
  rows from computerloadlog for reservation id=31
 2012-06-29 08:23:19|14897|31:31|image|State.pm:DESTROY(909)|removed 
 computerloadlog rows with loadstate=begin for reservation
 2012-06-29 08:23:19|14897|31:31|image|State.pm:DESTROY(921)|number of 
 database handles state process created: 1
 2012-06-29 08:23:19|14897|31:31|image|State.pm:DESTROY(930)|process has a 
 database handle stored in $ENV{dbh}, attempting disconnect
 2012-06-29 08:23:19|14897|31:31|image|State.pm:DESTROY(932)|$ENV{dbh}: 
 database disconnect successful
 2012-06-29 08:23:19|14897|31:31|image|State.pm:DESTROY(946)|VCL::image 
 process 14897 exiting
 2012-06-29 08:23:19|19357|vcld:REAPER(745)|VCL process exited for reservation 
 31, PID: 14897, signal: CHLD
  
  
 * vSphere _SDK
  
 In our esx server do not exist the vmware_images directory and the 
 structure of the name for the .vmdk files is different 
 (Virtual9910-flat.vmdk) to the structure showed in the log 
 (vmwarewin7-testt0335-v0.vmdk)
  
 * SSH
  
 The log shows that the system is unable to retrieve the public and 
 private network configuration but de command/usr/bin/ssh -i /etc/vcl/vcl.key  
 -l root -p 22 -x plantilla1 'C:/Windows/Sysnative/ipconfig.exe /all' shows 
 this:

 Configuraci¢n IP de Windows
  
Nombre de host. . . . . . . . . : plantilla
Sufijo DNS principal  . . . . . : ua.mydomain.org
Tipo de nodo. . . . . . . . . . : h¡brido
Enrutamiento IP habilitado. . . : no
Proxy WINS habilitado . . . . . : no
Lista de b£squeda de sufijos DNS: ua.mydomain.org
mydomain.org
  
 Adaptador de Ethernet Conexi¢n de  rea local 2:
  
Sufijo DNS espec¡fico para la conexi¢n. . : ua.mydomain.org
Descripci¢n . . . . . . . . . . . . . . . : Conexi¢n de red Intel(R) 
 PRO/1000 MT #2
Direcci¢n f¡sica. . . . . . . . . . . . . : 00-50-56-97-6E-8B
DHCP habilitado . . . . . . . . . . . . . : s¡
Configuraci¢n autom tica habilitada . . . : s¡
Direcci¢n IPv4. . . . . . . . . . . . . . : 172.19.18.15(Preferido)
M scara de subred . . . . . . . . . . . . : 255.255.255.0
Concesi¢n obtenida. . . . . . . . . . . . : jueves, 28 de junio de 2012 
 04:49:10 a.m.
La concesi¢n expira . . . . . . . . . . . : mircoles, 26 de septiembre de 
 2012 04:49:10 a.m.
Puerta de enlace predeterminada . . . . . : 172.19.18.1
Servidor DHCP . . . . . . . . . . . . . . : 172.19.14.109
Servidores DNS. . . . . . . . . . . . . . : 172.19.14.41
172.19.14.42
NetBIOS sobre TCP/IP. . . . . . . . . . . : habilitado
  
 Adaptador de Ethernet Conexi¢n de  rea local:
  
Sufijo DNS espec¡fico para la conexi¢n. . : ua.mydomain.org
Descripci¢n . . . . . . . . . . . . . . . : Conexi¢n de red Intel(R) 
 PRO/1000 MT
Direcci¢n f¡sica. . . . . . . . . . . . . : 00-50-56-97-7C-34
DHCP habilitado . . . . . . . . . . . . . : s¡
Configuraci¢n autom tica habilitada . . . : s¡
Direcci¢n IPv4. . . . . . . . . . . . . . : 172.19.18.133(Preferido)
M scara de subred . . . . . . . . . . . . : 255.255.255.0
Concesi¢n obtenida. . . . . . . . . . . . : jueves, 28 de junio de 2012 
 03:26:59 a.m.
La concesi¢n expira . . . . . . . . . . . : mircoles, 26 de septiembre de 
 2012 03:27:00 a.m.
Puerta de enlace predeterminada . . . . . : 172.19.18.1
Servidor DHCP . . . . . . . . . . . . . . : 172.19.14.109
Servidores DNS. . . . . . . . . . . . . . : 172.19.14.41
172.19.14.42
NetBIOS sobre TCP/IP. . . . . . . . . . . : habilitado
  
 Adaptador de t£nel isatap.ua.reduniv.org:
  
Estado de los medios. . . . . . . . . . . : medios desconectados
Sufijo DNS espec¡fico para la conexi¢n. . : ua.mydomain.org
Descripci¢n . . . . . . . . . . . . . . . : Adaptador ISATAP de Microsoft
Direcci¢n f¡sica. . . . . . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP habilitado . . . . . . . . . . . . . : no
Configuraci¢n autom tica habilitada . . . : s¡
  
 Both IP addresses and MAC Addresses for the public and private networks 
 was configured in Managed Computers.
  
  
 Any idea to solve this problem?
  
  
 Kind regards
  
 Darío Zapata
  
 Información Confidencial.
 La información transmitida es para el uso exclusivo de la persona o
 entidad a quien va dirigida, y puede contener información de carácter
 confidencial o privilegiado. Se prohíbe a cualquier persona o entidad
 distinta al destinatario, cualquier revisión, retransmisión, distribución u
 otro uso de la información. Si recibió este mensaje por equivocación,
 atentamente le solicitamos eliminar la información de cualquier equipo
 de cómputo y hacerlo del conocimiento del remitente.
  
 
 
 --
 Thank you,
 
 Dmitri Chebotarov
 Virtual Computing Lab Systems

Re: Problem to create Base Image - VCL 2.2

2012-06-29 Thread Dmitri Chebotarov
 
 this:

 Configuraci¢n IP de Windows
  
Nombre de host. . . . . . . . . : plantilla
Sufijo DNS principal  . . . . . : ua.mydomain.org
Tipo de nodo. . . . . . . . . . : h¡brido
Enrutamiento IP habilitado. . . : no
Proxy WINS habilitado . . . . . : no
Lista de b£squeda de sufijos DNS: ua.mydomain.org
mydomain.org
  
 Adaptador de Ethernet Conexi¢n de  rea local 2:
  
Sufijo DNS espec¡fico para la conexi¢n. . : ua.mydomain.org
Descripci¢n . . . . . . . . . . . . . . . : Conexi¢n de red Intel(R) 
 PRO/1000 MT #2
Direcci¢n f¡sica. . . . . . . . . . . . . : 00-50-56-97-6E-8B
DHCP habilitado . . . . . . . . . . . . . : s¡
Configuraci¢n autom tica habilitada . . . : s¡
Direcci¢n IPv4. . . . . . . . . . . . . . : 172.19.18.15(Preferido)
M scara de subred . . . . . . . . . . . . : 255.255.255.0
Concesi¢n obtenida. . . . . . . . . . . . : jueves, 28 de junio de 2012 
 04:49:10 a.m.
La concesi¢n expira . . . . . . . . . . . : mircoles, 26 de septiembre de 
 2012 04:49:10 a.m.
Puerta de enlace predeterminada . . . . . : 172.19.18.1
Servidor DHCP . . . . . . . . . . . . . . : 172.19.14.109
Servidores DNS. . . . . . . . . . . . . . : 172.19.14.41
172.19.14.42
NetBIOS sobre TCP/IP. . . . . . . . . . . : habilitado
  
 Adaptador de Ethernet Conexi¢n de  rea local:
  
Sufijo DNS espec¡fico para la conexi¢n. . : ua.mydomain.org
Descripci¢n . . . . . . . . . . . . . . . : Conexi¢n de red Intel(R) 
 PRO/1000 MT
Direcci¢n f¡sica. . . . . . . . . . . . . : 00-50-56-97-7C-34
DHCP habilitado . . . . . . . . . . . . . : s¡
Configuraci¢n autom tica habilitada . . . : s¡
Direcci¢n IPv4. . . . . . . . . . . . . . : 172.19.18.133(Preferido)
M scara de subred . . . . . . . . . . . . : 255.255.255.0
Concesi¢n obtenida. . . . . . . . . . . . : jueves, 28 de junio de 2012 
 03:26:59 a.m.
La concesi¢n expira . . . . . . . . . . . : mircoles, 26 de septiembre de 
 2012 03:27:00 a.m.
Puerta de enlace predeterminada . . . . . : 172.19.18.1
Servidor DHCP . . . . . . . . . . . . . . : 172.19.14.109
Servidores DNS. . . . . . . . . . . . . . : 172.19.14.41
172.19.14.42
NetBIOS sobre TCP/IP. . . . . . . . . . . : habilitado
  
 Adaptador de t£nel isatap.ua.reduniv.org:
  
Estado de los medios. . . . . . . . . . . : medios desconectados
Sufijo DNS espec¡fico para la conexi¢n. . : ua.mydomain.org
Descripci¢n . . . . . . . . . . . . . . . : Adaptador ISATAP de Microsoft
Direcci¢n f¡sica. . . . . . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP habilitado . . . . . . . . . . . . . : no
Configuraci¢n autom tica habilitada . . . : s¡
  
 Both IP addresses and MAC Addresses for the public and private networks 
 was configured in Managed Computers.
  
  
 Any idea to solve this problem?
  
  
 Kind regards
  
 Darío Zapata
  
 Información Confidencial.
 La información transmitida es para el uso exclusivo de la persona o
 entidad a quien va dirigida, y puede contener información de carácter
 confidencial o privilegiado. Se prohíbe a cualquier persona o entidad
 distinta al destinatario, cualquier revisión, retransmisión, distribución u
 otro uso de la información. Si recibió este mensaje por equivocación,
 atentamente le solicitamos eliminar la información de cualquier equipo
 de cómputo y hacerlo del conocimiento del remitente.



--
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



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: RPM-ing VCL 2.2.1

2012-06-29 Thread Dmitri Chebotarov

Curtis,

I'm not sure if this can help - here a link to building VMware SDK's rpm - 
http://www.firetooth.net/confluence/display/public/vSphere+Perl+SDK+and+CLI+RPM+Packages.
Maybe VMware SDK rpm can be included as 4th package ...

Thanks.

On Jun 25, 2012, at 19:00 , Curtis C. wrote:

 Hi All,
 
 I've been working on an initial spec file for VCL 2.2.1. Currently I
 believe all the dependencies, CPAN modules included, can be obtained
 from the EPEL and RPMForge repositories. If the project is going to
 support RHEL and CentOS only then providing a RPM could allow you to
 remove the requirement to run (and maintain) the perl libs install
 script.
 
 Still a bit more work to do, but I thought I would send it along
 before I get too far to find out if anyone has
 suggestions/comments/criticisms. :)
 
 You can see it here: https://github.com/cybera/rpmspecs/blob/master/vcl.spec
 
 Right now it creates 3 packages: a main doc package (just contains the
 sql files right now), a web package, and a management node package.
 
 One question I have is about the:
 
 use VMware::Vix::Simple;
 use VMware::Vix::API::Constants
 
 in the VIX_API.pm file. Those libraries are not, AFAIK, distributed
 with VCL and the official install docs don't ask to have them
 installed either. But the rpmbuild process picks those modules up as
 requirements.
 
 Thanks,
 Curtis.



--
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



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: creating a base image

2012-06-29 Thread Dmitri Chebotarov
: 
 process exiting
 2012-06-29 12:08:31|11089|10:10|image|VIM_SSH.pm:DESTROY(1685)|vim-cmd call 
 count: 1
 2012-06-29 12:08:31|2165|vcld:REAPER(718)|VCL process exited for reservation 
 10, PID: 11089, signal: CHLD
 2012-06-29 12:08:31|2165|10:10|failed|vcld:main(252)|request deleted
 2012-06-29 12:10:02|2165|vcld:main(167)|lastcheckin time updated for 
 management node 2: 2012-06-29 12:10:02
 
 -- 
 
 
 will
 



--
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



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: VCL: public/private IP discrepency?

2012-06-26 Thread Dmitri Chebotarov
Michael

Could you please check that 'eth0macaddress', 'privateIPAddress' and 'hostname' 
(in VCL DB) matches 'hardware ethernet', 'fixed address' and 'host-name' 
options in dhcpd.conf for the host? Also, /etc/hosts should have an entry 
'privateIPAddress hostname' for captured computer.  

Can you also check that ifcfg-eth0 / 1 files don't have HWADDR option?


--
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 Tuesday, June 26, 2012 at 8:51 , Michael Jinks wrote:

 No, that's not the problem we're having. (We *did* have that problem,
 and just deleting the offending rule file no lnoger works in RHEL 6,
 but we fixed it by creating
 /etc/udev/rules.d/75-persistent-net-generator.rules as a symlink to
 /dev/null). At this point, Linux is doing the right thing with its
 network devices when the image deploys to new virtual hardware.
 
 The problem is that something -- and I can't think of any suspects other
 than something in VCL -- rewrites
 /etc/sysconfig/network-scripts/ifcfg-eth1 during the capture process, so
 that it comes up with what should be eth0's IP address.
 
 eth0, meanwhile, stays set to use DHCP, and gets the address we've
 assigned there, so both interfaces come up with the same IP.
 
 Okay, if VCL wants to write the config for the public-side IP, I thought
 I'd try changing the IP Address field in the database to the correct
 one for this machine's public interface. But when I do that, vcld tries
 to ssh to that address to initiate capture, and of course that fails
 because the sshd listening on that interface doesn't trust vcld's key.
 
 So it seems like we're in a catch 22 with our address naming, and I
 don't know what I've done wrong.
 
 
 On Mon, Jun 25, 2012 at 06:23:54PM -0400, Mike Haudenschild wrote:
  To clarify: Linux is probably creating an eth2 because it's holding out
  that its OLD eth0 (which was in your image) might someday come back.
  
  On Mon, Jun 25, 2012 at 6:22 PM, Mike Haudenschild
  [1]m...@longsight.com (mailto:m...@longsight.com) wrote:
  
  Ahh, I think you're running into this:
  
  [2]http://markmail.org/message/t2ajnaew5qe4jxul
  On Mon, Jun 25, 2012 at 5:55 PM, Michael Jinks [3]mji...@uchicago.edu 
  (mailto:mji...@uchicago.edu)
  wrote:
  
  That's more or less what we're doing. Here are some details:
  The source VM I'm capturing from is not represented in DNS at all.
  On my management node in /etc/hosts I have:
  10.50.84.15 vcl-linux-template-2-bak
  [4]128.135.192.15 vcl-linux-template-2
  (The second line is for my reference; it shouldn't be used by
  anything
  as far as I know.)
  In dhcpd.conf I have:
  host vcl-linux-template-2-bak {
  option host-name vcl-linux-template-2;
  hardware ethernet 00:50:56:01:99:0f;
  fixed-address 10.50.84.15;
  filename /tftpboot/pxelinux.0;
  option dhcp-server-identifier 10.50.84.2;
  next-server 10.50.84.2;
  }
  In the VCL database, the IP address for this host is 10.50.84.15 and
  the
  hostname is vcl-linux-template-2-bak.
  During capture, when prompted for the hostname or IP address of the
  image to capture, I enter the IP address.
  That all works fine for starting the capture. But for some reason,
  when
  the VM image is captured and then immediately redeployed, it comes
  up
  with its public-facing interface set to 10.50.84.15, and it appears
  that
  something in the capture process is rewriting the ifcfg-eth1 config
  file
  to match that address.
  That's why I tried changing the IP in the database to the public
  one,
  which led to the ssh failure.
  
  On Mon, Jun 25, 2012 at 03:51:19PM -0400, Mike Haudenschild wrote:
   Hi Mike,
  
   I handle this by running DHCP on the private VCL network, assigning
  MAC addresses to specific VMs so as to make them predictable. Then add
  each hosts PRIVATE IP to the management node's /etc/hosts file. This
  will force the management node to resolve the compute name to the
  private IP, instead of the public IP (which is probably coming from
  your DNS server).
  
   Regards,
   Mike
  
   Sent via iPhone
  
   On Jun 25, 2012, at 15:45, Michael Jinks [5]mji...@uchicago.edu 
   (mailto:mji...@uchicago.edu)
  wrote:
  
Hi List. Still trying to get a successful capture and deploy to
  run;
here's my latest glitch.
   
In the VCL web interface, under Manage Computers - Edit
  Computer
Information, there's a single field for IP address. I've been
entering the private-side IP address for VM's I'm trying to
  capture.
   
...But, a few minutes ago I realized that VCL is using that field
  to
rewrite my VM's public-facing address configuration during the
  capture
process. Needless to say, that causes a failure when the captured
  VM
boots.
   
So, I tried filling the IP Address field with the public-side
  address,
but that causes a failure when we try to capture the image, because
  vcld

Re: libvirt/KVM

2012-06-20 Thread Dmitri Chebotarov

Andy

I did 'svn up' and ran install_perl_libs.pl as well.
While trying to make reservation still getting an error. Attached is 
reservation log. 
I'll try to trace the error, if you see something what causes it, please let me 
know.

I'll try to capture image with new code little later today and will let you 
know if it fails.

Thanks.

---

Dmitri Chebotarov
Virtual Computing Lab Systems Engineer, TSD - Ent Servers  Messaging
223 Aquia Building, Ffx, MSN: 1B5
Phone: (703) 993-6175
Fax: (703) 993-3404


On Wednesday, June 20, 2012 at 10:38 , Andy Kurth wrote:

 There were some definite bugs which I hopefully corrected with the
 commit from this morning. Be sure to use the latest code from trunk.
 Also, you'll need to run install_perl_libs.pl (http://install_perl_libs.pl) 
 again.
 
 Regarding KVM installation/configuration, I have mainly been working
 off of Fedora 16. The version of KVM included with Fedora 16 seems
 more stable than Red Hat or CentOS 6.x. The code should work under
 these OS's but automatic conversion of existing ESXi images to
 KVM-compatible qcow2 images probably won't work. The version of
 qemu-img included with Fedora 16 is able to do the conversion
 correctly. The versions included with Red Had and CentOS do not.
 
 Regarding image conversion, you should be able load an existing vmdk
 ESXi image on KVM if the image resides in the repository path. The
 code should copy it to the datastore in the format specified for the
 image type in the VM profile for your KVM host. Be sure to set this
 to qcow2.
 
 I fixed some bugs which caused base image creation to fail in the
 commit this morning. Please try this out.
 
 I started the following page which describes which components to
 install and how to configure networking and storage:
 https://cwiki.apache.org/confluence/display/VCL/KVM+Configuration
 
 -Andy
 
 On Tue, Jun 19, 2012 at 5:02 PM, Dmitri Chebotarov dcheb...@gmu.edu 
 (mailto:dcheb...@gmu.edu) wrote:
  Hi
  
  Has anyone tried Libvirt in 2.3 RC3?
  
  I've updated VCL 2.2.1 to VCL 2.3 and cannot get Libvirt working.
  I've made some adjustments and able to successfully capture an image, but
  cannot make reservation based on the image.
  
  I'm using CentOS 6.2 with KVM as VM host (yum groupinstall Virtualization
  'Virtualization Client' 'Virtualization Platform' 'Virtualization Tools').
  
  If Libvirt is working for you, could you please share your configuration
  (ie. VM host version and packages, VCL computer configuration, etc) ?
  
  --
  Thank you,
  
  Dmitri Chebotarov
  Virtual Computing Lab Systems Engineer, TSD - Ent Servers  Messaging
  223 Aquia Building, Ffx, MSN: 1B5
  Phone: (703) 993-6175
  Fax: (703) 993-3404
 




Untitled.txt
Description: Binary data


Re: libvirt/KVM

2012-06-20 Thread Dmitri Chebotarov

I think I'm missing something here. I fail to understand how KVM-based image is 
linked to libvirt.pm/KVM.pm modules in this case (and if it should).
Once I set image.osid to 36, (36 is os.id for vmwarelinux, module 5 - 
VCL::Module::OS::Linux), vcld is trying to load KVM-based image to a computer 
with Provisioning Engine set to VMware and using a VMware host. It fails.

In this case (image.OSid = 36) there is no link between KVM image and libvirt 
computers/KVM hosts.

Thanks.

---

Dmitri Chebotarov
Virtual Computing Lab Systems Engineer, TSD - Ent Servers  Messaging
223 Aquia Building, Ffx, MSN: 1B5
Phone: (703) 993-6175
Fax: (703) 993-3404


On Wednesday, June 20, 2012 at 13:06 , Andy Kurth wrote:

 image.OSid should be set to the id that corresponds to vmwarelinux.
 OS.moduleid should point to the os_linux module table entry, which has
 module.perlpackagepath = VCL::Module::OS::Linux.
 
 -Andy
 
 On Wed, Jun 20, 2012 at 12:30 PM, Dmitri Chebotarov dcheb...@gmu.edu 
 (mailto:dcheb...@gmu.edu) wrote:
  Andy
  
  It's pointing to VCL::Module::Provisioning::libvirt
  
  This is a result of my earlier attempt to troubleshoot the issue. I've 
  added new OSid, moduleid.
  The original image.osid was 29, which is CentOS Bare Metal, processed by 
  VCL::Module::OS::Linux.
  With image.osid set to 29 VCL was trying to use xCAT module to process KVM 
  reservations.
  
  At this moment I don't have any xCAT (bare metal) computers available and 
  once I select the [KVM] image for reservation I get popup asking to select 
  available time for reservation, which means that I don't have available 
  resources to support this reservation.
  
  When I've added new OSid and moduleid (pointing to 
  VCL::Module::Provisioning::libvirt), I'm able to start reservation, VCLd 
  finds available computers (which are configured to use libvirt engine) and 
  attempts to make reservation on correct KVM host, but fails with error 
  attached in previous email.
  
  What should image.osid, moduleid be set to?
  
  --
  Dmitri Chebotarov
  Virtual Computing Lab Systems Engineer, TSD - Ent Servers  Messaging
  223 Aquia Building, Ffx, MSN: 1B5
  Phone: (703) 993-6175
  Fax: (703) 993-3404
  
  
  On Wednesday, June 20, 2012 at 11:52 , Andy Kurth wrote:
  
   For some reason the OS module for the image being loaded is showing as
   VCL::Module::Provisioning::libvirt. Check which module
   centos5image-kvmlinuxv4105-v0 is configured to use in the database:
   image.OSid -- OS.moduleid -- module.perlpackagepath
   
   -Andy
   
   On Wed, Jun 20, 2012 at 11:24 AM, Dmitri Chebotarov dcheb...@gmu.edu 
   (mailto:dcheb...@gmu.edu) wrote:

Andy

I did 'svn up' and ran install_perl_libs.pl 
(http://install_perl_libs.pl (http://_perl_libs.pl)) as well.
While trying to make reservation still getting an error. Attached is 
reservation log.
I'll try to trace the error, if you see something what causes it, 
please let me know.

I'll try to capture image with new code little later today and will let 
you know if it fails.

Thanks.

---

Dmitri Chebotarov
Virtual Computing Lab Systems Engineer, TSD - Ent Servers  Messaging
223 Aquia Building, Ffx, MSN: 1B5
Phone: (703) 993-6175
Fax: (703) 993-3404


On Wednesday, June 20, 2012 at 10:38 , Andy Kurth wrote:

 There were some definite bugs which I hopefully corrected with the
 commit from this morning. Be sure to use the latest code from trunk.
 Also, you'll need to run install_perl_libs.pl 
 (http://install_perl_libs.pl (http://_perl_libs.pl) 
 (http://_perl_libs.pl)) again.
 
 Regarding KVM installation/configuration, I have mainly been working
 off of Fedora 16. The version of KVM included with Fedora 16 seems
 more stable than Red Hat or CentOS 6.x. The code should work under
 these OS's but automatic conversion of existing ESXi images to
 KVM-compatible qcow2 images probably won't work. The version of
 qemu-img included with Fedora 16 is able to do the conversion
 correctly. The versions included with Red Had and CentOS do not.
 
 Regarding image conversion, you should be able load an existing vmdk
 ESXi image on KVM if the image resides in the repository path. The
 code should copy it to the datastore in the format specified for the
 image type in the VM profile for your KVM host. Be sure to set this
 to qcow2.
 
 I fixed some bugs which caused base image creation to fail in the
 commit this morning. Please try this out.
 
 I started the following page which describes which components to
 install and how to configure networking and storage:
 https://cwiki.apache.org/confluence/display/VCL/KVM+Configuration
 
 -Andy
 
 On Tue, Jun 19, 2012 at 5:02 PM, Dmitri Chebotarov dcheb...@gmu.edu 
 (mailto:dcheb...@gmu.edu) wrote:
  Hi
  
  Has anyone tried Libvirt

Re: libvirt/KVM

2012-06-20 Thread Dmitri Chebotarov
Andy 

Success! Thank you for your help.
Correct, I'm working with KVM-based Linux image.

I was able to make it work with a slight changes. 

Do you have any entries in vcl.OS table with installtype='libvirt'?  
The only way I'm able to make reservations is by adding new entry into vcl.OS 
table and then setting image.osid to the id of the new entry (49 in my case):

This is the entry I've added:

select * from OS where installtype='libvirt';
++--+--+---+-+---+--+
| id | name | prettyname | type | installtype | sourcepath | moduleid |
++--+--+---+-+---+--+
| 49 | libvirtlinux | CentOS 5/6 (libvirt) | linux | libvirt | vmware_images | 
5 | 
++--+--+---+-+---+--+



Thanks.
--
Dmitri Chebotarov
Virtual Computing Lab Systems Engineer, TSD - Ent Servers  Messaging
223 Aquia Building, Ffx, MSN: 1B5
Phone: (703) 993-6175
Fax: (703) 993-3404


On Wednesday, June 20, 2012 at 15:43 , Andy Kurth wrote:

 I'm confused about what you're trying to load. Is
 centos5image-kvmlinuxv4105-v0 a bare metal image? The reservation
 info you sent earlier had this image being loaded on the virtual
 machine sandbox-vcl-19.
 
 Assuming you have a Linux VM image, its OSid should be set to
 vmwarelinux, which should be pointing to VCL::Module::OS::Linux.
 
 The computer.provisioningid value of the VM should be set the libvirt
 entry in the provisioning table, which should be pointing to
 VCL::Module::Provisioning::libvirt.
 
 -Andy
 
 
 On Wed, Jun 20, 2012 at 2:57 PM, Dmitri Chebotarov dcheb...@gmu.edu 
 (mailto:dcheb...@gmu.edu) wrote:
  
  I think I'm missing something here. I fail to understand how KVM-based 
  image is linked to libvirt.pm/KVM.pm modules in this case (and if it 
  should).
  Once I set image.osid to 36, (36 is os.id for vmwarelinux, module 5 - 
  VCL::Module::OS::Linux), vcld is trying to load KVM-based image to a 
  computer with Provisioning Engine set to VMware and using a VMware host. It 
  fails.
  
  In this case (image.OSid = 36) there is no link between KVM image and 
  libvirt computers/KVM hosts.
  
  Thanks.
  
  ---
  
  Dmitri Chebotarov
  Virtual Computing Lab Systems Engineer, TSD - Ent Servers  Messaging
  223 Aquia Building, Ffx, MSN: 1B5
  Phone: (703) 993-6175
  Fax: (703) 993-3404
  
  
  On Wednesday, June 20, 2012 at 13:06 , Andy Kurth wrote:
  
   image.OSid should be set to the id that corresponds to vmwarelinux.
   OS.moduleid should point to the os_linux module table entry, which has
   module.perlpackagepath = VCL::Module::OS::Linux.
   
   -Andy
   
   On Wed, Jun 20, 2012 at 12:30 PM, Dmitri Chebotarov dcheb...@gmu.edu 
   (mailto:dcheb...@gmu.edu) wrote:
Andy

It's pointing to VCL::Module::Provisioning::libvirt

This is a result of my earlier attempt to troubleshoot the issue. I've 
added new OSid, moduleid.
The original image.osid was 29, which is CentOS Bare Metal, processed 
by VCL::Module::OS::Linux.
With image.osid set to 29 VCL was trying to use xCAT module to process 
KVM reservations.

At this moment I don't have any xCAT (bare metal) computers available 
and once I select the [KVM] image for reservation I get popup asking to 
select available time for reservation, which means that I don't have 
available resources to support this reservation.

When I've added new OSid and moduleid (pointing to 
VCL::Module::Provisioning::libvirt), I'm able to start reservation, 
VCLd finds available computers (which are configured to use libvirt 
engine) and attempts to make reservation on correct KVM host, but fails 
with error attached in previous email.

What should image.osid, moduleid be set to?

--
Dmitri Chebotarov
Virtual Computing Lab Systems Engineer, TSD - Ent Servers  Messaging
223 Aquia Building, Ffx, MSN: 1B5
Phone: (703) 993-6175
Fax: (703) 993-3404


On Wednesday, June 20, 2012 at 11:52 , Andy Kurth wrote:

 For some reason the OS module for the image being loaded is showing as
 VCL::Module::Provisioning::libvirt. Check which module
 centos5image-kvmlinuxv4105-v0 is configured to use in the database:
 image.OSid -- OS.moduleid -- module.perlpackagepath
 
 -Andy
 
 On Wed, Jun 20, 2012 at 11:24 AM, Dmitri Chebotarov dcheb...@gmu.edu 
 (mailto:dcheb...@gmu.edu) wrote:
  
  Andy
  
  I did 'svn up' and ran install_perl_libs.pl 
  (http://install_perl_libs.pl (http://_perl_libs.pl) 
  (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

libvirt/KVM

2012-06-19 Thread Dmitri Chebotarov
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: Making Documentation link available on the very 1st page?

2012-06-08 Thread Dmitri Chebotarov


--

Hi

To be fair, I need to say that the idea wasn't my and most of the work adding 
this option was done by Mark Craft. I just continued his work, tested it and 
attached the code. 

--
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, June 8, 2012 at 8:18 , Aaron Peeler wrote:

 Hi Dmitri,
 
 I think it's a great idea and looks good.
 
 Aaron
 
 On Thu, Jun 7, 2012 at 1:30 PM, Dmitri Chebotarov dcheb...@gmu.edu 
 (mailto:dcheb...@gmu.edu) wrote:
  
  Please take a look at https://issues.apache.org/jira/browse/VCL-593, which
  suggests possible solution to add links to VCL login page.
  
  --
  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 Thursday, June 7, 2012 at 9:02 , Mark Gardner wrote:
  
  I like the idea of making it easier to get information about VCL.
  
  Mark
  
  On Wed, Jun 6, 2012 at 11:05 AM, Josh Thompson josh_thomp...@ncsu.edu 
  (mailto:josh_thomp...@ncsu.edu)
  wrote:
  
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
  
  Dmitri,
  
  I like the idea of having a link to more information about VCL without
  requiring people to first log in to see the link.  However, I think it would
  be strange to only have a single item in the navigation area on the left.
   How
  about adding a few information links?  Maybe something like the following:
  
  What is VCL?
  Using VCL
  Getting Access to VCL
  
  Each would be a link to the Apache VCL site by default, but could be changed
  for individual sites if so desired.
  
  What do others think?
  
  Josh
  
  On Tuesday, June 05, 2012 4:10:34 PM Dmitri Chebotarov wrote:
  
  Hi
  
  Is it possible to make Documentation link available on very 1st page at VCL
  website? If possible it should be on the left pane, where modules links
  usually displayed after login. User can click an learn about VCL system
  before they need to select authentication and/or login to the VCL.
  
  --
  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
  
  - --
  - ---
  Josh Thompson
  VCL Developer
  North Carolina State University
  
  my GPG/PGP key can be found at pgp.mit.edu
  
  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.
  -BEGIN PGP SIGNATURE-
  Version: GnuPG v2.0.17 (GNU/Linux)
  
  iEYEARECAAYFAk/PcdMACgkQV/LQcNdtPQPGRwCfSQBkbC7TXrvI3jmshi5mgAPN
  7Z0An3FluOiAouvLutqbF1AQGn0qtkim
  =zuIY
  -END PGP SIGNATURE-
  
  
  
  
  --
  Mark Gardner
  --
  
 
 
 
 
 -- 
 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: Making Documentation link available on the very 1st page?

2012-06-07 Thread Dmitri Chebotarov

Please take a look at https://issues.apache.org/jira/browse/VCL-593, which 
suggests possible solution to add links to VCL login page.

--
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 Thursday, June 7, 2012 at 9:02 , Mark Gardner wrote:

 I like the idea of making it easier to get information about VCL.
 
 Mark
 
 On Wed, Jun 6, 2012 at 11:05 AM, Josh Thompson josh_thomp...@ncsu.edu 
 (mailto:josh_thomp...@ncsu.edu) wrote:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
  
  Dmitri,
  
  I like the idea of having a link to more information about VCL without
  requiring people to first log in to see the link.  However, I think it would
  be strange to only have a single item in the navigation area on the left.  
  How
  about adding a few information links?  Maybe something like the following:
  
  What is VCL?
  Using VCL
  Getting Access to VCL
  
  Each would be a link to the Apache VCL site by default, but could be changed
  for individual sites if so desired.
  
  What do others think?
  
  Josh
  
  On Tuesday, June 05, 2012 4:10:34 PM Dmitri Chebotarov wrote:
   Hi
   
   Is it possible to make Documentation link available on very 1st page at 
   VCL
   website? If possible it should be on the left pane, where modules links
   usually displayed after login. User can click an learn about VCL system
   before they need to select authentication and/or login to the VCL.
   
   --
   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
   
  
  - --
  - ---
  Josh Thompson
  VCL Developer
  North Carolina State University
  
  my GPG/PGP key can be found at pgp.mit.edu
  
  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.
  -BEGIN PGP SIGNATURE-
  Version: GnuPG v2.0.17 (GNU/Linux)
  
  iEYEARECAAYFAk/PcdMACgkQV/LQcNdtPQPGRwCfSQBkbC7TXrvI3jmshi5mgAPN
  7Z0An3FluOiAouvLutqbF1AQGn0qtkim
  =zuIY
  -END PGP SIGNATURE-
  
 
 
 
 
 -- 
 Mark Gardner
 --
 
 




Making Documentation link available on the very 1st page?

2012-06-05 Thread Dmitri Chebotarov
Hi

Is it possible to make Documentation link available on very 1st page at VCL 
website? If possible it should be on the left pane, where modules links usually 
displayed after login.
User can click an learn about VCL system before they need to select 
authentication and/or login to the VCL.

--
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: Max Number of VMs per Host

2012-05-25 Thread Dmitri Chebotarov
True, would be interesting to compare other supported hypervisors to ESXi. 
With limits in ESXi 5.0 free versions many will be looking for alternative 
hypervisors. 
I remember seeing support for Xen in future VCL releases - does it include Xen 
Cloud Platform (XCP) and XenServer 5.6/6 ?   

--
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 Thursday, May 24, 2012 at 21:03 , Sanders, Arbin D wrote:

 How about other hypervisors? KVM limits?
 
 Arbin D. Sanders
 
 Sent from my Motorola Smartphone on the Now Network from Sprint!
 
 -Original message-
  From: Dmitri Chebotarov dcheb...@gmu.edu (mailto:dcheb...@gmu.edu)
  To: vcl-user@incubator.apache.org (mailto:vcl-user@incubator.apache.org) 
  vcl-user@incubator.apache.org (mailto:vcl-user@incubator.apache.org)
  Cc: vcl-user@incubator.apache.org (mailto:vcl-user@incubator.apache.org) 
  vcl-user@incubator.apache.org (mailto:vcl-user@incubator.apache.org), 
  vcl-...@incubator.apache.org (mailto:vcl-...@incubator.apache.org) 
  vcl-...@incubator.apache.org (mailto:vcl-...@incubator.apache.org)
  Sent: Thu, May 24, 2012 17:54:59 EDT
  Subject: Re: Max Number of VMs per Host
  
  This link may be helpful
  
  http://kb.vmware.com/selfservice/microsites/search.do?language=en_UScmd=displayKCexternalId=2000935
  
  
  
  On May 24, 2012, at 5:32 PM, Alexander Patterson 
  alexander.patter...@csueastbay.edu 
  (mailto:alexander.patter...@csueastbay.edu) wrote:
  
   I'm not sure from what I have been reading, might want to contact your
   VMware Rep and see what they can do if you plan on upgrading to 5.
   
   WIth ESXI 4.1
   
   Infrastructure limitations
   Some limitations in ESX Server 4 may constrain the design of data centers:
   Guest system maximum RAM: 255 GB
   Host system maximum RAM: 1 TB[
   Number of hosts in a high availability cluster: 32
   Number of Primary Nodes in ESX Cluster high availability: 5
   Number of hosts in a Distributed Resource Scheduler cluster: 32
   Maximum number of processors per virtual machine: 8
   Maximum number of processors per host: 160
   Maximum number of cores per processor: 12
   Maximum number of virtual machines per host: 320
   VMFS-3 limits files to 262,144 (218) blocks, which translates to 256
   GB for 1 MB block sizes (the default) or up to 2 TB for 8 MB block
   sizes.However, on a VMFS Boot drive, it is usually very difficult to
   use anything other than 1 MB Block size
   
   With ESXI 5 there has been some changes to these limits
   Guest system maximum RAM: 1 TB
   Host system maximum RAM: 2 TB
   Number of hosts in a high availability cluster: 32
   Maximum number of processors per virtual machine: 32
   Maximum number of processors per host: 160
   Maximum number of cores per processor: 25
   Maximum number of virtual machines per host: 512
   VMFS-3 is supported and has the same limits as before
   VMFS-5 however has a max volume size of 64 TB and a max file size of 2
   TB - 512 B
   How much vRAM does a VMware vSphere Hypervisor license provide?
   vSphere Hypervisor license provides a vRAM entitlement of 32GB per
   server, regardless of the number of physical processors. vSphere
   Hypervisor can be used on servers with maximum physical RAM capacity
   of 32GB.
   
   On Thu, May 24, 2012 at 2:20 PM, Sanders, Arbin D asand...@nccu.edu 
   (mailto:asand...@nccu.edu) wrote:
   Alexander,
   
   What if I use the paid version of vSphere5? And I have 96 GB of memory? 
   Could I get more than 20 VMs?
   
   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
   
   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.
   
   
   -Original Message-
   From: Alexander Patterson [mailto:alexander.patter...@csueastbay.edu]
   Sent: Thursday, May 24, 2012 5:17 PM
   To: vcl-...@incubator.apache.org (mailto:vcl-...@incubator.apache.org)
   Cc: vcl-user@incubator.apache.org (mailto:vcl-user@incubator.apache.org)
   Subject: Re: Max Number of VMs per Host
   
   Hello,
   
   ESXI 5 is limit by licenses with the amount of ram you can run on each 
   machine.
   The 8 GB vRAM limit is for the upcoming 5.0 free Hypervisor, the 4.x 
   version had no such memory limits.
   VM makes you pay now if you want to use X amount of ram per host with 
   the upcoming version.
   
   Making 4.1 I Free Version a much more attractive option to go with
   
   We have each of our blades running ESXI 4.1 with 16 Cores and 48 GB of 
   ram and we have 20

Re: Max Number of VMs per Host

2012-05-24 Thread Dmitri Chebotarov
Here is some info:  

http://myvirtualcloud.net/?p=1155

This is for VMware View which could be approximated to VCL.

There is also limits per VMFS datastore (if you not using NFS).  
I have seen different recommendations for VM number per ESXi host per shared 
VMFS - VMWare recommends 16 VMs per Host for shared VMFS for VMFS-v3.

What hypervisor do use for VCL?

Thanks.   


--
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 Thursday, May 24, 2012 at 11:42 , Young h Oh wrote:

 Normally, you can calculate the average number of VMs depends on the 
 computing power (CPU). For example, 1 physical core can supports 2 VMs with 2 
 GB RAM. If you have 2 CPUs with 16 cores, then you might run 32VMs with 64GB 
 RAM. However,  the max number of VMs per host depends on variable facts as Al 
 Quiros mentioned, In addition to Al's comments, you might also consider the 
 application you want to run on guest VMs. If applications are more 
 computation intensive, the number of CPUs would be important fact to decide 
 the max number of VMs per host.  
  
  In our environment, we don't use VMware but running  RHEL 6 x64 with KVM on 
 IBM blade hosts with 16 CPUs and 24GB RAM. We run average 15 Windows XP VMs 
 with 1GB memory without much performance overhead. However, we can run  up to 
 22 VMs  but the performance was not good.  
  
 Best regards,
 
 Young Hyun Oh
 IBM Tivoli  
  
 Evelio Quiros ---05/24/2012 10:58:12 AM---Hello, As you know, the number of 
 Virtual Machines per host depends on available resources (CPU, RAM
  
 From: Evelio Quiros evq...@fiu.edu (mailto:evq...@fiu.edu)
 To: vcl-user@incubator.apache.org (mailto:vcl-user@incubator.apache.org) 
 vcl-user@incubator.apache.org (mailto:vcl-user@incubator.apache.org), 
 'vcl-...@incubator.apache.org (mailto:vcl-...@incubator.apache.org)' 
 vcl-...@incubator.apache.org (mailto:vcl-...@incubator.apache.org),  
 Date: 05/24/2012 10:58 AM
 Subject: Re: Max Number of VMs per Host
  
  
  
 Hello,
  
 As you know, the number of Virtual Machines per host depends on available 
 resources (CPU, RAM, Disk), as well as the demands of the image.  
 As a general guide, I have found the following to be reasonable. Other 
 admins, please share your opinions.
  
 For a single VM host with 12 virtual CPU and 98 GB RAM, I typically allocate 
 25 Windows VM. When necessary, I have raised it to 32 Windows XP machines. 
 For linux based images, I have used 50 VM without issues. Monitor the 
 performance tab on your vSphere client to see if the host is over-worked.  
 On Virtual Machines that require higher performance, I usually will not place 
 them on a host with more than 10 working VM. But the most important thing is 
 to watch the performance closely. You will get a feel for how many VM per 
 host by experience.
 As always, your mileage may vary.
  
 Regards,
 Al Quiros
 Florida International University
  
  
 From: Sanders, Arbin D asand...@nccu.edu (mailto:asand...@nccu.edu)
 Reply-To: vcl-user@incubator.apache.org 
 (mailto:vcl-user@incubator.apache.org) vcl-user@incubator.apache.org 
 (mailto:vcl-user@incubator.apache.org)
 Date: Wednesday, May 23, 2012 3:53 PM
 To: 'vcl-...@incubator.apache.org (mailto:'vcl-...@incubator.apache.org)' 
 vcl-...@incubator.apache.org (mailto:vcl-...@incubator.apache.org), 
 'vcl-user@incubator.apache.org (mailto:'vcl-user@incubator.apache.org)' 
 vcl-user@incubator.apache.org (mailto:vcl-user@incubator.apache.org)
 Subject: Max Number of VMs per Host
  
 All,
   
 What is the number of VMs do you all run per VMware host? Is it limited to 
 the RAM limitation for vSphere 5? How many purchase vSphere licenses?
   
 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  
   
 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 
 (http://www.symanteccloud.com/)
 __  
  
  
  




Re: Max Number of VMs per Host

2012-05-24 Thread Dmitri Chebotarov
This link may be helpful

http://kb.vmware.com/selfservice/microsites/search.do?language=en_UScmd=displayKCexternalId=2000935



On May 24, 2012, at 5:32 PM, Alexander Patterson 
alexander.patter...@csueastbay.edu wrote:

 I'm not sure from what I have been reading, might want to contact your
 VMware Rep and see what they can do if you plan on upgrading to 5.
 
 WIth ESXI 4.1
 
 Infrastructure limitations
 Some limitations in ESX Server 4 may constrain the design of data centers:
 Guest system maximum RAM: 255 GB
 Host system maximum RAM: 1 TB[
 Number of hosts in a high availability cluster: 32
 Number of Primary Nodes in ESX Cluster high availability: 5
 Number of hosts in a Distributed Resource Scheduler cluster: 32
 Maximum number of processors per virtual machine: 8
 Maximum number of processors per host: 160
 Maximum number of cores per processor: 12
 Maximum number of virtual machines per host: 320
 VMFS-3 limits files to 262,144 (218) blocks, which translates to 256
 GB for 1 MB block sizes (the default) or up to 2 TB for 8 MB block
 sizes.However, on a VMFS Boot drive, it is usually very difficult to
 use anything other than 1 MB Block size
 
 With ESXI 5 there has been some changes to these limits
 Guest system maximum RAM: 1 TB
 Host system maximum RAM: 2 TB
 Number of hosts in a high availability cluster: 32
 Maximum number of processors per virtual machine: 32
 Maximum number of processors per host: 160
 Maximum number of cores per processor: 25
 Maximum number of virtual machines per host: 512
 VMFS-3 is supported and has the same limits as before
 VMFS-5 however has a max volume size of 64 TB and a max file size of 2
 TB - 512 B
 How much vRAM does a VMware vSphere Hypervisor license provide?
 vSphere Hypervisor license provides a vRAM entitlement of 32GB per
 server, regardless of the number of physical processors. vSphere
 Hypervisor can be used on servers with maximum physical RAM capacity
 of 32GB.
 
 On Thu, May 24, 2012 at 2:20 PM, Sanders, Arbin D asand...@nccu.edu wrote:
 Alexander,
 
 What if I use the paid version of vSphere5? And I have 96 GB of memory? 
 Could I get more than 20 VMs?
 
 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
 
 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.
 
 
 -Original Message-
 From: Alexander Patterson [mailto:alexander.patter...@csueastbay.edu]
 Sent: Thursday, May 24, 2012 5:17 PM
 To: vcl-...@incubator.apache.org
 Cc: vcl-user@incubator.apache.org
 Subject: Re: Max Number of VMs per Host
 
 Hello,
 
 ESXI 5 is limit by licenses with the amount of ram you can run on each 
 machine.
 The 8 GB vRAM limit is for the upcoming 5.0 free Hypervisor, the 4.x version 
 had no such memory limits.
 VM makes you pay now if you want to use X amount of ram per host with the 
 upcoming version.
 
 Making 4.1 I Free Version a much more attractive option to go with
 
 We have each of our blades running ESXI 4.1 with 16 Cores and 48 GB of ram 
 and we have 20 VM's per blade but we give 1.5 GB of ram to each VM.
 
 More info here
 http://kb.vmware.com/selfservice/microsites/search.do?language=en_UScmd=displayKCexternalId=1014006
 
 -Alex
 
 On Thu, May 24, 2012 at 2:09 PM, Sanders, Arbin D asand...@nccu.edu wrote:
 
 I am planning on using a free version of vSphere 5 depending on the how 
 many VMs I can get. I would like to get 50 VMs per host.
 
 
 
 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
 
 
 
 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.
 
 
 
 From: Dmitri Chebotarov [mailto:dcheb...@gmu.edu]
 Sent: Thursday, May 24, 2012 12:01 PM
 To: vcl-...@incubator.apache.org
 Cc: vcl-user@incubator.apache.org
 
 
 Subject: Re: Max Number of VMs per Host
 
 
 
 Here is some info:
 
 
 
 http://myvirtualcloud.net/?p=1155
 
 
 
 This is for VMware View which could be approximated to VCL.
 
 
 
 There is also limits per VMFS datastore (if you not using NFS).
 
 I have seen different recommendations for VM number per ESXi host per 
 shared VMFS - VMWare recommends 16 VMs per Host for shared VMFS for VMFS-v3.
 
 
 
 What hypervisor do use for VCL?
 
 
 
 Thanks.
 
 
 
 
 --
 
 Thank you,
 
 
 
 Dmitri Chebotarov
 
 Virtual

Re: Update vmware-tools on many base images ?

2012-05-18 Thread Dmitri Chebotarov
Andy 

This is nice feature, I'll see if I can make it work. 
Thank you. 

Also I've found .vmx option : tools.upgrade.policy = upgradeAtPowerCycle

Adding it to .vmx file during 'Manage Images - Create/Update an Image - 
Create Imaging Reservation' process should update vmware tools on the image 
automatically during boot time.  
I need to find the place in code where .vmx file is created for 'Create Imaging 
Reservation' task and test it. 

--
Thank you,

Dmitri Chebotarov
Virtual Computing Lab Systems Engineer, TSD - Ent Servers  Messaging
223 Aquia Building, Ffx, MSN: 1B5
Phone: (703) 993-6175
Fax: (703) 993-3404


On Friday, May 18, 2012 at 10:39 , Andy Kurth wrote:

 Many of our images have older versions of VMware Tools installed. I
 don't know of any problems this has caused. Also, VMware Tools isn't
 required. I only install it to make controlling the VM through the
 vSphere console a little easier.
 
 If you do want to upgrade every image automatically, there is a new
 feature in partially done in VCL 2.3 which may help:
 https://issues.apache.org/jira/browse/VCL-564
 
 It essentially allows you to drop scripts and other supporting files
 in the appropriate directories on the management node. The scripts
 are automatically run at a particular stage in the reservation. One
 of the intended uses is to allow customizations to be performed
 automatically before an image is captured such as installing/upgrading
 software. You would only need to add a couple lines to image.pm to
 enable this functionality. You would save the VMware Tools .msi and a
 script which installs it in tools/Windows/Scripts/pre_capture. During
 capture, the files in the directory are automatically copied to the
 computer and the script is executed. Let me know if you want to try
 this.
 
 -Andy
 
 On Fri, May 18, 2012 at 9:40 AM, Dmitri Chebotarov dcheb...@gmu.edu 
 (mailto:dcheb...@gmu.edu) wrote:
  Hi
  
  We plan to update VCL ESXi hosts and it will require VMware Tools update for
  all VMs.
  
  I'm looking at different options on how to update vmware-tools on many base
  images.
  
  One option is to use web GUI to create new image revision with updated tools
  for each image.
  
  Other option would be to create temp. VMs using persistent disk images
  pointing to base images .vmdk files, then update vmware-tools and delete
  temp. VMs (in-place upgrade?).
  This will probably require full shutdown of VCL system to make sure no one
  is using any of the images during the upgrade.
  
  May be someone already done it and could share some recommendations ...
  
  --
  Thank you,
  
  Dmitri Chebotarov
  Virtual Computing Lab Systems Engineer, TSD - Ent Servers  Messaging
  223 Aquia Building, Ffx, MSN: 1B5
  Phone: (703) 993-6175
  Fax: (703) 993-3404
  
 
 
 




Re: Apache VCL Ready to Graduate

2012-05-10 Thread Dmitri Chebotarov
+1 


--
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 Thursday, May 10, 2012 at 11:01 , 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: Graduation

2012-05-07 Thread Dmitri Chebotarov
Hi,  

May I ask what are the benefits of graduation for VCL?  
How does graduation change the way the VCL is used?

I apologize if these are trivial questions.  

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, May 7, 2012 at 16:39 , Kevan Miller wrote:

  
 On May 7, 2012, at 3:53 PM, Alexander Patterson wrote:
  
  I would love to see 2.3 to graduate :) I will enjoy many of the bug fixes
  
 Thanks Alexander. Minor point - a 2.3 release is orthogonal to the graduation 
 process. A 2.3 release can happen before or after graduation…
  
 There's a 'status of 2.3 release' thread on the vcl-dev list. You're more 
 than welcome to voice your 2.3 desires, there...
  
 --kevan  




VCL 2.3

2012-05-01 Thread Dmitri Chebotarov
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



Win 7 reservations sometimes fails with DCHP error

2012-04-19 Thread Dmitri Chebotarov
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. 

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. 

The error message below. Thank you for your help. 

--
Dmitri Chebotarov
Virtual Computing Lab Systems Engineer, TSD - Ent Servers  Messaging
223 Aquia Building, Ffx, MSN: 1B5
Phone: (703) 993-6175
Fax: (703) 993-3404


Forwarded message:

 From: r...@www.vcl.gmu.edu
 Date: Thursday, April 19, 2012 3:56:50 
 Subject: PROBLEM -- 
 9141:9049|new|State.pm|vmguest-vcl12gt;BC3-4|vmwarewin7-Windows732bitSPSS19creating64-v5|sthomp17
 
 reservation failed on vmguest-vcl12: failed to update private IP address
 
 time: 2012-04-19 15:56:27
 caller: State.pm:reservation_failed(213)
 ( 0) State.pm, reservation_failed (line: 213)
 (-1) new.pm, reserve_computer (line: 894)
 (-2) new.pm, process (line: 363)
 (-3) vcld, make_new_child (line: 568)
 (-4) vcld, main (line: 346)
 
 management node: www.vcl.gmu.edu (http://www.vcl.gmu.edu)
 reservation PID: 1191
 parent vcld PID: 30919
 
 request ID: 9141
 reservation ID: 9049
 request state/laststate: new/new
 request start time: 2012-04-19 15:45:00
 request end time: 2012-04-19 20:00:00
 for imaging: no
 log ID: 10048
 
 computer: vmguest-vcl12
 computer id: 25
 computer type: virtualmachine
 computer eth0 MAC address: 00:50:56:03:51:1c
 computer eth1 MAC address: 00:50:56:03:51:1d
 computer private IP address: 10.3.6.48
 computer public IP address: 129.174.25.26
 computer in block allocation: no
 provisioning module: VCL::Module::Provisioning::VMware::VMware
 
 vm host: BC3-4
 vm host ID: 2
 vm host computer ID: 8
 vm profile: VMware ESX - network storage
 vm profile VM path: /vmfs/volumes/Running-Images
 vm profile repository path: 0
 vm profile datastore path: /vmfs/volumes/Image-Library/baseprod
 vm profile disk type: networkdisk
 
 image: vmwarewin7-Windows732bitSPSS19creating64-v5
 image display name: Windows 7 32bit: SPSS 19.0.0
 image ID: 64
 image revision ID: 109
 image size: 61440 MB
 use Sysprep: yes
 root access: yes
 image owner ID: 13
 image owner affiliation: GMUGuest
 image revision date created: 2012-03-13 10:42:37
 image revision production: yes
 OS module: VCL::Module::OS::Windows::Version_6::7
 image revision comments: Created Default profile
 
 user: sthomp17
 user name: Steele B Thompson
 user ID: 1601
 user affiliation: Mason
 
 RECENT LOG ENTRIES FOR THIS PROCESS:
 2012-04-19 15:55:39|1191|9141:9049|new|utils.pm:run_command(9001)|$? is set 
 to -1, setting exit status to 0, Perl bug likely encountered
 2012-04-19 
 15:55:47|1191|9141:9049|new|OS.pm:is_ssh_responding(401)|vmguest-vcl12 is 
 responding to SSH, port 22: open, port 24: closed
 2012-04-19 15:55:47|1191|9141:9049|new|VMware.pm:node_status(969)|VM 
 vmguest-vcl12 is responding to SSH
 2012-04-19 
 15:55:53|1191|9141:9049|new|OS.pm:get_currentimage_txt_contents(157)|retrieved
  currentimage.txt contents from vmguest-vcl12
 2012-04-19 
 15:55:53|1191|9141:9049|new|OS.pm:get_currentimage_txt_contents(169)|found 8 
 lines in currentimage.txt on vmguest-vcl12
 2012-04-19 
 15:55:53|1191|9141:9049|new|OS.pm:get_current_image_name(197)|retrieved 
 currentimage.txt contents from vmguest-vcl12
 2012-04-19 15:55:53|1191|9141:9049|new|OS.pm:get_current_image_name(212)|name 
 of image currently loaded on vmguest-vcl12: 
 vmwarewin7-Windows732bitSPSS19creating64-v5
 2012-04-19 
 15:55:53|1191|9141:9049|new|VMware.pm:node_status(990)|currentimage.txt image 
 (vmwarewin7-Windows732bitSPSS19creating64-v5) matches requested image name 
 (vmwarewin7-Windows732bitSPSS19creating64-v5) on VM vmguest-vcl12
 2012-04-19 
 15:55:58|1191|9141:9049|new|OS.pm:get_vcld_post_load_status(697)|vcld post 
 load tasks have run on vmguest-vcl12: vcld_post_load=success (Thu Apr 19 
 11:54:08 2012)
 2012-04-19 15:55:58|1191|9141:9049|new|VMware.pm:node_status(1051)|OS module 
 post_load tasks have been completed on VM vmguest-vcl12
 2012-04-19 15:55:58|1191|9141:9049|new|new.pm:reload_image(475)|node_status 
 returned a hash reference
 2012-04-19 15:55:58|1191|9141:9049|new|new.pm:reload_image(480)|node_status 
 hash reference contains key {status}=READY
 2012-04-19 15:55:58|1191|9141:9049|new|new.pm:reload_image

Re: Windows 7 and DHCP

2012-04-16 Thread Dmitri Chebotarov
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 (mailto:m...@longsight.com)
 www.longsight.com (http://www.longsight.com)
  
  
  
 On Mon, Apr 16, 2012 at 11:52, Hechler, Adam hec...@rpi.edu 
 (mailto:hec...@rpi.edu) wrote:
   
  Hi,
   
   

   
   
  We’re having a similar issue that’s been noted on the list before but I 
  can’t seem to find if it was ever resolved. Here’s a link to the archives 
  where it was discussed. 
  http://mail-archives.apache.org/mod_mbox/incubator-vcl-user/201104.mbox/%3C4DB59638.5000609%40ncsu.edu%3E
   
   

   
   
  Anyway,
   
   

   
   
  I have a Windows 7 base image (not captured yet). Both network interfaces 
  are set to DHCP. The public interface successfully grabs an IP address but 
  the private interface does not. All it does is assign on auto-configuration 
  address (169.254.x.x).  
   
   

   
   
  We’ve tried the recommendation in the email message I linked to. Here’s 
  what I see in the messages log:
   
   
  (note: I’ve changed the actual IP address offered to x.x.x.x – a real IP 
  was offered).
   
   

   
   
  Apr 16 11:39:45 vclserver dhcpd: DHCPDISCOVER from 00:50:56:1a:01:11 via 
  vmnet1
   
   
  Apr 16 11:39:45 vclserver dhcpd: DHCPOFFER on x.x.x.x to 00:50:56:1a:01:11 
  via vmnet1
   
   
  Apr 16 11:39:48 vclserver dhcpd: DHCPDISCOVER from 00:50:56:1a:01:11 via 
  vmnet1
   
   
  Apr 16 11:39:48 vclserver dhcpd: DHCPOFFER on x.x.x.x to 00:50:56:1a:01:11 
  via vmnet1
   
   
  Apr 16 11:39:56 vclserver dhcpd: DHCPDISCOVER from 00:50:56:1a:01:11 via 
  vmnet1
   
   
  Apr 16 11:39:56 vclserver dhcpd: DHCPOFFER on x.x.x.x to 00:50:56:1a:01:11 
  via vmnet1
   
   
  Apr 16 11:40:11 vclserver dhcpd: DHCPDISCOVER from 00:50:56:1a:01:11 via 
  vmnet1
   
   
  Apr 16 11:40:11 vclserver dhcpd: DHCPOFFER on x.x.x.x to 00:50:56:1a:01:11 
  via vmnet1
   
   
  Apr 16 11:40:44 vclserver dhcpd: DHCPDISCOVER from 00:50:56:1a:01:11 via 
  vmnet1
   
   
  Apr 16 11:40:44 vclserver dhcpd: DHCPOFFER on x.x.x.x to 00:50:56:1a:01:11 
  via vmnet1
   
   
  Apr 16 11:40:48 vclserver dhcpd: DHCPDISCOVER from 00:50:56:1a:01:11 via 
  vmnet1
   
   
  Apr 16 11:40:48 vclserver dhcpd: DHCPOFFER on x.x.x.x to 00:50:56:1a:01:11 
  via vmnet1
   
   
  Apr 16 11:40:56 vclserver dhcpd: DHCPDISCOVER from 00:50:56:1a:01:11 via 
  vmnet1
   
   
  Apr 16 11:40:56 vclserver dhcpd: DHCPOFFER on x.x.x.x to 00:50:56:1a:01:11 
  via vmnet1
   
   
  Apr 16 11:41:12 vclserver dhcpd: DHCPDISCOVER from 00:50:56:1a:01:11 via 
  vmnet1
   
   
  Apr 16 11:41:12 vclserver dhcpd: DHCPOFFER on x.x.x.x to 00:50:56:1a:01:11 
  via vmnet1
   
   

   
   
  Anything else I should be looking at?
   
   

   
   
  Thanks,
  Adam Hechler
   
   
Senior Analyst /
   
   
  PC Systems Administrator
   
   
hec...@rpi.edu (mailto:hec...@rpi.edu)
   
   
  (860) 548-2446 (tel:%28860%29%20548-2446)
   
   
 Rensselaer at Hartford
   
   

   
   

   
   

   
   
   
   
  
  
  



available computers

2012-04-12 Thread Dmitri Chebotarov
Hi, All  

I found that sometimes there is a 'disconnect' between information in SQL 
database and actual state of 'available' computers.

If VCL has a bunch of availabe computers preloaded with an image and I then 
update that image (new image revision), computers are not automatically 
reloaded with newer image revision.  
New reservation will have new image revision, but those available computer will 
still have older image revision and it would be reloaded only if a user makes 
reservation.  
At that time it will take longer to load (ie. ~10min vs 1min for preloaded 
available computer).  

Also in cases when I need to reboot ESXi hosts, all the VMs are not loaded 
automatically. In this case database lists those VMs as available, but they are 
off-line.  

I would like to share the small tool (a .pl script), which syncs available 
computers with actual state of computers (VMs).

I've used peaces of code from utils.php to write it. The script creates reload 
requests for all available computers using the current image and latest image 
revision.
VCLD then caries out requests and reloads computers which are either have older 
image revision or cannot be contacted via SSH (ie. after ESXi reboot).  

I plan to run the script weekly via cron on vcld server to make sure all is in 
sync, as well as after image updates.  
I've tested it and it works fine. .pl is attached.

(I have hardcoded $managementnodeid value in reloadComputer(). Yours could be 
different)

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



imageReload.pl
Description: Binary data


Re: Thin client with VCL

2012-04-12 Thread Dmitri Chebotarov
Thank you for sharing the information - these are all good points. 

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 Tuesday, April 10, 2012 at 11:26 , Henry Schaffer wrote:

 Michael's point about testing is excellent! :-)
 
 Other considerations include comparing prices - the price of desktop
 computer has decreased greatly in the past few years, narrowing the
 price difference from thin clients.
 
 Also consider how you might want to use the desktop/local machines.
 The VCL is a desktop augmentation setup - so you likely want to use
 the local machines for web surfing, e-mail, perhaps word processing
 ..., what else. That decision impacts the price of the thin client.
 
 --henry schaffer
 
 On Tue, Apr 10, 2012 at 10:59 AM, Michael Jinks mji...@uchicago.edu 
 (mailto:mji...@uchicago.edu) wrote:
  Several years ago, we put thin clients (Sun Ray) in all our public
  computing spaces and computer-equipped classrooms.  They work great for
  most things, and they do indeed save lots of expense and hassle.
  
  We're now in the process of going back to PC's, though.  There are
  several reasons, but the one that might apply to other sites is remote
  display of graphically-intensive applications.  3D rendering is the
  obvious one, but there are also a few legacy (DOS-era) scientific
  graphing packages that don't play well with a network-connected display,
  and the accumulated latency during real-time graphing appears to the
  user as a drastic slowdown in performance.
  
  So, test all your apps thoroughly before you commit.
  
  
  On Tue, Apr 10, 2012 at 09:41:11AM -0400, Dmitri Chebotarov wrote:
  Hi All,
  Is anyone here is using a thin client with VCL? I.e. Dell FX100 or
  similar? (http://en.wikipedia.org/wiki/Thin_client).
  This could work well with VCL, since most of thin boxes support RDP.
  Interesting to see how a thin client compares to a regular PC in
  classroom environment.
  Seems like this would be a better option - less expensive, less admin
  overhead, more secure, and with all the benefits of VCL...
  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
   
  
  
  --
  Michael Jinks :: mji...@uchicago.edu (mailto:mji...@uchicago.edu) :: 
  773-469-9688
  University of Chicago IT Services
  
 
 
 




Thin client with VCL

2012-04-10 Thread Dmitri Chebotarov
Hi All,

Is anyone here is using a thin client with VCL? I.e. Dell FX100 or similar? 
(http://en.wikipedia.org/wiki/Thin_client).

This could work well with VCL, since most of thin boxes support RDP.

Interesting to see how a thin client compares to a regular PC in classroom 
environment. 
Seems like this would be a better option - less expensive, less admin overhead, 
more secure, and with all the benefits of VCL...

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







Re: ESXi 4.1 image for VCL reservation

2012-03-29 Thread Dmitri Chebotarov

I'm not looking for nested hypervisors - this would work for someone who wants 
to play/study ESXi server. But even in this case VCL needs a module to handle 
ESXi reservation - this step would fail for nested esxi as well…  

How would I add/use/load a new pm module for ESXi reservation? I plan to use 
ESXi image along with a Windows sub-image with vSphere client, so ESXi server 
won't need public IP address in this case…

I only need to address reservation steps (ie. get IP, add user, etc.) - 
xCAT/VCL already handles ESXi install process.

Thanks.  


--
Dmitri Chebotarov
Virtual Computing Lab Systems Engineer, TSD - Ent Servers  Messaging
223 Aquia Building, Ffx, MSN: 1B5
Phone: (703) 993-6175
Fax: (703) 993-3404


On Thursday, March 29, 2012 at 14:04 , Mike Haudenschild wrote:

 There is definitely a performance penalty for running ESXi as a guest OS.  I 
 don't think the hardware virtualization features of the CPU can be passed on 
 to an ESXi guest, which also means no 64-bit guests inside the ESXi guest.
  
 Suggest reading the notes on this blog:
 http://www.vcritical.com/2009/05/vmware-esx-4-can-even-virtualize-itself/
  
 Regards,
 Mike
  
  
 On Thu, Mar 29, 2012 at 13:59, Aaron Peeler aaron_pee...@ncsu.edu 
 (mailto:aaron_pee...@ncsu.edu) wrote:
  Definitely doable.
   
  Also might be worth doing it within a ESXi server. Nested hypervisor -
  possibly a bit better control on which networks are visible.
   
  With the connection methods in the next release, you could define
  vsphere client as the connection method.
   
  Aaron P.
   
  On Thu, Mar 29, 2012 at 1:33 PM, Dmitri Chebotarov dcheb...@gmu.edu 
  (mailto:dcheb...@gmu.edu) wrote:
   Hi, All
  
   Is it posible to add ESXi 4.1 image to VCL, so users can make reservation
   for ESXi 4.1 server?
   May be someone else already has it working…. May be there is separate 
   module
   for ESXi support?
  
   I have configured xCAT/VCL and I'm able to reload a blade with ESXi 4.1
   using kickstart script via Manage Computers.
   But when a user makes reservation for ESXi 4.1 - it fails. So far it fails
   for two reasons - no Public interface and cannot create user on ESXi 
   hosts.
   VCL is using Linux.pm module and ESXi doesn't support it.
  
   Thanks.
   --
   Dmitri Chebotarov
   Virtual Computing Lab Systems Engineer, TSD - Ent Servers  Messaging
   223 Aquia Building, Ffx, MSN: 1B5
   Phone: (703) 993-6175 (tel:%28703%29%20993-6175)
   Fax: (703) 993-3404 (tel:%28703%29%20993-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: ESXi 4.1 image for VCL reservation

2012-03-29 Thread Dmitri Chebotarov
Andy

Could I extend existing ESXi.pm module at 
/usr/local/vcl/lib/VCL/Module/OS/Linux/ESXi.pm?  
Everyhing you described seems to be already in place - entry for esxi OS 
(OSid), module name/path.  

Thanks.  

--  
Dmitri Chebotarov


On Thursday, March 29, 2012 at 14:56 , Andy Kurth wrote:

 You could create an ESXi.pm OS module. It would inherit from Linux.pm
 since some of the Linux subroutines will work under ESXi. The module
 would reside at:
 lib/VCL/Module/OS/Linux/ESXi.pm
  
 Entries would have to be added to the module and OS tables in the
 database. Set your image.OSid value to the new value you enter in the
 OS table.
  
 Some of the subroutines in Linux.pm already work as you have noticed.
 I changed a few of them a while back to work with ESXi of them to
 which are called by the VMware.pm provisioning module when SSH is used
 to control the VM host. For the ones which don't work, you would
 define subroutines in ESXi.pm to override the ones in Linux.pm or
 OS.pm such as create_user.
  
 For the networking problems, you would probably define a post_load
 subroutine in ESXi.pm which performs operations necessary to configure
 the virtual switches appropriately such as running esxcfg-vswitch and
 esxcfg-vmknic.
  
 This would be very useful for us at NCSU. I would be happy to help
 get this added.
  
 -Andy
  
  
  
  
 On Thu, Mar 29, 2012 at 2:19 PM, Dmitri Chebotarov dcheb...@gmu.edu 
 (mailto:dcheb...@gmu.edu) wrote:
   
  I'm not looking for nested hypervisors - this would work for someone who
  wants to play/study ESXi server. But even in this case VCL needs a module to
  handle ESXi reservation - this step would fail for nested esxi as well…
   
  How would I add/use/load a new pm module for ESXi reservation? I plan to use
  ESXi image along with a Windows sub-image with vSphere client, so ESXi
  server won't need public IP address in this case…
   
  I only need to address reservation steps (ie. get IP, add user, etc.) -
  xCAT/VCL already handles ESXi install process.
   
  Thanks.
   
   
  --
  Dmitri Chebotarov
  Virtual Computing Lab Systems Engineer, TSD - Ent Servers  Messaging
  223 Aquia Building, Ffx, MSN: 1B5
  Phone: (703) 993-6175
  Fax: (703) 993-3404
   
  On Thursday, March 29, 2012 at 14:04 , Mike Haudenschild wrote:
   
  There is definitely a performance penalty for running ESXi as a guest OS.  I
  don't think the hardware virtualization features of the CPU can be passed on
  to an ESXi guest, which also means no 64-bit guests inside the ESXi guest.
   
  Suggest reading the notes on this blog:
  http://www.vcritical.com/2009/05/vmware-esx-4-can-even-virtualize-itself/
   
  Regards,
  Mike
   
   
  On Thu, Mar 29, 2012 at 13:59, Aaron Peeler aaron_pee...@ncsu.edu 
  (mailto:aaron_pee...@ncsu.edu) wrote:
   
  Definitely doable.
   
  Also might be worth doing it within a ESXi server. Nested hypervisor -
  possibly a bit better control on which networks are visible.
   
  With the connection methods in the next release, you could define
  vsphere client as the connection method.
   
  Aaron P.
   
  On Thu, Mar 29, 2012 at 1:33 PM, Dmitri Chebotarov dcheb...@gmu.edu 
  (mailto:dcheb...@gmu.edu) wrote:
   Hi, All

   Is it posible to add ESXi 4.1 image to VCL, so users can make reservation
   for ESXi 4.1 server?
   May be someone else already has it working…. May be there is separate
   module
   for ESXi support?

   I have configured xCAT/VCL and I'm able to reload a blade with ESXi 4.1
   using kickstart script via Manage Computers.
   But when a user makes reservation for ESXi 4.1 - it fails. So far it fails
   for two reasons - no Public interface and cannot create user on ESXi
   hosts.
   VCL is using Linux.pm module and ESXi doesn't support it.

   Thanks.
   --
   Dmitri Chebotarov
   Virtual Computing Lab Systems Engineer, TSD - Ent Servers  Messaging
   223 Aquia Building, Ffx, MSN: 1B5
   Phone: (703) 993-6175
   Fax: (703) 993-3404

   
   
   
   
  --
  Aaron Peeler
  Program Manager
  Virtual Computing Lab
  NC State University
   
  All electronic mail messages 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.
   
  
  
  




Wndows pagefile.sys settings

2012-03-28 Thread Dmitri Chebotarov
Hi, All 

I'm using Windows 7 Ent image with VCL/xCAT on a blade with 48GB of memory. 
Before capturing the image I set page file to 2GB, once capture is done, the 
new reservation ends up with 48GB page file.
This leave little space left to install new applications.

I found that Windows.pm calls disable_pagefile() on line 474 during image 
capture. 
Would it be OK to disable this function? 

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: Wndows pagefile.sys settings

2012-03-28 Thread Dmitri Chebotarov
James 

Yes, I have changed the setting for pagefile. But it resets to default after I 
capture image and make reservation.

I've also commented disable_pagefile() in Windows.pm (and restarted vcld), but 
it doesn't help. New image still has default pagefile setting.

Is there another place in the code where I could stop VCL from changing 
pagefile settings?

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, March 28, 2012 at 16:19 , James O'Dell wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Have you tried disabling/reducing the page file before making the image?
 
  Control Panel
  
  System and Security
  
  System
  
  Click to open System.
  
  In the left pane, click Advanced system settings. If you are prompted for 
  an administrator password or confirmation, type the password or provide 
  confirmation.
  
  On the Advanced tab, under Performance, click Settings.
  
  Click the Advanced tab, and then, under Virtual memory, click Change.
  
  Clear the Automatically manage paging file size for all drives check box.
  
  Under Drive [Volume Label], click the drive that contains the paging file 
  you want to change.
  
  Click Custom size, type a new size in megabytes in the Initial size (MB) or 
  Maximum size (MB) box, click Set, and then click OK.
 
 This should make a registry change, that hopefully prevents Windows from
 Automatically manage paging file size for all drives
 
 Automatically typically makes the page file the same as the available ram.
 
 __Jim
 
 On 3/28/2012 12:57 PM, Dmitri Chebotarov wrote:
  Hi, All 
  
  I'm using Windows 7 Ent image with VCL/xCAT on a blade with 48GB of memory. 
  Before capturing the image I set page file to 2GB, once capture is done, 
  the new reservation ends up with 48GB page file.
  This leave little space left to install new applications.
  
  I found that Windows.pm calls disable_pagefile() on line 474 during image 
  capture. 
  Would it be OK to disable this function? 
  
  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
 
 
 
 
 - -- 
 Jim O'Dell
 Network Analyst
 California State University Fullerton
 Email: jod...@fullerton.edu (mailto:jod...@fullerton.edu)
 Phone: (657) 278-2256
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAk9zclwACgkQREVHAOnXPYSCYgCglS3umUQONsWlNm604P/Z20Yk
 ag0An2ul+tgpwh8ONuQZQp/YaoXxmQ/i
 =BZaZ
 -END PGP SIGNATURE-





Re: Full desktop Linux images?

2012-03-19 Thread Dmitri Chebotarov
Mike,

xrdp works well on Linux - http://www.xrdp.org/. 
We are using it for Linux reservations with no issues (please use latest 
version of xrdp as there are some issues with RDP 6.1 for older xrdp). 

You will need to modify following files/code to make RDP links available for a 
Linux reservation. Here is diff:

$ diff requests.php ~/apache-VCL-2.2.1-incubating/web/.ht-inc/requests.php 
2272,2276c2272,2275
   print strongbigNOTE:/big You may now use the 
Windows Remote ;
   print Desktop Connection to connect to this computer. 
You may also use an ;
 # print a 
href=\http://vcl.ncsu.edu/help/connecting-vcl/how-connect-vcl#sshx\;;
   print ssh client/a./strong\n;
   /*if(eregi(windows, $_SERVER[HTTP_USER_AGENT])) {
---
   print strongbigNOTE:/big You cannot use the 
 Windows Remote ;
   print Desktop Connection to connect to this computer. 
 You must use an ;
   print ssh client./strong\n;
   /*if(preg_match(/windows/i, 
 $_SERVER[HTTP_USER_AGENT])) {
2284d2282
 
2286,2307d2283
 # Add automatic RDP file to Linux Selection
 
 print For automatic connection, you can download an 
RDP file that can ;
 print be opened by the Remote Desktop Connection 
program.brbr\n;
 print table summary=\\\n;
 print   TR\n;
 print TD\n;
 print   FORM action=\ . BASEURL . SCRIPT . 
\ method=post\n;
 $cdata = array('requestid' = $requestid,
   'resid' = 
$requestData['reservations'][0]['reservationid']);
  $expire = datetimeToUnix($requestData['end']) -
 datetimeToUnix($requestData['start']) + 1800; 
# reservation time plus 30 min
  $cont = addContinuationsEntry('sendRDPfile', $cdata, 
$expire);
  print   INPUT type=hidden name=continuation 
value=\$cont\\n;
  print   INPUT type=submit value=\Get RDP 
File\\n;
  print   /FORM\n;
 print /TD\n;
 print TDa 
href=\http://vcl.ncsu.edu/help/connecting-vcl/;;
 print remote-desktop/what-rdp-file\What is an RDP 
file?/a/TD\n;
 print   /TR\n;
 print /table\n;
 
2309d2284
 
2395,2396d2369
 
 

Also, modify utils.pm on management node to add a check for RDP connection for 
Linux images. 
By default VCLd only checks for SSH connected users for Linux reservation and 
you will get warning emails.

$ diff utils.pm ~/apache-VCL-2.2.1-incubating/managementnode/lib/VCL/utils.pm 

1690,1693c1690
   #if ($line =~ 
/tcp\s+([0-9]*)\s+([0-9]*)\s($ipaddress:22)\s+([.0-9]*):([0-9]*)(.*)(ESTABLISHED)/)
 {
   # the line replaced with two 
checks - for port 22 or port 3389, 
   if ( ($line =~ 
/tcp\s+([0-9]*)\s+([0-9]*)\s($ipaddress:22)\s+([.0-9]*):([0-9]*)(.*)(ESTABLISHED)/)
 ||
($line =~ 
/tcp\s+([0-9]*)\s+([0-9]*)\s($ipaddress:3389)\s+([.0-9]*):([0-9]*)(.*)(ESTABLISHED)/)
 ) {
---
   if ($line =~ 
 /tcp\s+([0-9]*)\s+([0-9]*)\s($ipaddress:22)\s+([.0-9]*):([0-9]*)(.*)(ESTABLISHED)/)
  {


Thanks. 

On Mar 19, 2012, at 14:18 , Mike Haudenschild wrote:

 Good afternoon, VCL users --
 
 I was curious if anyone else is running full Linux desktops (e.g. with GNOME) 
 with VCL.  Specifically, is there an implemented method for connecting to the 
 GUI (i.e. as RDP is used with Windows), or are Linux images restricted only 
 to the shell?  Any tips/tricks?
 
 Many thanks,
 Mike
 
 --
 Mike Haudenschild
 Education Systems Manager
 Longsight Group
 (740) 599-5005 x809
 m...@longsight.com
 www.longsight.com
 

--
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: Xcat image capture issues

2012-03-16 Thread Dmitri Chebotarov
Evelio

What type of hardware d6100a is? If it doesn't have IPMI enabled motherboard or 
IPMI card, r* commands may not work. 
By the name I would guess it's Latitude d610...

Try rebooting manually just to test xCAT/PXE.

Thanks.

On Mar 15, 2012, at 12:03 , Evelio Quiros wrote:

 Hello,
 
 Yes, both listener.py and rootimg.gz are both located at
 /install/image/x86/installer_files/
 
 
 But NOWHERE on the documentation page does it mention a symlink between
 x86_64 and x86.
 
 Ok, I added the symlinks in both locations, and it did seem to accept it:
 
 nodeset d6100a image
 d6100a: image image-x86_64-rh5image-rh66-v0
 
 Which created this file in /tftpboot/pxelinux.cfg:
 
 
 lrwxrwxrwx 1 root root   6 Mar 15 11:36 0A19 - d6100a
 
 cat d6100a 
 #image image-x86_64-rh5image-rh66-v0
 DEFAULT xCAT
 LABEL xCAT
 KERNEL xcat/image/x86_64/vmlinuz
 APPEND initrd=xcat/image/x86_64/initrd.img
 imgurl=http://10.0.0.3//install/image/x86_64/installer_files/rootimg.gz
 image=/install/image/x86_64/rh5image-rh66-v0.img blocks=512 action=save
 installnic=eth0 reboot  noipv6
  IPAPPEND 2
 
 I did a tabedit to add the nodetype.supportedarchs.
 
 
 tabdump nodetype
 #node,os,arch,profile,provmethod,supportedarchs,nodetype,comments,disable
 compute,rh6.0,x86_64,compute,,,osi,,
 d6100a,image,x86,rh5image-rh66-v0,image,x86,x86_64,,,
 
 
 
 However, when I do this:
 rpower d6100a reset
 
 I get this:
 d6100a: Error: timeout
 
 So, I guess I must be missing something that tells xCAT where the machine
 is, and how to reach it.
 
 
 Al Q
 
 
 On 3/15/12 11:05 AM, Dmitri Chebotarov dcheb...@gmu.edu wrote:
 
 Evelio
 
 Could you please check that you have these files/folders as well?
 
 /install/image/x86/installer_files/listener.py
 /install/image/x86/installer_files/rootimg.gz
 
 Also, can you check that there are symlinks for x86 or x86_64 in
 /install/image/ and /tftpboot/xcat/image/, ie:
 
 $ ls -l
 x86
 x86_64 - x86
 
 Thanks.
 
 On Mar 15, 2012, at 9:56 , Evelio Quiros wrote:
 
 Thanks Dmitri,
 
 In following this article, I get to the bottom of the page, where I put
 in
 the 3 files needed for a stateless image.
 
 I place the 3 files in the located indicated, and when I run
 
 nodeset d6100a image
 
 I get this:
 
 Error: vmlinuz and initrd.img not found at /tftpboot/xcat/image/x86_64
 Error: Some nodes failed to set up image resources, aborting
 
 But vmlinuz and initrd.img are at /tftpboot/xcat/image/x86_64
 
 
 Is there something else that needs to happen first ?
 
 
 Also, the last step talks about NFS servers for the image store.
 Are these required ?
 
 Thanks for all your help,
 Al Quiros
 
 
 
 On 3/14/12 4:05 PM, Dmitri Chebotarov 4dim...@gmail.com wrote:
 
 Evelio 
 
 Please follow this article to add support for 'image' and 'install' :
 
 
 https://cwiki.apache.org/VCL/adding-support-for-partimage-and-partimage-
 ng
 -to-xcat-2x-unofficial.html
 
 Thanks. 
 
 -- 
 Dmitri Chebotarov
 
 
 On Wednesday, March 14, 2012 at 15:37 , Evelio Quiros wrote:
 
 Hello again,
 
 Dimitri, thanks for the advice.
 
 I have a question about these commands.
 Below, you wrote nodeset d6100a image,
 
 But there is no image argument for nodeset.
 Here is the man page:
 
 nodeset [-h|--help|-v|--version]
 nodeset noderange
 
 
 [install|shell|boot|runcmd=bmcsetup|netboot|iscsiboot|osimage=imagenam
 e
 |s
 tatelite]
 
 When I try the command as-is, I get this:
 
 
 nodeset d6100a image
 d6100a: Error: Unable to identify plugin for this command, check
 relevant
 tables: nodetype.os
 Error: Some nodes failed to set up image resources, aborting
 
 I have done tabdump on the various tables, and done tabedit to modify
 them
 to my environment.
 
 
 I know this is not an xCAT list, but your guidance would be
 appreciated.
 
 Thanks,
 Al Quiros
 
 
 
 On 3/13/12 4:45 PM, Dmitri Chebotarov dcheb...@gmu.edu
 (mailto:dcheb...@gmu.edu) wrote:
 
 Evelio,
 
 You should be able to capture image via xCAT before you can use
 VCL/xCAT.
 
 To capture image via xCAT:
 
 nodech d6100a nodetype.os=image nodetype.profile=rh5image-rh66-v0
 nodeset d6100a image - this will create PXEboot config file for
 d6100a:
 
 cat /tftpboot/pxelinux.cfg/d6100a-PXE-if-mac
 
 #image rh5image-rh66-v0
 DEFAULT xCAT
 LABEL xCAT
 KERNEL xcat/image/x86_64/vmlinuz
 APPEND initrd=xcat/image/x86_64/initrd.img
 
 
 imgurl=http://xcat-master/install/image/x86_64/installer_files/rootimg.
 gz
 image=/install/image/x86_64/rh5image-rh66-v0.img blocks=512
 action=save installnic=eth0 reboot noipv6
 IPAPPEND 2
 
 'tabdump nodetype' should look similar to this - note that arch is
 x86:
 
 
 
 #node,os,arch,profile,provmethod,supportedarchs,nodetype,comments,disab
 le
 ...
 d6100a,image,x86,rh5image-rh66-v0,image,x86,x86_64,,,
 ...
 
 Then do 'rpower d6100a reset'. This will restart d6100a and when node
 boots over PXE it will boot into
 http://xcat-master/install/image/x86_64/installer_files/rootimg.gz
 and,
 given that image works fine and maps NFS store OK, it dump hd image

Re: Xcat image capture issues

2012-03-15 Thread Dmitri Chebotarov
Evelio

Could you please check that you have these files/folders as well?

/install/image/x86/installer_files/listener.py
/install/image/x86/installer_files/rootimg.gz

Also, can you check that there are symlinks for x86 or x86_64 in 
/install/image/ and /tftpboot/xcat/image/, ie:

$ ls -l
x86
x86_64 - x86

Thanks.

On Mar 15, 2012, at 9:56 , Evelio Quiros wrote:

 Thanks Dmitri,
 
 In following this article, I get to the bottom of the page, where I put in
 the 3 files needed for a stateless image.
 
 I place the 3 files in the located indicated, and when I run
 
 nodeset d6100a image
 
 I get this:
 
 Error: vmlinuz and initrd.img not found at /tftpboot/xcat/image/x86_64
 Error: Some nodes failed to set up image resources, aborting
 
 But vmlinuz and initrd.img are at /tftpboot/xcat/image/x86_64
 
 
 Is there something else that needs to happen first ?
 
 
 Also, the last step talks about NFS servers for the image store.
 Are these required ?
 
 Thanks for all your help,
 Al Quiros
 
 
 
 On 3/14/12 4:05 PM, Dmitri Chebotarov 4dim...@gmail.com wrote:
 
 Evelio 
 
 Please follow this article to add support for 'image' and 'install' :
 
 https://cwiki.apache.org/VCL/adding-support-for-partimage-and-partimage-ng
 -to-xcat-2x-unofficial.html
 
 Thanks. 
 
 -- 
 Dmitri Chebotarov
 
 
 On Wednesday, March 14, 2012 at 15:37 , Evelio Quiros wrote:
 
 Hello again,
 
 Dimitri, thanks for the advice.
 
 I have a question about these commands.
 Below, you wrote nodeset d6100a image,
 
 But there is no image argument for nodeset.
 Here is the man page:
 
 nodeset [-h|--help|-v|--version]
 nodeset noderange
 
 [install|shell|boot|runcmd=bmcsetup|netboot|iscsiboot|osimage=imagename
 |s
 tatelite]
 
 When I try the command as-is, I get this:
 
 
 nodeset d6100a image
 d6100a: Error: Unable to identify plugin for this command, check
 relevant
 tables: nodetype.os
 Error: Some nodes failed to set up image resources, aborting
 
 I have done tabdump on the various tables, and done tabedit to modify
 them
 to my environment.
 
 
 I know this is not an xCAT list, but your guidance would be appreciated.
 
 Thanks,
 Al Quiros
 
 
 
 On 3/13/12 4:45 PM, Dmitri Chebotarov dcheb...@gmu.edu
 (mailto:dcheb...@gmu.edu) wrote:
 
 Evelio,
 
 You should be able to capture image via xCAT before you can use
 VCL/xCAT.
 
 To capture image via xCAT:
 
 nodech d6100a nodetype.os=image nodetype.profile=rh5image-rh66-v0
 nodeset d6100a image - this will create PXEboot config file for
 d6100a:
 
 cat /tftpboot/pxelinux.cfg/d6100a-PXE-if-mac
 
 #image rh5image-rh66-v0
 DEFAULT xCAT
 LABEL xCAT
 KERNEL xcat/image/x86_64/vmlinuz
 APPEND initrd=xcat/image/x86_64/initrd.img
 
 imgurl=http://xcat-master/install/image/x86_64/installer_files/rootimg.gz
 image=/install/image/x86_64/rh5image-rh66-v0.img blocks=512
 action=save installnic=eth0 reboot noipv6
 IPAPPEND 2
 
 'tabdump nodetype' should look similar to this - note that arch is
 x86:
 
 
 #node,os,arch,profile,provmethod,supportedarchs,nodetype,comments,disable
 ...
 d6100a,image,x86,rh5image-rh66-v0,image,x86,x86_64,,,
 ...
 
 Then do 'rpower d6100a reset'. This will restart d6100a and when node
 boots over PXE it will boot into
 http://xcat-master/install/image/x86_64/installer_files/rootimg.gz
 and,
 given that image works fine and maps NFS store OK, it dump hd image to
 /install/image/x86_64/rh5image-rh66-v0.img .
 
 If it's successful then to install from the image:
 
 nodeset d6100a install
 
 'tabdump nodetype' should look similar to this - provmethod changes
 from
 image to install:
 
 
 #node,os,arch,profile,provmethod,supportedarchs,nodetype,comments,disable
 ...
 d6100a,image,x86,rh5image-rh66-v0,install,x86,x86_64,,,
 ...
 
 If these steps work OK, then you can use VCL to capture bare-metal
 image.
 VCL uses 'nodeset node image' and 'nodeset node install'
 commands, so
 it's good idea to make them work before using VCL.
 
 Thanks.
 On Mar 13, 2012, at 16:11 , Evelio Quiros wrote:
 
 Hello Again,
 
 After trying again to capture a running image on a bare metal node,
 I
 get
 a failure message:
 Any ideas ?
 
 Al Q
 
 
 Added new image to database: 'rh6'
 image.name (http://image.name): rh5image-rh66-v0
 image.id: 6
 imagerevision.id: 6
 imagemeta.id: 3
 resource.id: 16
 
 
 
 -
 --
 -
 Inserted imaging request to the database:
 request ID: 1
 reservation ID: 1
 
 This process will now display the contents of the vcld.log file if
 the
 vcld
 daemon is running. If you do not see many lines of additional
 output,
 exit
 this
 process, start the vcld daemon, and monitor the image capture
 process by
 running
 the command:
 tail -f /var/log/vcld.log | grep '1:1'
 
 
 
 -
 --
 -
 2012-03-13 16:03:34|2012|vcld:main(167)|lastcheckin time updated for
 management node 1: 2012-03-13 16:03:34
 2012-03-13 
 16:03:39|6899|utils.pm:setup_get_array_choice

Re: Xcat image capture issues

2012-03-14 Thread Dmitri Chebotarov
Evelio 

Please follow this article to add support for 'image' and 'install' :

https://cwiki.apache.org/VCL/adding-support-for-partimage-and-partimage-ng-to-xcat-2x-unofficial.html

Thanks. 

-- 
Dmitri Chebotarov


On Wednesday, March 14, 2012 at 15:37 , Evelio Quiros wrote:

 Hello again,
 
 Dimitri, thanks for the advice.
 
 I have a question about these commands.
 Below, you wrote nodeset d6100a image,
 
 But there is no image argument for nodeset.
 Here is the man page:
 
 nodeset [-h|--help|-v|--version]
 nodeset noderange
 [install|shell|boot|runcmd=bmcsetup|netboot|iscsiboot|osimage=imagename|s
 tatelite]
 
 When I try the command as-is, I get this:
 
 
 nodeset d6100a image
 d6100a: Error: Unable to identify plugin for this command, check relevant
 tables: nodetype.os
 Error: Some nodes failed to set up image resources, aborting
 
 I have done tabdump on the various tables, and done tabedit to modify them
 to my environment.
 
 
 I know this is not an xCAT list, but your guidance would be appreciated.
 
 Thanks,
 Al Quiros
 
 
 
 On 3/13/12 4:45 PM, Dmitri Chebotarov dcheb...@gmu.edu 
 (mailto:dcheb...@gmu.edu) wrote:
 
  Evelio,
  
  You should be able to capture image via xCAT before you can use VCL/xCAT.
  
  To capture image via xCAT:
  
  nodech d6100a nodetype.os=image nodetype.profile=rh5image-rh66-v0
  nodeset d6100a image - this will create PXEboot config file for d6100a:
  
  cat /tftpboot/pxelinux.cfg/d6100a-PXE-if-mac
  
  #image rh5image-rh66-v0
  DEFAULT xCAT
  LABEL xCAT
  KERNEL xcat/image/x86_64/vmlinuz
  APPEND initrd=xcat/image/x86_64/initrd.img
  imgurl=http://xcat-master/install/image/x86_64/installer_files/rootimg.gz
  image=/install/image/x86_64/rh5image-rh66-v0.img blocks=512
  action=save installnic=eth0 reboot noipv6
  IPAPPEND 2
  
  'tabdump nodetype' should look similar to this - note that arch is x86:
  
  #node,os,arch,profile,provmethod,supportedarchs,nodetype,comments,disable
  ...
  d6100a,image,x86,rh5image-rh66-v0,image,x86,x86_64,,,
  ...
  
  Then do 'rpower d6100a reset'. This will restart d6100a and when node
  boots over PXE it will boot into
  http://xcat-master/install/image/x86_64/installer_files/rootimg.gz and,
  given that image works fine and maps NFS store OK, it dump hd image to
  /install/image/x86_64/rh5image-rh66-v0.img .
  
  If it's successful then to install from the image:
  
  nodeset d6100a install
  
  'tabdump nodetype' should look similar to this - provmethod changes from
  image to install:
  
  #node,os,arch,profile,provmethod,supportedarchs,nodetype,comments,disable
  ...
  d6100a,image,x86,rh5image-rh66-v0,install,x86,x86_64,,,
  ...
  
  If these steps work OK, then you can use VCL to capture bare-metal image.
  VCL uses 'nodeset node image' and 'nodeset node install' commands, so
  it's good idea to make them work before using VCL.
  
  Thanks.
  On Mar 13, 2012, at 16:11 , Evelio Quiros wrote:
  
   Hello Again,
   
   After trying again to capture a running image on a bare metal node, I
   get
   a failure message:
   Any ideas ?
   
   Al Q
   
   
   Added new image to database: 'rh6'
   image.name (http://image.name): rh5image-rh66-v0
   image.id: 6
   imagerevision.id: 6
   imagemeta.id: 3
   resource.id: 16
   
   
   -
   --
   -
   Inserted imaging request to the database:
   request ID: 1
   reservation ID: 1
   
   This process will now display the contents of the vcld.log file if the
   vcld
   daemon is running. If you do not see many lines of additional output,
   exit
   this
   process, start the vcld daemon, and monitor the image capture process by
   running
   the command:
   tail -f /var/log/vcld.log | grep '1:1'
   
   
   -
   --
   -
   2012-03-13 16:03:34|2012|vcld:main(167)|lastcheckin time updated for
   management node 1: 2012-03-13 16:03:34
   2012-03-13 16:03:39|6899|utils.pm:setup_get_array_choice(9947)|choices
   argument:
   2012-03-13 16:03:39|2012|vcld:main(167)|lastcheckin time updated for
   management node 1: 2012-03-13 16:03:39
   2012-03-13 16:03:44|2012|vcld:main(167)|lastcheckin time updated for
   management node 1: 2012-03-13 16:03:44
   2012-03-13 16:03:48|6899|utils.pm:insert_request(8358)|inserted new
   reload
   request into request table, request id=1
   2012-03-13 16:03:48|6899|utils.pm:insert_request(8389)|inserted new
   reload
   request into reservation table, reservation id=1
   2012-03-13 16:03:50|2012|vcld:main(167)|lastcheckin time updated for
   management node 1: 2012-03-13 16:03:49
   2012-03-13 
   
   16:03:50|2012|1:1|image|utils.pm:reservation_being_processed(8938)|comput
   er
   loadlog 'begin' entry does NOT exist for reservation 1
   2012-03-13 16:03:50|2012|1:1|image|utils.pm:run_command(9010)|executed
   command: pgrep -fl 'vcld [0-9]+:1 ', pid: 7004, exit status: 0, output:
   2012-03-13 
   
   16:03:50|2012|1:1

Re: Xcat image capture issues

2012-03-13 Thread Dmitri Chebotarov
:1|image| (-2) Module.pm, create_provisioning_object (line: 
 423)
 |12372|1:1|image| (-3) State.pm, initialize (line: 117)
 |12372|1:1|image| (-4) Module.pm, new (line: 207)
 |12372|1:1|image| (-5) vcld, make_new_child (line: 564)
 |12372|1:1|image|  WARNING 
 |12372|1:1|image| 2012-03-07
 
 14:49:31|12372|1:1|image|Module.pm:create_provisioning_object(431)|provi
 s
 ioning
 object could not be created, returning 0
 |12372|1:1|image| ( 0) Module.pm, create_provisioning_object (line: 
 431)
 |12372|1:1|image| (-1) State.pm, initialize (line: 117)
 |12372|1:1|image| (-2) Module.pm, new (line: 207)
 |12372|1:1|image| (-3) vcld, make_new_child (line: 564)
 |12372|1:1|image| (-4) vcld, main (line: 346)
 |12372|1:1|image|  WARNING 
 |12372|1:1|image| 2012-03-07
 14:49:31|12372|1:1|image|State.pm:initialize(118)|failed to create
 provisioning object
 |12372|1:1|image| ( 0) State.pm, initialize (line: 118)
 |12372|1:1|image| (-1) Module.pm, new (line: 207)
 |12372|1:1|image| (-2) vcld, make_new_child (line: 564)
 |12372|1:1|image| (-3) vcld, main (line: 346)
 2012-03-07 14:49:31|12372|1:1|image|State.pm:DESTROY(829)|VCL::image
 destructor called, address: 223a460
 2012-03-07
 
 14:49:31|12372|1:1|image|utils.pm:delete_computerloadlog_reservation(674
 2
 )|removing
 computerloadlog entries matching loadstate = begin
 2012-03-07
 
 14:49:31|12372|1:1|image|utils.pm:delete_computerloadlog_reservation(678
 9
 )|deleted
 rows from computerloadlog for reservation id=1
 2012-03-07 14:49:31|12372|1:1|image|State.pm:DESTROY(848)|number of
 database
 handles state process created: 1
 2012-03-07 14:49:31|12372|1:1|image|State.pm:DESTROY(876)|VCL::image
 process
 duration: 0 seconds
 2012-03-07
 
 14:49:31|12372|1:1|image|DataStructure.pm:get_computer_private_ip_addres
 s
 (1581)|attempting
 to retrieve private IP address for computer: 6100a
 2012-03-07
 
 14:49:31|12372|1:1|image|DataStructure.pm:get_computer_private_ip_addres
 s
 (1585)|retrieved
 contents of /etc/hosts on this management node, contains 9 lines
 2012-03-07
 
 14:49:31|12372|1:1|image|DataStructure.pm:get_computer_private_ip_addres
 s
 (1645)|returning
 IP address from /etc/hosts file: 10.0.0.25
 2012-03-07 14:49:31|12372|1:1|image|utils.pm:getnewdbh(2703)|unable to
 use
 database handle stored in $ENV{dbh}
 2012-03-07 14:49:31|12372|1:1|image|utils.pm:getnewdbh(2760)|database
 handle
 stored in $ENV{dbh}
 2012-03-07 
 14:49:31|12372|1:1|image|utils.pm:is_inblockrequest(6163)|zero
 rows were returned from database select
 2012-03-07
 
 14:49:31|12372|1:1|image|DataStructure.pm:get_image_affiliation_name(203
 5
 )|image
 owner id: 1
 2012-03-07 14:49:31|12372|1:1|image|utils.pm:getnewdbh(2709)|database
 requested (information_schema) does not match handle stored in 
 $ENV{dbh}
 (vcl:localhost)
 2012-03-07 14:49:31|12372|1:1|image|utils.pm:getnewdbh(2760)|database
 handle
 stored in $ENV{dbh}
 2012-03-07
 
 14:49:31|12372|1:1|image|DataStructure.pm:retrieve_user_data(1352)|attem
 p
 ting
 to retrieve and store data for user: user.id = '1'
 2012-03-07 14:49:31|12372|1:1|image|utils.pm:getnewdbh(2709)|database
 requested (vcl) does not match handle stored in $ENV{dbh}
 (information_schema:localhost)
 2012-03-07 14:49:31|12372|1:1|image|utils.pm:getnewdbh(2760)|database
 handle
 stored in $ENV{dbh}
 2012-03-07
 14:49:31|12372|1:1|image|DataStructure.pm:retrieve_user_data(1415)|data
 has
 been retrieved for user: admin (id: 1)
 
 
 

--
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: VCL and xCat

2012-03-01 Thread Dmitri Chebotarov
Mike

Thank you. I was missing the record in vcl.resource table. 
For ESXi 4.1 kickstart I had to change sourcepath value in vcl.os from esxi4.1 
to esxi41 for id=38. xCAT2.pm can only get esxi4. (misses part after .)
I also had to create couple symlinks for xCAT2.pm to find image folder, but 
it's working now.

Thank you.

On Feb 29, 2012, at 16:47 , Waldron, Michael H wrote:

 Dmitri,
 
 I have a script that I run to manually insert an image into the database. It 
 places an entry in the image, imgagerevision, and resource tables. Here is a 
 sample below. Of course you would substitute the proper values for your 
 situation.
 
 INSERT INTO `image` (id, `name`, `prettyname`, `ownerid`, `deptid`, 
 `platformid`, 
 `OSid`, `imagemetaid`, `minram`, `minprocnumber`, `minprocspeed`, 
 `minnetwork`,
 `maxconcurrent`, `reloadtime`, `deleted`, `test`, `lastupdate`, 
 `forcheckout`, `maxinitialtime`,
 `project`, `size`) VALUES (150, 'vmwarerhels4-base150-v0', 'Base No Apps, 
 RHEL4 32-bit w/AFS (vmware)', 8, 1, 1, 32, NULL, 1024, 1, 0, 10, NULL, 14, 0, 
 0, NOW(), 1, 0, 'vcl', 1045);
 
 INSERT INTO `imagerevision` (`imageid`, `revision`, `userid`, `datecreated`, 
 `deleted`, `production`,
 `comments`, `imagename`) VALUES (150, 0, 8, NOW(), 0, 1, NULL, 
 'vmwarerhels4-base150-v0');
 
 INSERT INTO `resource` (`resourcetypeid`, `subid`) VALUES (13, 150);
 
 Mike
 
 Mike Waldron
 Systems Specialist
 ITS Research Computing
 University of North Carolina at Chapel Hill
 CB 3420, ITS Manning, Rm 2509
 919-962-9778
 
 -Original Message-
 From: Dmitri Chebotarov [mailto:dcheb...@gmu.edu] 
 Sent: Wednesday, February 29, 2012 4:19 PM
 To: vcl-user@incubator.apache.org
 Subject: Re: VCL and xCat
 
 Mike,
 
 Thank you for explanation. 
 How did you add kickstart image to vcl.image table?
 I've tried adding image by inserting record directly into vcl.image and 
 vcl.imagemeta tables, but this didn't work.
 vcld --setup only allows partimage type for bare-metal. 
 
 Thank you.
 
 On Feb 29, 2012, at 15:41 , Waldron, Michael H wrote:
 
 Dmitri,
 
 Yes, VCL supports kickstart installs with xCAT. The column in the image 
 table that corresponds to the install type is OSid.
 
 Example:
 
 mysql select prettyname, OSid from image where id=235;
 +---+--+
 | prettyname| OSid |
 +---+--+
 | RedHat Enterprise Linux server 5 (KS) |   19 | 
 +---+--+
 1 row in set (0.00 sec)
 
 mysql select * from OS where id=19;
 ++---++---+-++--+
 | id | name  | prettyname | type  | installtype | sourcepath 
 | moduleid |
 ++---++---+-++--+
 | 19 | rhel5 | Red Hat Enterprise Linux 5 | linux | kickstart   | rhas5  
 |5 | 
 ++---++---+-++--+
 1 row in set (0.00 sec)
 
 mysql select * from module where id=5;
 ++--+-+-++
 | id | name | prettyname  | description | perlpackage|
 ++--+-+-++
 |  5 | os_linux | Linux OS Module | | VCL::Module::OS::Linux | 
 ++--+-+-++
 1 row in set (0.00 sec)
 
 So in this case OS id 19 specifies a RHEL5 kickstart install, the sourcepath 
 where the RHEL5 installation files are under /install/rhas5. The OS entry 
 links to the module table, id 5 which tells it the perl module to use. 
 
 You need to have the appropriate entries in your OS and module tables 
 specific to your ESXi image.
 
 Mike
 
 Mike Waldron
 Systems Specialist
 ITS Research Computing
 University of North Carolina at Chapel Hill
 CB 3420, ITS Manning, Rm 2509
 919-962-9778
 
 -Original Message-
 From: Dmitri Chebotarov [mailto:dcheb...@gmu.edu] 
 Sent: Wednesday, February 29, 2012 3:17 PM
 To: vcl-user@incubator.apache.org
 Subject: Re: VCL and xCat
 
 Hi again,
 
 Looks like vcl.os and vcl.osinstalltype tables have 'kickstart' installtype 
 for an image. 
 But I cannot find a way to set image_os_install_type to 'kickstart', it's 
 'partimage' by default for bare-metal. 
 
 And there seems to be no column in vcl.image table which corresponds to 
 image_os_install_type.
 
 Help! Does VCL support kickstart image install with xCAT module?
 
 Thank you.
 
 On Feb 29, 2012, at 11:14 , Dmitri Chebotarov wrote:
 
 
 Hi
 
 Is there a way to use kickstart script install with VCL/xCAT? 
 xCAT2.pm code mentions use of templates, but I cannot find a way how to 
 make use of them. 
 
 I have working ESXi 4.1 template, and able to install ESXi 4.1 using xCAT 
 (nodeset node install works OK). 
 How would I add ESXi 4.1 image to VCL which is bases

Re: VCL and xCat

2012-03-01 Thread Dmitri Chebotarov
Thank you for all your help. xCAT / VCL is working OK with both 'image' and 
'kickstart' provisioning.

There is a small issue with xCAT2.pm going tru install stages when deploying 
kickstart image. xCAT2.m uses listener.py to get status, but kickstart image 
doesn't have it. 
Earlier I've added a custom script 'vcl_nodestat' to read from remote socket 
created by listener.py. 
Here is updated version of 'vcl_nodestat', adjusted to get status from xCAT for 
kickstart install. It seems to working OK. 

code perl
#!/usr/bin/perl -w

use strict;
use IO::Socket;
my ($remote, $answer, $peerAddress, $peerPort, 
$sendCommand,$installType,$XCAT_ROOT);

$peerAddress = $ARGV[0];
$peerPort = 3001;
$sendCommand = $ARGV[1];

$XCAT_ROOT = '/opt/xcat';

#get install type via: tabdump -w node==node nodetype|tail -1|awk -F, {'print 
$2'}
#get current status for non-image install via: tabdump -w node==node chain|tail 
-1|awk -F, {'print $2'}

$installType = `$XCAT_ROOT/sbin/tabdump -w node==$peerAddress nodetype|tail 
-1|awk -F, {'print \$2'}|sed s/\\//g`;

if ( $installType =~ /image/ ) { # connect to listener.py for stat

  $remote=IO::Socket::INET-new(Proto ='tcp',PeerAddr = $peerAddress,PeerPort 
= $peerPort,Type = SOCK_STREAM) or die $peerAddress: noping\n;
  print $remote $sendCommand\n;
  while ($answer=$remote)
{
  print $peerAddress: $answer\n;
}
close $remote;
} else { # install is kickstart
  $answer = `$XCAT_ROOT/sbin/tabdump -w node==$peerAddress chain|tail -1|awk -F 
',' {'print \$2'}|sed s/\\//g`;
  print $peerAddress: $answer;
}
/code

These are changes to xCAT2.pm related to this:

# diff xCAT2.pm-copy xCAT2.pm-copy2
580c580
   if (open(NODESTAT, $XCAT_ROOT/bin/nodestat $computer_node_name 
stat 21 |)) {
---
   if (open(NODESTAT, $XCAT_ROOT/bin/vcl_nodestat 
 $computer_node_name stat 21 |)) {
600c600
   } ## end if (open(NODESTAT, $XCAT_ROOT/bin/nodestat 
$computer_node_name stat 21 |...
---
   } ## end if (open(NODESTAT, $XCAT_ROOT/bin/vcl_nodestat 
 $computer_node_name stat 21 |...
603c603
   notify($ERRORS{'CRITICAL'}, 0, could not run 
$XCAT_ROOT/bin/nodestat command);
---
   notify($ERRORS{'CRITICAL'}, 0, could not run 
 $XCAT_ROOT/bin/vcl_nodestat command);
614c614
   elsif ($status =~ /partimage-ng: complete/) {
---
   elsif ($status =~ /partimage-ng: complete|boot/) {
632c632
   if ($nodeset_status =~ /boot/ || $status =~ 
/partimage-ng: complete/) {
---
   if ($nodeset_status =~ /boot/ || $status =~ 
 /partimage-ng: complete|boot/) {
976c976
   if (open(NODESTAT, $XCAT_ROOT/bin/nodestat $computer_node_name stat 
21 |)) {
---
   if (open(NODESTAT, $XCAT_ROOT/bin/vcl_nodestat $computer_node_name 
 stat 21 |)) {
993c993
   } ## end if (open(NODESTAT, $XCAT_ROOT/bin/nodestat 
$computer_node_name stat 21 |...
---
   } ## end if (open(NODESTAT, $XCAT_ROOT/bin/vcl_nodestat 
 $computer_node_name stat 21 |...


On Mar 1, 2012, at 10:45 , Aaron Peeler wrote:

 Also created a document on this topic. Please review and correct if needed.
 
 https://cwiki.apache.org/confluence/display/VCL/Adding+xCAT+kickstart+based+image
 
 Aaron
 
 On Thu, Mar 1, 2012 at 9:55 AM, Dmitri Chebotarov dcheb...@gmu.edu wrote:
 Mike
 
 Thank you. I was missing the record in vcl.resource table.
 For ESXi 4.1 kickstart I had to change sourcepath value in vcl.os from 
 esxi4.1 to esxi41 for id=38. xCAT2.pm can only get esxi4. (misses part after 
 .)
 I also had to create couple symlinks for xCAT2.pm to find image folder, but 
 it's working now.
 
 Thank you.
 
 On Feb 29, 2012, at 16:47 , Waldron, Michael H wrote:
 
 Dmitri,
 
 I have a script that I run to manually insert an image into the database. 
 It places an entry in the image, imgagerevision, and resource tables. Here 
 is a sample below. Of course you would substitute the proper values for 
 your situation.
 
 INSERT INTO `image` (id, `name`, `prettyname`, `ownerid`, `deptid`, 
 `platformid`,
 `OSid`, `imagemetaid`, `minram`, `minprocnumber`, `minprocspeed`, 
 `minnetwork`,
 `maxconcurrent`, `reloadtime`, `deleted`, `test`, `lastupdate`, 
 `forcheckout`, `maxinitialtime`,
 `project`, `size`) VALUES (150, 'vmwarerhels4-base150-v0', 'Base No Apps, 
 RHEL4 32-bit w/AFS (vmware)', 8, 1, 1, 32, NULL, 1024, 1, 0, 10, NULL, 14, 
 0, 0, NOW(), 1, 0, 'vcl', 1045);
 
 INSERT INTO `imagerevision` (`imageid`, `revision`, `userid`, 
 `datecreated`, `deleted`, `production`,
 `comments`, `imagename`) VALUES (150, 0, 8, NOW(), 0, 1, NULL, 
 'vmwarerhels4-base150-v0');
 
 INSERT INTO `resource` (`resourcetypeid`, `subid`) VALUES (13, 150);
 
 Mike
 
 Mike Waldron
 Systems Specialist
 ITS Research Computing
 University of North Carolina at Chapel Hill
 CB 3420, ITS Manning, Rm 2509
 919-962-9778
 
 -Original Message-
 From: Dmitri Chebotarov [mailto:dcheb...@gmu.edu]
 Sent: Wednesday, February

Re: VCL and xCat

2012-02-29 Thread Dmitri Chebotarov

Hi

Is there a way to use kickstart script install with VCL/xCAT? 
xCAT2.pm code mentions use of templates, but I cannot find a way how to make 
use of them. 

I have working ESXi 4.1 template, and able to install ESXi 4.1 using xCAT 
(nodeset node install works OK). 
How would I add ESXi 4.1 image to VCL which is bases on kickstart, not on 
partimage? 

Thank you for help.


On Feb 22, 2012, at 14:12 , Josh Thompson wrote:

 
 Hash: SHA1
 
 Dmitri,
 
 Did you follow the guide for adding partimage support to xCAT?
 
 https://cwiki.apache.org/confluence/display/VCL/Adding+support+for+partimage+and+partimage-
 ng+to+xCAT+2.x+%28unofficial%29
 
 You said you installed the partimage rpm.  partimage is not something that 
 needs to be installed on the management node.  It is part of the stateless 
 images mentioned on the above page.
 
 Josh
 
 On Tuesday 21 February 2012 4:47:06 PM Dmitri Chebotarov wrote:
 Hi All.
 
 I'm trying to capture a base image using xCAT module - the server is
 bare-metal CentOS5.7. The process starts OK, able to communicate with the
 node and then fails when trying to create .tmpl file.
 
 xCAT is installed and configured on the management node.
 partimage rpm is installed as well.
 
 Do you know what could be the issue?
 
 Thank you for your help.
 
 ...
 2012-02-21 16:22:30|12755|275:261|image|xCAT2.pm:capture(827)|nodetype
 modified, node bc1-7, image name centos5image-xcatcentos5v474-v0 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_create_template(1065)|attempting to
 create tmpl file for image: centos5image-xcatcentos5v474-v0 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2084)|manage
 ment node identifier argument was not specified
 2012-02-21 16:22:30|12755|275:261|image|
 xCAT2.pm:_get_image_template_path(2115)|attempting to determine template path 
 for image:
 |12755|275:261|image| image name: centos5image-xcatcentos5v474-v0
 |12755|275:261|image| OS install type: partimage
 |12755|275:261|image| OS source path: image
 |12755|275:261|image| xCAT 2.x OS source path: image
 
 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2123)|return
 ing: /opt/xcat/share/xcat/install/image 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2084)|manage
 ment node identifier argument was not specified
 2012-02-21 16:22:30|12755|275:261|image|
 xCAT2.pm:_get_image_template_path(2115)|attempting to determine template path 
 for image:
 |12755|275:261|image| image name: centos5image-xcatcentos5v474-v0
 |12755|275:261|image| OS install type: partimage
 |12755|275:261|image| OS source path: image
 |12755|275:261|image| xCAT 2.x OS source path: image
 
 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2123)|return
 ing: /opt/xcat/share/xcat/install/image 2012-02-21
 16:22:30|12755|275:261|image|DataStructure.pm:get_computer_private_ip_addre
 ss(1557)|returning private IP address previously retrieved: 10.3.1.27
 2012-02-21
 16:22:30|12755|275:261|image|utils.pm:is_inblockrequest(6164)|zero rows
 were returned from database select 2012-02-21
 16:22:30|12755|275:261|image|DataStructure.pm:get_image_affiliation_name(20
 35)|image owner id: 1 2012-02-21
 16:22:30|12755|275:261|image|utils.pm:getnewdbh(2710)|database requested
 (information_schema) does not match handle stored in $ENV{dbh}
 (vcl:10.3.1.214) 2012-02-21
 16:22:30|12755|275:261|image|utils.pm:getnewdbh(2761)|database handle
 stored in $ENV{dbh} 2012-02-21
 16:22:30|12755|275:261|image|DataStructure.pm:retrieve_user_data(1352)|atte
 mpting to retrieve and store data for user: user.id = '1' 2012-02-21
 16:22:30|12755|275:261|image|utils.pm:getnewdbh(2710)|database requested
 (vcl) does not match handle stored in $ENV{dbh}
 (information_schema:10.3.1.214) 2012-02-21
 16:22:30|12755|275:261|image|utils.pm:getnewdbh(2761)|database handle
 stored in $ENV{dbh} 2012-02-21
 16:22:30|12755|275:261|image|DataStructure.pm:retrieve_user_data(1415)|data
 has been retrieved for user: admin (id: 1) 2012-02-21
 16:22:30|12755|275:261|image|utils.pm:mail(1268)|SUCCESS -- Sending mail
 To: dcheb...@gmu.edu, PROBLEM --
 275:261|image|xCAT2.pm|bc1-7|centos5image-xcatcentos5v474-v0|admin
 |12755|275:261|image|  CRITICAL 
 |12755|275:261|image| 2012-02-21
 |16:22:30|12755|275:261|image|xCAT2.pm:_get_base_template_filename(2170)|f
 |ailed to find suitable base image template file in
 |/opt/xcat/share/xcat/install/image 12755|275:261|image| ( 0) xCAT2.pm,
 |_get_base_template_filename (line: 2170) 12755|275:261|image| (-1)
 |xCAT2.pm, _create_template (line: 1075) 12755|275:261|image| (-2)
 |xCAT2.pm, capture (line: 836)
 |12755|275:261|image| (-3) image.pm, process (line: 162)
 |12755|275:261|image| (-4) vcld, make_new_child (line: 568)
 |12755|275:261|image| (-5) vcld, main (line: 346)
 |12755|275:261|image|  WARNING 
 |12755|275:261|image| 2012-02-21
 |16:22:30|12755|275:261|image|xCAT2.pm:_create_template(1077)|base
 |template

Re: VCL and xCat

2012-02-29 Thread Dmitri Chebotarov
Mike,

Thank you for explanation. 
How did you add kickstart image to vcl.image table?
I've tried adding image by inserting record directly into vcl.image and 
vcl.imagemeta tables, but this didn't work.
vcld --setup only allows partimage type for bare-metal. 

Thank you.

On Feb 29, 2012, at 15:41 , Waldron, Michael H wrote:

 Dmitri,
 
 Yes, VCL supports kickstart installs with xCAT. The column in the image table 
 that corresponds to the install type is OSid.
 
 Example:
 
 mysql select prettyname, OSid from image where id=235;
 +---+--+
 | prettyname| OSid |
 +---+--+
 | RedHat Enterprise Linux server 5 (KS) |   19 | 
 +---+--+
 1 row in set (0.00 sec)
 
 mysql select * from OS where id=19;
 ++---++---+-++--+
 | id | name  | prettyname | type  | installtype | sourcepath 
 | moduleid |
 ++---++---+-++--+
 | 19 | rhel5 | Red Hat Enterprise Linux 5 | linux | kickstart   | rhas5  
 |5 | 
 ++---++---+-++--+
 1 row in set (0.00 sec)
 
 mysql select * from module where id=5;
 ++--+-+-++
 | id | name | prettyname  | description | perlpackage|
 ++--+-+-++
 |  5 | os_linux | Linux OS Module | | VCL::Module::OS::Linux | 
 ++--+-+-++
 1 row in set (0.00 sec)
 
 So in this case OS id 19 specifies a RHEL5 kickstart install, the sourcepath 
 where the RHEL5 installation files are under /install/rhas5. The OS entry 
 links to the module table, id 5 which tells it the perl module to use. 
 
 You need to have the appropriate entries in your OS and module tables 
 specific to your ESXi image.
 
 Mike
 
 Mike Waldron
 Systems Specialist
 ITS Research Computing
 University of North Carolina at Chapel Hill
 CB 3420, ITS Manning, Rm 2509
 919-962-9778
 
 -Original Message-
 From: Dmitri Chebotarov [mailto:dcheb...@gmu.edu] 
 Sent: Wednesday, February 29, 2012 3:17 PM
 To: vcl-user@incubator.apache.org
 Subject: Re: VCL and xCat
 
 Hi again,
 
 Looks like vcl.os and vcl.osinstalltype tables have 'kickstart' installtype 
 for an image. 
 But I cannot find a way to set image_os_install_type to 'kickstart', it's 
 'partimage' by default for bare-metal. 
 
 And there seems to be no column in vcl.image table which corresponds to 
 image_os_install_type.
 
 Help! Does VCL support kickstart image install with xCAT module?
 
 Thank you.
 
 On Feb 29, 2012, at 11:14 , Dmitri Chebotarov wrote:
 
 
 Hi
 
 Is there a way to use kickstart script install with VCL/xCAT? 
 xCAT2.pm code mentions use of templates, but I cannot find a way how to make 
 use of them. 
 
 I have working ESXi 4.1 template, and able to install ESXi 4.1 using xCAT 
 (nodeset node install works OK). 
 How would I add ESXi 4.1 image to VCL which is bases on kickstart, not on 
 partimage? 
 
 Thank you for help.
 
 
 On Feb 22, 2012, at 14:12 , Josh Thompson wrote:
 
 
 Hash: SHA1
 
 Dmitri,
 
 Did you follow the guide for adding partimage support to xCAT?
 
 https://cwiki.apache.org/confluence/display/VCL/Adding+support+for+partimage+and+partimage-
 ng+to+xCAT+2.x+%28unofficial%29
 
 You said you installed the partimage rpm.  partimage is not something that 
 needs to be installed on the management node.  It is part of the stateless 
 images mentioned on the above page.
 
 Josh
 
 On Tuesday 21 February 2012 4:47:06 PM Dmitri Chebotarov wrote:
 Hi All.
 
 I'm trying to capture a base image using xCAT module - the server is
 bare-metal CentOS5.7. The process starts OK, able to communicate with the
 node and then fails when trying to create .tmpl file.
 
 xCAT is installed and configured on the management node.
 partimage rpm is installed as well.
 
 Do you know what could be the issue?
 
 Thank you for your help.
 
 ...
 2012-02-21 16:22:30|12755|275:261|image|xCAT2.pm:capture(827)|nodetype
 modified, node bc1-7, image name centos5image-xcatcentos5v474-v0 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_create_template(1065)|attempting to
 create tmpl file for image: centos5image-xcatcentos5v474-v0 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2084)|manage
 ment node identifier argument was not specified
 2012-02-21 16:22:30|12755|275:261|image|
 xCAT2.pm:_get_image_template_path(2115)|attempting to determine template 
 path 
 for image:
 |12755|275:261|image| image name: centos5image-xcatcentos5v474-v0
 |12755|275:261|image| OS install type: partimage
 |12755|275:261|image| OS source path: image
 |12755|275:261|image| xCAT 2

Re: failed mysql connection

2012-02-28 Thread Dmitri Chebotarov
Clark

Could you also check that selinux is disabled?

On Feb 28, 2012, at 8:51 , Clark Cooper wrote:

 Yes, I'm able to make a connection from command line (using the password in 
 the secrets file):
 
 [root@rhel61 ~]# mysql -u vcluser -p
 Enter password: 
 Welcome to the MySQL monitor.  Commands end with ; or \g.
 Your MySQL connection id is 3
 Server version: 5.1.61 Source distribution
 
 
 I still get the connection error after making the suggested MySQL grant:
 
 mysql GRANT ALL ON vcl.* TO 'vcluser'@'localhost';
 Query OK, 0 rows affected (0.00 sec)
 
 Thanks,
 Clark
 
 
 -Original Message-
 From: dcheb...@gmu.edu [mailto:dcheb...@gmu.edu] 
 Sent: Monday, February 27, 2012 8:54 PM
 To: vcl-user@incubator.apache.org
 Subject: Re: failed mysql connection
 
 Clark
 
 Are you able to connect to mysql from command line on rhel61 host, 'mysql -u 
 vcluser -p' ?
 Can you also try with GRAND ALL ON vcl.* TO 'vcluser'@localhost?
 
 On Feb 27, 2012, at 16:36 , Clark Cooper wrote:
 
 Still trying to get VCL setup/configured and moving past the php-mcrypt 
 issue, I also receive the following message within my testsetup.php output:
 
 
 Testing mysql connection ...
 Error: fsockopen(): unable to connect to localhost:3306 (Permission 
 denied) Could not connect to port 3306 on localhost
 
 
 For debugging purposes, I have stopped iptables.  Here is the connection 
 information within my secrets.php file:
 
 [root@rhel61 .ht-inc]# grep vcl secrets.php $vclhost = 'localhost'; # 
 name of mysql server
 $vcldb = 'vcl'; # name of mysql database
 $vclusername = 'vcluser';  # username to access database
 $vclpassword = 'vcluserpassword';  # password to access database
 
 
 
 Note the following outputs from MySQL:
 
 mysql show grants for vcluser@localhost;
 ++
 | Grants for vcluser@localhost   
 |
 ++
 | GRANT USAGE ON *.* TO 'vcluser'@'localhost' IDENTIFIED BY PASSWORD 
 | '*BC54E34381D07EB1FF25938A2F524C17201FC22F' | GRANT SELECT, INSERT, 
 | UPDATE, DELETE, CREATE TEMPORARY TABLES, LOCK TABLES ON `vcl`.* TO 
 | 'vcluser'@'localhost' |
 ++
 2 rows in set (0.00 sec)
 
 
 mysql select host, user, password from mysql.user;
 +---+-+---+
 | host  | user| password  |
 +---+-+---+
 | localhost | root| *A195277AB4567B2C3C4CDCAF6B5B48409EFE6765 |
 | 127.0.0.1 | root| *A195277AB4567B2C3C4CDCAF6B5B48409EFE6765 |
 | localhost | vcluser | *BC54E34381D07EB1FF25938A2F524C17201FC22F |
 +---+-+---+
 
 
 Clark Cooper | Senior Systems Engineer
 1301 Gervais Street, Suite 1800 | Columbia, SC 29201
 (d) 803.978.2699 | (f) 803.733.5888
 clark.coo...@vc3.com | www.VC3.com
 Follow us: 
 
 
 
 
 
 
 
 Thank you.
 
 -
 Dmitri Chebotarov
 dcheb...@gmu.edu
 703-993-6175
 -
 
 




Thank you.

-
Dmitri Chebotarov
dcheb...@gmu.edu
703-993-6175
-




signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: VCL and xCat

2012-02-28 Thread Dmitri Chebotarov
Hi

There seems to be a disconnect between xCAT2.pm and 
/install/postscripts/partimageng script. The partimageng script starts 
listener.py in background which suppose to report to nodestat in xCAT2.pm 
module. xCAT2.pm is using 'nodestat nodename stat' to check on status, but 
nodestat command doesn't use listener.py running on the node. 

Is there a workaround? May be an updated version of xCAT2.pm which checks 
/var/log/messages on round2? 
Looks like partimageng is using logger to report back the status to xCat 
master...

B/c of this, reservation or reload is inconsistent. nodestat would report 
install imagename for about 7-9 sec and xCAT2.pm doesn't always get it.

Thank you for your help.

 
On Feb 22, 2012, at 14:32 , Dmitri Chebotarov wrote:

 John,
 
 I got the link and I think I'm making some good progress. 
 Also found this tread on the maillist 
 (http://markmail.org/message/lotx3l34co6yv5nf?q=partimageng%2Epm#query:partimageng.pm+page:1+mid:lthvtrde7radude3+state:results)
  where you helped Prem, which is very helpful.
 
 Thank you
 
 On Feb 22, 2012, at 14:12 , Josh Thompson wrote:
 
 
 Hash: SHA1
 
 Dmitri,
 
 Did you follow the guide for adding partimage support to xCAT?
 
 https://cwiki.apache.org/confluence/display/VCL/Adding+support+for+partimage+and+partimage-
 ng+to+xCAT+2.x+%28unofficial%29
 
 You said you installed the partimage rpm.  partimage is not something that 
 needs to be installed on the management node.  It is part of the stateless 
 images mentioned on the above page.
 
 Josh
 
 On Tuesday 21 February 2012 4:47:06 PM Dmitri Chebotarov wrote:
 Hi All.
 
 I'm trying to capture a base image using xCAT module - the server is
 bare-metal CentOS5.7. The process starts OK, able to communicate with the
 node and then fails when trying to create .tmpl file.
 
 xCAT is installed and configured on the management node.
 partimage rpm is installed as well.
 
 Do you know what could be the issue?
 
 Thank you for your help.
 
 ...
 2012-02-21 16:22:30|12755|275:261|image|xCAT2.pm:capture(827)|nodetype
 modified, node bc1-7, image name centos5image-xcatcentos5v474-v0 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_create_template(1065)|attempting to
 create tmpl file for image: centos5image-xcatcentos5v474-v0 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2084)|manage
 ment node identifier argument was not specified
 2012-02-21 16:22:30|12755|275:261|image|
 xCAT2.pm:_get_image_template_path(2115)|attempting to determine template 
 path 
 for image:
 |12755|275:261|image| image name: centos5image-xcatcentos5v474-v0
 |12755|275:261|image| OS install type: partimage
 |12755|275:261|image| OS source path: image
 |12755|275:261|image| xCAT 2.x OS source path: image
 
 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2123)|return
 ing: /opt/xcat/share/xcat/install/image 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2084)|manage
 ment node identifier argument was not specified
 2012-02-21 16:22:30|12755|275:261|image|
 xCAT2.pm:_get_image_template_path(2115)|attempting to determine template 
 path 
 for image:
 |12755|275:261|image| image name: centos5image-xcatcentos5v474-v0
 |12755|275:261|image| OS install type: partimage
 |12755|275:261|image| OS source path: image
 |12755|275:261|image| xCAT 2.x OS source path: image
 
 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2123)|return
 ing: /opt/xcat/share/xcat/install/image 2012-02-21
 16:22:30|12755|275:261|image|DataStructure.pm:get_computer_private_ip_addre
 ss(1557)|returning private IP address previously retrieved: 10.3.1.27
 2012-02-21
 16:22:30|12755|275:261|image|utils.pm:is_inblockrequest(6164)|zero rows
 were returned from database select 2012-02-21
 16:22:30|12755|275:261|image|DataStructure.pm:get_image_affiliation_name(20
 35)|image owner id: 1 2012-02-21
 16:22:30|12755|275:261|image|utils.pm:getnewdbh(2710)|database requested
 (information_schema) does not match handle stored in $ENV{dbh}
 (vcl:10.3.1.214) 2012-02-21
 16:22:30|12755|275:261|image|utils.pm:getnewdbh(2761)|database handle
 stored in $ENV{dbh} 2012-02-21
 16:22:30|12755|275:261|image|DataStructure.pm:retrieve_user_data(1352)|atte
 mpting to retrieve and store data for user: user.id = '1' 2012-02-21
 16:22:30|12755|275:261|image|utils.pm:getnewdbh(2710)|database requested
 (vcl) does not match handle stored in $ENV{dbh}
 (information_schema:10.3.1.214) 2012-02-21
 16:22:30|12755|275:261|image|utils.pm:getnewdbh(2761)|database handle
 stored in $ENV{dbh} 2012-02-21
 16:22:30|12755|275:261|image|DataStructure.pm:retrieve_user_data(1415)|data
 has been retrieved for user: admin (id: 1) 2012-02-21
 16:22:30|12755|275:261|image|utils.pm:mail(1268)|SUCCESS -- Sending mail
 To: dcheb...@gmu.edu, PROBLEM --
 275:261|image|xCAT2.pm|bc1-7|centos5image-xcatcentos5v474-v0|admin
 |12755|275:261|image|  CRITICAL 
 |12755|275:261|image| 2012-02-21
 |16:22

Re: Linux servers with VLAN ID

2012-02-28 Thread Dmitri Chebotarov
Hi All

Please ignore this question.

I fixed it with adding a boot script to Linux bare-metal image (in /etc/init.d) 
to replace eth1 with eth1. in /etc/rc.local file using sed.

Thanks. 

On Feb 27, 2012, at 15:16 , Dmitri Chebotarov wrote:

 Hi All,
 
 In case if I need to use VLANs on external interface on Linux servers, what 
 would be the good way to handle eth1.xx interfaces? 
 I'm adding xCAT support for VCL and xCAT servers have external interface with 
 VLAD id. 
 The VCL script in rc.local checks for eth1, but not for eth1.xxx (which is 
 understandable). 
 
 I plan to change 1st two lines to:
 
 IP0=$(ifconfig | grep inet addr:|awk '{print $2}' | awk -F: '{print 
 $2}'|awk '{ if (NR==1) print $0 }')
 IP1=$(ifconfig | grep inet addr:|awk '{print $2}' | awk -F: '{print 
 $2}'|awk '{ if (NR==2) print $0 }')
 
 or to:
 
 IF0=$(ip -f inet addr|grep inet |grep eth0| awk {'print $7'})
 IF1=$(ip -f inet addr|grep inet |grep eth1| awk {'print $7'})
 
 IP0=$(ifconfig $IF0 | grep inet | awk '{print $2}' | awk -F: '{print $2}')
 IP1=$(ifconfig $IF1 | grep inet | awk '{print $2}' | awk -F: '{print $2}')
 
 and wanted to ask if anyone had to solve similar problem in the past and may 
 be have different solution. 
 
 I cannot hardcode eth1.VLANID, b/c the same VCL is used for VMs as well, and 
 those don't have VLANs (VLANs done by ESXi host)
 
 This is original script, which I plan to change:
 
 # This file will get overwritten during image capture. Any customizations
 # should be put into /etc/init.d/vcl_post_reserve or /etc/init.d/vcl_post_load
 # Note these files do not exist by default.
 
 IP0=$(ifconfig eth0 | grep inet | awk '{print $2}' | awk -F: '{print $2}')
 IP1=$(ifconfig eth1 | grep inet | awk '{print $2}' | awk -F: '{print $2}')
 
 sed -i -e '/.*AllowUsers .*$/d' /etc/ssh/sshd_config
 sed -i -e '/.*ListenAddress .*/d' /etc/ssh/sshd_config
 sed -i -e '/.*ListenAddress .*/d' /etc/ssh/external_sshd_config
 echo AllowUsers root  /etc/ssh/sshd_config
 echo ListenAddress $IP0  /etc/ssh/sshd_config
 echo ListenAddress $IP1  /etc/ssh/external_sshd_config
 /etc/rc.d/init.d/ext_sshd stop
 /etc/rc.d/init.d/sshd stop
 sleep 2
 /etc/rc.d/init.d/sshd start
 /etc/rc.d/init.d/ext_sshd start
 
 
 Thank you.
 
 -
 Dmitri Chebotarov
 dcheb...@gmu.edu
 703-993-6175
 -
 
 




Thank you.

-
Dmitri Chebotarov
dcheb...@gmu.edu
703-993-6175
-




signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: VCL and xCat

2012-02-28 Thread Dmitri Chebotarov
Josh

I didn't think that making any major changes to xCAT2.pm would be a good idea. 
In fact the solution provided at 
https://cwiki.apache.org/VCL/adding-support-for-partimage-and-partimage-ng-to-xcat-2x-unofficial.html
 is good and tested. I assume that in newer xCAT nodestat behaves differently.

To get it working again I've created new /opt/xcat/bin/vcl_nodestat script, 
which communicates with socket created by listener.py.

#!/usr/bin/perl -w
use strict;
my ($remote, $answer, $peerAddress, $peerPort, $sendCommand);
$peerAddress = $ARGV[0];
$peerPort = 3001;
$sendCommand = $ARGV[1];
use IO::Socket;
$remote=IO::Socket::INET-new(Proto='tcp',PeerAddr = $peerAddress,PeerPort = 
$peerPort,Type =SOCK_STREAM) or die $peerAddress: noping\n;
print $remote $sendCommand\n;
while ($answer=$remote){
print $peerAddress:$answer\n;
}
close $remote;

Then I made some minor changes to xCAT2.pm, replacing '$XCAT_ROOT/bin/nodestat' 
with '$XCAT_ROOT/bin/vcl_nodestat'.

This seems to fixed the problem.

Thanks.

On Feb 28, 2012, at 15:42 , Josh Thompson wrote:

 
 Hash: SHA1
 
 Dmitri,
 
 At some point, this did work.  I'm not sure when it broke, but I never dug 
 back in to it to make it work again.  We've not noticed it causing failures; 
 so, I just let it go.  I can have a look at it again when I get a chance.
 
 Can you send some more detailed information about the conditions when you see 
 the problem?
 
 One other thing to look at - what does nodestat report after install 
 imagename?  If it is reporting that ssh is running, you may have a 
 postscript set to configure ssh that is getting run for the stateless image.  
 We have things set up so that ssh does not get set up for the stateless image.
 
 Josh
 
 On Tuesday, February 28, 2012 12:58:46 PM Dmitri Chebotarov wrote:
 Hi
 
 There seems to be a disconnect between xCAT2.pm and
 /install/postscripts/partimageng script. The partimageng script starts
 listener.py in background which suppose to report to nodestat in xCAT2.pm
 module. xCAT2.pm is using 'nodestat nodename stat' to check on status, but
 nodestat command doesn't use listener.py running on the node.
 
 Is there a workaround? May be an updated version of xCAT2.pm which checks
 /var/log/messages on round2? Looks like partimageng is using logger to
 report back the status to xCat master...
 
 B/c of this, reservation or reload is inconsistent. nodestat would report
 install imagename for about 7-9 sec and xCAT2.pm doesn't always get it.
 
 Thank you for your help.
 
 On Feb 22, 2012, at 14:32 , Dmitri Chebotarov wrote:
 John,
 
 I got the link and I think I'm making some good progress.
 Also found this tread on the maillist
 (http://markmail.org/message/lotx3l34co6yv5nf?q=partimageng%2Epm#query:
 partimageng.pm+page:1+mid:lthvtrde7radude3+state:results) where you
 helped Prem, which is very helpful.
 
 Thank you
 
 On Feb 22, 2012, at 14:12 , Josh Thompson wrote:
 Hash: SHA1
 
 Dmitri,
 
 Did you follow the guide for adding partimage support to xCAT?
 
 https://cwiki.apache.org/confluence/display/VCL/Adding+support+for+par
 timage+and+partimage- ng+to+xCAT+2.x+%28unofficial%29
 
 You said you installed the partimage rpm.  partimage is not something
 that needs to be installed on the management node.  It is part of the
 stateless images mentioned on the above page.
 
 Josh
 
 On Tuesday 21 February 2012 4:47:06 PM Dmitri Chebotarov wrote:
 Hi All.
 
 I'm trying to capture a base image using xCAT module - the server is
 bare-metal CentOS5.7. The process starts OK, able to communicate
 with the node and then fails when trying to create .tmpl file.
 
 xCAT is installed and configured on the management node.
 partimage rpm is installed as well.
 
 Do you know what could be the issue?
 
 Thank you for your help.
 
 ...
 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:capture(827)|nodetype
 modified, node bc1-7, image name centos5image-xcatcentos5v474-v0
 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_create_template(1065)|attemp
 ting to create tmpl file for image: centos5image-xcatcentos5v474-v0
 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2084
 )|manage ment node identifier argument was not specified
 2012-02-21 16:22:30|12755|275:261|image|
 
 xCAT2.pm:_get_image_template_path(2115)|attempting to determine
 template path 
 for image:
 |12755|275:261|image| image name: centos5image-xcatcentos5v474-v0
 |12755|275:261|image| OS install type: partimage
 |12755|275:261|image| OS source path: image
 |12755|275:261|image| xCAT 2.x OS source path: image
 
 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2123)
 |return ing: /opt/xcat/share/xcat/install/image 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2084)
 |manage ment node identifier argument was not specified
 2012-02-21 16:22:30|12755|275:261|image|
 
 xCAT2.pm:_get_image_template_path(2115)|attempting to determine
 template path 
 for image:
 |12755|275:261|image

Re: Creating a base image

2012-02-28 Thread Dmitri Chebotarov
Aaron

The problem seems to be with your /etc/hosts file.
'cat /etc/hosts' failed with exit status 255, when exit status 0 is expected. 
B/c of this, vcl couldn't get private ip address and didn't attempt to connect 
to the host. I cannot think of any valid reasons why 'cat /etc/hosts' would 
fail... Can you double-check syntax, permission, selinux, ... ?

...
|10951|20:20|image|  WARNING  
|10951|20:20|image| 2012-02-28 
13:32:34|10951|20:20|image|DataStructure.pm:get_computer_private_ip_address(1589)|failed
 to cat /etc/hosts on this management node, exit status: 255, output:
|10951|20:20|image| 127.0.0.1 localhost localhost.localdomain localhost4 
localhost4.localdomain4
|10951|20:20|image| 192.168.0.101 1vsphere 1vsphere.upb.pitt.edu
...
On Feb 28, 2012, at 13:28 , Aaron Bryant wrote:

 Greetings,
 
 I completed installing Cygwin SSHD and I'm attempting to run the vcld -setup 
 command.  My problem occurs in this step while creating a base image.  I am 
 able to get through all of the prompts and start the creation before the 
 script crashes.  I have checked the '/var/log/vcld.log' log file and this is 
 a portion of the output:
 
 ---
 VCL::Module::Provisioning::VMware::vSphere_SDK
 
 |10951|20:20|image|  WARNING  
 |10951|20:20|image| 2012-02-28 
 
 13:32:34|10951|20:20|image|VMware.pm:initialize(273)|no methods are available 
 to control VM host vsphere, the 
 
 vSphere SDK cannot be used to control the VM host and the host OS cannot be 
 controlled via SSH
 |10951|20:20|image| ( 
 
 0) VMware.pm, initialize (line: 273)
 |10951|20:20|image| (-1) Module.pm, new (line: 207)
 |10951|20:20|image| (-2) 
 
 Module.pm, create_provisioning_object (line: 423)
 |10951|20:20|image| (-3) State.pm, initialize (line: 117)
 |10951|
 
 20:20|image| (-4) Module.pm, new (line: 207)
 |10951|20:20|image| (-5) vcld, make_new_child (line: 564)
 
 
 |10951|20:20|
 
 image|  WARNING  
 |10951|20:20|image| 2012-02-28 13:32:34|10951|20:20|image|
 
 Module.pm:create_provisioning_object(431)|provisioning object could not be 
 created, returning 0
 |10951|20:20|image| 
 
 ( 0) Module.pm, create_provisioning_object (line: 431)
 |10951|20:20|image| (-1) State.pm, initialize (line: 117)
 |
 
 10951|20:20|image| (-2) Module.pm, new (line: 207)
 |10951|20:20|image| (-3) vcld, make_new_child (line: 564)
 |10951|
 -
 
 
 I have checked and am able to ssh between the management node and the virtual 
 machines using key authentication.
 
 Please see the log file attached for more information.
 
 Thanks,
 Aaron Bryant
 Logfile.txt




Thank you.

-
Dmitri Chebotarov
dcheb...@gmu.edu
703-993-6175
-




signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: VCL and xCat

2012-02-28 Thread Dmitri Chebotarov
Aaron

You mentioned using xCAT to provision end-use desktops at ncsu. 
How do you handle xCAT r* commands? Did you have to add a remote management 
card to each desktop to support rpower, etc? 

Thanks.

On Feb 10, 2012, at 9:30 , Aaron Peeler wrote:

 Dmitri,
 
 Just to add to Amit, comments.
 
 We use xCAT extensively here at ncsu. From provisioning end-user
 desktops and our hypervisors. xCAT very helpful when needed to install
 a chassis full of blades with esxi.
 
 As your installing xCAT  You'll want to review
 https://cwiki.apache.org/VCL/adding-support-for-partimage-and-partimage-ng-to-xcat-2x-unofficial.html
 We added in VCL support for partimage  - which is used to capture the
 disk images of end-user environments/desktops for windows and linux.
 
 When your adding nodes to vcl through the manage computers tool, make
 sure to choose xCAT 2.x .  If your doing windows bare-metal, you'll
 also need to include sysprep and related mass storage drivers so it
 can be reloaded successfully.
 
 For sysprep review step 8 on this page:
 https://cwiki.apache.org/confluence/display/VCL/VCL+2.2.1+Management+Node+Installation
 
 Hope this info helps,
 Aaron
 
 
 On Thu, Feb 9, 2012 at 4:03 PM, Dmitri Chebotarov dcheb...@gmu.edu wrote:
 
 Amit,
 
 Thanks a lot.
 
 
 On Feb 9, 2012, at 15:57 , Kumar, Amit H. wrote:
 
 Hi Dmitri,
 
 You general idea is correct to my best understanding.
 
 Install Path in the Edit management Node will be the path for xCAT(bare 
 metal) image repository. In addition when you configure the Site table in 
 xCAT you will set the installdir to point to the location where you will 
 store your images.
 
 We have IBM E Blade Chassis with HS22 blade servers.
 
 Best,
 Amit
 
 -Original Message-
 From: dcheb...@gmu.edu [mailto:dcheb...@gmu.edu]
 Sent: Thursday, February 09, 2012 3:44 PM
 To: vcl-user@incubator.apache.org
 Subject: Re: VCL and xCat
 
 
 Amit,
 
 I'm trying to get general idea about xCat/VCL : so, basically xCat
 needs to be installed and configured on VCL Mgm node(s) before it can
 be used with VCL, and I should be able to successfully provision xCat
 nodes/clients with different images. Once xCat is working then I can
 add bare-metal computers - blade with xCat 2.x engine. Does it sound
 right?
 
 How do you tell VCL where to get image files for xCat nodes - is it
 'Install Path' setting under Management Nodes - Edit management node
 information?
 
 What kind of hardware do you have for xCat nodes? Are those IBM blade
 servers or/and PCs?
 
 
 Thanks.
 
 
 On Feb 9, 2012, at 15:16 , Kumar, Amit H. wrote:
 
 Hi,
 
 We do not need an additional/dedicated server to do both xCAT and VCL
 together, your management node can serve as your xCAT server.
 
 I would recommend getting xCAT to work by itself before using VCL to
 manage your images and guest OS.
 
 This has worked well for us so far.
 
 :Amit
 
 
 -Original Message-
 From: dcheb...@gmu.edu [mailto:dcheb...@gmu.edu]
 Sent: Thursday, February 09, 2012 3:03 PM
 To: vcl-user@incubator.apache.org
 Subject: VCL and xCat
 
 Hi All
 
 Anyone is using xCat with VCL?
 
 I have generic question about xCat and VCL - where do I start?
 Do I need working xCat environment before I can add it to VCL?
 Does xCat need dedicated server? Or does it run on the VCL
 management
 node?
 Are there any special hardware requirements for xCat clients?
 
 
 Thank you.
 
 
 
 
 
 
 
 
 Thank you.
 
 -
 Dmitri Chebotarov
 dcheb...@gmu.edu
 703-993-6175
 -
 
 
 
 
 
 
 Thank you.
 
 -
 Dmitri Chebotarov
 dcheb...@gmu.edu
 703-993-6175
 -
 
 
 
 -BEGIN PGP SIGNATURE-
 
 iQEcBAEBAgAGBQJPNDStAAoJEMRKpymufl8aAxkH/iCGHjBRUMR85l4+D3clzzem
 eb4+RtsjvqfnJO7IjjF3Ajs73labFWvoEgpJrbFous2v6ou/gNsUgB82hWicqNTm
 5+ZKkdncM2qWl2QI1ED6kvZt0OHmG/cUbRk0XRlPSjf99dIYgjqPZBL4xFNje62X
 xzNNPCEC7S5lixouyUcFPh7KhVR+11zvZsliV19CYH6HqXLpSphRt/gN5HIK77gD
 xNpfymdAPf2iJ1Dur5MNngnJIYTgdNgYq8pTvmrxPNEixumYsTU1UQzYFbijpctI
 yL8gUhP2kX2Yd45mVGzZxmJXDrOkg0rLxmIxVrrmGH2/iLSHpSFE+8mY0kqbTmA=
 =86fD
 -END PGP SIGNATURE-
 
 
 
 
 -- 
 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.




Thank you.

-
Dmitri Chebotarov
dcheb...@gmu.edu
703-993-6175
-




signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: php-mcrypt and php-sysvsem

2012-02-27 Thread Dmitri Chebotarov
Scott,

You can also remove mcrypt dependency via this patch, if your environment 
permits:

https://cwiki.apache.org/VCL/patch-to-remove-mcrypt-dependency.html

Thanks.
On Feb 27, 2012, at 14:33 , Scott M. Sorrentino wrote:

 
 Hash: SHA1
 
 On Mon, Feb 27, 2012 at 06:55:15PM +, Clark Cooper wrote:
 I'm attempting to install/configure VCL on a RHEL61 z/Linux system and 
 having difficulty with the requirements for php-mcrypt and php-sysvsem as 
 these packages do not appear to be available for my release.  
 
 
 I had the mcrypt issue on RHEL5 (php not php53) and worked around it by
 installing the php source RPM, building the mcrypt module by hand and
 adding it to php.ini.
 
 - -- 
 Scott M. Sorrentino sms...@cornell.edu
 CIT Systems  Operations, Cornell University
 726 Rhodes Hall // (607) 254-8535
 GnuPG fingerprint: 6E30 0B83 43F8 CF8B 3B44  7DBE 6AAE DFC9 1DE6 8C1C
 
 




Thank you.

-
Dmitri Chebotarov
dcheb...@gmu.edu
703-993-6175
-




signature.asc
Description: Message signed with OpenPGP using GPGMail


Linux servers with VLAN ID

2012-02-27 Thread Dmitri Chebotarov
Hi All,

In case if I need to use VLANs on external interface on Linux servers, what 
would be the good way to handle eth1.xx interfaces? 
I'm adding xCAT support for VCL and xCAT servers have external interface with 
VLAD id. 
The VCL script in rc.local checks for eth1, but not for eth1.xxx (which is 
understandable). 

I plan to change 1st two lines to:

IP0=$(ifconfig | grep inet addr:|awk '{print $2}' | awk -F: '{print $2}'|awk 
'{ if (NR==1) print $0 }')
IP1=$(ifconfig | grep inet addr:|awk '{print $2}' | awk -F: '{print $2}'|awk 
'{ if (NR==2) print $0 }')

or to:

IF0=$(ip -f inet addr|grep inet |grep eth0| awk {'print $7'})
IF1=$(ip -f inet addr|grep inet |grep eth1| awk {'print $7'})

IP0=$(ifconfig $IF0 | grep inet | awk '{print $2}' | awk -F: '{print $2}')
IP1=$(ifconfig $IF1 | grep inet | awk '{print $2}' | awk -F: '{print $2}')

and wanted to ask if anyone had to solve similar problem in the past and may be 
have different solution. 

I cannot hardcode eth1.VLANID, b/c the same VCL is used for VMs as well, and 
those don't have VLANs (VLANs done by ESXi host)

This is original script, which I plan to change:

# This file will get overwritten during image capture. Any customizations
# should be put into /etc/init.d/vcl_post_reserve or /etc/init.d/vcl_post_load
# Note these files do not exist by default.

IP0=$(ifconfig eth0 | grep inet | awk '{print $2}' | awk -F: '{print $2}')
IP1=$(ifconfig eth1 | grep inet | awk '{print $2}' | awk -F: '{print $2}')

sed -i -e '/.*AllowUsers .*$/d' /etc/ssh/sshd_config
sed -i -e '/.*ListenAddress .*/d' /etc/ssh/sshd_config
sed -i -e '/.*ListenAddress .*/d' /etc/ssh/external_sshd_config
echo AllowUsers root  /etc/ssh/sshd_config
echo ListenAddress $IP0  /etc/ssh/sshd_config
echo ListenAddress $IP1  /etc/ssh/external_sshd_config
/etc/rc.d/init.d/ext_sshd stop
/etc/rc.d/init.d/sshd stop
sleep 2
/etc/rc.d/init.d/sshd start
/etc/rc.d/init.d/ext_sshd start


Thank you.

-
Dmitri Chebotarov
dcheb...@gmu.edu
703-993-6175
-




signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: failed mysql connection

2012-02-27 Thread Dmitri Chebotarov
Clark

Are you able to connect to mysql from command line on rhel61 host, 'mysql -u 
vcluser -p' ?
Can you also try with GRAND ALL ON vcl.* TO 'vcluser'@localhost?

On Feb 27, 2012, at 16:36 , Clark Cooper wrote:

 Still trying to get VCL setup/configured and moving past the php-mcrypt 
 issue, I also receive the following message within my testsetup.php output:
 
 
 Testing mysql connection ...
 Error: fsockopen(): unable to connect to localhost:3306 (Permission denied)
 Could not connect to port 3306 on localhost
 
 
 For debugging purposes, I have stopped iptables.  Here is the connection 
 information within my secrets.php file:
 
 [root@rhel61 .ht-inc]# grep vcl secrets.php 
 $vclhost = 'localhost'; # name of mysql server
 $vcldb = 'vcl'; # name of mysql database
 $vclusername = 'vcluser';  # username to access database
 $vclpassword = 'vcluserpassword';  # password to access database
 
 
 
 Note the following outputs from MySQL:
 
 mysql show grants for vcluser@localhost;
 ++
 | Grants for vcluser@localhost
|
 ++
 | GRANT USAGE ON *.* TO 'vcluser'@'localhost' IDENTIFIED BY PASSWORD 
 '*BC54E34381D07EB1FF25938A2F524C17201FC22F' |
 | GRANT SELECT, INSERT, UPDATE, DELETE, CREATE TEMPORARY TABLES, LOCK TABLES 
 ON `vcl`.* TO 'vcluser'@'localhost' |
 ++
 2 rows in set (0.00 sec)
 
 
 mysql select host, user, password from mysql.user;
 +---+-+---+
 | host  | user| password  |
 +---+-+---+
 | localhost | root| *A195277AB4567B2C3C4CDCAF6B5B48409EFE6765 |
 | 127.0.0.1 | root| *A195277AB4567B2C3C4CDCAF6B5B48409EFE6765 |
 | localhost | vcluser | *BC54E34381D07EB1FF25938A2F524C17201FC22F |
 +---+-+---+
 
 
 Clark Cooper | Senior Systems Engineer
 1301 Gervais Street, Suite 1800 | Columbia, SC 29201
 (d) 803.978.2699 | (f) 803.733.5888
 clark.coo...@vc3.com | www.VC3.com
 Follow us: 
 
 
 




Thank you.

-
Dmitri Chebotarov
dcheb...@gmu.edu
703-993-6175
-




signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: VCL and xCat

2012-02-22 Thread Dmitri Chebotarov
John,

I got the link and I think I'm making some good progress. 
Also found this tread on the maillist 
(http://markmail.org/message/lotx3l34co6yv5nf?q=partimageng%2Epm#query:partimageng.pm+page:1+mid:lthvtrde7radude3+state:results)
 where you helped Prem, which is very helpful.

Thank you

On Feb 22, 2012, at 14:12 , Josh Thompson wrote:

 
 Hash: SHA1
 
 Dmitri,
 
 Did you follow the guide for adding partimage support to xCAT?
 
 https://cwiki.apache.org/confluence/display/VCL/Adding+support+for+partimage+and+partimage-
 ng+to+xCAT+2.x+%28unofficial%29
 
 You said you installed the partimage rpm.  partimage is not something that 
 needs to be installed on the management node.  It is part of the stateless 
 images mentioned on the above page.
 
 Josh
 
 On Tuesday 21 February 2012 4:47:06 PM Dmitri Chebotarov wrote:
 Hi All.
 
 I'm trying to capture a base image using xCAT module - the server is
 bare-metal CentOS5.7. The process starts OK, able to communicate with the
 node and then fails when trying to create .tmpl file.
 
 xCAT is installed and configured on the management node.
 partimage rpm is installed as well.
 
 Do you know what could be the issue?
 
 Thank you for your help.
 
 ...
 2012-02-21 16:22:30|12755|275:261|image|xCAT2.pm:capture(827)|nodetype
 modified, node bc1-7, image name centos5image-xcatcentos5v474-v0 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_create_template(1065)|attempting to
 create tmpl file for image: centos5image-xcatcentos5v474-v0 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2084)|manage
 ment node identifier argument was not specified
 2012-02-21 16:22:30|12755|275:261|image|
 xCAT2.pm:_get_image_template_path(2115)|attempting to determine template path 
 for image:
 |12755|275:261|image| image name: centos5image-xcatcentos5v474-v0
 |12755|275:261|image| OS install type: partimage
 |12755|275:261|image| OS source path: image
 |12755|275:261|image| xCAT 2.x OS source path: image
 
 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2123)|return
 ing: /opt/xcat/share/xcat/install/image 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2084)|manage
 ment node identifier argument was not specified
 2012-02-21 16:22:30|12755|275:261|image|
 xCAT2.pm:_get_image_template_path(2115)|attempting to determine template path 
 for image:
 |12755|275:261|image| image name: centos5image-xcatcentos5v474-v0
 |12755|275:261|image| OS install type: partimage
 |12755|275:261|image| OS source path: image
 |12755|275:261|image| xCAT 2.x OS source path: image
 
 2012-02-21
 16:22:30|12755|275:261|image|xCAT2.pm:_get_image_template_path(2123)|return
 ing: /opt/xcat/share/xcat/install/image 2012-02-21
 16:22:30|12755|275:261|image|DataStructure.pm:get_computer_private_ip_addre
 ss(1557)|returning private IP address previously retrieved: 10.3.1.27
 2012-02-21
 16:22:30|12755|275:261|image|utils.pm:is_inblockrequest(6164)|zero rows
 were returned from database select 2012-02-21
 16:22:30|12755|275:261|image|DataStructure.pm:get_image_affiliation_name(20
 35)|image owner id: 1 2012-02-21
 16:22:30|12755|275:261|image|utils.pm:getnewdbh(2710)|database requested
 (information_schema) does not match handle stored in $ENV{dbh}
 (vcl:10.3.1.214) 2012-02-21
 16:22:30|12755|275:261|image|utils.pm:getnewdbh(2761)|database handle
 stored in $ENV{dbh} 2012-02-21
 16:22:30|12755|275:261|image|DataStructure.pm:retrieve_user_data(1352)|atte
 mpting to retrieve and store data for user: user.id = '1' 2012-02-21
 16:22:30|12755|275:261|image|utils.pm:getnewdbh(2710)|database requested
 (vcl) does not match handle stored in $ENV{dbh}
 (information_schema:10.3.1.214) 2012-02-21
 16:22:30|12755|275:261|image|utils.pm:getnewdbh(2761)|database handle
 stored in $ENV{dbh} 2012-02-21
 16:22:30|12755|275:261|image|DataStructure.pm:retrieve_user_data(1415)|data
 has been retrieved for user: admin (id: 1) 2012-02-21
 16:22:30|12755|275:261|image|utils.pm:mail(1268)|SUCCESS -- Sending mail
 To: dcheb...@gmu.edu, PROBLEM --
 275:261|image|xCAT2.pm|bc1-7|centos5image-xcatcentos5v474-v0|admin
 |12755|275:261|image|  CRITICAL 
 |12755|275:261|image| 2012-02-21
 |16:22:30|12755|275:261|image|xCAT2.pm:_get_base_template_filename(2170)|f
 |ailed to find suitable base image template file in
 |/opt/xcat/share/xcat/install/image 12755|275:261|image| ( 0) xCAT2.pm,
 |_get_base_template_filename (line: 2170) 12755|275:261|image| (-1)
 |xCAT2.pm, _create_template (line: 1075) 12755|275:261|image| (-2)
 |xCAT2.pm, capture (line: 836)
 |12755|275:261|image| (-3) image.pm, process (line: 162)
 |12755|275:261|image| (-4) vcld, make_new_child (line: 568)
 |12755|275:261|image| (-5) vcld, main (line: 346)
 |12755|275:261|image|  WARNING 
 |12755|275:261|image| 2012-02-21
 |16:22:30|12755|275:261|image|xCAT2.pm:_create_template(1077)|base
 |template filename could not be determined 12755|275:261|image| ( 0)
 |xCAT2.pm, _create_template (line

Re: VCL and xCat

2012-02-10 Thread Dmitri Chebotarov

Thank you, I hope we can make it work in our environment as well...

I keep searching and reading xCat docs - here is good one - 
http://sumavi.com/books/xcat-administrators-guide. 
BTW, if you have any docs outside of xcat.org site, please share... At this 
point I'm looking for xCat overview docs, i.e. to understand the process.

Looks like xCat makes extensive use of DHCP server to manage nodes. Are you 
using different DHCPd servers for VCL VMs and xCat nodes, or just keep 
everything on one DHCP server and being careful with which MAC gets what? 

Thanks again for your help...

On Feb 10, 2012, at 9:30 , Aaron Peeler wrote:

 Dmitri,
 
 Just to add to Amit, comments.
 
 We use xCAT extensively here at ncsu. From provisioning end-user
 desktops and our hypervisors. xCAT very helpful when needed to install
 a chassis full of blades with esxi.
 
 As your installing xCAT  You'll want to review
 https://cwiki.apache.org/VCL/adding-support-for-partimage-and-partimage-ng-to-xcat-2x-unofficial.html
 We added in VCL support for partimage  - which is used to capture the
 disk images of end-user environments/desktops for windows and linux.
 
 When your adding nodes to vcl through the manage computers tool, make
 sure to choose xCAT 2.x .  If your doing windows bare-metal, you'll
 also need to include sysprep and related mass storage drivers so it
 can be reloaded successfully.
 
 For sysprep review step 8 on this page:
 https://cwiki.apache.org/confluence/display/VCL/VCL+2.2.1+Management+Node+Installation
 
 Hope this info helps,
 Aaron
 
 
 On Thu, Feb 9, 2012 at 4:03 PM, Dmitri Chebotarov dcheb...@gmu.edu wrote:
 
 Amit,
 
 Thanks a lot.
 
 
 On Feb 9, 2012, at 15:57 , Kumar, Amit H. wrote:
 
 Hi Dmitri,
 
 You general idea is correct to my best understanding.
 
 Install Path in the Edit management Node will be the path for xCAT(bare 
 metal) image repository. In addition when you configure the Site table in 
 xCAT you will set the installdir to point to the location where you will 
 store your images.
 
 We have IBM E Blade Chassis with HS22 blade servers.
 
 Best,
 Amit
 
 -Original Message-
 From: dcheb...@gmu.edu [mailto:dcheb...@gmu.edu]
 Sent: Thursday, February 09, 2012 3:44 PM
 To: vcl-user@incubator.apache.org
 Subject: Re: VCL and xCat
 
 
 Amit,
 
 I'm trying to get general idea about xCat/VCL : so, basically xCat
 needs to be installed and configured on VCL Mgm node(s) before it can
 be used with VCL, and I should be able to successfully provision xCat
 nodes/clients with different images. Once xCat is working then I can
 add bare-metal computers - blade with xCat 2.x engine. Does it sound
 right?
 
 How do you tell VCL where to get image files for xCat nodes - is it
 'Install Path' setting under Management Nodes - Edit management node
 information?
 
 What kind of hardware do you have for xCat nodes? Are those IBM blade
 servers or/and PCs?
 
 
 Thanks.
 
 
 On Feb 9, 2012, at 15:16 , Kumar, Amit H. wrote:
 
 Hi,
 
 We do not need an additional/dedicated server to do both xCAT and VCL
 together, your management node can serve as your xCAT server.
 
 I would recommend getting xCAT to work by itself before using VCL to
 manage your images and guest OS.
 
 This has worked well for us so far.
 
 :Amit
 
 
 -Original Message-
 From: dcheb...@gmu.edu [mailto:dcheb...@gmu.edu]
 Sent: Thursday, February 09, 2012 3:03 PM
 To: vcl-user@incubator.apache.org
 Subject: VCL and xCat
 
 Hi All
 
 Anyone is using xCat with VCL?
 
 I have generic question about xCat and VCL - where do I start?
 Do I need working xCat environment before I can add it to VCL?
 Does xCat need dedicated server? Or does it run on the VCL
 management
 node?
 Are there any special hardware requirements for xCat clients?
 
 
 Thank you.
 
 
 
 
 
 
 
 
 Thank you.
 
 -
 Dmitri Chebotarov
 dcheb...@gmu.edu
 703-993-6175
 -
 
 
 
 
 
 
 Thank you.
 
 -
 Dmitri Chebotarov
 dcheb...@gmu.edu
 703-993-6175
 -
 
 
 
 -BEGIN PGP SIGNATURE-
 
 iQEcBAEBAgAGBQJPNDStAAoJEMRKpymufl8aAxkH/iCGHjBRUMR85l4+D3clzzem
 eb4+RtsjvqfnJO7IjjF3Ajs73labFWvoEgpJrbFous2v6ou/gNsUgB82hWicqNTm
 5+ZKkdncM2qWl2QI1ED6kvZt0OHmG/cUbRk0XRlPSjf99dIYgjqPZBL4xFNje62X
 xzNNPCEC7S5lixouyUcFPh7KhVR+11zvZsliV19CYH6HqXLpSphRt/gN5HIK77gD
 xNpfymdAPf2iJ1Dur5MNngnJIYTgdNgYq8pTvmrxPNEixumYsTU1UQzYFbijpctI
 yL8gUhP2kX2Yd45mVGzZxmJXDrOkg0rLxmIxVrrmGH2/iLSHpSFE+8mY0kqbTmA=
 =86fD
 -END PGP SIGNATURE-
 
 
 
 
 -- 
 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.




Thank you.

-
Dmitri Chebotarov
dcheb...@gmu.edu
703-993-6175
-




signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: VCL and xCat

2012-02-10 Thread Dmitri Chebotarov

Thank you. 

What version of xCat do you use? Since VCL supports xCat 2.x, is it safe to use 
latest xCat 2.6.10? Thanks.

On Feb 10, 2012, at 11:27 , Kumar, Amit H. wrote:

 Hi Dmitri,
 
 SUMAVI link that you have is a real good one, I blindly followed it and then 
 slowly things started to make more sense once it worked.
 Also xCAT forum was very helpful. 
 
 Thank you,
 Amit
 
 -Original Message-
 From: dcheb...@gmu.edu [mailto:dcheb...@gmu.edu]
 Sent: Friday, February 10, 2012 10:15 AM
 To: vcl-user@incubator.apache.org; aaron_pee...@ncsu.edu
 Subject: Re: VCL and xCat
 
 
 Thank you, I hope we can make it work in our environment as well...
 
 I keep searching and reading xCat docs - here is good one -
 http://sumavi.com/books/xcat-administrators-guide.
 BTW, if you have any docs outside of xcat.org site, please share... At
 this point I'm looking for xCat overview docs, i.e. to understand the
 process.
 
 Looks like xCat makes extensive use of DHCP server to manage nodes. Are
 you using different DHCPd servers for VCL VMs and xCat nodes, or just
 keep everything on one DHCP server and being careful with which MAC
 gets what?
 
 Thanks again for your help...
 
 On Feb 10, 2012, at 9:30 , Aaron Peeler wrote:
 
 Dmitri,
 
 Just to add to Amit, comments.
 
 We use xCAT extensively here at ncsu. From provisioning end-user
 desktops and our hypervisors. xCAT very helpful when needed to
 install
 a chassis full of blades with esxi.
 
 As your installing xCAT  You'll want to review
 https://cwiki.apache.org/VCL/adding-support-for-partimage-and-
 partimag
 e-ng-to-xcat-2x-unofficial.html We added in VCL support for partimage
 - which is used to capture the disk images of end-user
 environments/desktops for windows and linux.
 
 When your adding nodes to vcl through the manage computers tool, make
 sure to choose xCAT 2.x .  If your doing windows bare-metal, you'll
 also need to include sysprep and related mass storage drivers so it
 can be reloaded successfully.
 
 For sysprep review step 8 on this page:
 
 https://cwiki.apache.org/confluence/display/VCL/VCL+2.2.1+Management+N
 ode+Installation
 
 Hope this info helps,
 Aaron
 
 
 On Thu, Feb 9, 2012 at 4:03 PM, Dmitri Chebotarov dcheb...@gmu.edu
 wrote:
 
 Amit,
 
 Thanks a lot.
 
 
 On Feb 9, 2012, at 15:57 , Kumar, Amit H. wrote:
 
 Hi Dmitri,
 
 You general idea is correct to my best understanding.
 
 Install Path in the Edit management Node will be the path for
 xCAT(bare metal) image repository. In addition when you configure the
 Site table in xCAT you will set the installdir to point to the
 location where you will store your images.
 
 We have IBM E Blade Chassis with HS22 blade servers.
 
 Best,
 Amit
 
 -Original Message-
 From: dcheb...@gmu.edu [mailto:dcheb...@gmu.edu]
 Sent: Thursday, February 09, 2012 3:44 PM
 To: vcl-user@incubator.apache.org
 Subject: Re: VCL and xCat
 
 
 Amit,
 
 I'm trying to get general idea about xCat/VCL : so, basically xCat
 needs to be installed and configured on VCL Mgm node(s) before it
 can be used with VCL, and I should be able to successfully
 provision xCat nodes/clients with different images. Once xCat is
 working then I can add bare-metal computers - blade with xCat 2.x
 engine. Does it sound right?
 
 How do you tell VCL where to get image files for xCat nodes - is
 it
 'Install Path' setting under Management Nodes - Edit management
 node information?
 
 What kind of hardware do you have for xCat nodes? Are those IBM
 blade servers or/and PCs?
 
 
 Thanks.
 
 
 On Feb 9, 2012, at 15:16 , Kumar, Amit H. wrote:
 
 Hi,
 
 We do not need an additional/dedicated server to do both xCAT and
 VCL
 together, your management node can serve as your xCAT server.
 
 I would recommend getting xCAT to work by itself before using VCL
 to
 manage your images and guest OS.
 
 This has worked well for us so far.
 
 :Amit
 
 
 -Original Message-
 From: dcheb...@gmu.edu [mailto:dcheb...@gmu.edu]
 Sent: Thursday, February 09, 2012 3:03 PM
 To: vcl-user@incubator.apache.org
 Subject: VCL and xCat
 
 Hi All
 
 Anyone is using xCat with VCL?
 
 I have generic question about xCat and VCL - where do I start?
 Do I need working xCat environment before I can add it to VCL?
 Does xCat need dedicated server? Or does it run on the VCL
 management
 node?
 Are there any special hardware requirements for xCat clients?
 
 
 Thank you.
 
 
 
 
 
 
 
 
 Thank you.
 
 -
 Dmitri Chebotarov
 dcheb...@gmu.edu
 703-993-6175
 -
 
 
 
 
 
 
 Thank you.
 
 -
 Dmitri Chebotarov
 dcheb...@gmu.edu
 703-993-6175
 -
 
 
 
 -BEGIN PGP SIGNATURE-
 
 iQEcBAEBAgAGBQJPNDStAAoJEMRKpymufl8aAxkH/iCGHjBRUMR85l4+D3clzzem
 eb4+RtsjvqfnJO7IjjF3Ajs73labFWvoEgpJrbFous2v6ou/gNsUgB82hWicqNTm
 5+ZKkdncM2qWl2QI1ED6kvZt0OHmG/cUbRk0XRlPSjf99dIYgjqPZBL4xFNje62X
 xzNNPCEC7S5lixouyUcFPh7KhVR+11zvZsliV19CYH6HqXLpSphRt/gN5HIK77gD

VCL and xCat

2012-02-09 Thread Dmitri Chebotarov
Hi All

Anyone is using xCat with VCL?

I have generic question about xCat and VCL - where do I start? 
Do I need working xCat environment before I can add it to VCL? 
Does xCat need dedicated server? Or does it run on the VCL management node? 
Are there any special hardware requirements for xCat clients?


Thank you.






signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: VCL and xCat

2012-02-09 Thread Dmitri Chebotarov

Amit,

I'm trying to get general idea about xCat/VCL : so, basically xCat needs to be 
installed and configured on VCL Mgm node(s) before it can be used with VCL, and 
I should be able to successfully provision xCat nodes/clients with different 
images. Once xCat is working then I can add bare-metal computers - blade with 
xCat 2.x engine. Does it sound right?

How do you tell VCL where to get image files for xCat nodes - is it 'Install 
Path' setting under Management Nodes - Edit management node information?  

What kind of hardware do you have for xCat nodes? Are those IBM blade servers 
or/and PCs?


Thanks.


On Feb 9, 2012, at 15:16 , Kumar, Amit H. wrote:

 Hi,
 
 We do not need an additional/dedicated server to do both xCAT and VCL 
 together, your management node can serve as your xCAT server.
 
 I would recommend getting xCAT to work by itself before using VCL to manage 
 your images and guest OS.
 
 This has worked well for us so far. 
 
 :Amit
 
 
 -Original Message-
 From: dcheb...@gmu.edu [mailto:dcheb...@gmu.edu]
 Sent: Thursday, February 09, 2012 3:03 PM
 To: vcl-user@incubator.apache.org
 Subject: VCL and xCat
 
 Hi All
 
 Anyone is using xCat with VCL?
 
 I have generic question about xCat and VCL - where do I start?
 Do I need working xCat environment before I can add it to VCL?
 Does xCat need dedicated server? Or does it run on the VCL management
 node?
 Are there any special hardware requirements for xCat clients?
 
 
 Thank you.
 
 
 
 




Thank you.

-
Dmitri Chebotarov
dcheb...@gmu.edu
703-993-6175
-




signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: VCL and xCat

2012-02-09 Thread Dmitri Chebotarov

Amit,

Thanks a lot.


On Feb 9, 2012, at 15:57 , Kumar, Amit H. wrote:

 Hi Dmitri,
 
 You general idea is correct to my best understanding.
 
 Install Path in the Edit management Node will be the path for xCAT(bare 
 metal) image repository. In addition when you configure the Site table in 
 xCAT you will set the installdir to point to the location where you will 
 store your images. 
 
 We have IBM E Blade Chassis with HS22 blade servers.
 
 Best,
 Amit
 
 -Original Message-
 From: dcheb...@gmu.edu [mailto:dcheb...@gmu.edu]
 Sent: Thursday, February 09, 2012 3:44 PM
 To: vcl-user@incubator.apache.org
 Subject: Re: VCL and xCat
 
 
 Amit,
 
 I'm trying to get general idea about xCat/VCL : so, basically xCat
 needs to be installed and configured on VCL Mgm node(s) before it can
 be used with VCL, and I should be able to successfully provision xCat
 nodes/clients with different images. Once xCat is working then I can
 add bare-metal computers - blade with xCat 2.x engine. Does it sound
 right?
 
 How do you tell VCL where to get image files for xCat nodes - is it
 'Install Path' setting under Management Nodes - Edit management node
 information?
 
 What kind of hardware do you have for xCat nodes? Are those IBM blade
 servers or/and PCs?
 
 
 Thanks.
 
 
 On Feb 9, 2012, at 15:16 , Kumar, Amit H. wrote:
 
 Hi,
 
 We do not need an additional/dedicated server to do both xCAT and VCL
 together, your management node can serve as your xCAT server.
 
 I would recommend getting xCAT to work by itself before using VCL to
 manage your images and guest OS.
 
 This has worked well for us so far.
 
 :Amit
 
 
 -Original Message-
 From: dcheb...@gmu.edu [mailto:dcheb...@gmu.edu]
 Sent: Thursday, February 09, 2012 3:03 PM
 To: vcl-user@incubator.apache.org
 Subject: VCL and xCat
 
 Hi All
 
 Anyone is using xCat with VCL?
 
 I have generic question about xCat and VCL - where do I start?
 Do I need working xCat environment before I can add it to VCL?
 Does xCat need dedicated server? Or does it run on the VCL
 management
 node?
 Are there any special hardware requirements for xCat clients?
 
 
 Thank you.
 
 
 
 
 
 
 
 
 Thank you.
 
 -
 Dmitri Chebotarov
 dcheb...@gmu.edu
 703-993-6175
 -
 
 




Thank you.

-
Dmitri Chebotarov
dcheb...@gmu.edu
703-993-6175
-




signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Resource Group Error

2012-01-03 Thread Dmitri Chebotarov
Al

Take at look at https://issues.apache.org/jira/browse/VCL-456

You need to add $groupwasnone = 0; line to groups.php.

Thanks.
On Jan 3, 2012, at 11:28 , Evelio Quiros wrote:

 
 Hello,
 
 I am getting this error on the VCL web interface when I try to edit a 
 resource group:
 
 Error encountered
 Unkown error type: [8] Undefined variable: groupwasnone
 Error at 511 in /var/www/html/vcl/.ht-inc/groups.php
 
 Any idea what this means ?
 
 Thanks,
 Al Quiros




Thank you.

-
Dmitri Chebotarov
dcheb...@gmu.edu
703-993-6175
-




signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Testing the VCL Frontend Code

2011-11-29 Thread Dmitri Chebotarov
Ben

Could you please restart httpd service and try to access testsetup.php again? 

You probably installed all necessary PHP packages, but httpd task needs to 
restarted to re-read .conf files to include PHP.

Thanks
On Nov 29, 2011, at 16:06 , ben.m...@valpo.edu wrote:

 Hi,
 
 I'm having issues testing the VCL frontend code.  I'm trying to open the 
 testsetup.php file in firefox, but it Firefox is prompting to have me open or 
 download the file.  I am trying to open this up locally for now, but I don't 
 know if I did something wrong when modifying conf.php or secrets.php, or if 
 it's something with the server.  If anyone has any insight, I'd appreciate it.
 
 Thanks,
 
 --
 Benjamin B. Macy
 
 Valparaiso University 
 Student Senate Junior Representative
 Student Alumni Association
 Sigma Phi Epsilon
 Electrical Engineering Student
 ben.m...@valpo.edu
 616.648.3516
 



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Help or support

2011-11-23 Thread Dmitri Chebotarov
Juan

Could you please check the following:

- VMWARE host is added with following properties: 
  State: vmhostinuse, 
  Type: blade, 
  Provisioning Engine: xCAT 2.x. 

You can check/change it under Manage Computers.

- the VM you are trying to image (lets call it baseImage01) is added with 
following properties: 
  State: available, 
  Type: virtualmachine, 
  Provisioning Engine: VMWare.

- make sure that baseImage01 VM is assigned to VMWare host under Virtual Hosts, 
select your VM Host from the list and add baseImage01 to 'VMs assigned to host';

- from Linux server where you have VCLD make sure you can ssh to VMWare host 
using vcl.key: run 'ssh -i /etc/vcl/vcl.key vmwarehost' (I think name of the 
host in your case is u804vmsrv). You should login without a need to enter 
password. This implies that 'End Node SSH Identity Key Files:' is to 
/etc/vcl/vcl.key in management node configuration.

- from Linux server where you have VCLD make sure you can ssh to baseImage01 VM 
using vcl.key: run 'ssh -i /etc/vcl/vcl.key baseImage01'. 

Once you checked/set all these, try to create image again. 

Thanks.


On Nov 23, 2011, at 6:52 , Juanjo wrote:

 Many Thanks Josh and Juan Jose and others for your help, but I continue with 
 problems to create image. I explain in below lines a little my problems.
 
 Josh Thompson wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Juanjo,
 
 To have your system ready to capture your first base image, you need to have 
 your vmhost and VMs added to VCL using the VCL website.  The following page 
 explains how to do that:
 
 
 https://cwiki.apache.org/confluence/display/VCL/VCL+2.2.1+-+Further+Steps+if+Using+VMware
 
   
 
 I already have done all of this page, but I continue with problems to create 
 the image.
 Since you only have one vmhost server right now, you'll need to follow the 
 sections titled Adding Individual VMware Servers, Adding Virtual 
 Machines, 
 and Assing a VM to a Virtual Host.
 
   
 
 Done.
 When creating your first base image, you don't use the VCL website; you use 
 'vcld -setup'.  These are the instructions you should be using to create 
 your 
 initial base image:
 
 
 https://cwiki.apache.org/confluence/display/VCL/Create+a+Windows+Base+Image
 
 
 Until you have captured your first base image, you'll always receive the 
 message You don't have access to any environments and, therefore, cannot 
 make
 any reservations. on the New Reservations page because you don't have any 
 images to have access to.
   
 
 I can launch the capture process with vlcd -setup, but when I have 
 introduced all parameters and start the capture process I received some error 
 messages that I show below:
 
 
 
 2011-11-22 
 18:24:26|29632|1:1|image|Module.pm:new(200)|VCL::Module::Provisioning::VMware::VMware
  object created for computer VMXP1, address: 3484f58
 2011-11-22 18:24:26|29632|1:1|image|VMware.pm:initialize(230)|initializing 
 VCL::Module::Provisioning::VMware::VMware object
 |29632|1:1|image|  WARNING  
 |29632|1:1|image| 2011-11-22 
 18:24:26|29632|1:1|image|utils.pm:get_management_node_info(5966)|zero rows 
 were returned from database select, image library functions will be disabled
 
 ...
 
 2011-11-22 
 18:24:26|29632|1:1|image|VMware.pm:get_vmhost_datastructure(1190)|created 
 DataStructure object for VM host: u804vmsrv
 2011-11-22 18:24:26|29632|1:1|image|VMware.pm:initialize(249)|attempting to 
 create OS object for the image currently loaded on the VM host: u804vmsrv
 |29632|1:1|image| image name: noimage
 |29632|1:1|image| OS module: VCL::Module::OS::Linux::UnixLab
 |29632|1:1|image|  WARNING  
 |29632|1:1|image| 2011-11-22 
 18:24:26|29632|1:1|image|utils.pm:get_management_node_info(5966)|zero rows 
 were returned from database select, image library functions will be disabled
 
 ...
 
 2011-11-22 18:24:27|29632|1:1|image|OS.pm:is_ssh_responding(401)|u804vmsrv is 
 responding to SSH, port 22: open, port 24: closed
 2011-11-22 18:24:27|29632|1:1|image|VMware.pm:initialize(254)|OS on VM host 
 u804vmsrv will be controlled using a VCL::Module::OS::Linux::UnixLab OS object
 |29632|1:1|image|  WARNING  
 |29632|1:1|image| 2011-11-22 
 18:24:27|29632|1:1|image|utils.pm:get_management_node_info(5966)|zero rows 
 were returned from database select, image library functions will be disabled
 
 ...
 
 2011-11-22 
 18:24:27|29632|1:1|image|Module.pm:new(200)|VCL::Module::Provisioning::VMware::vSphere_SDK
  object created for computer VMXP1, address: 3c6e820
 2011-11-22 18:24:27|29632|1:1|image|vSphere_SDK.pm:initialize(1826)|vSphere 
 SDK for Perl does not appear to be installed on this managment node, unable 
 to load VMware vSphere SDK Perl modules
 2011-11-22 18:24:27|29632|1:1|image|VMware.pm:get_vmhost_api_object(1313)|API 
 object could not be created: VCL::Module::Provisioning::VMware::vSphere_SDK
 |29632|1:1|image|  WARNING  
 |29632|1:1|image| 2011-11-22 
 

Re: rdp file auto login

2011-11-22 Thread Dmitri Chebotarov
Gene, 

Username/password would be on your reservation page. 
Username is Admin, password is generated for each reservation and you need to 
type it manually when open RDP.

Thanks. 
On Nov 22, 2011, at 12:32 , Gene Lui wrote:

 Hi there,
 
 I wonder if any of you bright individuals can help me out here with this
 wonderful project you got here.
 
 When I use the RDP file supplied on the vcl connection page (Windows 7
 client) , I assume it will automatically supply the credentials to log
 into the remote desktop image (Windows 7 image). The problem is that it
 does not automatically logs in and it prompts for my password.
 
 Do I have this wrong and a password is needed to be manually entered? If
 not, how do I enable the auto login?  I have tried changing group policy
 settings on the remote desktop host but nothing works.  I appreciate any
 help anyone can give. 
 
 Thanks,
 Gene
 
 Drexel University
 



Re: rdp file auto login

2011-11-22 Thread Dmitri Chebotarov
Gene

I'm relatively new with VCL and I may be wrong. I could not find any options in 
preferences for RDP file to include password.
Having password in RDP file would make it easier and if it's possible it would 
be great. 

I would like to have this option as well and will be looking into the code 
which generates a RDP file for new reservations.

Thanks 


On Nov 22, 2011, at 12:58 , Gene Lui wrote:

 Thanks Dmitri, 
 
 Wanted to confirm if its possible by using the rdp file, users can auto
 login with the mstsc (would be preferred over entering password
 manually).  Thanks for such a quick reply and answer to my question.
 
 Take care,
 Gene
 
 Drexel University
 
 On Tue, 2011-11-22 at 12:47 -0500, Dmitri Chebotarov wrote:
 Gene, 
 
 Username/password would be on your reservation page. 
 Username is Admin, password is generated for each reservation and you need 
 to type it manually when open RDP.
 
 Thanks. 
 On Nov 22, 2011, at 12:32 , Gene Lui wrote:
 
 Hi there,
 
 I wonder if any of you bright individuals can help me out here with this
 wonderful project you got here.
 
 When I use the RDP file supplied on the vcl connection page (Windows 7
 client) , I assume it will automatically supply the credentials to log
 into the remote desktop image (Windows 7 image). The problem is that it
 does not automatically logs in and it prompts for my password.
 
 Do I have this wrong and a password is needed to be manually entered? If
 not, how do I enable the auto login?  I have tried changing group policy
 settings on the remote desktop host but nothing works.  I appreciate any
 help anyone can give. 
 
 Thanks,
 Gene
 
 Drexel University
 
 
 
 



Re: Linux base image on ESXi server?

2011-11-03 Thread Dmitri Chebotarov
Hi

After some progress yesterday I still got an error while creating an image.
The error was:

...
2011-11-02
13:40:38|6392|14:3|image|vSphere_SDK.pm:_get_file_info(2005)|searching for
matching file paths: base directory path: '[datastore1]
vmwarelinux-238-v0', search pattern: 'vmwarelinux-238-v0.vmdk'
2011-11-02
13:40:40|6392|14:3|image|vSphere_SDK.pm:_get_file_info(2016)|base directory
does not exist: '[datastore1] vmwarelinux-238-v0'
2011-11-02
13:40:40|6392|14:3|image|vSphere_SDK.pm:find_files(1753)|matching file
count: 0
2011-11-02 13:40:40|6392|14:3|image|vSphere_SDK.pm:file_exists(1625)|file
does not exist: [datastore1] vmwarelinux-238-v0/vmwarelinux-238-v0.vmdk
2011-11-02 13:40:40|6392|14:3|image|VMware.pm:does_image_exist(3915)|image
does not exist in the non-persistent directory on the VM host
|6392|14:3|image|  WARNING 
|6392|14:3|image| 2011-11-02
13:40:40|6392|14:3|image|VMware.pm:_get_datastore_name(5848)|unable to
determine datastore name from path: '/vclfile', path does not begin with
any of the datastore paths:
|6392|14:3|image| '[datastore1]'
|6392|14:3|image| '/vmfs/volumes/datastore1'
|6392|14:3|image| '/vmfs/volumes/4e72606b-01b8dc93-5cdb-0023aeae26d2'
...

I'll figure out how to fix it, but have a related questions.

Creating the image failed and during the process vm-00 was put in 'maintains'
mode (stateid=10) and it stays in this mode after failure. It's not
possible to change the mode to 'available' (get the message - Virtual
machines can only be added in the maintenance state.) via web portal. Looks
like I need to re-add vm-00 (have to use 'Add multiple' option) or to
change stateid value in vcl.computer : UPDATE `vcl`.`computer` SET
`stateid` = '2' WHERE `computer`.`id` =36

Is it OK to do it this way? Or am I missing something?

Thanks.

On Wed, Nov 2, 2011 at 4:50 PM, Dmitri Chebotarov 4dim...@gmail.com wrote:

 Hi

 I got some progress on this issue. I tried to run vmware-cmd from
 vcl-server and got the same error - Server version unavailable at  ,
 which could mean SSL certificate is missing. Then found this post
 http://communities.vmware.com/message/1347703 and added these two lines
 to /usr/local/vcl/lib/VCL/Module/Provisioning/VMware/vSphere_SDK.pm after
 line 62

 $ENV{SSL_verify_mode} = 0x00;
 $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;

 This change allowed image creation to start successfully. VCLD connects to
 ESXi server OK and gets server version. It doesn't use ssh keys from
 /etc/vcl/vcl.key, but username/password configured in the profile.

 Thanks.


 On Wed, Nov 2, 2011 at 3:45 PM, Dmitri Chebotarov 4dim...@gmail.comwrote:

 Hello

 Got this link from one of the posts on this elist -
 https://sites.google.com/a/ncsu.edu/vcl-bootcamp/. I hope it helps me
 understand the VCL better...
 Can you recommend anything else to read about Apache VCL, besides
 https://cwiki.apache.org/VCL/ ?

 Thanks.


 On Tue, Nov 1, 2011 at 1:22 PM, Dmitri Chebotarov 4dim...@gmail.comwrote:

 Hi All

 I'm stuck on creating a base image (Linux) for newly deployed Apache VCL
 system and looking for help...
 This is the closes I got so far to a working system.
 I'm using ESXi 4.1 (60 days evaluation), ssh is enabled, ESXi server
 name is esxiServer01, added to the host file on VCL management server.
 Linux server being imaged is vm-00 running on esxiServer01. Added to the
 host file as well on VCL server. I can ping both and ssh -i key host works.

 Below is the full log for the process. These lines puzzle me:

 2011-11-01
 08:40:59|16965|20:20|image|OS.pm:is_ssh_responding(405)|esxiServer01 is NOT
 responding to SSH, SSH command failed, port 22: open, port 24: closed

 2011-11-01 08:40:59|16965|20:20|image|VMware.pm:initialize(257)|unable
 to control OS of VM host esxiServer01 using VCL::Module::OS::Linux::UnixLab
 OS object because VM host is not responding to SSH

 since I can ping the VM host and 'ssh -i /etc/vcl/vcl.key esxiServer01'
 works fine.

 Also all http(s) links work fine when I access them from management
 server.

 Is there a way to create and register images manually? Can I use Veeam
 FastSCP or similar software to copy VMs to VCL server and register them? If
 there is way to do so, anyone has a link?

 I would appreciate any help. Thank you.

 Here is the full log file for the imaging process:

VCL::image object could not be created and initialized
 
 time: 2011-11-01 08:40:59
 caller: vcld:make_new_child(571)
 ( 0) vcld, make_new_child (line: 571)
 (-1) vcld, main (line: 346)
 
 management node: vcl-01
 reservation PID: 16965
 parent vcld PID: 5086

 request ID: 20
 reservation ID: 20
 request state/laststate: image/image
 request start time: 2011-11-01 08:40:49
 request end time: 2011-11-01 09:40:49
 for imaging: no
 log ID: none

 computer: vm-00
 computer id: 23
 computer type: virtualmachine
 computer eth0 MAC

Re: Linux base image on ESXi server?

2011-11-02 Thread Dmitri Chebotarov
Hi

I got some progress on this issue. I tried to run vmware-cmd from
vcl-server and got the same error - Server version unavailable at  , which
could mean SSL certificate is missing. Then found this post
http://communities.vmware.com/message/1347703 and added these two lines to
/usr/local/vcl/lib/VCL/Module/Provisioning/VMware/vSphere_SDK.pm after line
62

$ENV{SSL_verify_mode} = 0x00;
$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;

This change allowed image creation to start successfully. VCLD connects to
ESXi server OK and gets server version. It doesn't use ssh keys from
/etc/vcl/vcl.key, but username/password configured in the profile.

Thanks.


On Wed, Nov 2, 2011 at 3:45 PM, Dmitri Chebotarov 4dim...@gmail.com wrote:

 Hello

 Got this link from one of the posts on this elist -
 https://sites.google.com/a/ncsu.edu/vcl-bootcamp/. I hope it helps me
 understand the VCL better...
 Can you recommend anything else to read about Apache VCL, besides
 https://cwiki.apache.org/VCL/ ?

 Thanks.


 On Tue, Nov 1, 2011 at 1:22 PM, Dmitri Chebotarov 4dim...@gmail.comwrote:

 Hi All

 I'm stuck on creating a base image (Linux) for newly deployed Apache VCL
 system and looking for help...
 This is the closes I got so far to a working system.
 I'm using ESXi 4.1 (60 days evaluation), ssh is enabled, ESXi server name
 is esxiServer01, added to the host file on VCL management server. Linux
 server being imaged is vm-00 running on esxiServer01. Added to the host
 file as well on VCL server. I can ping both and ssh -i key host works.

 Below is the full log for the process. These lines puzzle me:

 2011-11-01
 08:40:59|16965|20:20|image|OS.pm:is_ssh_responding(405)|esxiServer01 is NOT
 responding to SSH, SSH command failed, port 22: open, port 24: closed

 2011-11-01 08:40:59|16965|20:20|image|VMware.pm:initialize(257)|unable to
 control OS of VM host esxiServer01 using VCL::Module::OS::Linux::UnixLab OS
 object because VM host is not responding to SSH

 since I can ping the VM host and 'ssh -i /etc/vcl/vcl.key esxiServer01'
 works fine.

 Also all http(s) links work fine when I access them from management
 server.

 Is there a way to create and register images manually? Can I use Veeam
 FastSCP or similar software to copy VMs to VCL server and register them? If
 there is way to do so, anyone has a link?

 I would appreciate any help. Thank you.

 Here is the full log file for the imaging process:

VCL::image object could not be created and initialized
 
 time: 2011-11-01 08:40:59
 caller: vcld:make_new_child(571)
 ( 0) vcld, make_new_child (line: 571)
 (-1) vcld, main (line: 346)
 
 management node: vcl-01
 reservation PID: 16965
 parent vcld PID: 5086

 request ID: 20
 reservation ID: 20
 request state/laststate: image/image
 request start time: 2011-11-01 08:40:49
 request end time: 2011-11-01 09:40:49
 for imaging: no
 log ID: none

 computer: vm-00
 computer id: 23
 computer type: virtualmachine
 computer eth0 MAC address: undefined
 computer eth1 MAC address: undefined
 computer private IP address: 192.168.200.15
 computer public IP address: 192.168.200.15
 computer in block allocation: no
 provisioning module: VCL::Module::Provisioning::VMware::VMware

 vm host: esxiServer01
 vm host ID: 3
 vm host computer ID: 11
 vm profile: VMware ESX - local storage
 vm profile VM path: /vmfs/volumes/4e72606b-01b8dc93-5cdb-0023aeae26d2/
 vm profile repository path: 0
 vm profile datastore path:
 /vmfs/volumes/4e72606b-01b8dc93-5cdb-0023aeae26d2/
 vm profile disk type: localdisk

 image: vmwarelinux-linuximage0128-v0
 image display name: linux-image-01
 image ID: 28
 image revision ID: 28
 image size: 1450 MB
 use Sysprep: yes
 root access: yes
 image owner ID: 1
 image owner affiliation: Local
 image revision date created: 2011-11-01 08:40:49
 image revision production: yes
 OS module: VCL::Module::OS::Linux

 user: admin
 user name: vcl admin
 user ID: 1
 user affiliation: Local
 
 RECENT LOG ENTRIES FOR THIS PROCESS:
 2011-11-01
 08:40:51|16965|20:20|image|DataStructure.pm:_automethod(834)|data structure
 updated: $self-request_data-{reservation}{0}{computer}{IPaddress}
 |16965|20:20|image| computer_ip_address = 127.0.0.1
 2011-11-01
 08:40:51|16965|20:20|image|Module.pm:create_mn_os_object(366)|VCL::Module::OS::Linux::ManagementNode
 OS object created, address: 1b2415c0
 2011-11-01 08:40:51|16965|20:20|image|Module.pm:new(192)|VCL::image
 object created for state image, address: 1b03b4c0
 2011-11-01 08:40:51|16965|20:20|image|State.pm:initialize(86)|obtained a
 database handle for this state process, stored as $ENV{dbh}
 2011-11-01 08:40:51|16965|20:20|image|State.pm:check_image_os(762)|no
 corrections need to be made to image OS: vmwarelinux
 2011-11-01
 08:40:51|16965|20:20|image

Linux base image on ESXi server?

2011-11-01 Thread Dmitri Chebotarov
Hi All

I'm stuck on creating a base image (Linux) for newly deployed Apache VCL
system and looking for help...
This is the closes I got so far to a working system.
I'm using ESXi 4.1 (60 days evaluation), ssh is enabled, ESXi server name
is esxiServer01, added to the host file on VCL management server. Linux
server being imaged is vm-00 running on esxiServer01. Added to the host
file as well on VCL server. I can ping both and ssh -i key host works.

Below is the full log for the process. These lines puzzle me:

2011-11-01
08:40:59|16965|20:20|image|OS.pm:is_ssh_responding(405)|esxiServer01 is NOT
responding to SSH, SSH command failed, port 22: open, port 24: closed

2011-11-01 08:40:59|16965|20:20|image|VMware.pm:initialize(257)|unable to
control OS of VM host esxiServer01 using VCL::Module::OS::Linux::UnixLab OS
object because VM host is not responding to SSH

since I can ping the VM host and 'ssh -i /etc/vcl/vcl.key esxiServer01'
works fine.

Also all http(s) links work fine when I access them from management server.

Is there a way to create and register images manually? Can I use Veeam
FastSCP or similar software to copy VMs to VCL server and register them? If
there is way to do so, anyone has a link?

I would appreciate any help. Thank you.

Here is the full log file for the imaging process:

VCL::image object could not be created and initialized

time: 2011-11-01 08:40:59
caller: vcld:make_new_child(571)
( 0) vcld, make_new_child (line: 571)
(-1) vcld, main (line: 346)

management node: vcl-01
reservation PID: 16965
parent vcld PID: 5086

request ID: 20
reservation ID: 20
request state/laststate: image/image
request start time: 2011-11-01 08:40:49
request end time: 2011-11-01 09:40:49
for imaging: no
log ID: none

computer: vm-00
computer id: 23
computer type: virtualmachine
computer eth0 MAC address: undefined
computer eth1 MAC address: undefined
computer private IP address: 192.168.200.15
computer public IP address: 192.168.200.15
computer in block allocation: no
provisioning module: VCL::Module::Provisioning::VMware::VMware

vm host: esxiServer01
vm host ID: 3
vm host computer ID: 11
vm profile: VMware ESX - local storage
vm profile VM path: /vmfs/volumes/4e72606b-01b8dc93-5cdb-0023aeae26d2/
vm profile repository path: 0
vm profile datastore path:
/vmfs/volumes/4e72606b-01b8dc93-5cdb-0023aeae26d2/
vm profile disk type: localdisk

image: vmwarelinux-linuximage0128-v0
image display name: linux-image-01
image ID: 28
image revision ID: 28
image size: 1450 MB
use Sysprep: yes
root access: yes
image owner ID: 1
image owner affiliation: Local
image revision date created: 2011-11-01 08:40:49
image revision production: yes
OS module: VCL::Module::OS::Linux

user: admin
user name: vcl admin
user ID: 1
user affiliation: Local

RECENT LOG ENTRIES FOR THIS PROCESS:
2011-11-01
08:40:51|16965|20:20|image|DataStructure.pm:_automethod(834)|data structure
updated: $self-request_data-{reservation}{0}{computer}{IPaddress}
|16965|20:20|image| computer_ip_address = 127.0.0.1
2011-11-01
08:40:51|16965|20:20|image|Module.pm:create_mn_os_object(366)|VCL::Module::OS::Linux::ManagementNode
OS object created, address: 1b2415c0
2011-11-01 08:40:51|16965|20:20|image|Module.pm:new(192)|VCL::image object
created for state image, address: 1b03b4c0
2011-11-01 08:40:51|16965|20:20|image|State.pm:initialize(86)|obtained a
database handle for this state process, stored as $ENV{dbh}
2011-11-01 08:40:51|16965|20:20|image|State.pm:check_image_os(762)|no
corrections need to be made to image OS: vmwarelinux
2011-11-01
08:40:51|16965|20:20|image|DataStructure.pm:is_parent_reservation(991)|returning
true: parent reservation ID for this request: 20
2011-11-01 
08:40:51|16965|20:20|image|utils.pm:rename_vcld_process(7098)|reservation
count: 1
2011-11-01 
08:40:51|16965|20:20|image|utils.pm:rename_vcld_process(7117)|PARENTIMAGE:
1
2011-11-01 
08:40:51|16965|20:20|image|utils.pm:rename_vcld_process(7118)|SUBIMAGE:
0
2011-11-01 08:40:51|16965|20:20|image|utils.pm:rename_vcld_process(7136)|renamed
process to 'vcld 20:20 image vm-00esxiServer01
vmwarelinux-linuximage0128-v0 admin'
2011-11-01
08:40:51|16965|20:20|image|DataStructure.pm:is_parent_reservation(991)|returning
true: parent reservation ID for this request: 20
2011-11-01
08:40:51|16965|20:20|image|DataStructure.pm:is_parent_reservation(991)|returning
true: parent reservation ID for this request: 20
2011-11-01
08:40:51|16965|20:20|image|Module.pm:create_os_object(298)|VCL::Module::OS::Linux
module loaded
2011-11-01
08:40:51|16965|20:20|image|Module.pm:create_mn_os_object(335)|management
node OS object has already been created, address: 1b2415c0, returning 1
2011-11-01
08:40:51|16965|20:20|image|Module.pm:new(196)|VCL::Module::OS::Linux object
created for image