Re: another problem for image reservation

2011-11-02 Thread Huang,Lei
Aaron,

 Thanks. The question is why the old module using Vmware Server GSX works.
If I switch back to Vmware server GSX, windows image works fine.In this
case, ssh can log into the image. Do I need to switch back?

Thanks,
Lei

On 11/2/11 1:37 PM, Aaron Peeler fapee...@ncsu.edu wrote:

Hi Lei,

The issue in the log output is related to ssh is not responding.

Double check that you can log into vmguest-1 or vmguest-3 via ssh (you
have a couple of different reservations in your log output).

Things to check are to;
make sure your vmguest-X machines are getting the correct dhcp IP address.
make sure cygwin sshd service is started.

Aaron



On Wed, Nov 2, 2011 at 2:22 PM, Huang,Lei lhu...@pvamu.edu wrote:
 Hi All,

  I have encountered another problem after upgraded to 2.2.1. Per Aaron's
 suggestion, I changed my Vmguests provisioning engine to Vmware from
 Vmware Server GSX. However, my Windows XP image failed to reserve after
 the change. From the log, I found that it looks for
 'C:/Windows/System32/qwinsta.exe' and 'C:/Windows/System32/sc.exe config
 sshd start= auto'. However, both them are not found on my XP image. Do I
 need to update my XP image? The image works fine on Vmware Server GSX
 provision engine. The following is the log.

 Thanks,
 Lei

 ==

 |15314|780:780|new|  WARNING 
 |15314|780:780|new| 2011-11-02
 12:58:21|15314|780:780|new|Windows.pm:is_64_bit(8095)|unable to find
 registry value line in reg.exe output:
 |15314|780:780|new| bash: reg.exe: command not found
 |15314|780:780|new| ( 0) Windows.pm, is_64_bit (line: 8095)
 |15314|780:780|new| (-1) Windows.pm, get_system32_path (line: 8146)
 |15314|780:780|new| (-2) Windows.pm, user_logged_in (line: 8342)
 |15314|780:780|new| (-3) Windows.pm, wait_for_logoff (line: 8440)
 |15314|780:780|new| (-4) Windows.pm, post_load (line: 602)
 |15314|780:780|new| (-5) VMware.pm, load (line: 415)

 2011-11-02
 12:58:21|15314|780:780|new|Windows.pm:get_system32_path(8152)|32-bit
 Windows OS installed on vmguest-3, using C:/Windows/System32
 2011-11-02
 12:58:21|15314|780:780|new|Windows.pm:user_logged_in(8356)|checking if
 root is logged in to vmguest-3
 2011-11-02
 12:58:21|15314|780:780|new|utils.pm:run_ssh_command(5380)|executing SSH
 command on vmguest-3:
 |15314|780:780|new| /usr/bin/ssh -i /etc/vcl/vcl.key  -o
 StrictHostKeyChecking=no -l root -p 22 -x vmguest-3
 'C:/Windows/System32/qwinsta.exe' 21
 2011-11-02
 12:58:25|15241|779:779|new|Module.pm:code_loop_timeout(759)|attempt 5:
 waiting for vmguest-1 to respond to SSH
 2011-11-02
 12:58:25|15241|779:779|new|OS.pm:is_ssh_responding(386)|vmguest-1 is NOT
 responding to SSH, ports 22 or 24 are both closed
 2011-11-02
 12:58:25|15241|779:779|new|Module.pm:code_loop_timeout(755)|attempt 5:
 code returned false, seconds elapsed/remaining: 34/866, sleeping for 8
 seconds
 2011-11-02 12:58:26|12831|vcld:main(167)|lastcheckin time updated for
 management node 1: 2011-11-02 12:58:26
 2011-11-02

12:58:26|15410|778:778|reserved|DataStructure.pm:get_reservation_remote_i
p(
 1093)|reservation remote IP is not defined
 2011-11-02

12:58:27|15314|780:780|new|utils.pm:run_ssh_command(5464)|run_ssh_command
 output:
 |15314|780:780|new| bash: C:/Windows/System32/qwinsta.exe: No such file
or
 directory
 2011-11-02 12:58:27|15314|780:780|new|utils.pm:run_ssh_command(5474)|SSH
 command executed on vmguest-3, command:
 |15314|780:780|new| /usr/bin/ssh -i /etc/vcl/vcl.key  -o
 StrictHostKeyChecking=no -l root -p 22 -x vmguest-3
 'C:/Windows/System32/qwinsta.exe' 21
 |15314|780:780|new| returning (127, bash: C:/Windows/System32/qwin...)

 |15314|780:780|new|  WARNING 
 |15314|780:780|new| 2011-11-02
 12:58:27|15314|780:780|new|Windows.pm:user_logged_in(8361)|failed to run
 qwinsta.exe on vmguest-3, exit status: 127, output:
 |15314|780:780|new| bash: C:/Windows/System32/qwinsta.exe: No such file
