Hi Luca,<div><br></div><div>Yes, changing the locales to english might be a good idea.</div><div><br></div><div>About the libvirt problem you mention, it could be that the physical host is overloaded. Are you using the same host as front-end and for hosting VMs? If that is the case, try switching off other services.</div>

<div><br></div><div>Best regards,</div><div><br></div><div>-Tino</div><div><br clear="all">--<br>Constantino Vázquez Blanco | <a href="http://dsa-research.org/tinova">dsa-research.org/tinova</a><br>Virtualization Technology Engineer / Researcher<br>

OpenNebula Toolkit | <a href="http://opennebula.org">opennebula.org</a><br>
<br><br><div class="gmail_quote">On Tue, Jul 6, 2010 at 4:35 PM, Luca Lorenzini <span dir="ltr"><<a href="mailto:lorenzini.luca@gmail.com">lorenzini.luca@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

I used Opennebula 1.2 and recentry my lab admin has finally installed the 1.4 but i've a problem when a submit a Vm (i this case the ttylinux image): when i create a vm with the command "<i>onevm create ttylinux.one</i>" i noticed that the status of the vm remain in pending (with 1.2 the vm was autodeployed on a free host) so i decided to deploy it manually with <i>"onevm deploy 0 0" </i>command (where first 0 is the id of the vm and the second the id of the host). But the Vm status turns to Fail. These are the logs:<br>


<br><br>~~~~~~ oned.log  ~~~~~~~~~<br><br><br>Tue Jul  6 16:15:25 2010 [DiM][D]: Deploying VM 0<br>Tue Jul  6 16:15:27 2010 [TM][D]: Message received: LOG - 0 tm_ln.sh: Creating directory /var/lib/one/0/images<br><br>Tue Jul  6 16:15:27 2010 [TM][D]: Message received: LOG - 0 tm_ln.sh: Executed "mkdir -p /var/lib/one/0/images".<br>


<br>Tue Jul  6 16:15:27 2010 [TM][D]: Message received: LOG - 0 tm_ln.sh: Executed "chmod a+w /var/lib/one/0/images".<br><br>Tue Jul  6 16:15:27 2010 [TM][D]: Message received: LOG - 0 tm_ln.sh: Link /home/luca/images/ttylinux.img<br>


<br>Tue Jul  6 16:15:27 2010 [TM][D]: Message received: LOG - 0 tm_ln.sh: Executed "ln -s /home/luca/images/ttylinux.img /var/lib/one/0/images/disk.0".<br><br>Tue Jul  6 16:15:27 2010 [TM][D]: Message received: TRANSFER SUCCESS 0 -<br>


<br>Tue Jul  6 16:15:38 2010 [InM][I]: Monitoring host <a href="http://ludovico.cs.unibo.it" target="_blank">ludovico.cs.unibo.it</a> (0)<br>Tue Jul  6 16:15:46 2010 [InM][D]: Host 0 successfully monitored.<br>Tue Jul  6 16:15:58 2010 [VMM][D]: Message received: LOG - 0 Command execution fail: 'mkdir -p /home/luca/onevm//0/images && cat > /home/luca/onevm//0/images/deployment.0 && virsh --connect qemu:///system create /home/luca/onevm//0/images/deployment.0'<br>


<br>Tue Jul  6 16:15:58 2010 [VMM][D]: Message received: LOG - 0 STDERR follows.<br><br>Tue Jul  6 16:15:58 2010 [VMM][D]: Message received: LOG - 0 errore: Impossibile creare il dominio da /home/luca/onevm//0/images/deployment.0<br>


<br>Tue Jul  6 16:15:58 2010 [VMM][D]: Message received: LOG - 0 errore: monitor socket did not show up.: Connection refused<br><br>Tue Jul  6 16:15:58 2010 [VMM][D]: Message received: LOG - 0 ExitCode: 1<br><br>Tue Jul  6 16:15:58 2010 [VMM][D]: Message received: DEPLOY FAILURE 0 -<br>


<br>Tue Jul  6 16:15:59 2010 [ReM][D]: VirtualMachinePoolInfo method invoked<br>Tue Jul  6 16:15:59 2010 [TM][D]: Message received: LOG - 0 tm_delete.sh: Deleting /var/lib/one/0/images<br><br>Tue Jul  6 16:15:59 2010 [TM][D]: Message received: LOG - 0 tm_delete.sh: Executed "rm -rf /var/lib/one/0/images".<br>


