<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-2">
</head>
<body 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<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">Jan Benadik<br>
<font face="Verdana" size="2">+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>
<br>
</font> </font></div>
</body>
</html>