or
 directory
 |15314|780:780|new| ( 0) Windows.pm, user_logged_in (line: 8361)
 |15314|780:780|new| (-1) Windows.pm, wait_for_logoff (line: 8440)
 |15314|780:780|new| (-2) Windows.pm, post_load (line: 602)
 |15314|780:780|new| (-3) VMware.pm, load (line: 415)
 |15314|780:780|new| (-4) new.pm, reload_image (line: 618)
 |15314|780:780|new| (-5) new.pm, process (line: 248)

 2011-11-02
 12:58:27|15314|780:780|new|Windows.pm:wait_for_logoff(8441)|root is NOT
 logged in to vmguest-3, returning 1
 2011-11-02
 12:58:27|15314|780:780|new|utils.pm:run_ssh_command(5380)|executing SSH
 command on vmguest-3:
 |15314|780:780|new| /usr/bin/ssh -i /etc/vcl/vcl.key  -o
 StrictHostKeyChecking=no -l root -p 22 -x vmguest-3
 'C:/Windows/System32/qwinsta.exe' 21
 2011-11-02 12:58:31|12831|vcld:main(167)|lastcheckin time updated for
 management node 1: 2011-11-02 12:58:31
 2011-11-02

12:58:31|15410|778:778|reserved|DataStructure.pm:get_reservation_remote_i
p(
 1093)|reservation remote IP is not defined
 2011-11-02

12:58:32|15314|780:780|new|utils.pm:run_ssh_command(5464)|run_ssh_command
 output:
 |15314|780

Re: Reservation/reload errors

2011-11-01 Thread Huang,Lei
Thanks everyone for your help. I changed my timezone to CDT, and the
timezone in .ht-inc/conf.php as America/Chicago. It works now! I am not
sure why it worked before without the time synced.

Thanks,
Lei Huang



On 11/1/11 7:28 AM, Aaron Peeler aaron_pee...@ncsu.edu wrote:

Lei,

A couple of more things to check.

You mentioned  No functional management node.

Make sure vcld is running on your management node.

Make sure it is checking in.
Management Node - Edit Management node info. You should see a time
stamp of the last checkin.
If the management node, web server, and database are different hosts,
make sure the time is in sync.

Aaron



On Mon, Oct 31, 2011 at 6:00 PM,  jjzam...@itesm.mx wrote:
 If you make a new group of computers, you have to go to management node
menu and maping and check the vmcomputers group

 I hope this tip will help you


 Juan José Zamanillo

 -Original Message-
 From: Huang,Lei lhu...@pvamu.edu
 Date: Mon, 31 Oct 2011 16:45:21
 To: vcl-user@incubator.apache.orgvcl-user@incubator.apache.org
 Reply-To: vcl-user@incubator.apache.org
 Subject: RE: Reservation/reload errors

 Hi Alex,

  Thanks for your quick answers. I checked the image options and
compared with vmguests, everything look fine to me. The system worked
just fine before, and I just found the problem today. None of images
works now. Even when I change the status of a vmguest to maintenance, it
fails:

 The following computers currently have reservations on them but no
functional management node was found for them. Nothing will be done with
them at this time: vmguest-1


  However, there is no reservations at all on the system. Any other
suggestions?

 Thanks,
 Lei


 
 From: Alexander Patterson [alexander.patter...@csueastbay.edu]
 Sent: Monday, October 31, 2011 4:30 PM
 To: vcl-user@incubator.apache.org
 Subject: Re: Reservation/reload errors

 Hello Huang Lei,

 Go to Manage Images

 Then Click on Edit of whatever image you are having this issue with

 Click on advanced Options
 Make sure that Available for checkout is listed and the Machines RAM
 CPU speed match the VM's numbers that you have in your pool


 For example
 2400mhz
 1.5ghz of ram
 100mbps network card
 1 core

 I have machines with the same spec that can be loaded on this.

 Also check the Maximum concurrent users is not capped?

 Selection not currently available
 Means there are no computers with whatever spec ready to be loaded on
 so it's not available.

 You should have a vmguest-5 in your manage Computer

 Click on Manage Computer, then Edit Computer Information
 Click on vmguest-5 click on EDIT

 Make sure your information is correct and will work with the same
 spec's your image is.

 Hope this helps
 -Alex


 When you see
 On Mon, Oct 31, 2011 at 2:19 PM, Huang,Lei lhu...@pvamu.edu wrote:
 Dear all,

  Our VCL stops working when I try to reserve any images. It always
says that Selection not currently available all images.

   I see that all computers and vmguests are available, and I can log
into these nodes too. When I try to reload an image for a vmguest,
there is the following error message:

 No functional management node was found for the following computers.
They could not be reloaded at this time:
 vmguest-5

  I don't see anything special in the log file either. I wonder if
anyone has seen this problem before, and how to reset the system.

 Thanks,
 Lei Huang



 --
 Thanks,
 Alex  Patterson
 User Support Services
 Operating System Analyst
 California State University, East Bay



-- 
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: Reservation/reload errors

2011-10-31 Thread Huang,Lei
Hi Alex,

  Thanks for your quick answers. I checked the image options and compared with 
vmguests, everything look fine to me. The system worked just fine before, and I 
just found the problem today. None of images works now. Even when I change the 
status of a vmguest to maintenance, it fails: 

The following computers currently have reservations on them but no functional 
management node was found for them. Nothing will be done with them at this 
time: vmguest-1


  However, there is no reservations at all on the system. Any other suggestions?

Thanks,
Lei



From: Alexander Patterson [alexander.patter...@csueastbay.edu]
Sent: Monday, October 31, 2011 4:30 PM
To: vcl-user@incubator.apache.org
Subject: Re: Reservation/reload errors

