<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi,<br>
I have a problem when I try to deploy my VM. I create the VM with
onevm create and the VM stays in pending state, so with onevm deploy
I try to deploy it but it immediatly change to fail state.<br>
<br>
Here is my situation:<br>
Front end:<br>
<ul>
<li>OpenNebula 2.0 running on Ubuntu 10.04 Server<br>
</li>
<li>VMware Driver Addons with libvirt to communicate with the
cluster</li>
<li>Shared NFS as configuration for the storage</li>
</ul>
Cluster:<br>
<ul>
<li>Ubuntu 10.04 Desktop</li>
<li>VMware Server 2.0.2</li>
</ul>
To configure OpenNebula I followed the documentation on the site,
with oneadmin's home directory in /srv/cloud/. I've chosen
/srv/cloud/one/var as VM_DIR and I've exported it as NFS share.<br>
<br>
Here is my oned.log file:<br>
<blockquote><small>Tue Dec 14 17:13:04 2010 [ONE][I]: Init
OpenNebula Log system<br>
Tue Dec 14 17:13:04 2010 [ONE][I]: Log Level: 3
[0=ERROR,1=WARNING,2=INFO,3=DEBUG]<br>
Tue Dec 14 17:13:04 2010 [ONE][I]:
----------------------------------------<br>
Tue Dec 14 17:13:04 2010 [ONE][I]: OpenNebula Configuration
File <br>
Tue Dec 14 17:13:04 2010 [ONE][I]:
----------------------------------------<br>
Tue Dec 14 17:13:04 2010 [ONE][I]: <br>
----------------------------------<br>
DB=BACKEND=mysql,DB_NAME=opennebula,PASSWD=oneadmin,PORT=0,SERVER=localhost,USER=oneadmin<br>
DEBUG_LEVEL=3<br>
DEFAULT_DEVICE_PREFIX=hd<br>
DEFAULT_IMAGE_TYPE=OS<br>
HM_MAD=EXECUTABLE=one_hm<br>
HOST_MONITORING_INTERVAL=30<br>
IMAGE_REPOSITORY_PATH=$ONE_LOCATION/var/images<br>
IM_MAD=ARGUMENTS=kvm,EXECUTABLE=one_im_ssh,NAME=im_kvm<br>
IM_MAD=ARGUMENTS=vmware,EXECUTABLE=one_im_sh,NAME=im_vmware<br>
MAC_PREFIX=02:00<br>
MANAGER_TIMER=15<br>
NETWORK_SIZE=254<br>
PORT=2633<br>
SCRIPTS_REMOTE_DIR=/var/tmp/one<br>
TM_MAD=ARGUMENTS=tm_nfs/tm_nfs.conf,EXECUTABLE=one_tm,NAME=tm_nfs<br>
TM_MAD=ARGUMENTS=tm_vmware/tm_vmware.conf,EXECUTABLE=one_tm,NAME=tm_vmware<br>
VM_DIR=$ONE_LOCATION/var<br>
VM_HOOK=ARGUMENTS=$VMID,COMMAND=image.rb,NAME=image,ON=DONE<br>
VM_MAD=ARGUMENTS=kvm,DEFAULT=vmm_ssh/vmm_ssh_kvm.conf,EXECUTABLE=one_vmm_ssh,NAME=vmm_kvm,TYPE=kvm<br>
VM_MAD=ARGUMENTS=vmware,DEFAULT=vmm_sh/vmm_sh_vmware.conf,EXECUTABLE=one_vmm_sh,NAME=vmm_vmware,TYPE=vmware<br>
VM_POLLING_INTERVAL=30<br>
VNC_BASE_PORT=5900<br>
----------------------------------<br>
Tue Dec 14 17:13:04 2010 [ONE][I]: Bootstraping OpenNebula
database.<br>
Tue Dec 14 17:13:04 2010 [VMM][I]: Starting Virtual Machine
Manager...<br>
Tue Dec 14 17:13:04 2010 [LCM][I]: Starting Life-cycle
Manager...<br>
Tue Dec 14 17:13:04 2010 [InM][I]: Starting Information
Manager...<br>
Tue Dec 14 17:13:04 2010 [TrM][I]: Starting Transfer Manager...<br>
Tue Dec 14 17:13:04 2010 [DiM][I]: Starting Dispatch Manager...<br>
Tue Dec 14 17:13:04 2010 [ReM][I]: Starting Request Manager...<br>
Tue Dec 14 17:13:04 2010 [InM][I]: Information Manager started.<br>
Tue Dec 14 17:13:04 2010 [TrM][I]: Transfer Manager started.<br>
Tue Dec 14 17:13:04 2010 [DiM][I]: Dispatch Manager started.<br>
Tue Dec 14 17:13:04 2010 [LCM][I]: Life-cycle Manager started.<br>
Tue Dec 14 17:13:04 2010 [VMM][I]: Virtual Machine Manager
started.<br>
Tue Dec 14 17:13:04 2010 [ReM][I]: Starting XML-RPC server, port
2633 ...<br>
Tue Dec 14 17:13:04 2010 [HKM][I]: Starting Hook Manager...<br>
Tue Dec 14 17:13:04 2010 [HKM][I]: Hook Manager started.<br>
Tue Dec 14 17:13:04 2010 [ReM][I]: Request Manager started.<br>
Tue Dec 14 17:13:06 2010 [VMM][I]: Loading Virtual Machine
Manager drivers.<br>
Tue Dec 14 17:13:06 2010 [VMM][I]: Loading driver: vmm_kvm
(KVM)<br>
Tue Dec 14 17:13:06 2010 [VMM][I]: Driver vmm_kvm loaded.<br>
Tue Dec 14 17:13:06 2010 [VMM][I]: Loading driver:
vmm_vmware (VMWARE)<br>
Tue Dec 14 17:13:07 2010 [VMM][I]: Driver vmm_vmware loaded.<br>
Tue Dec 14 17:13:07 2010 [InM][I]: Loading Information Manager
drivers.<br>
Tue Dec 14 17:13:07 2010 [InM][I]: Loading driver: im_kvm<br>
Tue Dec 14 17:13:07 2010 [InM][I]: Driver im_kvm loaded<br>
Tue Dec 14 17:13:07 2010 [InM][I]: Loading driver: im_vmware<br>
Tue Dec 14 17:13:07 2010 [InM][I]: Driver im_vmware loaded<br>
Tue Dec 14 17:13:07 2010 [TM][I]: Loading Transfer Manager
drivers.<br>
Tue Dec 14 17:13:07 2010 [VMM][I]: Loading driver: tm_nfs<br>
Tue Dec 14 17:13:07 2010 [TM][I]: Driver tm_nfs loaded.<br>
Tue Dec 14 17:13:07 2010 [VMM][I]: Loading driver: tm_vmware<br>
Tue Dec 14 17:13:07 2010 [TM][I]: Driver tm_vmware loaded.<br>
Tue Dec 14 17:13:07 2010 [HKM][I]: Loading Hook Manager driver.<br>
Tue Dec 14 17:13:07 2010 [HKM][I]: Hook Manager loaded<br>
Tue Dec 14 17:13:11 2010 [ReM][D]: VirtualMachinePoolInfo method
invoked<br>
Tue Dec 14 17:13:19 2010 [InM][I]: Monitoring host cluster (0)<br>
Tue Dec 14 17:13:19 2010 [InM][D]: Host 0 successfully
monitored.<br>
Tue Dec 14 17:13:33 2010 [ReM][D]: VirtualMachineAllocate
invoked<br>
Tue Dec 14 17:13:35 2010 [ReM][D]: HostPoolInfo method invoked<br>
Tue Dec 14 17:13:35 2010 [ReM][D]: VirtualMachinePoolInfo method
invoked<br>
Tue Dec 14 17:13:45 2010 [ReM][D]: VirtualMachinePoolInfo method
invoked<br>
Tue Dec 14 17:13:49 2010 [InM][I]: Monitoring host cluster (0)<br>
Tue Dec 14 17:13:49 2010 [InM][D]: Host 0 successfully
monitored.<br>
Tue Dec 14 17:14:05 2010 [ReM][D]: HostPoolInfo method invoked<br>
Tue Dec 14 17:14:05 2010 [ReM][D]: VirtualMachinePoolInfo method
invoked<br>
Tue Dec 14 17:14:08 2010 [ReM][D]: HostPoolInfo method invoked<br>
Tue Dec 14 17:14:08 2010 [ReM][D]: VirtualMachinePoolInfo method
invoked<br>
Tue Dec 14 17:14:08 2010 [ReM][D]: VirtualMachineDeploy invoked<br>
Tue Dec 14 17:14:08 2010 [DiM][D]: Deploying VM 13<br>
Tue Dec 14 17:14:09 2010 [TM][D]: Message received: LOG - 13
tm_clone.sh:
filippo-server:/srv/cloud/one/one-templates/ttylinux.img
cluster:/srv/cloud/one/var/13/images/disk.0<br>
<br>
Tue Dec 14 17:14:09 2010 [TM][D]: Message received: LOG - 13
tm_clone.sh: DST: /srv/cloud/one/var/13/images/disk.0<br>
<br>
Tue Dec 14 17:14:09 2010 [TM][D]: Message received: LOG - 13
tm_clone.sh: Creating directory /srv/cloud/one/var/13/images<br>
<br>
Tue Dec 14 17:14:09 2010 [TM][D]: Message received: LOG - 13
tm_clone.sh: Executed "mkdir -p /srv/cloud/one/var/13/images".<br>
<br>
Tue Dec 14 17:14:09 2010 [TM][D]: Message received: LOG - 13
tm_clone.sh: Executed "chmod a+w /srv/cloud/one/var/13/images".<br>
<br>
Tue Dec 14 17:14:09 2010 [TM][D]: Message received: LOG - 13
tm_clone.sh: Cloning /srv/cloud/one/one-templates/ttylinux.img<br>
<br>
Tue Dec 14 17:14:09 2010 [TM][D]: Message received: LOG - 13
tm_clone.sh: Executed "cp -r
/srv/cloud/one/one-templates/ttylinux.img
/srv/cloud/one/var/13/images/disk.0".<br>
<br>
Tue Dec 14 17:14:09 2010 [TM][D]: Message received: LOG - 13
tm_clone.sh: Executed "chmod a+rw
/srv/cloud/one/var/13/images/disk.0".<br>
<br>
Tue Dec 14 17:14:09 2010 [TM][D]: Message received: TRANSFER
SUCCESS 13 -<br>
<br>
Tue Dec 14 17:14:11 2010 [VMM][D]: Message received: LOG - 13
Command execution fail:
/srv/cloud/one/lib/remotes/vmm/vmware/deploy cluster
/srv/cloud/one/var/13/deployment.0<br>
<br>
Tue Dec 14 17:14:11 2010 [VMM][D]: Message received: LOG - 13
STDERR follows.<br>
<br>
Tue Dec 14 17:14:11 2010 [VMM][D]: Message received: LOG - 13
[VMWARE] cmd failed [/srv/cloud/one/bin/tty_expect -u oneadmin
-p oneadmin virsh -c gsx://cluster?no_verify=1 define
/srv/cloud/one/var/13/deployment.0]. Stderr:<br>
<br>
Tue Dec 14 17:14:11 2010 [VMM][D]: Message received: LOG - 13
errore: Impossibile definire il dominio da
/srv/cloud/one/var/13/deployment.0<br>
<br>
Tue Dec 14 17:14:11 2010 [VMM][D]: Message received: LOG - 13
errore: errore interno HTTP response code 500 for upload to
'<a class="moz-txt-link-freetext" href="https://cluster:8333/folder/13%2fimages%2fdisk%2e0/one%2d13.vmx?dcPath=ha%2ddatacenter&dsName=images">https://cluster:8333/folder/13%2fimages%2fdisk%2e0/one%2d13.vmx?dcPath=ha%2ddatacenter&dsName=images</a>'<br>
<br>
Tue Dec 14 17:14:11 2010 [VMM][D]: Message received: LOG - 13 <br>
<br>
Tue Dec 14 17:14:11 2010 [VMM][D]: Message received: LOG - 13 .
Stdout: ExitCode: 1<br>
<br>
Tue Dec 14 17:14:11 2010 [VMM][D]: Message received: LOG - 13
ExitCode: 1<br>
<br>
Tue Dec 14 17:14:11 2010 [VMM][D]: Message received: DEPLOY
FAILURE 13 -<br>
<br>
Tue Dec 14 17:14:11 2010 [TM][D]: Message received: LOG - 13
tm_delete.sh: Deleting /srv/cloud/one/var/13/images<br>
<br>
Tue Dec 14 17:14:11 2010 [TM][D]: Message received: LOG - 13
tm_delete.sh: Executed "rm -rf /srv/cloud/one/var/13/images".<br>
<br>
Tue Dec 14 17:14:11 2010 [TM][D]: Message received: TRANSFER
SUCCESS 13 -</small><br>
<br>
</blockquote>
And here is my vm.log file:<small><br>
</small>
<blockquote><small>Tue Dec 14 17:14:08 2010 [DiM][I]: New VM state
is ACTIVE.<br>
Tue Dec 14 17:14:08 2010 [LCM][I]: New VM state is PROLOG.<br>
Tue Dec 14 17:14:08 2010 [VM][I]: Virtual Machine has no context<br>
Tue Dec 14 17:14:09 2010 [TM][I]: tm_clone.sh:
filippo-server:/srv/cloud/one/one-templates/ttylinux.img
cluster:/srv/cloud/one/var/13/images/disk.0<br>
Tue Dec 14 17:14:09 2010 [TM][I]: tm_clone.sh: DST:
/srv/cloud/one/var/13/images/disk.0<br>
Tue Dec 14 17:14:09 2010 [TM][I]: tm_clone.sh: Creating
directory /srv/cloud/one/var/13/images<br>
Tue Dec 14 17:14:09 2010 [TM][I]: tm_clone.sh: Executed "mkdir
-p /srv/cloud/one/var/13/images".<br>
Tue Dec 14 17:14:09 2010 [TM][I]: tm_clone.sh: Executed "chmod
a+w /srv/cloud/one/var/13/images".<br>
Tue Dec 14 17:14:09 2010 [TM][I]: tm_clone.sh: Cloning
/srv/cloud/one/one-templates/ttylinux.img<br>
Tue Dec 14 17:14:09 2010 [TM][I]: tm_clone.sh: Executed "cp -r
/srv/cloud/one/one-templates/ttylinux.img
/srv/cloud/one/var/13/images/disk.0".<br>
Tue Dec 14 17:14:09 2010 [TM][I]: tm_clone.sh: Executed "chmod
a+rw /srv/cloud/one/var/13/images/disk.0".<br>
Tue Dec 14 17:14:09 2010 [LCM][I]: New VM state is BOOT<br>
Tue Dec 14 17:14:09 2010 [VMM][I]: Generating deployment file:
/srv/cloud/one/var/13/deployment.0<br>
Tue Dec 14 17:14:11 2010 [VMM][I]: Command execution fail:
/srv/cloud/one/lib/remotes/vmm/vmware/deploy cluster
/srv/cloud/one/var/13/deployment.0<br>
Tue Dec 14 17:14:11 2010 [VMM][I]: STDERR follows.<br>
Tue Dec 14 17:14:11 2010 [VMM][I]: [VMWARE] cmd failed
[/srv/cloud/one/bin/tty_expect -u oneadmin -p oneadmin virsh -c
gsx://cluster?no_verify=1 define
/srv/cloud/one/var/13/deployment.0]. Stderr:<br>
Tue Dec 14 17:14:11 2010 [VMM][I]: errore: Impossibile definire
il dominio da /srv/cloud/one/var/13/deployment.0<br>
Tue Dec 14 17:14:11 2010 [VMM][I]: errore: errore interno HTTP
response code 500 for upload to
'<a class="moz-txt-link-freetext" href="https://cluster:8333/folder/13%2fimages%2fdisk%2e0/one%2d13.vmx?dcPath=ha%2ddatacenter&dsName=images">https://cluster:8333/folder/13%2fimages%2fdisk%2e0/one%2d13.vmx?dcPath=ha%2ddatacenter&dsName=images</a>'<br>
Tue Dec 14 17:14:11 2010 [VMM][I]: <br>
Tue Dec 14 17:14:11 2010 [VMM][I]: . Stdout: ExitCode: 1<br>
Tue Dec 14 17:14:11 2010 [VMM][I]: ExitCode: 1<br>
Tue Dec 14 17:14:11 2010 [VMM][E]: Error deploying virtual
machine<br>
Tue Dec 14 17:14:11 2010 [DiM][I]: New VM state is FAILED<br>
Tue Dec 14 17:14:11 2010 [TM][W]: Ignored: LOG - 13
tm_delete.sh: Deleting /srv/cloud/one/var/13/images<br>
<br>
Tue Dec 14 17:14:11 2010 [TM][W]: Ignored: LOG - 13
tm_delete.sh: Executed "rm -rf /srv/cloud/one/var/13/images".<br>
<br>
Tue Dec 14 17:14:11 2010 [TM][W]: Ignored: TRANSFER SUCCESS 13 -</small><br>
<br>
</blockquote>
As you can see from log files I'm trying to create and deploy a VM
using ttylinux package from the site.<br>
Can someone help me to solve the problem? And can you explain me
what is the "domain" that virsh tries to define from the file
deployment.0? And why is it impossible to define it?<br>
Here is deployment.0:<br>
<blockquote><small><domain type='vmware'><br>
<name>one-13</name><br>
<memory>65536</memory><br>
<os><br>
<type arch='i686'>hvm</type><br>
</os><br>
<devices><br>
<disk type='file' device='disk'><br>
<source file='[images]
13/images/disk.0/disk.vmdk'/><br>
<target dev='hda'/><br>
</disk><br>
<interface type='bridge'><br>
<source bridge='eth0'/><br>
<mac address='02:00:c0:a8:02:2d'/><br>
</interface><br>
</devices><br>
</domain></small><br>
<br>
</blockquote>
<span id="result_box" class="" lang="en"><span style="" title="">I
hope I was clear and provided the necessary information.<br>
Regards,<br>
</span></span>
<pre class="moz-signature" cols="72">--
Filippo Dalla Gassa</pre>
</body>
</html>