Re: Basic questions on base image creation

2012-06-12 Thread Michael Jinks
Ah, thanks!  Not sure how I ended up using the older doc.  The new one
sure looks familiar...


On Tue, Jun 12, 2012 at 06:51:50AM -0400, Josh Thompson wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Michael,
 
 
 
 You just highlighted a problem with our documentation.  We need to get rid of 
 
 the VCLDOCS site.  Due to some ASF restrictions on how official project 
 
 documentation is maintained, we tried having two wiki sites.  This has not 
 
 worked well and resulted in the VCLDOCS site being unmaintained.  We'll work 
 
 on removing that site.
 
 
 
 The up to date documentation on creating a linux base image is here:
 
 
 
 https://cwiki.apache.org/VCL/create-a-linux-base-image.html
 
 
 
 Sorry for the confusion.
 
 
 
 Josh
 
 
 
 On Mon June 11 2012 7:50:11 PM Michael Jinks wrote:
 
  I have a pilot VCL setup with a VMware ESXi hypervisor.  The hypervisor
 
  mounts a read-only NFS export from the VCL management node as
 
  nfs-repository.  Now I'm trying to stage and capture my first VM
 
  image.
 
  
 
  I've just finished creating a Linux system that I'd like to use as my
 
  template.  I'm following the instructions at:
 
  
 
   https://cwiki.apache.org/VCLDOCS/create-a-linux-base-image.html
 
  
 
  I get confused at Add a New Image to the VCL Database.
 
  
 
  Does the Image ID matter, or can I just enter any number there that I
 
  want, provided it isn't already listed as the image ID of another
 
  system?
 
  
 
  Does the image name correspond to the filename of the VM disk image on
 
  my NFS filesystem?  Or is it just a name?  If it's just a name, how do
 
  we associate the virtual disk image with the image record?  (I'm
 
  confused because the example vmwarelinux-base8-v1 doesn't look like
 
  the name of a VMware virtual disk, but I don't know what else it could
 
  be.)
 
  
 
  The instructions say, OS: Linux under VMWare - NOTE: If you are using
 
  something else, make sure you set OSid to correctly match the OS table.
 
  Where is that OS table?  Part of VMware, part of VCL, somewhere else...?
 
  
 
  The instructions don't say anything about how to stage the template
 
  image.  Should I just scp it to my VCL management node's NFS share?
 
  
 
  Finally, at the bottom of the instructions, we have start vcld.  If
 
  vcld is already running, does it need to be restarted in order to notice
 
  the new image?  Or is that assuming that I don't already have a running
 
  vcl system?
 
 - -- 
 
 - ---
 
 Josh Thompson
 
 Systems Programmer
 
 Virtual Computing Lab (VCL)
 
 North Carolina State University
 
 
 
 my GPG/PGP key can be found at www.keyserver.net
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2.0.17 (GNU/Linux)
 
 iD8DBQFP1x9LV/LQcNdtPQMRAjcdAJ9LVyHVx7ykFyOEncyxf8yetfGoJwCeKWUZ
 uN/HwUcxl3VfDUSb1zKDJAE=
 =Bf6I
 -END PGP SIGNATURE-
 

-- 
Michael Jinks :: mji...@uchicago.edu :: 773-469-9688
University of Chicago IT Services


Re: Base Image creation - problems - PLEASE HELP

2011-11-03 Thread Evelio Quiros
Hello,

Ok, I actually have tried many times to create a base image. I had it with NIC 
1 in the private network and NIC 2 in the public previously.

Each time, when VCL deletes my base image and copies it back to the VM server, 
the networks on the nics are REVERSED.

When I start with nic 1 in Private and nic 2 in Public, it ends up with nic 1 
in Pub and nic 2 in Priv.
When I start with nic 1 in Public and nic 2 in Private, it ends up with nic 1 
in Priv and nic 2 in Pub.

The VM host profile has Virtual Switch 0 in Public and Virtual Switch 1 in 
Private.
The DHCP server is only listening on the private network.
I see unauthorized dhcp requests come in for public network IP addresses when 
VCL swaps them.

In the last attempt, I did something new: When the new image is brought up, I 
manually swapped the nics back before VCL times out waiting for the image to 
boot.
At that time, it declares the image a success, but it should not need such 
manual intervention.

Any clues why VCL decides to swap the networks ?

Al Quiros


From: Aaron Coburn acob...@amherst.edumailto:acob...@amherst.edu
Reply-To: vcl-user@incubator.apache.orgmailto:vcl-user@incubator.apache.org
Date: Wed, 2 Nov 2011 16:24:02 -0400
To: vcl-user@incubator.apache.orgmailto:vcl-user@incubator.apache.org
Subject: Re: Base Image creation - problems - PLEASE HELP

Evelio,
in our VCL setup and according to the docs on this page:

https://cwiki.apache.org/confluence/display/VCL/Create+a+Windows+Base+Image

you may want to try configuring your base image to use NIC 1 for the private 
network and NIC 2 for the public network.

The sshd configuration script that you ran on your base image typically closes 
ssh access over the public network, but if the two networks are switched, you 
may have inadvertently cut off access over the private network.

Aaron



--
Aaron Coburn
Systems Administrator and Programmer
Academic Technology Services, Amherst College
(413) 542-5451 acob...@amherst.edumailto:acob...@amherst.edu





On Nov 2, 2011, at 4:09 PM, Evelio Quiros wrote:

Hello,
Ok, I'm stumped.
I continue to have issues creating a base image on our vcl setup.

Here is my info:

I have a single server running web, management node, and database.
It has two interfaces, one on our private network, another on our public net.

I have a single Vmware server, also with two interfaces.
One interface, switch 0, is on our public net. It also has the VM management 
net.
Another interface, switch 1, is on our private net.
Each of these switches is labeled the same as in the Management node config.

When I create the base image to capture,
I create eth0 (nic1) on the public network, then
I create eth1 (nic2) on the private network.

I set them both to dhcp, and the dhcp server on the VCL server responds
and gives it an address of an image in my database.
I set the ssh key in the new image.
I set the image in /etc/hosts so that the server can resolve it.

I set the vcld to capture the image,
It begins and copies the image to the management node directory,
It deletes the image from the Vmware server, and re-creates the image
All well and good.

