Hi,<br>in Ubuntu /usr/bin/kvm is provided by the package qemu-kvm, can you check if you have correctly installed it?<br><br>dpkg -l qemu-kvm<br><br>regards,<br>Jaime<br><br><div class="gmail_quote">On Fri, Nov 13, 2009 at 7:25 PM, Fernando Perez <span dir="ltr"><<a href="mailto:tutissanalio@gmail.com">tutissanalio@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Gianni,<br><br>The same error also was shown to me. In my case, the problem was that the qemu binary was not at the path<br>
/usr/bin/kvm, <br>Instead, it was at the path<br>/usr/bin/qemu-kvm.<br>As Shi Jin suggested, I just created a symbolic link and the problem was solved.<br>
<br>(This was on Fedora 11)<br><br>Hope this helps.<br><br>Fernando.<br><br><br><br><div class="gmail_quote">2009/11/13 Shi Jin <span dir="ltr"><<a href="mailto:jinzishuai@gmail.com" target="_blank">jinzishuai@gmail.com</a>></span><div>
<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Maybe kvm is not located at /usr/bin/kvm in your host distribution?<br>
A quick and dirty way might be to create a symbolic link. Not sure if<br>
it would help.<br>
<br>
Shi<br>
<div><div></div><div><br>
On Fri, Nov 13, 2009 at 10:48 AM, Gianni Dalla Torre<br>
<<a href="mailto:gianni.dallatorre@cnaf.infn.it" target="_blank">gianni.dallatorre@cnaf.infn.it</a>> wrote:<br>
> Hi all,<br>
><br>
> I configured an OpenNebula (v 1.3.80) front-end in my pc "solaris" (Ubuntu<br>
> 9.04) and installed a cluster node "omii001" (Scientific Linux CERN SLC<br>
> release 2.6.18-164.6.1.el5 x86_64).<br>
> I need to access my VM through ssh, so I used the Bridged networking<br>
> ("shared physical device") following this instructions:<br>
> <a href="http://www.opennebula.org/doku.php?id=documentation:rel1.4:nm" target="_blank">http://www.opennebula.org/doku.php?id=documentation:rel1.4:nm</a><br>
> And I used the kvm-hook-script taken from v. 1.3.85<br>
><br>
> When I try do deploy my VM I have a failure.<br>
> from the log file seems that I have a problem with KVM configuration:<br>
> "Cannot find QEMU binary /usr/bin/kvm: No such file or directory"<br>
> I'm not sure my kvm installation was done properly, so maybe is my fault..<br>
> anyway I follow the steps in the documentation and I can't find a<br>
> solution.<br>
><br>
> Here some information about my configuration:<br>
><br>
> I should have the kvm module loaded on my node:<br>
> oneadmin@omii001$/sbin/lsmod | grep kvm<br>
> kvm_intel 86248 0<br>
> kvm 223264 2 ksm,kvm_intel<br>
><br>
> But I have no kvm service running... (Is that my problem?)<br>
> oneadmin@omii001$ chkconfig --list | grep kvm<br>
> oneadmin@omii001$ chkconfig --list | grep libvirtd<br>
> libvirtd 0:off 1:off 2:off 3:on 4:on 5:on 6:off<br>
> oneadmin@omii001$ chkconfig --list | grep qemu<br>
> qemu 0:off 1:off 2:on 3:on 4:on 5:on 6:off<br>
><br>
> oneadmin@solaris:/home/giannidallatorre$ onevm show two<br>
> VIRTUAL MACHINE 7 INFORMATION<br>
> ID : 7<br>
> NAME : two<br>
> STATE : FAILED<br>
> LCM_STATE : LCM_INIT<br>
> START TIME : 11/13 17:30:07<br>
> END TIME : 11/13 17:36:28<br>
> DEPLOY ID: :<br>
><br>
> VIRTUAL MACHINE TEMPLATE<br>
> CPU=1<br>
> DISK=[<br>
> READONLY=no,<br>
> SOURCE=/srv/cloud/one/images/debian5.img,<br>
> TARGET=vda ]<br>
> GRAPHICS=[<br>
> LISTEN=127.0.0.1,<br>
> PORT=1,<br>
> TYPE=vnc ]<br>
> MEMORY=512<br>
> NAME=two<br>
> NIC=[<br>
> BRIDGE=eth0,<br>
> IP=131.154.101.250,<br>
> MAC=00:03:83:9a:65:fa,<br>
> NETWORK=PublicVLAN,<br>
> VNID=2 ]<br>
> OS=[<br>
> BOOT=hd ]<br>
> SAVE=yes<br>
> VMID=7<br>
><br>
> oneadmin@solaris:/home/giannidallatorre$ onevnet list<br>
> NID USER NAME TYPE BRIDGE #LEASES<br>
> 2 oneadmin PublicVLAN Fixed eth0 1<br>
> oneadmin@solaris:/home/giannidallatorre$ onevnet show 2<br>
> VIRTUAL NETWORK 2 INFORMATION<br>
> ID: : 2<br>
> UID: : 0<br>
><br>
> VIRTUAL NETWORK TEMPLATE<br>
> BRIDGE=eth0<br>
> LEASES=[ IP=131.154.101.250 ]<br>
> LEASES=[ IP=131.154.101.251 ]<br>
> LEASES=[ IP=131.154.101.252 ]<br>
> NAME=PublicVLAN<br>
> TYPE=FIXED<br>
><br>
> LEASES INFORMATION<br>
> LEASE=[ IP=131.154.101.250, MAC=00:03:83:9a:65:fa, USED=1, VID=7 ]<br>
> LEASE=[ IP=131.154.101.251, MAC=00:03:83:9a:65:fb, USED=0, VID=-1 ]<br>
> LEASE=[ IP=131.154.101.252, MAC=00:03:83:9a:65:fc, USED=0, VID=-1 ]<br>
><br>
><br>
> This is the oned.log file:<br>
> Fri Nov 13 17:29:52 2009 [ONE][I]: Init OpenNebula Log system<br>
> Fri Nov 13 17:29:52 2009 [ONE][I]: Log Level: 3<br>
> [0=ERROR,1=WARNING,2=INFO,3=DEBUG]<br>
> Fri Nov 13 17:29:52 2009 [ONE][I]:<br>
> ----------------------------------------------<br>
> Fri Nov 13 17:29:52 2009 [ONE][I]: OpenNebula Configuration File<br>
> Fri Nov 13 17:29:52 2009 [ONE][I]:<br>
> ----------------------------------------------<br>
> Fri Nov 13 17:29:52 2009 [ONE][I]:<br>
> --------------------------------------------<br>
> DEBUG_LEVEL=3<br>
> HM_MAD=EXECUTABLE=one_hm<br>
> HOST_MONITORING_INTERVAL=60<br>
><br>
> IM_MAD=ARGUMENTS=im_kvm/im_kvm.conf,EXECUTABLE=one_im_ssh,NAME=im_kvm<br>
> MAC_PREFIX=00:03<br>
> MANAGER_TIMER=30<br>
> NETWORK_SIZE=254<br>
> PORT=2633<br>
> TM_MAD=ARGUMENTS=tm_nfs/tm_nfs.conf,EXECUTABLE=one_tm,NAME=tm_nfs<br>
> VM_DIR=/srv/cloud/one/var<br>
> VM_HOOK=ARGUMENTS=start<br>
> one-$VMID,COMMAND=/srv/cloud/one/share/hooks/ebtables-kvm,NAME=ebtables-running,ON=running,REMOTE=yes<br>
><br>
> VM_HOOK=ARGUMENTS="",COMMAND=/srv/cloud/one/share/hooks/ebtables-flush,NAME=ebtables-shutdown,ON=shutdown,REMOTE=yes<br>
><br>
> VM_HOOK=ARGUMENTS="",COMMAND=/srv/cloud/one/share/hooks/ebtables-flush,NAME=ebtables-stop,ON=stop,REMOTE=yes<br>
><br>
> VM_MAD=DEFAULT=vmm_kvm/vmm_kvm.conf,EXECUTABLE=one_vmm_kvm,NAME=vmm_kvm,TYPE=kvm<br>
> VM_POLLING_INTERVAL=60<br>
> --------------------------------------------<br>
> Fri Nov 13 17:29:52 2009 [VMM][I]: Starting Virtual Machine Manager...<br>
> Fri Nov 13 17:29:52 2009 [VMM][I]: Virtual Machine Manager started.<br>
> Fri Nov 13 17:29:52 2009 [LCM][I]: Starting Life-cycle Manager...<br>
> Fri Nov 13 17:29:52 2009 [LCM][I]: Life-cycle Manager started.<br>
> Fri Nov 13 17:29:52 2009 [InM][I]: Starting Information Manager...<br>
> Fri Nov 13 17:29:52 2009 [InM][I]: Information Manager started.<br>
> Fri Nov 13 17:29:52 2009 [TrM][I]: Starting Transfer Manager...<br>
> Fri Nov 13 17:29:52 2009 [TrM][I]: Transfer Manager started.<br>
> Fri Nov 13 17:29:52 2009 [DiM][I]: Starting Dispatch Manager...<br>
> Fri Nov 13 17:29:52 2009 [DiM][I]: Dispatch Manager started.<br>
> Fri Nov 13 17:29:52 2009 [ReM][I]: Starting Request Manager...<br>
> Fri Nov 13 17:29:52 2009 [ReM][I]: Request Manager started.<br>
> Fri Nov 13 17:29:52 2009 [ReM][I]: Starting XML-RPC server, port 2633 ...<br>
> Fri Nov 13 17:29:52 2009 [HKM][I]: Starting Hook Manager...<br>
> Fri Nov 13 17:29:52 2009 [HKM][I]: Hook Manager started.<br>
> Fri Nov 13 17:29:54 2009 [VMM][I]: Loading Virtual Machine Manager drivers.<br>
> Fri Nov 13 17:29:54 2009 [VMM][I]: Loading driver: vmm_kvm (KVM)<br>
> Fri Nov 13 17:29:54 2009 [VMM][I]: Driver vmm_kvm loaded.<br>
> Fri Nov 13 17:29:54 2009 [InM][I]: Loading Information Manager drivers.<br>
> Fri Nov 13 17:29:54 2009 [InM][I]: Loading driver: im_kvm<br>
> Fri Nov 13 17:29:54 2009 [InM][I]: Driver im_kvm loaded<br>
> Fri Nov 13 17:29:54 2009 [TM][I]: Loading Transfer Manager drivers.<br>
> Fri Nov 13 17:29:54 2009 [VMM][I]: Loading driver: tm_nfs<br>
> Fri Nov 13 17:29:54 2009 [TM][I]: Driver tm_nfs loaded.<br>
> Fri Nov 13 17:29:54 2009 [HKM][I]: Loading Hook Manager driver.<br>
> Fri Nov 13 17:29:54 2009 [HKM][I]: Hook Manager loaded<br>
> Fri Nov 13 17:30:07 2009 [ReM][D]: VirtualMachineAllocate invoked<br>
> Fri Nov 13 17:30:07 2009 [DiM][D]: Allocating a new VM<br>
> Fri Nov 13 17:30:22 2009 [InM][I]: Monitoring host omii001 (4)<br>
> Fri Nov 13 17:30:23 2009 [ReM][D]: VirtualMachineDeploy invoked<br>
> Fri Nov 13 17:32:03 2009 [InM][I]: Monitoring host omii001 (4)<br>
> Fri Nov 13 17:35:33 2009 [InM][D]: Host 4 successfully monitored.<br>
> Fri Nov 13 17:35:57 2009 [TM][D]: Message received: LOG - 7 tm_clone.sh:<br>
> solaris:/srv/cloud/one/images/debian5.img<br>
> omii001:/srv/cloud/one/var/7/images/disk.0<br>
> Fri Nov 13 17:35:57 2009 [TM][D]: Message received: LOG - 7 tm_clone.sh:<br>
> DST: /srv/cloud/one/var/7/images/disk.0<br>
> Fri Nov 13 17:35:57 2009 [TM][D]: Message received: LOG - 7 tm_clone.sh:<br>
> Creating directory /srv/cloud/one/var/7/images<br>
> Fri Nov 13 17:35:57 2009 [TM][D]: Message received: LOG - 7 tm_clone.sh:<br>
> Executed "mkdir -p /srv/cloud/one/var/7/images".<br>
> Fri Nov 13 17:35:57 2009 [TM][D]: Message received: LOG - 7 tm_clone.sh:<br>
> Executed "chmod a+w /srv/cloud/one/var/7/images".<br>
> Fri Nov 13 17:35:57 2009 [TM][D]: Message received: LOG - 7 tm_clone.sh:<br>
> Cloning /srv/cloud/one/images/debian5.img<br>
> Fri Nov 13 17:35:57 2009 [TM][D]: Message received: LOG - 7 tm_clone.sh:<br>
> Executed "cp /srv/cloud/one/images/debian5.img<br>
> /srv/cloud/one/var/7/images/disk.0".<br>
> Fri Nov 13 17:35:57 2009 [TM][D]: Message received: LOG - 7 tm_clone.sh:<br>
> Executed "chmod a+w /srv/cloud/one/var/7/images/disk.0".<br>
> Fri Nov 13 17:35:57 2009 [TM][D]: Message received: TRANSFER SUCCESS 7 -<br>
> Fri Nov 13 17:36:28 2009 [VMM][D]: Message received: LOG - 7 Command<br>
> execution fail: 'cat > /srv/cloud/one/var/7/images/deployment.0 && virsh<br>
> create /srv/cloud/one/var/7/images/deployment.0'<br>
> Fri Nov 13 17:36:28 2009 [VMM][D]: Message received: LOG - 7 STDERR follows.<br>
> Fri Nov 13 17:36:28 2009 [VMM][D]: Message received: LOG - 7 17:36:46.885:<br>
> error : No vport operation path found for host1<br>
> Fri Nov 13 17:36:28 2009 [VMM][D]: Message received: LOG - 7 17:36:46.899:<br>
> error : No vport operation path found for host0<br>
> Fri Nov 13 17:36:28 2009 [VMM][D]: Message received: LOG - 7 17:36:46.920:<br>
> error : No vport operation path found for host2<br>
> Fri Nov 13 17:36:28 2009 [VMM][D]: Message received: LOG - 7 17:36:47.171:<br>
> error : Cannot find QEMU binary /usr/bin/kvm: No such file or directory<br>
> Fri Nov 13 17:36:28 2009 [VMM][D]: Message received: LOG - 7 libvir: QEMU<br>
> error : Cannot find QEMU binary /usr/bin/kvm: No such file or directory<br>
> Fri Nov 13 17:36:28 2009 [VMM][D]: Message received: LOG - 7 error: Failed<br>
> to create domain from /srv/cloud/one/var/7/images/deployment.0<br>
> Fri Nov 13 17:36:28 2009 [VMM][D]: Message received: LOG - 7 error: Cannot<br>
> find QEMU binary /usr/bin/kvm: No such file or directory<br>
> Fri Nov 13 17:36:28 2009 [VMM][D]: Message received: LOG - 7 ExitCode: 1<br>
> Fri Nov 13 17:36:28 2009 [VMM][D]: Message received: DEPLOY FAILURE 7 -<br>
> Fri Nov 13 17:36:33 2009 [TM][D]: Message received: LOG - 7 tm_delete.sh:<br>
> Deleting /srv/cloud/one/var/7/images<br>
> Fri Nov 13 17:36:33 2009 [TM][D]: Message received: LOG - 7 tm_delete.sh:<br>
> Executed "rm -rf /srv/cloud/one/var/7/images".<br>
> Fri Nov 13 17:36:33 2009 [TM][D]: Message received: TRANSFER SUCCESS 7 -<br>
><br>
> Thank you in advance for your time.<br>
> Best regards,<br>
><br>
> Gianni<br>
><br>
> --<br>
><br>
> Gianni Dalla Torre<br>
> Computer Science Engineering<br>
> INFN -CNAF<br>
> Via Ranzani 13/2<br>
> 40127 Bologna, Italy<br>
> Phone: +39 051 6092913<br>
> Fax: +39 051 6092916<br>
> mail: dallatorre&<a href="http://cnaf.infn.it" target="_blank">cnaf.infn.it</a><br>
><br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org" target="_blank">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>
><br>
<font color="#888888"><br>
<br>
<br>
--<br>
Shi Jin, Ph.D.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">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>
</font></blockquote></div></div></div><br>
<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>