Hello Jan,<div><br></div><div>can you please revert to your initial conf (dyn_ownership = 0) and send us:</div><div><br></div><div># something like this (the disk will have probably changed by now):</div><div>$ ls -l `readlink -f <span style> </span><span style>/var/lib/one/5/images/disk.1`</span></div>
<div><span style><br></span></div><div><span style>and:</span></div><div><span style>$ id</span></div><div><span style>$ </span><font color="#222222" face="arial, sans-serif">grep -Ev '^($|#)' /etc/libvirt/qemu.conf</font></div>
<div><font color="#222222" face="arial, sans-serif"><br></font></div><div><span style>can you confirm that libvirtd is running and restarted?</span></div><div><font color="#222222" face="arial, sans-serif"><br></font></div>
<div><font color="#222222" face="arial, sans-serif">regards,<br>Jaime</font></div><div><br><div class="gmail_quote">On Wed, Jun 20, 2012 at 11:14 AM, Jan Benadik <span dir="ltr"><<a href="mailto:jan.benadik@atos.net" target="_blank">jan.benadik@atos.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
ad1) <br>
- doesn't help, libvirtd daemon didn't start (dnsmasq only)<br>
- yes - it is owned by oneadmin (but this is link only, original
file is owned by oneadmin too)<br>
<br>
ad2) - doesn't help<br>
<br>
Still the same error message.<br>
<br>
<br>
Jan<br>
<br>
Dňa 20.06.2012 09:12, cloud.b.lab wrote / napísal(a):
<div><div class="h5"><blockquote type="cite">
<div style="font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif">Jan,<br>
<br>
This reply is from a ONE user.<br>
<br>
Try after making following change:<br>
<br>
1) In /etc/libvirt/libvirtd.conf set :<br>
<br>
#unix_sock_group = "libvirtd"<br>
unix_sock_group = "oneadmin"<br>
<br>
<br>
<br>
Restart Libvirt-bin.<br>
<br>
Also just check if the ownership of /var/lib/one/5/images/disk.1
is with oneadmin.<br>
<br>
If that does't help try with following too<br>
2) In /etc/libvirt/qemu.conf I have set <br>
dynamic_ownership = 1<br>
<br>
Regards,<br>
Anil.<br>
<div><br>
---- On Tue, 19 Jun 2012 23:32:43 -0700 <b>Jan Benadik<<a href="mailto:jan.benadik@atos.net" target="_blank">jan.benadik@atos.net</a>></b> wrote
---- <br>
</div>
<br>
<blockquote style="border-left:1px solid #0000ff;padding-left:6px">
<div bgcolor="#FFFFFF" text="#000000"> Thanks for reply, but
it doesn't help.<br>
Still the same result ...:-(<br>
<br>
Jan<br>
<br>
Dňa 19.06.2012 19:06, Jaime Melis wrote / napísal(a):
<blockquote type="cite"> Hello,
<div><br>
</div>
<div>You probably need to add oneadmin to the disk group.</div>
<div><br>
Let us know if that doesn't work.</div>
<div><br>
Cheers,<br>
Jaime<br>
<br>
<div>On Mon, Jun 18, 2012 at 12:44 PM, Jan Benadik <span dir="ltr"><<a href="mailto:jan.benadik@atos.net" target="_blank">jan.benadik@atos.net</a>></span>
wrote:<br>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Hi all,<br>
<br>
I have two machines with Ubuntu 12.04 Server
("central" and "host"), KVM hypervisor, Opennebula
3.2.1, shared /var/lib/one folder (nfs)<br>
User "oneadmin" and group "cloud" has the same uid
and gid on both systems, user oneadmin is a member
of kvm and libvirtd group too.<br>
<br>
In /etc/libvirt/libvirtd.conf I have set :<br>
listen_tls = 0<br>
listen_tcp = 1<br>
unix_sock_group = "libvirtd"<br>
unix_sock_ro_perms = "0777"<br>
unix_sock_rw_perms = "0777"<br>
unix_sock_dir = "/var/run/libvirt"<br>
auth_unix_ro = "none"<br>
auth_unix_rw = "none"<br>
<br>
In /etc/libvirt/qemu.conf I have set :<br>
- user = "oneadmin"<br>
- group = "cloud"<br>
- dynamic_ownership = 0<br>
<br>
In /etc/apparmor.d/usr.sbin.libvirtd I have set:<br>
/var/lib/one/** lrwk,<br>
<br>
Daemon libvirtd is running on both machines.<br>
Permissions for /var/lib/one folder are:<br>
drwxr-xr-x 15 oneadmin root 4096 June 18 10:46 one<br>
<br>
Permissions of folder /var/lib/one/images are:<br>
drwsrws--T 2 oneadmin cloud 4096 June 18 10:46
images<br>
<br>
Permissions of images are:<br>
-rw-rw---- 1 oneadmin cloud 688914432 June 18
10:46 e9203521a014fd8045d64206277acaa6f<br>
-rw-rw---- 1 oneadmin cloud 10737418241 June 18
10:46 6f2589756c6432563546cc36543c55465<br>
<br>
<br>
Monitoring of host is working, but if I want to
start VM, the folloving error is in
/var/log/one/oned.log:<br>
Mon Jun 18 10:17:56 2012 [DiM][I]: New VM state is
ACTIVE.<br>
Mon Jun 18 10:17:57 2012 [LCM][I]: New VM state is
PROLOG.<br>
Mon Jun 18 10:17:57 2012 [VM][I]: Virtual Machine
has no context<br>
Mon Jun 18 10:17:58 2012 [TM][D]: tm_clone.sh:
seed:/var/lib/one/images/e9203521a14fd8045d64206277acaa6f
myto:/var/lib/one/5/images/disk.0<br>
Mon Jun 18 10:17:58 2012 [TM][D]: tm_clone.sh:
DST: /var/lib/one/5/images/disk.0<br>
Mon Jun 18 10:17:58 2012 [TM][I]: tm_clone.sh:
Creating directory /var/lib/one/5/images<br>
Mon Jun 18 10:17:58 2012 [TM][I]: tm_clone.sh:
Executed "mkdir -p /var/lib/one/5/images".<br>
Mon Jun 18 10:17:58 2012 [TM][I]: tm_clone.sh:
Executed "chmod a+w /var/lib/one/5/images".<br>
Mon Jun 18 10:17:58 2012 [TM][I]: tm_clone.sh:
Cloning
/var/lib/one/images/e9203521a14fd8045d64206277acaa6f<br>
Mon Jun 18 10:17:58 2012 [TM][I]: tm_clone.sh:
Executed "cp -r
/var/lib/one/images/e9203521a14fd8045d64206277acaa6f
/var/lib/one/5/images/disk.0".<br>
Mon Jun 18 10:17:58 2012 [TM][I]: tm_clone.sh:
Executed "chmod a+rw
/var/lib/one/5/images/disk.0".<br>
Mon Jun 18 10:17:58 2012 [TM][I]: ExitCode: 0<br>
Mon Jun 18 10:17:58 2012 [TM][I]: tm_ln.sh:
Creating directory /var/lib/one/5/images<br>
Mon Jun 18 10:17:58 2012 [TM][I]: tm_ln.sh:
Executed "mkdir -p /var/lib/one/5/images".<br>
Mon Jun 18 10:17:58 2012 [TM][I]: tm_ln.sh:
Executed "chmod a+w /var/lib/one/5/images".<br>
Mon Jun 18 10:17:58 2012 [TM][I]: tm_ln.sh: Link
/var/lib/one/images/6f540e1c32177f6e5f5cc9a51bc42408<br>
Mon Jun 18 10:17:58 2012 [TM][I]: tm_ln.sh:
Executed "ln -s
/var/lib/one/images/6f540e1c32177f6e5f5cc9a51bc42408
/var/lib/one/5/images/disk.1".<br>
Mon Jun 18 10:17:58 2012 [TM][I]: ExitCode: 0<br>
Mon Jun 18 10:18:04 2012 [LCM][I]: New VM state is
BOOT<br>
Mon Jun 18 10:18:04 2012 [VMM][I]: Generating
deployment file: /var/lib/one/5/deployment.0<br>
Mon Jun 18 10:18:04 2012 [VMM][I]: ExitCode: 0<br>
Mon Jun 18 10:18:04 2012 [VMM][I]: Successfully
execute network driver operation: pre.<br>
Mon Jun 18 10:18:07 2012 [VMM][I]: Command
execution fail: cat << EOT |
/var/tmp/one/vmm/kvm/deploy
/var/lib/one/5/images/deployment.0 myto 5 myto<br>
Mon Jun 18 10:18:07 2012 [VMM][I]: error: Failed
to create domain from
/var/lib/one/5/images/deployment.0<br>
Mon Jun 18 10:18:07 2012 [VMM][I]: error: internal
error process exited while connecting to monitor:
kvm: -drive
file=/var/lib/one/5/images/disk.1,if=none,id=drive-ide0-0-0,format=raw:
could not open disk image
/var/lib/one/5/images/disk.1: Permission denied<br>
Mon Jun 18 10:18:07 2012 [VMM][I]: <br>
Mon Jun 18 10:18:07 2012 [VMM][E]: Could not
create domain from
/var/lib/one/5/images/deployment.0<br>
Mon Jun 18 10:18:07 2012 [VMM][I]: ExitCode: 255<br>
Mon Jun 18 10:18:07 2012 [VMM][I]: Failed to
execute virtualization driver operation: deploy.<br>
Mon Jun 18 10:18:07 2012 [VMM][E]: Error deploying
virtual machine: Could not create domain from
/var/lib/one/5/images/deployment.0<br>
Mon Jun 18 10:18:12 2012 [DiM][I]: New VM state is
FAILED<br>
<br>
I dont knew where is issue - could somebody help
me?<br>
<br>
Thx<span><font color="#888888"><br>
<div>-- <br>
<font color="black" face="Verdana" size="3">Jan
Benadik<br>
<font face="Verdana"><a>+421 46 5151
332</a><br>
<a>+421 903 691
634</a><br>
<a href="mailto://jan.benadik@atos.net" target="_blank">jan.benadik@atos.net</a><br>
Vinohradn cka 6, 971 01 Prievidza<br>
<a href="http://www.sk.atos.net" target="_blank">www.sk.atos.net</a><br>
__________________________________<br>
<br>
<br>
</font> </font></div>
</font></span></div>
<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>
<br>
</blockquote>
</div>
<br>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
Jaime Melis<br>
Project Engineer<br>
OpenNebula - The Open Source Toolkit for Cloud Computing<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a><br>
</blockquote>
<br>
<div>-- <br>
<font color="black" face="Verdana" size="3"> <img alt="" src="cid:part11.01000501.07040702@atos.net" height="15" width="252"><br>
<b>Ján Beňadik</b><br>
<font face="Verdana"> Managed Services -
Solution Design Architect<br>
<a href="tel:%2B421%2046%205151%20332" value="+421465151332" target="_blank">+421 46 5151 332</a><br>
<a href="tel:%2B421%20903%20691%20634" value="+421903691634" target="_blank">+421 903 691 634</a><br>
<a href="mailto://jan.benadik@atos.net" target="_blank">jan.benadik@atos.net</a><br>
Vinohradnícka 6, 971 01 Prievidza<br>
<a href="http://www.sk.atos.net" target="_blank">www.sk.atos.net</a><br>
__________________________________<br>
<br>
<img alt="" src="cid:part14.01050806.07000100@atos.net" height="58" width="261"><br>
</font> </font></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>
</div>
</blockquote>
<br>
</div>
</blockquote>
<br>
<div>-- <br>
<font color="black" face="Verdana" size="3"> <img alt="" src="cid:part17.04020400.02000606@atos.net" height="15" width="252"><br>
<b>Ján Beňadik</b><br>
<font face="Verdana"> Managed Services - Solution
Design Architect<br>
<a href="tel:%2B421%2046%205151%20332" value="+421465151332" target="_blank">+421 46 5151 332</a><br>
<a href="tel:%2B421%20903%20691%20634" value="+421903691634" target="_blank">+421 903 691 634</a><br>
<a href="mailto://jan.benadik@atos.net" target="_blank">jan.benadik@atos.net</a><br>
Vinohradnícka 6, 971 01 Prievidza<br>
<a href="http://www.sk.atos.net" target="_blank">www.sk.atos.net</a><br>
__________________________________<br>
<br>
<img alt="" src="cid:part20.09090506.01050608@atos.net" height="58" width="261"><br>
</font> </font></div>
</div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Jaime Melis<br>Project Engineer<br>OpenNebula - The Open Source Toolkit for Cloud Computing<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a><br>
</div>