but then :
When the recreated image comes up,
The OTHER interface begins asking the dhcp server for addresses in the public 
network.
The dhcp server denies it as non-authoritative, and the private interface never 
comes up.
Even though it was able to dhcp previously.
The image creation completes successfully,
but the newly created image cannot connect to the vcl server.
So, I eventually get a failure message from VCL.

WHAT GIVES ???

Here is my error email:

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

time: 2011-11-02 16:05:30
caller: State.pm:reservation_failed(213)
( 0) State.pm, reservation_failed (line: 213)
(-1) new.pm, process (line: 298)
(-2) vcld, make_new_child (line: 568)
(-3) vcld, main (line: 346)

management node: vcltst.fiu.eduhttp://vcltst.fiu.edu
reservation PID: 29777
parent vcld PID: 23341

request ID: 11
reservation ID: 11
request state/laststate: reload/image
request start time: 2011-11-02 15:53:56
request end time: 2011-11-02 16:23:56
for imaging: no
log ID: none

computer: image6
computer id: 7
computer type: virtualmachine
computer eth0 MAC address: 00:50:56:00:10:0a
computer eth1 MAC address: 00:50:56:00:10:0b
computer private IP address: 10.0.0.9
computer public IP address: 10.106.128.59
computer in block allocation: no
provisioning module: VCL::Module::Provisioning::VMware::VMware

vm host: vcldell01
vm host ID: 1
vm host computer ID: 1
vm profile: VMware ESX - local storage
vm profile VM path: /vmfs/volumes/datastore1
vm profile repository path: /images
vm profile datastore path: /vmfs/volumes/datastore1
vm profile disk type: localdisk

image: vmwarelinux-redhatbase10-v0
image display name: redhatbase
image ID: 10

Re: Base Image creation - problems - PLEASE HELP

2011-11-03 Thread Josh Thompson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Al,

I haven't worked with setting up VM hosts much, but it sounds like you need to 
swap your Virtual Switches so that Virtual Switch 0 is Private and Virtual 
Switch 1 is Public.

Give that a try and let us know how it works.

Josh

On Thursday November 03, 2011, Evelio Quiros wrote:
 Hello,
 
 Ok, I actually have tried many times to create a base image. I had it with
 NIC 1 in the private network and NIC 2 in the public previously.
 
 Each time, when VCL deletes my base image and copies it back to the VM
 server, the networks on the nics are REVERSED.
 
 When I start with nic 1 in Private and nic 2 in Public, it ends up with nic
 1 in Pub and nic 2 in Priv. When I start with nic 1 in Public and nic 2 in
 Private, it ends up with nic 1 in Priv and nic 2 in Pub.
 
 The VM host profile has Virtual Switch 0 in Public and Virtual Switch 1 in
 Private. The DHCP server is only listening on the private network.
 I see unauthorized dhcp requests come in for public network IP addresses
 when VCL swaps them.
 
 In the last attempt, I did something new: When the new image is brought up,
 I manually swapped the nics back before VCL times out waiting for the
 image to boot. At that time, it declares the image a success, but it
 should not need such manual intervention.
 
 Any clues why VCL decides to swap the networks ?
 
 Al Quiros
- -- 
- ---
Josh Thompson
VCL Developer
North Carolina State University

my GPG/PGP key can be found at pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk6y97gACgkQV/LQcNdtPQMiqgCeK06HLp+6QIYobUvQD1FssukV
sSkAn11mo1/j4wUmD98gDI8ZF718kQUF
=T16z
-END PGP SIGNATURE-


Base Image creation - problems - PLEASE HELP

2011-11-02 Thread Evelio Quiros
Hello,
Ok, I'm stumped.
I continue to have issues creating a base image on our vcl setup.

Here is my info:

I have a single server running web, management node, and database.
It has two interfaces, one on our private network, another on our public net.

I have a single Vmware server, also with two interfaces.
One interface, switch 0, is on our public net. It also has the VM management 
net.
Another interface, switch 1, is on our private net.
Each of these switches is labeled the same as in the Management node config.

When I create the base image to capture,
I create eth0 (nic1) on the public network, then
I create eth1 (nic2) on the private network.

I set them both to dhcp, and the dhcp server on the VCL server responds
and gives it an address of an image in my database.
I set the ssh key in the new image.
I set the image in /etc/hosts so that the server can resolve it.

I set the vcld to capture the image,
It begins and copies the image to the management node directory,
It deletes the image from the Vmware server, and re-creates the image
All well and good.

but then :
When the recreated image comes up,
The OTHER interface begins asking the dhcp server for addresses in the public 
network.
The dhcp server denies it as non-authoritative, and the private interface never 
comes up.
Even though it was able to dhcp previously.
The image creation completes successfully,
but the newly created image cannot connect to the vcl server.
So, I eventually get a failure message from VCL.

WHAT GIVES ???

Here is my error email:

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

time: 2011-11-02 16:05:30
caller: State.pm:reservation_failed(213)
( 0) State.pm, reservation_failed (line: 213)
(-1) new.pm, process (line: 298)
(-2) vcld, make_new_child (line: 568)
(-3) vcld, main (line: 346)

management node: vcltst.fiu.edu
reservation PID: 29777
parent vcld PID: 23341

request ID: 11
reservation ID: 11
request state/laststate: reload/image
request start time: 2011-11-02 15:53:56
request end time: 2011-11-02 16:23:56
for imaging: no
log ID: none

computer: image6
computer id: 7
computer type: virtualmachine
computer eth0 MAC address: 00:50:56:00:10:0a
computer eth1 MAC address: 00:50:56:00:10:0b
computer private IP address: 10.0.0.9
computer public IP address: 10.106.128.59
computer in block allocation: no
provisioning module: VCL::Module::Provisioning::VMware::VMware

vm host: vcldell01
vm host ID: 1
vm host computer ID: 1
vm profile: VMware ESX - local storage
vm profile VM path: /vmfs/volumes/datastore1
vm profile repository path: /images
vm profile datastore path: /vmfs/volumes/datastore1
vm profile disk type: localdisk

image: vmwarelinux-redhatbase10-v0
image display name: redhatbase
image ID: 10
image revision ID: 10
image size: 16384 MB
use Sysprep: yes
root access: yes
image owner ID: 1
image owner affiliation: Local
image revision date created: 2011-11-02 15:51:12
image revision production: yes
OS module: VCL::Module::OS::Linux

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

