<html>
<head>
<meta content="text/html; charset=ISO-8859-2"
http-equiv="Content-Type">
</head>
<body 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):
<blockquote
cite="mid:13808bcadc6.-1491698942395911875.5447238603544645750@zoho.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-2">
<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 id="1"><br>
---- On Tue, 19 Jun 2012 23:32:43 -0700 <b>Jan Benadik<<a
moz-do-not-send="true" 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 cite="mid:CA+HrgRoXnM4fMpk+usPc<a
href='mailto:oXLf7bivww46qi2Hzf5V0pEi7v70zA@mail.gmail.com'
target='_blank'>oXLf7bivww46qi2Hzf5V0pEi7v70zA@mail.gmail.com</a>"
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 moz-do-not-send="true"
subjmailid="jan.benadik%40atos.net"
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
moz-do-not-send="true">+421 46 5151
332</a><br>
<a moz-do-not-send="true">+421 903 691
634</a><br>
<a moz-do-not-send="true"
subjmailid="%2F%2Fjan.benadik%40atos.net"
href="mailto://jan.benadik@atos.net"
target="_blank">jan.benadik@atos.net</a><br>
Vinohradn cka 6, 971 01 Prievidza<br>
<a moz-do-not-send="true"
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 moz-do-not-send="true"
subjmailid="Users%40lists.opennebula.org"
href="mailto:Users@lists.opennebula.org"
target="_blank">Users@lists.opennebula.org</a><br>
<a moz-do-not-send="true"
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 moz-do-not-send="true" href="http://www.OpenNebula.org"
target="_blank">www.OpenNebula.org</a> | <a
moz-do-not-send="true"
subjmailid="jmelis%40opennebula.org"
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" size="2"> Managed Services -
Solution Design Architect<br>
+421 46 5151 332<br>
+421 903 691 634<br>
<a moz-do-not-send="true"
subjmailid="%2F%2Fjan.benadik%40atos.net"
href="mailto://jan.benadik@atos.net" target="_blank">jan.benadik@atos.net</a><br>
Vinohradnícka 6, 971 01 Prievidza<br>
<a moz-do-not-send="true"
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 moz-do-not-send="true"
subjmailid="Users%40lists.opennebula.org"
href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a>
<br>
<a moz-do-not-send="true"
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 class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-2">
<title></title>
<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" size="2"> Managed Services - Solution
Design Architect<br>
+421 46 5151 332<br>
+421 903 691 634<br>
<a href="mailto://jan.benadik@atos.net">jan.benadik@atos.net</a><br>
Vinohradnícka 6, 971 01 Prievidza<br>
<a href="http://www.sk.atos.net">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>
</body>
</html>