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' 2>&1
2011-10-05 
10:24:38|26273|565:565|image|Linux.pm:generate_ext_sshd_init(2426)|setting 
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' 2>&1
2011-10-05 
10:24:39|26273|565:565|image|utils.pm:run_ssh_command(5464)|run_ssh_command 
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/vmwarelinux-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/vmwarelinux-CentOS55Test46-v0vmguest-1.vmx
 getstate' 2>&1

|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/vmwarelinux-CentOS55Test46-v0vmguest-1.vmx
   (VMControl error -11: No such virtual machine: The config file 
/install/vmware_files/runningvms/vmwarelinux-CentOS55Test46-v0vmguest-1/vmwarelinux-CentOS55Test46-v0vmguest-1.vmx
 is not registered. Please register the config file on the server.  For 
example: vmware-cmd -s register 
"/install/vmware_files/runningvms/vmwarelinux-CentOS55Test46-v0vmguest-1/vmwarelinux-CentOS55Test46-v0vmguest-1.vmx")
|26273|565:565|image| ( 0) vmware.pm, power_status (line: 2415)
|26273|565:565|image| (-1) Provisioning.pm, __ANON__ (line: 324)
|26273|565:565|image| (-2) Module.pm, code_loop_timeout (line: 761)
|26273|565:565|image| (-3) Provisioning.pm, wait_for_power_off (line: 324)
|26273|565:565|image| (-4) Linux.pm, pre_capture (line: 183)
|26273|565:565|image| (-5) vmware.pm, capture (line: 1038)

================



On 10/5/11 12:45 PM, "Aaron Peeler" 
<aaron_pee...@ncsu.edu<mailto:aaron_pee...@ncsu.edu>> wrote:

Lei,

Could you provide the vcld.log file? The default location would be
/var/log/vcld.log

Thanks,
Aaron

On Wed, Oct 5, 2011 at 1:41 PM, Huang,Lei 
<lhu...@pvamu.edu<mailto:lhu...@pvamu.edu>> wrote:
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<mailto: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<mailto: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<mailto: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<mailto: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.





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

Reply via email to