RECENT LOG ENTRIES FOR THIS PROCESS:
2011-11-02 16:01:20|29777|11:11|reload|OS.pm:is_ssh_responding(386)|image6 is 
NOT responding to SSH, ports 22 or 24 are both closed
2011-11-02 16:01:20|29777|11:11|reload|Module.pm:code_loop_timeout(755)|attempt 
24: code returned false, seconds elapsed/remaining: 360/240, sleeping for 15 
seconds
2011-11-02 16:01:35|29777|11:11|reload|Module.pm:code_loop_timeout(759)|attempt 
25: waiting for image6 to respond to SSH
2011-11-02 16:01:35|29777|11:11|reload|OS.pm:is_ssh_responding(386)|image6 is 
NOT responding to SSH, ports 22 or 24 are both closed
2011-11-02 16:01:35|29777|11:11|reload|Module.pm:code_loop_timeout(755)|attempt 
25: code returned false, seconds elapsed/remaining: 375/225, sleeping for 15 
seconds
2011-11-02 16:01:50|29777|11:11|reload|Module.pm:code_loop_timeout(759)|attempt 
26: waiting for image6 to respond to SSH
2011-11-02 16:01:51|29777|11:11|reload|OS.pm:is_ssh_responding(386)|image6 is 
NOT responding to SSH, ports 22 or 24 are both closed
2011-11-02 16:01:51|29777|11:11|reload|Module.pm:code_loop_timeout(755)|attempt 
26: code returned false, seconds elapsed/remaining: 391/209, sleeping for 15 
seconds
2011-11-02 16:02:06|29777|11:11|reload|Module.pm:code_loop_timeout(759)|attempt 
27: waiting for image6 to respond to SSH
2011-11-02 16:02:07|29777|11:11|reload|OS.pm:is_ssh_responding(386)|image6 is 
NOT responding to SSH, ports 22 or 24 are both closed
2011-11-02 16:02:07|29777|11:11|reload|Module.pm:code_loop_timeout(755)|attempt 
27: code returned false, seconds elapsed/remaining: 407/193, sleeping for 15 
seconds
2011-11-02 16:02:22|29777|11:11|reload|Module.pm:code_loop_timeout(759)|attempt 
28: waiting 

Re: Base Image creation - problems - PLEASE HELP

2011-11-02 Thread Aaron Coburn
Evelio,
in our VCL setup and according to the docs on this page:

https://cwiki.apache.org/confluence/display/VCL/Create+a+Windows+Base+Image

you may want to try configuring your base image to use NIC 1 for the private 
network and NIC 2 for the public network.

The sshd configuration script that you ran on your base image typically closes 
ssh access over the public network, but if the two networks are switched, you 
may have inadvertently cut off access over the private network.

Aaron



--
Aaron Coburn
Systems Administrator and Programmer
Academic Technology Services, Amherst College
(413) 542-5451 acob...@amherst.edu





On Nov 2, 2011, at 4:09 PM, Evelio Quiros wrote:

 Hello,
 Ok, I'm stumped.
 I continue to have issues creating a base image on our vcl setup.
 
 Here is my info:
 
 I have a single server running web, management node, and database. 
 It has two interfaces, one on our private network, another on our public net.
 
 I have a single Vmware server, also with two interfaces.
 One interface, switch 0, is on our public net. It also has the VM management 
 net.
 Another interface, switch 1, is on our private net.
 Each of these switches is labeled the same as in the Management node config.
 
 When I create the base image to capture, 
 I create eth0 (nic1) on the public network, then 
 I create eth1 (nic2) on the private network.
 
 I set them both to dhcp, and the dhcp server on the VCL server responds 
 and gives it an address of an image in my database.
 I set the ssh key in the new image.
 I set the image in /etc/hosts so that the server can resolve it.
 
 I set the vcld to capture the image,
 It begins and copies the image to the management node directory,
 It deletes the image from the Vmware server, and re-creates the image
 All well and good. 
 
 but then :
 When the recreated image comes up, 
 The OTHER interface begins asking the dhcp server for addresses in the public 
 network.
 The dhcp server denies it as non-authoritative, and the private interface 
 never comes up.
 Even though it was able to dhcp previously.
 The image creation completes successfully, 
 but the newly created image cannot connect to the vcl server.
 So, I eventually get a failure message from VCL.
 
 WHAT GIVES ???
 
 Here is my error email:
 
 reservation failed on image6: process failed after trying to load or make 
 available
 
 time: 2011-11-02 16:05:30
 caller: State.pm:reservation_failed(213)
 ( 0) State.pm, reservation_failed (line: 213)
 (-1) new.pm, process (line: 298)
 (-2) vcld, make_new_child (line: 568)
 (-3) vcld, main (line: 346)
 
 management node: vcltst.fiu.edu
 reservation PID: 29777
 parent vcld PID: 23341
 
 request ID: 11
 reservation ID: 11
 request state/laststate: reload/image
 request start time: 2011-11-02 15:53:56
 request end time: 2011-11-02 16:23:56
 for imaging: no
 log ID: none
 
 computer: image6
 computer id: 7
 computer type: virtualmachine
 computer eth0 MAC address: 00:50:56:00:10:0a
 computer eth1 MAC address: 00:50:56:00:10:0b
 computer private IP address: 10.0.0.9
 computer public IP address: 10.106.128.59
 computer in block allocation: no
 provisioning module: VCL::Module::Provisioning::VMware::VMware
 
 vm host: vcldell01
 vm host ID: 1
 vm host computer ID: 1
 vm profile: VMware ESX - local storage
 vm profile VM path: /vmfs/volumes/datastore1
 vm profile repository path: /images
 vm profile datastore path: /vmfs/volumes/datastore1
 vm profile disk type: localdisk
 
 image: vmwarelinux-redhatbase10-v0
 image display name: redhatbase
 image ID: 10
 image revision ID: 10
 image size: 16384 MB
 use Sysprep: yes
 root access: yes
 image owner ID: 1
 image owner affiliation: Local
 image revision date created: 2011-11-02 15:51:12
 image revision production: yes
 OS module: VCL::Module::OS::Linux
 
 user: vclreload
 user name: vcl reload
 user ID: 2
 user affiliation: Local
 
 RECENT LOG ENTRIES FOR THIS PROCESS:
 2011-11-02 16:01:20|29777|11:11|reload|OS.pm:is_ssh_responding(386)|image6 is 
 NOT responding to SSH, ports 22 or 24 are both closed
 2011-11-02 
 16:01:20|29777|11:11|reload|Module.pm:code_loop_timeout(755)|attempt 24: code 
 returned false, seconds elapsed/remaining: 360/240, sleeping for 15 seconds
 2011-11-02 
 16:01:35|29777|11:11|reload|Module.pm:code_loop_timeout(759)|attempt 25: 
 waiting for image6 to respond to SSH
 2011-11-02 16:01:35|29777|11:11|reload|OS.pm:is_ssh_responding(386)|image6 is 
 NOT responding to SSH, ports 22 or 24 are both closed
 2011-11-02 
 16:01:35|29777|11:11|reload|Module.pm:code_loop_timeout(755)|attempt 25: code 
 returned false, seconds elapsed/remaining: 375/225, sleeping for 15 seconds
 2011-11-02 
 16:01:50|29777|11:11|reload|Module.pm:code_loop_timeout(759)|attempt 26: 
 waiting for image6 to respond to SSH
 