Hello Huang Lei,

Go to Manage Images

Then Click on Edit of whatever image you are having this issue with

Click on advanced Options
Make sure that Available for checkout is listed and the Machines RAM
CPU speed match the VM's numbers that you have in your pool


For example
2400mhz
1.5ghz of ram
100mbps network card
1 core

I have machines with the same spec that can be loaded on this.

Also check the Maximum concurrent users is not capped?

Selection not currently available
Means there are no computers with whatever spec ready to be loaded on
so it's not available.

You should have a vmguest-5 in your manage Computer

Click on Manage Computer, then Edit Computer Information
Click on vmguest-5 click on EDIT

Make sure your information is correct and will work with the same
spec's your image is.

Hope this helps
-Alex


When you see
On Mon, Oct 31, 2011 at 2:19 PM, Huang,Lei lhu...@pvamu.edu wrote:
 Dear all,

  Our VCL stops working when I try to reserve any images. It always says that 
 Selection not currently available all images.

   I see that all computers and vmguests are available, and I can log into 
 these nodes too. When I try to reload an image for a vmguest, there is the 
 following error message:

 No functional management node was found for the following computers. They 
 could not be reloaded at this time:
 vmguest-5

  I don't see anything special in the log file either. I wonder if anyone has 
 seen this problem before, and how to reset the system.

 Thanks,
 Lei Huang



--
Thanks,
Alex  Patterson
User Support Services
Operating System Analyst
California State University, East Bay

RE: questions regarding creating base images

2011-10-07 Thread Huang,Lei
:607|image|DataStructure.pm:retrieve_user_data(1415)|data has 
been retrieved for user: admin (id: 1)
2011-10-07 15:02:11|624|607:607|image|utils.pm:mail(1268)|SUCCESS -- Sending 
mail To: 0, PROBLEM -- 
607:607|image|image.pm|vmguest-3CSB303|vmwarelinux-MyCentOS357-v0|admin
|624|607:607|image|  CRITICAL 
|624|607:607|image| 2011-10-07 
15:02:10|624|607:607|image|image.pm:reservation_failed(385)|vmwarelinux-MyCentOS357-v0
 image creation failed
|624|607:607|image| ( 0) image.pm, reservation_failed (line: 385)
|624|607:607|image| (-1) image.pm, process (line: 167)
|624|607:607|image| (-2) vcld, make_new_child (line: 568)
|624|607:607|image| (-3) vcld, main (line: 346)
2011-10-07 15:02:11|624|607:607|image|utils.pm:mail(1268)|SUCCESS -- Sending 
mail To: root@localhost, VCL -- NOTICE DELAY Image Creation MyCentOS3



From: Aaron Peeler [aaron_pee...@ncsu.edu]
Sent: Thursday, October 06, 2011 8:33 AM
To: Huang,Lei
Cc: vcl-user@incubator.apache.org
Subject: Re: questions regarding creating base images

No you don't need to upgrade 2.0. IMO, 2.x is more flakey than 1.x and
will cause you other issues.

If you were to upgrade, I'd recommend to use ESXi.


First, just to make sure, are you using the VCL 2.2.1 release?

If so, you should be able to fix this problem by changing the computer
provisioning module to 'VMware' for each of your vmguest computers.

Aaron


On Wed, Oct 5, 2011 at 4:36 PM, Huang,Lei lhu...@pvamu.edu wrote:
 Aaron,

  My current setting is using Vmware Server GSX. Do I need to upgrade my
 VM server from 1.0 to 2.0?

 Thanks,
 Lei

 On 10/5/11 1:33 PM, Aaron Peeler aaron_pee...@ncsu.edu wrote:

It looks like your using an older vmware provisioning module called
vmware.pm.

It should be using the newer one under
/../vcl/lib/VCL/Module/Provisioning/VMware/VMware.pm

Please check the vm compute nodes in your vcl interface for vmguest-1
and vmguest-2.

Manage computers - Select all computers
Select Edit Computer Information
Make sure Provisioning Engine is selected

Hit submit

Make sure it says VMware

Can you also send the sql output of the below query from your database?
This is going to help us make sure the VMware provisioning name listed
in the VCL interface is using the correct perl module.

On your management node at the mysql command line or via phpmyadmin,
run this query on the vcl database.

SELECT computer.hostname,provisioning.*,module.perlpackage FROM
computer,provisioning, module WHERE computer.hostname like '%vmguest%'
AND provisioning.id = computer.provisioningid AND module.id =
provisioning.id

Thanks,
Aaron

On Wed, Oct 5, 2011 at 1:54 PM, Huang,Lei lhu...@pvamu.edu wrote:
 Aaron,
Here is some log  information. Please let me know if you need any
more.
 Thanks,
 Lei
 ===
 2011-10-05
 10:24:38|26273|565:565|image|utils.pm:run_scp_command(5636)|copied file
via
 SCP: 'vmguest-1:/etc/init.d/sshd' -- '/tmp/565.ext_sshd'
 2011-10-05

10:24:38|26273|565:565|image|Linux.pm:generate_ext_sshd_init(2359)|copied
 sshd init script from vmguest-1 for local processing
 2011-10-05
 10:24:38|26273|565:565|image|Linux.pm:generate_ext_sshd_init(2369)|read
