Dear Andre, I didn't find /opt/opennebula/etc/vmm_exec/vmm_exec_kvm.conf I'm using CentOS 6.3, is there some different?
Thank you. 2012/10/8 André Monteiro <andre.mont...@gmail.com> > Hello, > > The one time I had that problem I couldn't connect to hypervisor from > virsh. Try virsh -c qemu:///system to confirm that. > > My solution was: > > - Edit /etc/libvirt/libvirtd.conf > - Add unix_sock_group = oneadmin > - Add unix_sock_ro_perms = 0777 > - Add unix_sock_rw_perms = 0777 > - Add auth_unix_rw = "none" > - service libvirtd restart > - Edit /opt/opennebula/etc/vmm_exec/vmm_exec_kvm.conf > - Add EMULATOR = /usr/libexec/qemu-kvm > - one stop > - one start > > > -- > André Monteiro > > > > > > On Mon, Oct 8, 2012 at 10:28 AM, Tuan Le Doan <tuan.fet...@gmail.com>wrote: > > >> Thank you for all reply, I fixed that error, but after that i received >> another error when i created host: >> >> This is my oned.log file: >> >> Command execution fail: 'if [ -x "/var/tmp/one/im/run_probes" ]; then >> /var/tmp/one/im/run_probes kvm 1 centoshost; >> else exit 42; fi' >> Fri Oct 5 16:52:51 2012 [InM][I]: error: authentication failed: >> Authorization requires authentication but no agent is available. >> Fri Oct 5 16:52:51 2012 [InM][I]: >> Fri Oct 5 16:52:51 2012 [InM][I]: error: failed to connect to the >> hypervisor >> Fri Oct 5 16:52:51 2012 [InM][E]: Error executing kvm.rb >> Fri Oct 5 16:52:51 2012 [InM][I]: ExitCode: 255 >> Fri Oct 5 16:52:51 2012 [InM][E]: Error monitoring host 1 : MONITOR >> FAILURE 1 Error executing kvm.rb >> >> I tried to add libvirt group and add oneadmin user to libvirt and kvm >> group, but it's still error. >> >> Hope that anyone can help me :P >> >> Regards. >> >> >> 2012/10/3 Rodolfo Conte Brufatto <rcbrufa...@gmail.com> >> >> >>> Tuan, there is no key in your .ssh directory. You will need that anyway. >>> Make sure the key pair file and the public key are available in that >>> directory. After that, depending on how you generated the key files (using >>> ssh-keygen or openssl) you just need to copy your public key to >>> .ssh/authorized_keys. If it was created with openssl you can export it >>> using ssh-keygen as well. >>> >>> cheers >>> >>> >>> >>> >>> On Wed, Oct 3, 2012 at 6:04 AM, Tuan Le Doan <tuan.fet...@gmail.com>wrote: >>> >>> >>>> I use only one machine for both of Master and Host (I installed >>>> OpenNebula and KVM in 1 server). >>>> >>>> >>>> 2012/10/3 Duverne, Cyrille <cyrille.duve...@euranova.eu> >>>> >>>> >>>>> Hello Tuan, >>>>> >>>>> Are you sure that the ssl key of oneadmin on your Master machine is >>>>> the same than the one in your Host ? >>>>> >>>>> >>>>> CyD >>>>> >>>>> Blog : http://blog.cduverne.com >>>>> Twitter : @CydsWorld >>>>> >>>>> "Imagination is more important than Knowledge" >>>>> Albert Einstein >>>>> >>>>> >>>>> >>>>> Mercredi 03/10/2012 à 9:43 Tuan Le Doan a écrit: >>>>> >>>>> >>>>> Hi CyD, >>>>> >>>>> This is the output: >>>>> >>>>> [oneadmin@centoshost Desktop]$ ls -lArth /var/lib/one/.ssh/config >>>>> -rw-rw-r--. 1 oneadmin oneadmin 33 Sep 24 15:35 >>>>> /var/lib/one/.ssh/config >>>>> >>>>> Do you know how can i do to fix it? >>>>> >>>>> Thanks. >>>>> >>>>> 2012/10/3 Duverne, Cyrille <cyrille.duve...@euranova.eu> >>>>> >>>>> >>>>>> Hello Tuan, >>>>>> >>>>>> Could you send the output of : " ls -lArth /var/lib/one/.ssh/config " >>>>>> >>>>>> I suspect you didn't chown -R the directory. >>>>>> >>>>>> Kind regards >>>>>> CyD >>>>>> >>>>>> Blog : http://blog.cduverne.com >>>>>> Twitter : @CydsWorld >>>>>> >>>>>> "Imagination is more important than Knowledge" >>>>>> Albert Einstein >>>>>> >>>>>> >>>>>> Mercredi 03/10/2012 à 6:58 Tuan Le Doan a écrit: >>>>>> >>>>>> >>>>>> Dear all, >>>>>> >>>>>> >>>>>> I have installed Opennebula 3.6 and KVM successful on single machine >>>>>> (CentOS 6.3). >>>>>> >>>>>> But when I add host and run “onehost list” command, the state of host >>>>>> is error. >>>>>> >>>>>> I checked the log file and saw “Bad owner or permisions on >>>>>> /var/lib/one/.ssh/config” message. >>>>>> >>>>>> >>>>>> So I think my error is the password less connection to host was lost. >>>>>> >>>>>> I tried to change permission of /var/lib/one to oneadmin user with >>>>>> “sudo chown oneadmin:oneadmin /var/lib/one” but it’s still error. >>>>>> >>>>>> I couldn’t create SSH key for oneadmin because of “Bad owner or >>>>>> permisions on /var/lib/one/.ssh/config” error. >>>>>> >>>>>> >>>>>> Anyone can help me to fix it? >>>>>> >>>>>> >>>>>> Regards. >>>>>> >>>>>> -- >>>>>> >>>>>> *Le Doan Tuan-----------------------------------------------------* >>>>>> Undergraduate Student of School of Electronics & Telecommunications. >>>>>> Hanoi University of Science & Technology >>>>>> >>>>>> >>>>>> >>>>>> Tel : +84 987 248 215 >>>>>> Yahoo: ledoantuan1 >>>>>> Skype: ledoantuan1 >>>>>> >>>>>> >>>>>> >>>>> >>>>> -- >>>>> >>>>> *Le Doan Tuan-----------------------------------------------------* >>>>> Undergraduate Student of School of Electronics & Telecommunications. >>>>> Hanoi University of Science & Technology >>>>> >>>>> >>>>> >>>>> Tel : +84 987 248 215 >>>>> Yahoo: ledoantuan1 >>>>> Skype: ledoantuan1 >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> >>>> *Le Doan Tuan-----------------------------------------------------* >>>> Undergraduate Student of School of Electronics & Telecommunications. >>>> Hanoi University of Science & Technology >>>> >>>> >>>> >>>> Tel : +84 987 248 215 >>>> Yahoo: ledoantuan1 >>>> Skype: ledoantuan1 >>>> >>>> >>>> _______________________________________________ >>>> Users mailing list >>>> Users@lists.opennebula.org >>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org >>>> >>>> >>>> >>> >>> >>> -- >>> Have you tried turning it off and on again? >>> >>> >>> >>> >>> >> >> >> -- >> >> *Le Doan Tuan-----------------------------------------------------* >> Undergraduate Student of School of Electronics & Telecommunications. >> Hanoi University of Science & Technology >> >> >> >> Tel : +84 987 248 215 >> Yahoo: ledoantuan1 >> Skype: ledoantuan1 >> >> >> >> _______________________________________________ >> Users mailing list >> Users@lists.opennebula.org >> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org >> >> >> > > -- *Le Doan Tuan-----------------------------------------------------* Undergraduate Student of School of Electronics & Telecommunications. Hanoi University of Science & Technology Tel : +84 987 248 215 Yahoo: ledoantuan1 Skype: ledoantuan1
_______________________________________________ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org