Re: Base Image creation error

2011-10-25 Thread Aaron Peeler
Al,

The hostname has to resolve.

Put an entry in your /etc/hosts file.

Aaron

On Tue, Oct 25, 2011 at 8:52 AM, Evelio Quiros evq...@fiu.edu wrote:
 Hello,
 I am getting an error when I try to capture a linux base image in vcl. I am
 following the instructions, but perhaps some parts of these may have been
 misinterpreted.
 My VCL server is at 10.0.0.1. My Vmware based virtual machine is at
 10.0.0.2. I can ssh without passwords using keys from the vcl server to the
 VM.
 The computer has been added to the database as hostname redhat64base,
 although I have no DNS entry to resolve that name, so I use it's private IP
 of 10.0.0.2.
 Below is the result of vcld trying to capture the computer to create a new
 base image….Any ideas about what could be wrong ?
 Thanks,
 Al Quiros

 VCL::image object could not be created and initialized
 
 time: 2011-10-25 08:58:38
 caller: vcld:make_new_child(571)
 ( 0) vcld, make_new_child (line: 571)
 (-1) vcld, main (line: 346)
 
 management node: vcltst.fiu.edu
 reservation PID: 29609
 parent vcld PID: 15838
 request ID: 2
 reservation ID: 2
 request state/laststate: image/image
 request start time: 2011-10-25 08:58:37
 request end time: 2011-10-25 09:58:37
 for imaging: no
 log ID: none
 computer: redhat64base
 computer id: 12
 computer type: blade
 computer eth0 MAC address: undefined
 computer eth1 MAC address: undefined
 computer private IP address: undefined
 computer public IP address: 10.0.0.2
 computer in block allocation: no
 provisioning module: VCL::Module::Provisioning::VMware::VMware
 image: vmwarelinux-redhat64linux8-v0
 image display name: redhat64linux
 image ID: 8
 image revision ID: 6
 image size: 1450 MB
 use Sysprep: yes
 root access: yes
 image owner ID: 1
 image owner affiliation: Local
 image revision date created: 2011-10-25 08:58:37
 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-10-25 08:58:38|29609|2:2|image|VMware.pm:get_vmhost_os_object(1238)|VM
 host OS module loaded: VCL::Module::OS::Linux
 2011-10-25
 08:58:38|29609|2:2|image|Module.pm:create_mn_os_object(335)|management node
 OS object has already been created, address: 1fbe730, returning 1
 2011-10-25
 08:58:38|29609|2:2|image|Module.pm:new(196)|VCL::Module::OS::Linux object
 created for image vmwarelinux-redhat64linux8-v0, address: 24f12f0
 2011-10-25 08:58:38|29609|2:2|image|VMware.pm:get_vmhost_os_object(1244)|VM
 host OS object created: VCL::Module::OS::Linux
 2011-10-25 08:58:38|29609|2:2|image|utils.pm:run_command(8998)|$? is set to
 -1, setting exit status to 0, Perl bug likely encountered
 |29609|2:2|image|  WARNING 
 |29609|2:2|image| 2011-10-25
 08:58:38|29609|2:2|image|utils.pm:nmap_port(2645)|error occurred running
 nmap command: '/usr/bin/nmap redhat64base -P0 -p 22 -T Aggressive', output:
 |29609|2:2|image| Starting Nmap 5.21 ( http://nmap.org ) at 2011-10-25 08:58
 EDT
 |29609|2:2|image| Failed to resolve given hostname/IP: redhat64base.  Note
 that you can't use '/mask' AND '1-4,7,100-' style IP ranges
 |29609|2:2|image| WARNING: No targets were specified, so 0 hosts scanned.
 |29609|2:2|image| Nmap done: 0 IP addresses (0 hosts up) scanned in 0.05
 seconds
 |29609|2:2|image| ( 0) utils.pm, nmap_port (line: 2645)
 |29609|2:2|image| (-1) OS.pm, is_ssh_responding (line: 383)
 |29609|2:2|image| (-2) VMware.pm, initialize (line: 252)
 |29609|2:2|image| (-3) Module.pm, new (line: 207)
 |29609|2:2|image| (-4) Module.pm, create_provisioning_object (line: 423)
 |29609|2:2|image| (-5) State.pm, initialize (line: 117)
 |29609|2:2|image|  WARNING 
 |29609|2:2|image| 2011-10-25
 08:58:38|29609|2:2|image|utils.pm:nmap_port(2645)|error occurred running
 nmap command: '/usr/bin/nmap redhat64base -P0 -p 24 -T Aggressive', output:
 |29609|2:2|image| Starting Nmap 5.21 ( http://nmap.org ) at 2011-10-25 08:58
 EDT
 |29609|2:2|image| Failed to resolve given hostname/IP: redhat64base.  Note
 that you can't use '/mask' AND '1-4,7,100-' style IP ranges
 |29609|2:2|image| WARNING: No targets were specified, so 0 hosts scanned.
 |29609|2:2|image| Nmap done: 0 IP addresses (0 hosts up) scanned in 0.05
 seconds
 |29609|2:2|image| ( 0) utils.pm, nmap_port (line: 2645)
 |29609|2:2|image| (-1) OS.pm, is_ssh_responding (line: 384)
 |29609|2:2|image| (-2) VMware.pm, initialize (line: 252)
 |29609|2:2|image| (-3) Module.pm, new (line: 207)
 |29609|2:2|image| (-4) Module.pm, create_provisioning_object (line: 423)
 |29609|2:2|image| (-5) State.pm, initialize (line: 117)
 2011-10-25
 08:58:38|29609|2:2|image|OS.pm:is_ssh_responding(386)|redhat64base is NOT
 responding to SSH, ports 22 or 24 are both closed
 2011-10-25 

Re: Base Image creation error - The plot thickens

2011-10-25 Thread Aaron Peeler
In the log output your missing the vmhost information.

Make sure your vm host server have a correctly configured vmhost
profile and you have assigned your vms to the virtual host server by
using the Virtual Host interface.

https://cwiki.apache.org/confluence/display/VCL/VCL+2.2.1+-+Further+Steps+if+Using+VMware
https://cwiki.apache.org/confluence/display/VCL/VMware+Configuration

I'm not seeing the virtual host interface mentioned directly in the
vcl 2.2.1 install guide. I'll added that to the first link.

Here is a link from a bootcamp that you can review this morning while
I work on adding the content to Apache VCL:
https://sites.google.com/a/ncsu.edu/vcl-bootcamp/exercises/assign-a-vm-to-a-virtual-host

Aaron


On Tue, Oct 25, 2011 at 9:19 AM, Evelio Quiros evq...@fiu.edu wrote:
 Thank you Aaron.

 Ok, now it can resolve the name redhat64base to the private IP address
 10.0.0.2.
 I tried to add the base image as the name linux64.
 It resides in the database as redhat64base, with the public IP of
 10.106.128.53, and set as available.
 I'm not sure what this error message is telling meŠ

 VCL::image object could not be created and initialized
 
 time: 2011-10-25 09:30:44
 caller: vcld:make_new_child(571)
 ( 0) vcld, make_new_child (line: 571)
 (-1) vcld, main (line: 346)
 
 management node: vcltst.fiu.edu
 reservation PID: 31318
 parent vcld PID: 15838

 request ID: 4
 reservation ID: 4
 request state/laststate: image/image
 request start time: 2011-10-25 09:30:37
 request end time: 2011-10-25 10:30:37
 for imaging: no
 log ID: none

 computer: redhat64base
 computer id: 12
 computer type: blade
 computer eth0 MAC address: undefined
 computer eth1 MAC address: undefined
 computer private IP address: 10.0.0.2
 computer public IP address: 10.106.128.53
 computer in block allocation: no
 provisioning module: VCL::Module::Provisioning::VMware::VMware

 image: vmwarelinux-linux6414-v0
 image display name: linux64
 image ID: 14
 image revision ID: 8
 image size: 1450 MB
 use Sysprep: yes
 root access: yes
 image owner ID: 1
 image owner affiliation: Local
 image revision date created: 2011-10-25 09:30:37
 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-10-25
 09:30:43|31318|4:4|image|VMware.pm:get_vmhost_api_object(1293)|attempting
 to load VMware control module:
 VCL::Module::Provisioning::VMware::vSphere_SDK
 2011-10-25
 09:30:43|31318|4:4|image|VMware.pm:get_vmhost_api_object(1299)|loaded
 VMware control module: VCL::Module::Provisioning::VMware::vSphere_SDK
 2011-10-25 09:30:43|31318|4:4|image|Module.pm:new(172)|set 'vmhost_data'
 key for VCL::Module::Provisioning::VMware::vSphere_SDK object from
 arguments
 2011-10-25 09:30:43|31318|4:4|image|Module.pm:new(172)|set 'vmhost_os' key
 for VCL::Module::Provisioning::VMware::vSphere_SDK object from arguments
 2011-10-25
 09:30:43|31318|4:4|image|Module.pm:create_mn_os_object(335)|management
 node OS object has already been created, address: 21956b8, returning 1
 2011-10-25
 09:30:43|31318|4:4|image|Module.pm:new(200)|VCL::Module::Provisioning::VMwa
 re::vSphere_SDK object created for computer redhat64base, address: 21e6980
 2011-10-25
 09:30:43|31318|4:4|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-10-25
 09:30:43|31318|4:4|image|VMware.pm:get_vmhost_api_object(1313)|API object
 could not be created: VCL::Module::Provisioning::VMware::vSphere_SDK
 |31318|4:4|image|  WARNING 
 |31318|4:4|image| 2011-10-25
 09:30:43|31318|4:4|image|DataStructure.pm:_automethod(812)|corresponding
 data has not been initialized for get_vmhost_computer_id:
 $self-request_data-{reservation}{4}{computer}{vmhost}{computerid}
 |31318|4:4|image| ( 0) DataStructure.pm, _automethod (line: 812)
 |31318|4:4|image| (-1) Autoload.pm, __ANON__ (line: 80)
 |31318|4:4|image| (-2) VMware.pm, get_vmhost_datastructure (line: 1161)
 |31318|4:4|image| (-3) VMware.pm, get_vmhost_api_object (line: 1282)
 |31318|4:4|image| (-4) VMware.pm, initialize (line: 278)
 |31318|4:4|image| (-5) Module.pm, new (line: 207)
 |31318|4:4|image|  WARNING 
 |31318|4:4|image| 2011-10-25
 09:30:43|31318|4:4|image|DataStructure.pm:_automethod(812)|corresponding
 data has not been initialized for get_vmhost_profile_image_id:
 $self-request_data-{reservation}{4}{computer}{vmhost}{vmprofile}{imageid}
 |31318|4:4|image| ( 0) DataStructure.pm, _automethod (line: 812)
 |31318|4:4|image| (-1) Autoload.pm, __ANON__ (line: 80)
 |31318|4:4|image| (-2) VMware.pm, get_vmhost_datastructure (line: 1162)
 |31318|4:4|image| (-3) VMware.pm, 

Re: Base Image creation error - VMware host config

2011-10-25 Thread Aaron Coburn
Al,
if you plan to use the vSphere API, then you will need to install the vSphere 
SDK for Perl separately. The perl modules are available here -- just make sure 
that you download the release that matches your vCenter version.

http://www.vmware.com/support/developer/viperltoolkit/

Aaron Coburn


On Oct 25, 2011, at 10:03 AM, Evelio Quiros wrote:

 Thanks again Aaron. It seems we are taking baby steps here.
 
 Ok, next issue: When I click Configure Host in the vcl web interface,
 nothing happens.
 
 My Vmware server is listed there. It is in vmhostinuse state.
 
 I noticed some complaints below about the Vsphere perl module not being
 installed.
 I thought that was done in the install_perl_libraries script.
 
 Thanks again for all your help.
 
 Al Quiros
 
 
 On 10/25/11 9:43 AM, Aaron Peeler fapee...@ncsu.edu wrote:
 
 In the log output your missing the vmhost information.
 
 Make sure your vm host server have a correctly configured vmhost
 profile and you have assigned your vms to the virtual host server by
 using the Virtual Host interface.
 
 https://cwiki.apache.org/confluence/display/VCL/VCL+2.2.1+-+Further+Steps+
 if+Using+VMware
 https://cwiki.apache.org/confluence/display/VCL/VMware+Configuration
 
 I'm not seeing the virtual host interface mentioned directly in the
 vcl 2.2.1 install guide. I'll added that to the first link.
 
 Here is a link from a bootcamp that you can review this morning while
 I work on adding the content to Apache VCL:
 https://sites.google.com/a/ncsu.edu/vcl-bootcamp/exercises/assign-a-vm-to-
 a-virtual-host
 
 Aaron
 
 
 On Tue, Oct 25, 2011 at 9:19 AM, Evelio Quiros evq...@fiu.edu wrote:
 Thank you Aaron.
 
 Ok, now it can resolve the name redhat64base to the private IP address
 10.0.0.2.
 I tried to add the base image as the name linux64.
 It resides in the database as redhat64base, with the public IP of
 10.106.128.53, and set as available.
 I'm not sure what this error message is telling meŠ
 
 VCL::image object could not be created and initialized
 
 time: 2011-10-25 09:30:44
 caller: vcld:make_new_child(571)
 ( 0) vcld, make_new_child (line: 571)
 (-1) vcld, main (line: 346)
 
 management node: vcltst.fiu.edu
 reservation PID: 31318
 parent vcld PID: 15838
 
 request ID: 4
 reservation ID: 4
 request state/laststate: image/image
 request start time: 2011-10-25 09:30:37
 request end time: 2011-10-25 10:30:37
 for imaging: no
 log ID: none
 
 computer: redhat64base
 computer id: 12
 computer type: blade
 computer eth0 MAC address: undefined
 computer eth1 MAC address: undefined
 computer private IP address: 10.0.0.2
 computer public IP address: 10.106.128.53
 computer in block allocation: no
 provisioning module: VCL::Module::Provisioning::VMware::VMware
 
 image: vmwarelinux-linux6414-v0
 image display name: linux64
 image ID: 14
 image revision ID: 8
 image size: 1450 MB
 use Sysprep: yes
 root access: yes
 image owner ID: 1
 image owner affiliation: Local
 image revision date created: 2011-10-25 09:30:37
 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-10-25
 
 09:30:43|31318|4:4|image|VMware.pm:get_vmhost_api_object(1293)|attempting
 to load VMware control module:
 VCL::Module::Provisioning::VMware::vSphere_SDK
 2011-10-25
 09:30:43|31318|4:4|image|VMware.pm:get_vmhost_api_object(1299)|loaded
 VMware control module: VCL::Module::Provisioning::VMware::vSphere_SDK
 2011-10-25 09:30:43|31318|4:4|image|Module.pm:new(172)|set 'vmhost_data'
 key for VCL::Module::Provisioning::VMware::vSphere_SDK object from
 arguments
 2011-10-25 09:30:43|31318|4:4|image|Module.pm:new(172)|set 'vmhost_os'
 key
 for VCL::Module::Provisioning::VMware::vSphere_SDK object from arguments
 2011-10-25
 09:30:43|31318|4:4|image|Module.pm:create_mn_os_object(335)|management
 node OS object has already been created, address: 21956b8, returning 1
 2011-10-25
 
 09:30:43|31318|4:4|image|Module.pm:new(200)|VCL::Module::Provisioning::VM
 wa
 re::vSphere_SDK object created for computer redhat64base, address:
 21e6980
 2011-10-25
 09:30:43|31318|4:4|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-10-25
 09:30:43|31318|4:4|image|VMware.pm:get_vmhost_api_object(1313)|API
 object
 could not be created: VCL::Module::Provisioning::VMware::vSphere_SDK
 |31318|4:4|image|  WARNING 
 |31318|4:4|image| 2011-10-25
 09:30:43|31318|4:4|image|DataStructure.pm:_automethod(812)|corresponding
 data has not been initialized for get_vmhost_computer_id:
 $self-request_data-{reservation}{4}{computer}{vmhost}{computerid}
 |31318|4:4|image| ( 0) 

Re: Base Image creation error - VMware host config

2011-10-25 Thread Evelio Quiros
Thank you Josh. 
I found the missing Dojo javascript.
Now I get the correct response when adding the VM to the host.

Cheers,
Q

On 10/25/11 10:32 AM, Josh Thompson josh_thomp...@ncsu.edu wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

If nothing is happening when you click on Configure Host on the Manage
Virtual 
Hosts page, then you are most likely getting a javascript error due to a
misconfiguration.  Can you check to see if your browser is saying there
was an 
error?  If you use Firefox, you can install the Firebug Add-on to really
see 
what is happening.  If you can give me an error message, I could probably
tell 
you what is not configured correctly.

Josh

On Tuesday October 25, 2011, Evelio Quiros wrote:
 Yes, that was done. The server is set to vmhostinuse.
 In the Manage Virtual Hosts page, none of the buttons seem to do
 anything.
 
 In troubleshooting this, I did set the state to available, and then
found
 I could not set it back to vmhostinuse.
 I deleted the entry, and added a new one with a slightly different
 hostname, but same IP, and set that to vmhostinuse.
 I added the new hostname to my hosts file.
 
 Shall I attempt to add the vSphere perl module with cpan ?
 
 Al Quiros
 
 On 10/25/11 10:12 AM, Aaron Peeler aaron_pee...@ncsu.edu wrote:
 When you added your VM host servers did you set the state to
vmhostinuse?
 
 
https://cwiki.apache.org/confluence/display/VCL/VCL+2.2.1+-+Further+Step
s+
 if+Using+VMware
 
 If not then you'll need to go into the mysql cmdline or phpmyadmin and
 set that server to vmhostinuse state and assigne the vmhost profile.
 
 Aaron
 
 2011/10/25 Evelio Quiros evq...@fiu.edu:
  Thanks again Aaron. It seems we are taking baby steps here.
  
  Ok, next issue: When I click Configure Host in the vcl web
interface,
  nothing happens.
  
  My Vmware server is listed there. It is in vmhostinuse state.
  
  I noticed some complaints below about the Vsphere perl module not
being
  installed.
  I thought that was done in the install_perl_libraries script.
  
  Thanks again for all your help.
  
  Al Quiros
  
  On 10/25/11 9:43 AM, Aaron Peeler fapee...@ncsu.edu wrote:
 In the log output your missing the vmhost information.
 
 Make sure your vm host server have a correctly configured vmhost
 profile and you have assigned your vms to the virtual host server by
 using the Virtual Host interface.
 
 
https://cwiki.apache.org/confluence/display/VCL/VCL+2.2.1+-+Further+St
ep
 s+
 if+Using+VMware
 https://cwiki.apache.org/confluence/display/VCL/VMware+Configuration
 
 I'm not seeing the virtual host interface mentioned directly in the
 vcl 2.2.1 install guide. I'll added that to the first link.
 
 Here is a link from a bootcamp that you can review this morning while
 I work on adding the content to Apache VCL:
 
https://sites.google.com/a/ncsu.edu/vcl-bootcamp/exercises/assign-a-vm
-t
 o-
 a-virtual-host
 
 Aaron
 
 On Tue, Oct 25, 2011 at 9:19 AM, Evelio Quiros evq...@fiu.edu
wrote:
  Thank you Aaron.
  
  Ok, now it can resolve the name redhat64base to the private IP
address
  10.0.0.2.
  I tried to add the base image as the name linux64.
  It resides in the database as redhat64base, with the public IP of
  10.106.128.53, and set as available.
  I'm not sure what this error message is telling meŠ
  
  VCL::image object could not be created and initialized
 
 
-
--
 -
 
  time: 2011-10-25 09:30:44
  caller: vcld:make_new_child(571)
  ( 0) vcld, make_new_child (line: 571)
  (-1) vcld, main (line: 346)
 
 
-
--
 -
 
  management node: vcltst.fiu.edu
  reservation PID: 31318
  parent vcld PID: 15838
  
  request ID: 4
  reservation ID: 4
  request state/laststate: image/image
  request start time: 2011-10-25 09:30:37
  request end time: 2011-10-25 10:30:37
  for imaging: no
  log ID: none
  
  computer: redhat64base
  computer id: 12
  computer type: blade
  computer eth0 MAC address: undefined
  computer eth1 MAC address: undefined
  computer private IP address: 10.0.0.2
  computer public IP address: 10.106.128.53
  computer in block allocation: no
  provisioning module: VCL::Module::Provisioning::VMware::VMware
  
  image: vmwarelinux-linux6414-v0
  image display name: linux64
  image ID: 14
  image revision ID: 8
  image size: 1450 MB
  use Sysprep: yes
  root access: yes
  image owner ID: 1
  image owner affiliation: Local
  image revision date created: 2011-10-25 09:30:37
  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-10-25
 
 
09:30:43|31318|4:4|image|VMware.pm:get_vmhost_api_object(1293)|attemp
ti
 ng
 
  to load VMware control module:
  VCL::Module::Provisioning::VMware::vSphere_SDK
  2011-10-25
  

Ubuntu Base image creation - VCL 2.2.1

2011-09-20 Thread Jeries, Ibrahim (Student)
Dear all,
Can anyone assist with a Backtrack 5 r1 (Ubuntu based) Base image creation?
I’m using:

1) CentOS 6.0

2) VCL 2.2.1