file
 /tmp/565.ext_sshd into array
 2011-10-05
 10:24:38|26273|565:565|image|utils.pm:run_scp_command(5600)|attempting
to
 copy file via SCP: '/tmp/565.ext_sshd' --
'vmguest-1:/etc/init.d/ext_sshd'
 2011-10-05
 10:24:38|26273|565:565|image|utils.pm:run_scp_command(5636)|copied file
via
 SCP: '/tmp/565.ext_sshd' -- 'vmguest-1:/etc/init.d/ext_sshd'
 2011-10-05

10:24:38|26273|565:565|image|Linux.pm:generate_ext_sshd_init(2425)|copied
 /tmp/565.ext_sshd to vmguest-1:/etc/init.d/ext_sshd
 2011-10-05
 10:24:38|26273|565:565|image|utils.pm:run_ssh_command(5380)|executing
SSH
 command on vmguest-1:
 |26273|565:565|image| /usr/bin/ssh -i /etc/vcl/vcl.key -o
 StrictHostKeyChecking=no -l root -p 22 -x vmguest-1 'chmod +rx
 /etc/init.d/ext_sshd' 21
 2011-10-05

10:24:38|26273|565:565|image|Linux.pm:generate_ext_sshd_init(2426)|settin
g
 vmguest-1:/etc/init.d/ext_sshd executable
 2011-10-05
10:24:38|26273|565:565|image|Linux.pm:pre_capture(179)|shutting
 down node for Linux imaging sequence
 2011-10-05
 10:24:38|26273|565:565|image|utils.pm:run_ssh_command(5380)|executing
SSH
 command on vmguest-1:
 |26273|565:565|image| /usr/bin/ssh -i /etc/vcl/vcl.key -o
 StrictHostKeyChecking=no -l root -p 22 -x vmguest-1 '/sbin/shutdown -h
now'
 21
 2011-10-05

10:24:39|26273|565:565|image|utils.pm:run_ssh_command(5464)|run_ssh_comma
nd
 output:
 2011-10-05
10:24:39|26273|565:565|image|utils.pm:run_ssh_command(5478)|SSH
 command executed on vmguest-1, returning (0, )
 2011-10-05
 10:24:39|26273|565:565|image|Module.pm:code_loop_timeout(742)|waiting
for
 vmguest-1 to power off, maximum of 120 seconds
 2011-10-05
 10:24:39|26273|565:565|image|Module.pm:code_loop_timeout(759)|attempt 1:
 waiting for vmguest-1 to power off
 2011-10-05 10:24:39|26273|565:565|image|vmware.pm:get_vm_paths(2485)|vm
 locations:
 |26273

Re: questions regarding creating base images

2011-10-05 Thread Huang,Lei
Aaron,

  Thanks for your answer. How can I load my VM using vmguest-1? What
command should I use? Do I need to modify the .vmx file to add the static
IP address for my new VM?

Thanks,
Lei

On 10/5/11 11:54 AM, Aaron Peeler fapee...@ncsu.edu wrote:

Hello Lei,

When prompted for the computer name/IP, you will want to enter
vmguest-1. The vm needs to be running and you need to be able to login
via ssh identity keys from your management node.

Aaron


On Tue, Oct 4, 2011 at 11:26 PM, Huang,Lei lhu...@pvamu.edu wrote:
 Hi everyone,
I am following the instruction of creating a base linux image
 (https://cwiki.apache.org/VCL/create-a-linux-base-image.html) , but I am
 very confused about the document, and would appreciate any help. I have
the
 following settings:
   1. Blade #1: management code
   2. Blade #2: a compute node (name: CSB2, VM host computer running
CentOS
 5.5 and VMware server 1.x. It has been added into the VCL database)
   3. Two guest VMs (vmguest-1, vmguest-2) assigned to the VM host
(CSB2)
 using the vcl website.
   I have created a new virtual machine using VMware console in CSB2.
Now I
 would like  to capture it. After setting up the  network of the VM, I
run
 vcld -setup on the management node. When it asks for the computer
name/IP,
 and here is my confusion. If I enter CSB2, then it changes the network
 configuration of CSB2 and then shut down the node, which made the entire
 process failed. If I enter vmguest-1, it couldn't finish the capture
either
 since vmguest-1 is not running. What's wrong in my process? I have read
the
 document several times, but cannot figure it out. Can anyone please
help?
 Thanks,
 Lei Huang



-- 
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: questions regarding creating base images

2011-10-05 Thread Huang,Lei
Aaron, 

  I changed .vmx file to start it using vmware console. After running vcld
-setup, it can now log into the VM and change the network settings. After
it, I see it shuts down the VM and waits for 120 seconds. However, after
it, it cannot bring up the new VM since it is a new image name created. It
is not registered on my CSB2 vmware yet. I cannot find the new image files
in my vmware repository and the runningvms directory either. Can you see
what the problem is?

Thanks,
Lei

On 10/5/11 12:04 PM, Aaron Peeler aaron_pee...@ncsu.edu wrote:

The easiest way is to use the vmware console.

Log into the vmware host CSB2 and run the command
vmware 

You can either modify the .vmx file or edit the settings via the vmware
console.

Aaron

On Wed, Oct 5, 2011 at 1:01 PM, Huang,Lei lhu...@pvamu.edu wrote:
 Aaron,

  Thanks for your answer. How can I load my VM using vmguest-1? What
 command should I use? Do I need to modify the .vmx file to add the
