Hi,<br><br>I would try to add/uncomment the following lines in the file /etc/libvirt/libvirtd.conf:<br><br>auth_unix_ro = "none"<br>auth_unix_rw = "none"<br><br>Why? I had to do it in my Fedora 11, and I think you are using Scientific Linux, which must be similar to Fedora.<br>
<br>Hope this helps.<br><br>Fernando.<br><br><div class="gmail_quote">2009/11/17 Shi Jin <span dir="ltr"><<a href="mailto:jinzishuai@gmail.com">jinzishuai@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
My pleasure.<br>
I think the problem is that you have to setup brdiged network on the<br>
host properlly.<br>
Instead of using eth0 as the network device in the VM, you should use br0.<br>
You can google how to setup bridged network for virtualization for<br>
your Linux distribution.<br>
Hope this helps.<br>
<br>
Shi<br>
<br>
On Tue, Nov 17, 2009 at 7:23 AM, Gianni Dalla Torre<br>
<div><div></div><div class="h5"><<a href="mailto:gianni.dallatorre@cnaf.infn.it">gianni.dallatorre@cnaf.infn.it</a>> wrote:<br>
> Hi Shi,<br>
><br>
> I followed your advice and created a symbolic link to /usr/bin/kvm<br>
> --oneadmin@omii001$ ln -s /usr/libexec/qemu-kvm /usr/bin/kvm<br>
><br>
> So I was able to solve that problem, thank you very much.<br>
><br>
> Anyway now I have another issue when I try do deploy my VM:<br>
> libvir: QEMU error :internal error Failed to add tap interface 'vnet%d' to<br>
> bridge 'eth0' : Permission denied<br>
> This are the settings on omii001 host that I should be related with the<br>
> issue:<br>
><br>
> --oneadmin@omii001$ id root<br>
> uid=0(root) gid=0(root)<br>
> groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),127(libvirtd),36(kvm)<br>
><br>
> --oneadmin@omii001$ id oneadmin<br>
> uid=1002(oneadmin) gid=1003(cloud) groups=1003(cloud),127(libvirtd),36(kvm)<br>
><br>
> --oneadmin@omii001$ cat /etc/group<br>
> libvirtd:x:127:root,oneadmin,cloud<br>
> cloud:x:1003:<br>
> kvm:x:36:root,oneadmin,cloud<br>
><br>
> --oneadmin@omii001$ ls -la /var/run/libvirt/<br>
> total 20<br>
> drwxr-xr-x 4 root root 4096 Nov 17 13:12 .<br>
> drwxr-xr-x 16 root root 4096 Nov 17 14:32 ..<br>
> srwxrwx--- 1 root libvirtd 0 Nov 17 13:12 libvirt-sock<br>
> srwxrwxrwx 1 root libvirtd 0 Nov 17 13:12 libvirt-sock-ro<br>
> drwxr-xr-x 2 root root 4096 Nov 17 13:12 network<br>
> drwxr-xr-x 2 root root 4096 Sep 11 21:38 qemu<br>
><br>
> --oneadmin@omii001$ cat /etc/libvirt/libvirtd.conf<br>
> unix_sock_rw_perms = "0770"<br>
> unix_sock_group = "libvirtd"<br>
><br>
> I am not sure virsh is connecting in the right way, in fact if try "virsh -c<br>
> qemu:///system list" in the omii001 host<br>
> I obtain a different output to the one from another host (that actually<br>
> works), maybe have I to set the connection uri?<br>
><br>
> --oneadmin@omii001$virsh -c qemu:///system list<br>
> Id Name State<br>
> ----------------------------------<br>
><br>
> --oneadmin@ivanoc$virsh -c qemu:///system list<br>
> Connecting to uri: qemu:///system<br>
> Id Name State<br>
> ----------------------------------<br>
><br>
> The oned.log related to VM creation and deployment:<br>
><br>
> Tue Nov 17 13:18:13 2009 [TM][D]: Message received: TRANSFER SUCCESS 15 -<br>
> Tue Nov 17 13:18:19 2009 [InM][I]: Monitoring host omii001 (4)<br>
> Tue Nov 17 13:18:25 2009 [InM][D]: Host 4 successfully monitored.<br>
> Tue Nov 17 13:18:46 2009 [VMM][I]: --Mark--<br>
> Tue Nov 17 13:18:49 2009 [InM][I]: --Mark--<br>
> Tue Nov 17 13:18:52 2009 [VMM][D]: Message received: LOG - 15 Command<br>
> execution fail: 'cat > /srv/cloud/one/var/15/images/deployment.0 && virsh<br>
> create /srv/cloud/one/var/15/images/deployment.0'<br>
> Tue Nov 17 13:18:52 2009 [VMM][D]: Message received: LOG - 15 STDERR<br>
> follows.<br>
> Tue Nov 17 13:18:52 2009 [VMM][D]: Message received: LOG - 15 13:18:53.525:<br>
> error : No vport operation path found for host1<br>
> Tue Nov 17 13:18:52 2009 [VMM][D]: Message received: LOG - 15 13:18:53.539:<br>
> error : No vport operation path found for host0<br>
> Tue Nov 17 13:18:52 2009 [VMM][D]: Message received: LOG - 15 13:18:53.561:<br>
> error : No vport operation path found for host2<br>
> Tue Nov 17 13:18:52 2009 [VMM][D]: Message received: LOG - 15 13:18:54.182:<br>
> error : internal error Failed to add tap interface 'vnet%d' to bridge 'eth0'<br>
> : Permission denied<br>
> Tue Nov 17 13:18:52 2009 [VMM][D]: Message received: LOG - 15 libvir: QEMU<br>
> error : internal error Failed to add tap interface 'vnet%d' to bridge 'eth0'<br>
> : Permission denied<br>
> Tue Nov 17 13:18:52 2009 [VMM][D]: Message received: LOG - 15 error: Failed<br>
> to create domain from /srv/cloud/one/var/15/images/deployment.0<br>
> Tue Nov 17 13:18:52 2009 [VMM][D]: Message received: LOG - 15 error:<br>
> internal error Failed to add tap interface 'vnet%d' to bridge 'eth0' :<br>
> Permission denied<br>
> Tue Nov 17 13:18:52 2009 [VMM][D]: Message received: LOG - 15 ExitCode: 1<br>
><br>
><br>
> Thank you in advance for your time.<br>
> Best regards,<br>
><br>
> Gianni<br>
><br>
><br>
> Shi Jin ha wrote<br>
><br>
> 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>
><br>
> On Fri, Nov 13, 2009 at 10:48 AM, Gianni Dalla Torre<br>
> <<a href="mailto:gianni.dallatorre@cnaf.infn.it">gianni.dallatorre@cnaf.infn.it</a>> wrote:<br>
><br>
><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>
> _______________________________________________<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>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Shi Jin, Ph.D.<br>
</font><div><div></div><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br>