3) VMware ESX

4) BackTrack 5 r1 (BT) is a VM on the ESX Virtual Host.
I have followed the documentation under:
https://cwiki.apache.org/confluence/display/VCL/Create+a+Linux+Base+Image
As well as Andy’s solution in the following archive link:
http://www.mail-archive.com/vcl-dev@incubator.apache.org/msg01061.html
Andy’s script works perfectly fine on the BT VM (if ran locally) without any 
errors. However, when vcl tries to image BT, it pushes the CentOS/Red Hat 
variant of the script and overwrites the rc.local removing Andy’s script and 
causing the image capture to fail.
I would be grateful for any advise on the following:

1) vcld –setup, Select OS to be captured (install type: VMware), I choose 
option 1. Generic Linux (VMware), then the image architecture x86. Should I get 
a list of Linux OS’s to select from at any stage, i.e.: CentOS, or Fedora, Or 
Ubuntu, etc..?
2) Where should I place Andy’s script? I’ve placed on the BT VM under 
/etc/rc.local which gets overwritten as shown in the vcld.log snippet bellow.

Please note, I’m Linux newbie, however i've managed to successfully set up VCL 
so far and capture a Windows XP iamge as well as make successful reservation.

Many thanks.

Ibrahim

2011-09-20 
09:57:20|9087|15:15|image|utils.pm:run_ssh_command(5464)|run_ssh_command output:
2011-09-20 09:57:20|9087|15:15|image|utils.pm:run_ssh_command(5478)|SSH command 
executed on vm1, returning (0, )
2011-09-20 09:57:20|9087|15:15|image|Linux.pm:clear_private_keys(451)|cleared 
any id_rsa keys from /root/.ssh
2011-09-20 09:57:20|9087|15:15|image|utils.pm:run_scp_command(5600)|attempting 
to copy file via SCP: '/tmp/15.rc.local' -- 'vm1:/etc/rc.local'
2011-09-20 09:57:20|9087|15:15|image|utils.pm:run_scp_command(5636)|copied file 
via SCP: '/tmp/15.rc.local' -- 'vm1:/etc/rc.local'
2011-09-20 09:57:20|9087|15:15|image|utils.pm:run_ssh_command(5380)|executing 
SSH command on vm1:
|9087|15:15|image| /usr/bin/ssh -i /etc/vcl/vcl.key  -o 
StrictHostKeyChecking=no -l root -p 22 -x vm1 'chmod +rx /etc/rc.local' 21
2011-09-20 09:57:20|9087|15:15|image|Linux.pm:generate_rc_local(2235)|executed 
chmod +rx /etc/rc.local, exit status: 0
2011-09-20 09:57:20|9087|15:15|image|utils.pm:run_scp_command(5600)|attempting 
to copy file via SCP: 'vm1:/etc/ssh/sshd_config' -- 
'/tmp/15.external_sshd_config'
2011-09-20 09:57:20|9087|15:15|image|utils.pm:run_scp_command(5636)|copied file 
via SCP: 'vm1:/etc/ssh/sshd_config' -- '/tmp/15.external_sshd_config'
2011-09-20 
09:57:20|9087|15:15|image|Linux.pm:generate_ext_sshd_config(2279)|copied 
sshd_config from vm1 for local processing
2011-09-20 09:57:20|9087|15:15|image|utils.pm:run_scp_command(5600)|attempting 
to copy file via SCP: '/tmp/15.external_sshd_config' -- 
'vm1:/etc/ssh/external_sshd_config'
2011-09-20 09:57:20|9087|15:15|image|utils.pm:run_scp_command(5636)|copied file 
via SCP: '/tmp/15.external_sshd_config' -- 'vm1:/etc/ssh/external_sshd_config'
2011-09-20 
09:57:20|9087|15:15|image|Linux.pm:generate_ext_sshd_config(2323)|copied 
/tmp/15.external_sshd_config to vm1:/etc/ssh/external_sshd_config
2011-09-20 09:57:20|9087|15:15|image|utils.pm:run_scp_command(5600)|attempting 
to copy file via SCP: 'vm1:/etc/init.d/sshd' -- '/tmp/15.ext_sshd'