static
 IP address for my new VM?

 Thanks,
 Lei

 On 10/5/11 11:54 AM, Aaron Peeler fapee...@ncsu.edu wrote:

Hello Lei,

When prompted for the computer name/IP, you will want to enter
vmguest-1. The vm needs to be running and you need to be able to login
via ssh identity keys from your management node.

Aaron


On Tue, Oct 4, 2011 at 11:26 PM, Huang,Lei lhu...@pvamu.edu wrote:
 Hi everyone,
I am following the instruction of creating a base linux image
 (https://cwiki.apache.org/VCL/create-a-linux-base-image.html) , but I
am
 very confused about the document, and would appreciate any help. I
have
the
 following settings:
   1. Blade #1: management code
   2. Blade #2: a compute node (name: CSB2, VM host computer running
CentOS
 5.5 and VMware server 1.x. It has been added into the VCL database)
   3. Two guest VMs (vmguest-1, vmguest-2) assigned to the VM host
(CSB2)
 using the vcl website.
   I have created a new virtual machine using VMware console in CSB2.
Now I
 would like  to capture it. After setting up the  network of the VM, I
run
 vcld -setup on the management node. When it asks for the computer
name/IP,
 and here is my confusion. If I enter CSB2, then it changes the network
 configuration of CSB2 and then shut down the node, which made the
entire
 process failed. If I enter vmguest-1, it couldn't finish the capture
either
 since vmguest-1 is not running. What's wrong in my process? I have
read
the
 document several times, but cannot figure it out. Can anyone please
help?
 Thanks,
 Lei Huang



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





-- 
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: questions regarding creating base images

2011-10-05 Thread Huang,Lei
Aaron, 

  My current setting is using Vmware Server GSX. Do I need to upgrade my
VM server from 1.0 to 2.0?

Thanks,
Lei

On 10/5/11 1:33 PM, Aaron Peeler aaron_pee...@ncsu.edu wrote:

It looks like your using an older vmware provisioning module called
vmware.pm.

It should be using the newer one under
/../vcl/lib/VCL/Module/Provisioning/VMware/VMware.pm

Please check the vm compute nodes in your vcl interface for vmguest-1
and vmguest-2.

Manage computers - Select all computers
Select Edit Computer Information
Make sure Provisioning Engine is selected

Hit submit

Make sure it says VMware

Can you also send the sql output of the below query from your database?
This is going to help us make sure the VMware provisioning name listed
in the VCL interface is using the correct perl module.

On your management node at the mysql command line or via phpmyadmin,
run this query on the vcl database.

SELECT computer.hostname,provisioning.*,module.perlpackage FROM
computer,provisioning, module WHERE computer.hostname like '%vmguest%'
AND provisioning.id = computer.provisioningid AND module.id =
provisioning.id

Thanks,
Aaron

On Wed, Oct 5, 2011 at 1:54 PM, Huang,Lei lhu...@pvamu.edu wrote:
 Aaron,
Here is some log  information. Please let me know if you need any
more.
 Thanks,
 Lei
 ===
 2011-10-05
 10:24:38|26273|565:565|image|utils.pm:run_scp_command(5636)|copied file
via
 SCP: 'vmguest-1:/etc/init.d/sshd' -- '/tmp/565.ext_sshd'
 2011-10-05
 
10:24:38|26273|565:565|image|Linux.pm:generate_ext_sshd_init(2359)|copied
 sshd init script from vmguest-1 for local processing
 2011-10-05
 10:24:38|26273|565:565|image|Linux.pm:generate_ext_sshd_init(2369)|read
file
 /tmp/565.ext_sshd into array
 2011-10-05
 10:24:38|26273|565:565|image|utils.pm:run_scp_command(5600)|attempting
to
 copy file via SCP: '/tmp/565.ext_sshd' --
'vmguest-1:/etc/init.d/ext_sshd'
 2011-10-05
 10:24:38|26273|565:565|image|utils.pm:run_scp_command(5636)|copied file
via
 SCP: '/tmp/565.ext_sshd' -- 'vmguest-1:/etc/init.d/ext_sshd'
 2011-10-05
 
10:24:38|26273|565:565|image|Linux.pm:generate_ext_sshd_init(2425)|copied
 /tmp/565.ext_sshd to vmguest-1:/etc/init.d/ext_sshd
 2011-10-05
 10:24:38|26273|565:565|image|utils.pm:run_ssh_command(5380)|executing
SSH
 command on vmguest-1:
 |26273|565:565|image| /usr/bin/ssh -i /etc/vcl/vcl.key -o
 StrictHostKeyChecking=no -l root -p 22 -x vmguest-1 'chmod +rx
 /etc/init.d/ext_sshd' 21
 2011-10-05
 
10:24:38|26273|565:565|image|Linux.pm:generate_ext_sshd_init(2426)|settin
g
 vmguest-1:/etc/init.d/ext_sshd executable
 2011-10-05 
10:24:38|26273|565:565|image|Linux.pm:pre_capture(179)|shutting
 down node for Linux imaging sequence
 2011-10-05
 10:24:38|26273|565:565|image|utils.pm:run_ssh_command(5380)|executing