<br>Tue Jul  6 16:15:59 2010 [TM][D]: Message received: TRANSFER SUCCESS 0 -<br><br><br><br><br><br>~~~~~~ 0.log ~~~~~~~~~~~~<br><br>Tue Jul  6 16:15:25 2010 [DiM][I]: New VM state is ACTIVE.<br>Tue Jul  6 16:15:26 2010 [LCM][I]: New VM state is PROLOG.<br>


Tue Jul  6 16:15:26 2010 [VM][I]: Virtual Machine has no context<br>Tue Jul  6 16:15:27 2010 [TM][I]: tm_ln.sh: Creating directory /var/lib/one/0/images<br>Tue Jul  6 16:15:27 2010 [TM][I]: tm_ln.sh: Executed "mkdir -p /var/lib/one/0/images".<br>


Tue Jul  6 16:15:27 2010 [TM][I]: tm_ln.sh: Executed "chmod a+w /var/lib/one/0/images".<br>Tue Jul  6 16:15:27 2010 [TM][I]: tm_ln.sh: Link /home/luca/images/ttylinux.img<br>Tue Jul  6 16:15:27 2010 [TM][I]: tm_ln.sh: Executed "ln -s /home/luca/images/ttylinux.img /var/lib/one/0/images/disk.0".<br>


Tue Jul  6 16:15:27 2010 [LCM][I]: New VM state is BOOT<br>Tue Jul  6 16:15:27 2010 [VMM][I]: Generating deployment file: /var/lib/one/0/deployment.0<br>Tue Jul  6 16:15:58 2010 [VMM][I]: Command execution fail: 'mkdir -p /home/luca/onevm//0/images && cat > /home/luca/onevm//0/images/deployment.0 && virsh --connect qemu:///system create /home/luca/onevm//0/images/deployment.0'<br>


Tue Jul  6 16:15:58 2010 [VMM][I]: STDERR follows.<br>Tue Jul  6 16:15:58 2010 [VMM][I]: errore: Impossibile creare il dominio da /home/luca/onevm//0/images/deployment.0<br>Tue Jul  6 16:15:58 2010 [VMM][I]: errore: monitor socket did not show up.: Connection refused<br>


Tue Jul  6 16:15:58 2010 [VMM][I]: ExitCode: 1<br>Tue Jul  6 16:15:58 2010 [VMM][E]: Error deploying virtual machine<br>Tue Jul  6 16:15:59 2010 [DiM][I]: New VM state is FAILED<br>Tue Jul  6 16:15:59 2010 [TM][W]: Ignored: LOG - 0 tm_delete.sh: Deleting /var/lib/one/0/images<br>


<br>Tue Jul  6 16:15:59 2010 [TM][W]: Ignored: LOG - 0 tm_delete.sh: Executed "rm -rf /var/lib/one/0/images".<br><br>Tue Jul  6 16:15:59 2010 [TM][W]: Ignored: TRANSFER SUCCESS 0 -<br><br><br>~~~~~~ ttylinux.one ~~~~~~~~~~~~<br>


NAME   = ttylinux-test<br>MEMORY = 256<br>CPU=0.5<br><br>OS = [boot=hd,kernel=/vmlinuz]<br><br>DISK   = [<br>  source   = "/home/luca/images/ttylinux.img",<br>  target   = "hda",<br>  readonly = "no",<br>


  clone = "no"]<br><br>NIC    = [ NETWORK = "private" ]<br><br>FEATURES=[ acpi="no" ]<br>GRAPHICS =[type ="vnc",listen ="127.0.0.1", port = "14"]<br><br><br><br>


I tried to submit the vm manually to virsh but i get the same error. There is some problem with libvirtd?! i remember that i havent configured libvirtd with 1.2, should i do something with 1.4? Could the problem be generated because of i've Eucalyptus running too on the same machine?<br>


<br>I've saw another bug in the probes: as you can read from the log the machine has been installed with italian language so the vmm logs are in italian. The problem occurs in the /usr/lib/one/im_probes/kvm.rb script that parse the virsh nodeinfo output with english string (Ex: Memory usage) and onehost command show nothing about the node resources allocation (maybe the autosubmit problem derive from these thing. I suppose the scheduler thinks that the host has no memory enough to the vm so it doesnt submit the Vm at all).<br>


<br><br>I will really appreciate your help<br><font color="#888888"><br>Luca<br><br>
</font><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div>