|9087|15:15|image|  WARNING 
|9087|15:15|image| 2011-09-20 
09:57:21|9087|15:15|image|utils.pm:run_scp_command(5628)|failed to copy via 
SCP: 'vm1:/etc/init.d/sshd' -- '/tmp/15.ext_sshd'
|9087|15:15|image| command: /usr/bin/scp -B -i /etc/vcl/vcl.key -P 22 -p -r 
vm1:/etc/init.d/sshd /tmp/15.ext_sshd 21
|9087|15:15|image| output:
|9087|15:15|image| scp: /etc/init.d/sshd: No such file or directory
|9087|15:15|image| ( 0) utils.pm, run_scp_command (line: 5628)
|9087|15:15|image| (-1) Linux.pm, generate_ext_sshd_init (line: 2359)
|9087|15:15|image| (-2) Linux.pm, pre_capture (line: 173)
|9087|15:15|image| (-3) VMware.pm, capture (line: 556)
|9087|15:15|image| (-4) image.pm, process (line: 162)
|9087|15:15|image| (-5) vcld, make_new_child (line: 568)

|9087|15:15|image|  WARNING 
|9087|15:15|image| 2011-09-20 
09:57:21|9087|15:15|image|Linux.pm:generate_ext_sshd_init(2363)|failed to 
copied sshd init script from vm1 for local processing
|9087|15:15|image| ( 0) Linux.pm, generate_ext_sshd_init (line: 2363)
|9087|15:15|image| (-1) Linux.pm, pre_capture (line: 173)
|9087|15:15|image| (-2) VMware.pm, capture (line: 556)
|9087|15:15|image| (-3) image.pm, process (line: 162)
|9087|15:15|image| (-4) vcld, make_new_child (line: 568)
|9087|15:15|image| (-5) vcld, main (line: 346)

