Hi all,

I have two machines with Ubuntu 12.04 Server ("central" and "host"), KVM hypervisor, Opennebula 3.2.1, shared /var/lib/one folder (nfs)
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.

In /etc/libvirt/libvirtd.conf I have set :
listen_tls = 0
listen_tcp = 1
unix_sock_group = "libvirtd"
unix_sock_ro_perms = "0777"
unix_sock_rw_perms = "0777"
unix_sock_dir = "/var/run/libvirt"
auth_unix_ro = "none"
auth_unix_rw = "none"

In /etc/libvirt/qemu.conf I have set :
- user = "oneadmin"
- group = "cloud"
- dynamic_ownership = 0

In /etc/apparmor.d/usr.sbin.libvirtd I have set:
/var/lib/one/** lrwk,

Daemon libvirtd is running on both machines.
Permissions for /var/lib/one folder are:
drwxr-xr-x 15 oneadmin root 4096 June 18 10:46 one

Permissions of folder /var/lib/one/images are:
drwsrws--T 2 oneadmin cloud 4096 June 18 10:46 images

Permissions of images are:
-rw-rw---- 1 oneadmin cloud     688914432  June 18 10:46 e9203521a014fd8045d64206277acaa6f
-rw-rw---- 1 oneadmin cloud 10737418241 June 18 10:46 6f2589756c6432563546cc36543c55465


Monitoring of host is working, but if I want to start VM, the folloving error is in /var/log/one/oned.log:
Mon Jun 18 10:17:56 2012 [DiM][I]: New VM state is ACTIVE.
Mon Jun 18 10:17:57 2012 [LCM][I]: New VM state is PROLOG.
Mon Jun 18 10:17:57 2012 [VM][I]: Virtual Machine has no context
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
Mon Jun 18 10:17:58 2012 [TM][D]: tm_clone.sh: DST: /var/lib/one/5/images/disk.0
Mon Jun 18 10:17:58 2012 [TM][I]: tm_clone.sh: Creating directory /var/lib/one/5/images
Mon Jun 18 10:17:58 2012 [TM][I]: tm_clone.sh: Executed "mkdir -p /var/lib/one/5/images".
Mon Jun 18 10:17:58 2012 [TM][I]: tm_clone.sh: Executed "chmod a+w /var/lib/one/5/images".
Mon Jun 18 10:17:58 2012 [TM][I]: tm_clone.sh: Cloning /var/lib/one/images/e9203521a14fd8045d64206277acaa6f
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".
Mon Jun 18 10:17:58 2012 [TM][I]: tm_clone.sh: Executed "chmod a+rw /var/lib/one/5/images/disk.0".
Mon Jun 18 10:17:58 2012 [TM][I]: ExitCode: 0
Mon Jun 18 10:17:58 2012 [TM][I]: tm_ln.sh: Creating directory /var/lib/one/5/images
Mon Jun 18 10:17:58 2012 [TM][I]: tm_ln.sh: Executed "mkdir -p /var/lib/one/5/images".
Mon Jun 18 10:17:58 2012 [TM][I]: tm_ln.sh: Executed "chmod a+w /var/lib/one/5/images".
Mon Jun 18 10:17:58 2012 [TM][I]: tm_ln.sh: Link /var/lib/one/images/6f540e1c32177f6e5f5cc9a51bc42408
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".
Mon Jun 18 10:17:58 2012 [TM][I]: ExitCode: 0
Mon Jun 18 10:18:04 2012 [LCM][I]: New VM state is BOOT
Mon Jun 18 10:18:04 2012 [VMM][I]: Generating deployment file: /var/lib/one/5/deployment.0
Mon Jun 18 10:18:04 2012 [VMM][I]: ExitCode: 0
Mon Jun 18 10:18:04 2012 [VMM][I]: Successfully execute network driver operation: pre.
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
Mon Jun 18 10:18:07 2012 [VMM][I]: error: Failed to create domain from /var/lib/one/5/images/deployment.0
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
Mon Jun 18 10:18:07 2012 [VMM][I]:
Mon Jun 18 10:18:07 2012 [VMM][E]: Could not create domain from /var/lib/one/5/images/deployment.0
Mon Jun 18 10:18:07 2012 [VMM][I]: ExitCode: 255
Mon Jun 18 10:18:07 2012 [VMM][I]: Failed to execute virtualization driver operation: deploy.
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
Mon Jun 18 10:18:12 2012 [DiM][I]: New VM state is FAILED

I dont knew where is issue - could somebody help me?

Thx
--
Jan Benadik
+421 46 5151 332
+421 903 691 634
jan.bena...@atos.net
Vinohradnícka 6, 971 01 Prievidza
www.sk.atos.net
__________________________________


_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to