SSH
 command on vmguest-1:
 |26273|565:565|image| /usr/bin/ssh -i /etc/vcl/vcl.key -o
 StrictHostKeyChecking=no -l root -p 22 -x vmguest-1 '/sbin/shutdown -h
now'
 21
 2011-10-05
 
10:24:39|26273|565:565|image|utils.pm:run_ssh_command(5464)|run_ssh_comma
nd
 output:
 2011-10-05 
10:24:39|26273|565:565|image|utils.pm:run_ssh_command(5478)|SSH
 command executed on vmguest-1, returning (0, )
 2011-10-05
 10:24:39|26273|565:565|image|Module.pm:code_loop_timeout(742)|waiting
for
 vmguest-1 to power off, maximum of 120 seconds
 2011-10-05
 10:24:39|26273|565:565|image|Module.pm:code_loop_timeout(759)|attempt 1:
 waiting for vmguest-1 to power off
 2011-10-05 10:24:39|26273|565:565|image|vmware.pm:get_vm_paths(2485)|vm
 locations:
 |26273|565:565|image| vmdk name: vmwarelinux-CentOS55Test46-v0
 |26273|565:565|image| vmx path:
 
/install/vmware_files/runningvms/vmwarelinux-CentOS55Test46-v0vmguest-1/v
mwarelinux-CentOS55Test46-v0vmguest-1.vmx
 |26273|565:565|image| vm directory:
vmwarelinux-CentOS55Test46-v0vmguest-1
 |26273|565:565|image| base vm directory: vmwarelinux-CentOS55Test46-v0
 2011-10-05
 10:24:39|26273|565:565|image|vmware.pm:power_status(2407)|attempting to
 execute vmware-cmd getstate
 2011-10-05
 10:24:39|26273|565:565|image|utils.pm:run_ssh_command(5380)|executing
SSH
 command on CSB302:
 |26273|565:565|image| /usr/bin/ssh -i /etc/vcl/vcl.key -o
 StrictHostKeyChecking=no -l root -p 22 -x CSB302 'vmware-cmd
 
/install/vmware_files/runningvms/vmwarelinux-CentOS55Test46-v0vmguest-1/v
mwarelinux-CentOS55Test46-v0vmguest-1.vmx
 getstate' 21
 |26273|565:565|image|  WARNING 
 |26273|565:565|image| 2011-10-05
 10:24:39|26273|565:565|image|vmware.pm:power_status(2415)|failed to run
 vmware-cmd getstate for vmwarelinux-CentOS55Test46-v0vmguest-1 vm, exit
 status: 11, output:
 |26273|565:565|image| /usr/bin/vmware-cmd: Could not connect to VM
 