|9087|15:15|image|  WARNING 
|9087|15:15|image| 2011-09-20 
09:57:21|9087|15:15|image|Linux.pm:pre_capture(174)|unable to generate 
/etc/init.d/ext_sshd on vm1
|9087|15:15|image| ( 0) Linux.pm, pre_capture (line: 174)
|9087|15:15|image| (-1) VMware.pm, capture (line: 556)
|9087|15:15|image| (-2) image.pm, process (line

Re: base image creation

2011-02-08 Thread Jay Diener-Brazelle
Alright, so after looking into my ssl connection between the VCL server 
and the ESXi server, I've determined that the two did not have the 
ability to see one another.  My VCL server is a VM on the ESXi server 
and they are on separate vSwitches.  My question is how do I get the VCL 
VM to talk to the ESXi Management network.  Is it as simple as creating 
a VM port group on the same physical adapter as the VM management 
network? Or do I need to create a new network group and only add those 
two machines to it?  Unfortunately I am not very well versed in ESX 
usage and my need some gentle hand holding.


On 2/4/2011 8:04 AM, Aaron Peeler wrote:

Jay,

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


First of all welcome to the community. :)

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


Again welcome and I apologize for the initial short response.

Aaron Peeler


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

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

Aaron


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


VCL::image object could not be created and initialized

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

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

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

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

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

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

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

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

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

