<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi guys,<br>
<br>
I have a computer with OpenNebula 3.6 and CentOS 6.2 acting as a
frontend and two hosts computers with CentOS 6.2 and qemu-kvm. A
fourth computer running Debian is acting as NFS Server to share
/var/lib/one directory among all the computers.<br>
I've configured a cluster with both hosts and a new datastore (ID
100).<br>
<br>
I've created two images, one for OS and the other for the CD and a
new template with both images. This is the output of "onetemplate
show 3" command:<br>
<small><small>TEMPLATE 3
INFORMATION
<br>
ID : 3 <br>
NAME : Template2 <br>
USER : oneadmin <br>
GROUP : oneadmin <br>
REGISTER TIME : 08/22 13:21:49 <br>
<br>
PERMISSIONS
<br>
OWNER : um- <br>
GROUP : --- <br>
OTHER : --- <br>
<br>
TEMPLATE
CONTENTS
<br>
CPU="0.5"<br>
DISK=[<br>
IMAGE="Centos OS",<br>
IMAGE_UNAME="oneadmin" ]<br>
DISK=[<br>
IMAGE="Centos CD",<br>
IMAGE_UNAME="oneadmin" ]<br>
GRAPHICS=[<br>
LISTEN="0.0.0.0",<br>
TYPE="vnc" ]<br>
MEMORY="512"<br>
NAME="Template2"<br>
NIC=[<br>
NETWORK="vnet2",<br>
NETWORK_UNAME="oneadmin" ]<br>
OS=[<br>
ARCH="x86_64",<br>
BOOT="cdrom" ]<br>
RAW=[<br>
TYPE="kvm" ]<br>
TEMPLATE_ID="3"</small></small><br>
<br>
Once I instantiate the template, after a while with the status of
PROLOG, it changes to FAILED.<br>
<br>
This is the log:<br>
<pre>Wed Aug 22 14:24:39 2012 [DiM][I]: New VM state is ACTIVE.
Wed Aug 22 14:24:40 2012 [LCM][I]: New VM state is PROLOG.
Wed Aug 22 14:24:40 2012 [VM][I]: Virtual Machine has no context
Wed Aug 22 14:24:40 2012 [TM][I]: ln: Linking ../../100/07e46220fd4ecd3f8400861bf8f0d5b4 in Host2:/var/lib/one//datastores/0/10/disk.0
Wed Aug 22 14:24:40 2012 [TM][I]: ExitCode: 0
Wed Aug 22 14:25:13 2012 [TM][I]: clone: Cloning ../../100/e1b27fe18ab33781415b0b5d5b423c1c in Host2:/var/lib/one//datastores/0/10/disk.1
Wed Aug 22 14:25:13 2012 [TM][I]: ExitCode: 0
Wed Aug 22 14:25:14 2012 [LCM][I]: New VM state is BOOT
Wed Aug 22 14:25:14 2012 [VMM][I]: Generating deployment file: /var/lib/one/10/deployment.0
Wed Aug 22 14:25:14 2012 [VMM][I]: ExitCode: 0
Wed Aug 22 14:25:14 2012 [VMM][I]: Successfully execute network driver operation: pre.
Wed Aug 22 14:25:15 2012 [VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy /var/lib/one//datastores/0/10/deployment.0 Host2 10 Host2
Wed Aug 22 14:25:15 2012 [VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/10/deployment.0
Wed Aug 22 14:25:15 2012 [VMM][I]: error: failed to open file '/var/lib/one//datastores/0/10/disk.1': Permission denied
<span class="vm_log_error">Wed Aug 22 14:25:15 2012 [VMM][E]: Could not create domain from /var/lib/one//datastores/0/10/deployment.0</span>
Wed Aug 22 14:25:15 2012 [VMM][I]: ExitCode: 255
Wed Aug 22 14:25:15 2012 [VMM][I]: Failed to execute virtualization driver operation: deploy.
<span class="vm_log_error">Wed Aug 22 14:25:15 2012 [VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one//datastores/0/10/deployment.0</span>
Wed Aug 22 14:25:16 2012 [DiM][I]: New VM state is FAILED</pre>
<br>
I suppose there are several problems: VM has no context and another
issues with deployment.0 and disk.1 files.<br>
In the contextualization part, I suppose it is due to the lack of
"CONTEXT" section so I'll work on it, but could you help me with the
other errors?<br>
<br>
<br>
Thank you,<br>
<br>
Carlos.<br>
</body>
</html>