/install/vmware_files/runningvms/vmwarelinux-CentOS55Test46-v0vmguest-1/v
mwarelinux-CentOS55Test46-v0vmguest-1.vmx
   (VMControl error -11: No such virtual machine: The config file
 
/install/vmware_files/runningvms/vmwarelinux-CentOS55Test46-v0vmguest-1/v
mwarelinux-CentOS55Test46-v0vmguest-1.vmx
 is not registered. Please register the config

questions regarding creating base images

2011-10-04 Thread Huang,Lei
Hi everyone,

   I am following the instruction of creating a base linux image 
(https://cwiki.apache.org/VCL/create-a-linux-base-image.html) , but I am very 
confused about the document, and would appreciate any help. I have the 
following settings:

  1. Blade #1: management code
  2. Blade #2: a compute node (name: CSB2, VM host computer running CentOS 5.5 
and VMware server 1.x. It has been added into the VCL database)
  3. Two guest VMs (vmguest-1, vmguest-2) assigned to the VM host  (CSB2) using 
the vcl website.

  I have created a new virtual machine using VMware console in CSB2. Now I 
would like  to capture it. After setting up the  network of the VM, I run vcld 
-setup on the management node. When it asks for the computer name/IP, and here 
is my confusion. If I enter CSB2, then it changes the network configuration of 
CSB2 and then shut down the node, which made the entire process failed. If I 
enter vmguest-1, it couldn't finish the capture either since vmguest-1 is not 
running. What's wrong in my process? I have read the document several times, 
but cannot figure it out. Can anyone please help?

Thanks,
Lei Huang


RE: How to configure a new computing node?

2011-09-23 Thread Huang,Lei
Sorry for asking again. I suspect that the problem may be related to network 
setting. I don't understand why ssd on VM was not active. Is it possible that 
the IP address of VM is not correct? Any suggestions/hints would be very much 
appreciated!

Thanks,
Lei

From: Huang,Lei [lhu...@pvamu.edu]
Sent: Thursday, September 22, 2011 10:36 AM
To: vcl-user@incubator.apache.org; aaron_pee...@ncsu.edu
Subject: Re: How to configure a new computing node?

Aaron,

  Thank you for your reply. I copied some log information as follows. It
looks like the VM was started, but sshd on the VM was not active. The
script looped and waited for half an hour and failed at the end. The image
works fine on existing blades. I wonder if there is some configuration of
VM server I didn't set correctly for the new node.

Thanks,
Lei

===

2011-09-21
23:31:27|14402|518:512|new|utils.pm:run_ssh_command(6180)|executing SSH
command on CSB308:
|14402|518:512|new| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
CSB308 'vmware-cmd
/install/vmware_files/runningvms/CentOS5_5-base10-v0vmguest-10/CentOS5_5-ba
se10-v0vmguest-10.vmx start' 21
2011-09-21 23:31:31|3929|vcld:main(165)|lastcheckin time updated for
management node 1: 2011-09-21 23:31:31
2011-09-21 23:31:36|3929|vcld:main(165)|lastcheckin time updated for
management node 1: 2011-09-21 23:31:36
2011-09-21
23:31:40|14122|517:511|inuse|utils.pm:check_connection(1765)|checking for
connection by admin on vmguest-2, attempt 27
2011-09-21
23:31:40|14122|517:511|inuse|utils.pm:run_ssh_command(6180)|executing SSH
command on vmguest-2:
|14122|517:511|inuse| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
vmguest-2 'netstat -an' 21
2011-09-21
23:31:40|14122|517:511|inuse|utils.pm:run_ssh_command(6180)|executing SSH
command on vmguest-2:
|14122|517:511|inuse| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
vmguest-2 'who' 21
2011-09-21
23:31:41|14122|517:511|inuse|utils.pm:run_ssh_command(6262)|run_ssh_command
 output:
|14122|517:511|inuse| none
2011-09-21 23:31:41|14122|517:511|inuse|utils.pm:run_ssh_command(6276)|SSH
command executed on vmguest-2, returning (0, none)
2011-09-21 23:31:41|3929|vcld:main(165)|lastcheckin time updated for
management node 1: 2011-09-21 23:31:41
2011-09-21 23:31:46|3929|vcld:main(165)|lastcheckin time updated for
management node 1: 2011-09-21 23:31:46
2011-09-21
23:31:48|14402|518:512|new|utils.pm:run_ssh_command(6262)|run_ssh_command
output:
|14402|518:512|new| start() = 1
2011-09-21 23:31:48|14402|518:512|new|utils.pm:run_ssh_command(6276)|SSH
command executed on CSB308, returning (0, start() = 1)
2011-09-21 23:31:48|14402|518:512|new|vmware.pm:load(808)|started
/install/vmware_files/runningvms/CentOS5_5-base10-v0vmguest-10/CentOS5_5-ba
se10-v0vmguest-10.vmx on CSB308
2011-09-21
23:31:48|14402|518:512|new|utils.pm:insertloadlog(4710)|inserted
computer=17, startvm, started vm on CSB308

|14402|518:512|new| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
CSB308 'vmware-cmd
/install/vmware_files/runningvms/CentOS5_5-base10-v0vmguest-10/CentOS5_5-ba
se10-v0vmguest-10.vmx getstate' 21
2011-09-21 23:32:11|3929|vcld:main(165)|lastcheckin time updated for
management node 1: 2011-09-21 23:32:11
2011-09-21 23:32:16|3929|vcld:main(165)|lastcheckin time updated for
management node 1: 2011-09-21 23:32:16
2011-09-21
23:32:21|14122|517:511|inuse|utils.pm:check_connection(1765)|checking for
connection by admin on vmguest-2, attempt 29
2011-09-21
23:32:21|14122|517:511|inuse|utils.pm:run_ssh_command(6180)|executing SSH
command on vmguest-2:
|14122|517:511|inuse| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
vmguest-2 'netstat -an' 21
2011-09-21 23:32:21|3929|vcld:main(165)|lastcheckin time updated for
management node 1: 2011-09-21 23:32:21
2011-09-21
23:32:21|14122|517:511|inuse|utils.pm:run_ssh_command(6180)|executing SSH
command on vmguest-2:
|14122|517:511|inuse| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
vmguest-2 'who' 21
2011-09-21
23:32:22|14122|517:511|inuse|utils.pm:run_ssh_command(6262)|run_ssh_command
 output:
|14122|517:511|inuse| none
2011-09-21 23:32:22|14122|517:511|inuse|utils.pm:run_ssh_command(6276)|SSH
command executed on vmguest-2, returning (0, none)
2011-09-21 23:32:26|3929|vcld:main(165)|lastcheckin time updated for
management node 1: 2011-09-21 23:32:26
2011-09-21
23:32:28|14402|518:512|new|utils.pm:run_ssh_command(6262)|run_ssh_command
output:
|14402|518:512|new| getstate() = on
2011-09-21 23:32:28|14402|518:512|new|utils.pm:run_ssh_command(6276)|SSH
command executed on CSB308, returning (0, getstate() = on)
2011-09-21 23:32:28|14402|518:512|new|vmware.pm:load(831)|checking state
of vm vmguest-10
2011-09-21
23:32:28|14402|518:512|new|utils.pm:insertloadlog(4710)|inserted
computer=17, vmstage1, node has been turned on
2011-09-21 23:32:28|14402|518:512|new|vmware.pm:load(838)|stage1 completed
vm vmguest-10 has been turned on
2011-09-21 23:32:28|14402|518:512|new|vmware.pm:load(839

RE: How to configure a new computing node?

2011-09-23 Thread Huang,Lei
Hi Alex,

  Thanks for your suggestions! For the image, it works fine when it lauches on 
virtual hosts on existing nodes. The problem happens when it runs on a new 
node. I assume the sshd works fine on the image itself.

   I have set up the ssh key to allow the management node to log in the node 
successfully. After I log into the new node running VMware, I can see that my 
network eth0 and eth1 have private and public ip address. However, I found that 
I cann't ping my gateway from the node. Are there any settings I need to do?

Thanks,
Lei


From: Alexander Patterson [alexander.patter...@csueastbay.edu]
Sent: Friday, September 23, 2011 11:08 AM
To: vcl-user@incubator.apache.org
Cc: aaron_pee...@ncsu.edu
Subject: Re: How to configure a new computing node?

Hello,

Did you check su -
Log in as root for the image you are working on
Password:
Turn on sshd by typing /etc/init.d/sshd start
Got to the /etc/init.d/ then type chkconfig sshd on

Have you made sure that you can ssh -i /etc/vcl/vcl.key hostname or
IP address ?

I had this issue with ssh not kicking off before as well and it was a
issue with the image itself.

Another helpfull command to check would be ssh -vv (IP address)

Have you logged into your box running VMware to see if you are getting
a public and private ip address?

On Fri, Sep 23, 2011 at 9:00 AM, Huang,Lei lhu...@pvamu.edu wrote:
 Sorry for asking again. I suspect that the problem may be related to network 
 setting. I don't understand why ssd on VM was not active. Is it possible that 
 the IP address of VM is not correct? Any suggestions/hints would be very much 
 appreciated!

 Thanks,
 Lei
 
 From: Huang,Lei [lhu...@pvamu.edu]
 Sent: Thursday, September 22, 2011 10:36 AM
 To: vcl-user@incubator.apache.org; aaron_pee...@ncsu.edu
 Subject: Re: How to configure a new computing node?

 Aaron,

  Thank you for your reply. I copied some log information as follows. It
 looks like the VM was started, but sshd on the VM was not active. The
 script looped and waited for half an hour and failed at the end. The image
 works fine on existing blades. I wonder if there is some configuration of
 VM server I didn't set correctly for the new node.

 Thanks,
 Lei

 ===

 2011-09-21
 23:31:27|14402|518:512|new|utils.pm:run_ssh_command(6180)|executing SSH
 command on CSB308:
 |14402|518:512|new| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
 CSB308 'vmware-cmd
 /install/vmware_files/runningvms/CentOS5_5-base10-v0vmguest-10/CentOS5_5-ba
 se10-v0vmguest-10.vmx start' 21
 2011-09-21 23:31:31|3929|vcld:main(165)|lastcheckin time updated for
 management node 1: 2011-09-21 23:31:31
 2011-09-21 23:31:36|3929|vcld:main(165)|lastcheckin time updated for
 management node 1: 2011-09-21 23:31:36
 2011-09-21
 23:31:40|14122|517:511|inuse|utils.pm:check_connection(1765)|checking for
 connection by admin on vmguest-2, attempt 27
 2011-09-21
 23:31:40|14122|517:511|inuse|utils.pm:run_ssh_command(6180)|executing SSH
 command on vmguest-2:
 |14122|517:511|inuse| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
 vmguest-2 'netstat -an' 21
 2011-09-21
 23:31:40|14122|517:511|inuse|utils.pm:run_ssh_command(6180)|executing SSH
 command on vmguest-2:
 |14122|517:511|inuse| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
 vmguest-2 'who' 21
 2011-09-21
 23:31:41|14122|517:511|inuse|utils.pm:run_ssh_command(6262)|run_ssh_command
  output:
 |14122|517:511|inuse| none
 2011-09-21 23:31:41|14122|517:511|inuse|utils.pm:run_ssh_command(6276)|SSH
 command executed on vmguest-2, returning (0, none)
 2011-09-21 23:31:41|3929|vcld:main(165)|lastcheckin time updated for
 management node 1: 2011-09-21 23:31:41
 2011-09-21 23:31:46|3929|vcld:main(165)|lastcheckin time updated for
 management node 1: 2011-09-21 23:31:46
 2011-09-21
 23:31:48|14402|518:512|new|utils.pm:run_ssh_command(6262)|run_ssh_command
 output:
 |14402|518:512|new| start() = 1
 2011-09-21 23:31:48|14402|518:512|new|utils.pm:run_ssh_command(6276)|SSH
 command executed on CSB308, returning (0, start() = 1)
 2011-09-21 23:31:48|14402|518:512|new|vmware.pm:load(808)|started
 /install/vmware_files/runningvms/CentOS5_5-base10-v0vmguest-10/CentOS5_5-ba
 se10-v0vmguest-10.vmx on CSB308
 2011-09-21
 23:31:48|14402|518:512|new|utils.pm:insertloadlog(4710)|inserted
 computer=17, startvm, started vm on CSB308

 |14402|518:512|new| /usr/bin/ssh -i /etc/vcl/vcl.key  -l root -p 22 -x
 CSB308 'vmware-cmd
 /install/vmware_files/runningvms/CentOS5_5-base10-v0vmguest-10/CentOS5_5-ba
 se10-v0vmguest-10.vmx getstate' 21
 2011-09-21 23:32:11|3929|vcld:main(165)|lastcheckin time updated for
 management node 1: 2011-09-21 23:32:11
 2011-09-21 23:32:16|3929|vcld:main(165)|lastcheckin time updated for
 management node 1: 2011-09-21 23:32:16
 2011-09-21
 23:32:21|14122|517:511|inuse|utils.pm:check_connection(1765)|checking for
 connection by admin on vmguest-2, attempt 29
 2011-09-21
 23:32