Re: base image creation

2011-02-08 Thread Jay Diener-Brazelle
So I got the VCL VM and the ESX management network on the same vSwitch 
and I have set up the keys so that I can ssh into the ESX server without 
having to authenticate. However, when running the vcld setup I still get 
the same output in my error log.


|18078|5:5|image| 2011-02-08 
14:40:15|18078|5:5|image|VMware.pm:initialize(254)|unable to control OS 
of VM host 192 using OS object: VCL::Module::OS::Linux::UnixLab, VM host 
is not responding to SSH


I'm assuming at this point I have something wrong in my web interface 
setup.  How do I go about tracking down the offending part?


On 2/8/2011 9:52 AM, Jay Diener-Brazelle wrote:
Alright, so after looking into my ssl connection between the VCL 
server and the ESXi server, I've determined that the two did not have 
the ability to see one another.  My VCL server is a VM on the ESXi 
server and they are on separate vSwitches.  My question is how do I 
get the VCL VM to talk to the ESXi Management network.  Is it as 
simple as creating a VM port group on the same physical adapter as the 
VM management network? Or do I need to create a new network group and 
only add those two machines to it?  Unfortunately I am not very well 
versed in ESX usage and my need some gentle hand holding.


On 2/4/2011 8:04 AM, Aaron Peeler wrote:

Jay,

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


First of all welcome to the community. :)

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


Again welcome and I apologize for the initial short response.

Aaron Peeler


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

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

Aaron


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


VCL::image object could not be created and initialized

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

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

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

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

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

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

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

|22852|8:8|image| ( 0) utils.pm, notify (line: 630)
|22852|8:8|image| (-1) VMware.pm, initialize (line: 254)
|22852|8:8|image| (-2) Module.pm, new (line: 159)
|22852|8:8|image| (-3) State.pm, initialize (line: 127)
|22852|8:8|image| (-4) Module.pm, new (line: 159)
|22852|8:8|image| (-5) vcld, 

Re: base image creation

2011-02-04 Thread Aaron Peeler

Jay,

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


First of all welcome to the community. :)

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


Again welcome and I apologize for the initial short response.

Aaron Peeler


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

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

Aaron


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


VCL::image object could not be created and initialized

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

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

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

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

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

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

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

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

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


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






--

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