<div dir="ltr">I have just started a similar thread because I have the same error, but I have already set correctly:<div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">user = "oneadmin"</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px"> group = "oneadmin"</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px"> dynamic_ownership = 0</span><br style="font-family:arial,sans-serif;font-size:13px">
<br style="font-family:arial,sans-serif;font-size:13px"><br></div><div style><font face="arial, sans-serif">Have you solved the problem?</font></div><div style><font face="arial, sans-serif">What else can I try?</font></div>
<div style><font face="arial, sans-serif"><br></font></div><div style><font face="arial, sans-serif">Thanks,</font></div><div style><font face="arial, sans-serif">Mario</font></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/11/19 Javier Fontan <span dir="ltr"><<a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The images of the VM have mixed permissions (oneadmin and root).<br>
<br>
* Make sure that oned is running as oneadmin, not root.<br>
* qemu.conf is correct. Leave it like this and reboot kpkvm1. It may<br>
be that even that the configuration is OK libvirt/kvm modules are<br>
still trying to run as root and can not use files owned by oneadmin<br>
user.<br>
<br>
Cheers<br>
<br>
<br>
<br>
On Tue, Nov 19, 2013 at 9:59 AM, Geeta Gulabani<br>
<<a href="mailto:geeta.gulabani@kpoint.com">geeta.gulabani@kpoint.com</a>> wrote:<br>
> Hi,<br>
><br>
> My Environment :<br>
><br>
> Frontend and host : centos 6.4<br>
> Opennebula version : 4.2<br>
><br>
> Tue Nov 19 13:58:16 2013 [VMM][I]: Command execution fail: cat << EOT |<br>
> /var/tmp/one/vmm/kvm/deploy '/var/lib/one//datastores/0/58/deployment.0'<br>
> '<a href="http://kpkvm1.gslab.com" target="_blank">kpkvm1.gslab.com</a>' 58 <a href="http://kpkvm1.gslab.com" target="_blank">kpkvm1.gslab.com</a><br>
> Tue Nov 19 13:58:16 2013 [VMM][I]: error: Failed to create domain from<br>
> /var/lib/one//datastores/0/58/deployment.0<br>
> Tue Nov 19 13:58:16 2013 [VMM][I]: error: internal error process exited<br>
> while connecting to monitor: qemu-kvm: -drive<br>
> file=/var/lib/one//datastores/0/58/disk.0,if=none,id=drive-ide0-0-0,format=raw,cache=none:<br>
> could not open disk image /var/lib/one//datastores/0/58/disk.0: Permission<br>
> denied<br>
> Tue Nov 19 13:58:16 2013 [VMM][I]:<br>
> Tue Nov 19 13:58:16 2013 [VMM][E]: Could not create domain from<br>
> /var/lib/one//datastores/0/58/deployment.0<br>
> Tue Nov 19 13:58:16 2013 [VMM][I]: ExitCode: 255<br>
> Tue Nov 19 13:58:16 2013 [VMM][I]: Failed to execute virtualization driver<br>
> operation: deploy.<br>
> Tue Nov 19 13:58:16 2013 [VMM][E]: Error deploying virtual machine: Could<br>
> not create domain from /var/lib/one//datastores/0/58/deployment.0<br>
> Tue Nov 19 13:58:16 2013 [DiM][I]: New VM state is FAILED<br>
><br>
> Here are some other details :<br>
><br>
> [root@kpkvm1 56]# grep -vE '^($|#)' /etc/libvirt/qemu.conf<br>
> user = "oneadmin"<br>
> group = "oneadmin"<br>
> dynamic_ownership = 0<br>
><br>
><br>
><br>
> [root@kpkvm1 58]# grep -vE '^($|#)' /etc/libvirt/libvirtd.conf<br>
> [root@kpkvm1 58]#<br>
><br>
><br>
> [root@kpkvm1 58]# cat<br>
> /etc/polkit-1/localauthority/50-local.d/50-org.libvirt.unix.manage-opennebula.pkla<br>
> [Allow oneadmin user to manage virtual machines]<br>
> Identity=unix-user:oneadmin<br>
> Action=org.libvirt.unix.manage<br>
> #Action=org.libvirt.unix.monitor<br>
> ResultAny=yes<br>
> ResultInactive=yes<br>
> ResultActive=yes<br>
><br>
><br>
><br>
><br>
><br>
><br>
> [root@kpkvm1 58]# id oneadmin<br>
> uid=9869(oneadmin) gid=9869(oneadmin) groups=9869(oneadmin)<br>
><br>
><br>
> [root@kpkvm1 58]# cat /etc/libvirt/qemu.conf<br>
> user = "oneadmin"<br>
> group = "oneadmin"<br>
> dynamic_ownership = 0<br>
><br>
><br>
> I tried changing dynamic_ownership to 1 , started libvirtd and oned and<br>
> again tried creating the vm<br>
> sudo -u oneadmin virsh -c qemu:///system create deployment.0<br>
> it gives the same error<br>
> error: Failed to create domain from deployment.0<br>
> error: internal error process exited while connecting to monitor: qemu-kvm:<br>
> -drive<br>
> file=/var/lib/one//datastores/0/58/disk.0,if=none,id=drive-ide0-0-0,format=raw,cache=none:<br>
> could not open disk image /var/lib/one//datastores/0/58/disk.0: Permission<br>
> denied<br>
><br>
><br>
><br>
> Here are the libvirtd logs :<br>
><br>
> 2013-11-19 08:52:21.246+0000: 8915: info : libvirt version: 0.10.2, package:<br>
> 18.el6_4.14 (CentOS BuildSystem <<a href="http://bugs.centos.org" target="_blank">http://bugs.centos.org</a>>,<br>
> 2013-09-19-19:15:27, <a href="http://c6b8.bsys.dev.centos.org" target="_blank">c6b8.bsys.dev.centos.org</a>)<br>
> 2013-11-19 08:52:21.246+0000: 8915: error : qemuMonitorOpenUnix:293 : failed<br>
> to connect to monitor socket: No such process<br>
> 2013-11-19 08:52:21.246+0000: 8915: error : qemuProcessWaitForMonitor:1768 :<br>
> internal error process exited while connecting to monitor: qemu-kvm: -drive<br>
> file=/var/lib/one//datastores/0/58/disk.0,if=none,id=drive-ide0-0-0,format=raw,cache=none:<br>
> could not open disk image /var/lib/one//datastores/0/58/disk.0: Permission<br>
> denied<br>
><br>
><br>
> [root@kpkvm1 58]# ls -lrt<br>
> total 6171016<br>
> -rw-r--r-- 1 oneadmin oneadmin 6318739456 Nov 19 13:58 disk.0<br>
> -rw-r--r-- 1 root root 372736 Nov 19 13:58 disk.1<br>
> lrwxrwxrwx 1 root root 35 Nov 19 13:58 disk.1.iso -><br>
> /var/lib/one/datastores/0/58/disk.1<br>
> -rw-r--r-- 1 root root 912 Nov 19 13:58 deployment.0<br>
> [root@kpkvm1 58]# sudo -u oneadmin virsh -c qemu:///system create<br>
> deployment.0<br>
> error: Failed to create domain from deployment.0<br>
> error: internal error process exited while connecting to monitor: qemu-kvm:<br>
> -drive<br>
> file=/var/lib/one//datastores/0/58/disk.0,if=none,id=drive-ide0-0-0,format=raw,cache=none:<br>
> could not open disk image /var/lib/one//datastores/0/58/disk.0: Permission<br>
> denied<br>
><br>
><br>
><br>
> Can anybody help?<br>
><br>
><br>
> Regards,<br>
> Geeta.<br>
><br>
><br>
><br>
><br>
><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>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Javier Fontán Muiños<br>
Developer<br>
OpenNebula - The Open Source Toolkit for Data Center Virtualization<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @OpenNebula | <a href="http://github.com/jfontan" target="_blank">github.com/jfontan</a><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>
</font></span></blockquote></div><br></div>