<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
Hello,<br>
I've configured two machines, one with opennebula and another
configured to be a host.<br>
I've created the host in opennebula and it's all ok (status:
MONITORED)<br>
<br>
But when I try to create a vm, there is a problem in the deployment.<br>
Here is the vm.log:<br>
<pre><font color="#333333">Mon Oct 10 15:15:29 2011 [DiM][I]: New VM state is ACTIVE.</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:29 2011 [LCM][I]: New VM state is PROLOG.</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:29 2011 [TM][I]: tm_clone.sh: argocloud:/srv/cloud/one/one-templates/ttylinux.img <a class="moz-txt-link-abbreviated" href="mailto:argohost@192.168.2.101:/srv/cloud/one/var//5/images/disk.0">argohost@192.168.2.101:/srv/cloud/one/var//5/images/disk.0</a></font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:29 2011 [TM][I]: tm_clone.sh: DST: /srv/cloud/one/var//5/images/disk.0</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:29 2011 [TM][I]: tm_clone.sh: Creating directory /srv/cloud/one/var//5/images</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:29 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p /srv/cloud/one/var//5/images".</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:29 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w /srv/cloud/one/var//5/images".</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:29 2011 [TM][I]: tm_clone.sh: Cloning /srv/cloud/one/one-templates/ttylinux.img</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:29 2011 [TM][I]: tm_clone.sh: Executed "cp -r /srv/cloud/one/one-templates/ttylinux.img /srv/cloud/one/var//5/images/disk.0".</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:29 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw /srv/cloud/one/var//5/images/disk.0".</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:29 2011 [TM][I]: tm_context.sh: Executed "mkdir -p /srv/cloud/one/var//5/images/isofiles".</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:29 2011 [TM][I]: tm_context.sh: Executed "cp -R /srv/cloud/one/var/5/context.sh /srv/cloud/one/var//5/images/isofiles".</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:29 2011 [TM][I]: tm_context.sh: Executed "cp -R /srv/cloud/one/one-templates/init.sh /srv/cloud/one/var//5/images/isofiles".</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:29 2011 [TM][I]: tm_context.sh: Executed "cp -R /srv/cloud/one/.ssh/id_rsa.pub /srv/cloud/one/var//5/images/isofiles".</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:29 2011 [TM][I]: tm_context.sh: Executed "/usr/bin/mkisofs -o /srv/cloud/one/var//5/images/disk.1 -J -R /srv/cloud/one/var//5/images/isofiles".</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:29 2011 [TM][I]: tm_context.sh: Executed "rm -rf /srv/cloud/one/var//5/images/isofiles".</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:29 2011 [LCM][I]: New VM state is BOOT</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:29 2011 [VMM][I]: Generating deployment file: /srv/cloud/one/var/5/deployment.0</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:30 2011 [VMM][I]: Command execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then /var/tmp/one/vmm/kvm/deploy /srv/cloud/one/var//5/images/deployment.0; else exit 42; fi'</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:30 2011 [VMM][I]: STDERR follows.</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:30 2011 [VMM][I]: error: Failed to create domain from /srv/cloud/one/var//5/images/deployment.0</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:30 2011 [VMM][I]: error: unable to set user and group to '118:131' on '/srv/cloud/one/var//5/images/disk.0': No such file or directory</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:30 2011 [VMM][I]: ExitCode: 255</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:30 2011 [VMM][E]: Error deploying virtual machine: error: Failed to create domain from /srv/cloud/one/var//5/images/deployment.0</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:30 2011 [DiM][I]: New VM state is FAILED</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:30 2011 [TM][W]: Ignored: LOG - 5 tm_delete.sh: Deleting /srv/cloud/one/var//5/images</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:30 2011 [TM][W]: Ignored: LOG - 5 tm_delete.sh: Executed "rm -rf /srv/cloud/one/var//5/images".</font></pre>
<pre><font color="#333333">Mon Oct 10 15:15:30 2011 [TM][W]: Ignored: TRANSFER SUCCESS 5 -</font></pre>
I think the error is there:<br>
<pre><u><font color="#333333">Command execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then /var/tmp/one/vmm/kvm/deploy /srv/cloud/one/var//5/images/deployment.0; else</font></u></pre>
It's a sintax error?<br>
I'm using the opennebula-2.2.1 with ubuntu 11.04<br>
<br>
Best regards,<br>
Rubens Pinheiro<br>
<br>
</body>
</html>