[one-users] Error when instantiating VM from image

cloud.b.lab cloud.b.lab at zoho.com
Wed Jun 20 00:12:59 PDT 2012


Jan,

This reply is from a ONE user.

Try after making following change:

1) In /etc/libvirt/libvirtd.conf set :
 
#unix_sock_group = "libvirtd"
unix_sock_group = "oneadmin"



Restart Libvirt-bin.

Also just check if the ownership of /var/lib/one/5/images/disk.1 is with oneadmin.

If that does't help try with following too
2) In /etc/libvirt/qemu.conf I have set 
 dynamic_ownership = 1

Regards,
Anil.

---- On Tue, 19 Jun 2012 23:32:43 -0700 Jan Benadik<jan.benadik at atos.net> wrote ---- 


  Thanks for reply, but it doesn't help.
 Still the same result ...:-(
 
 Jan
 
 Dňa 19.06.2012 19:06, Jaime Melis  wrote / napísal(a):  Hello, 
 
 You probably need to add oneadmin to the disk group.
 
 Let us know if that doesn't work.
 
 Cheers,
 Jaime
 
 On Mon, Jun 18, 2012 at 12:44 PM, Jan Benadik <jan.benadik at atos.net> wrote:
   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.benadik at atos.net
 Vinohradn cka 6, 971 01 Prievidza
 www.sk.atos.net
 __________________________________
 
 
  
 
 
 _______________________________________________
 Users mailing list
 Users at lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
 
  
 
 
 
 
 
 -- 
 Jaime Melis
 Project Engineer
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org | jmelis at opennebula.org
  
 -- 
  
 Ján Beňadik
  Managed Services - Solution Design Architect
 +421 46 5151 332
 +421 903 691 634
 jan.benadik at atos.net
 Vinohradnícka 6, 971 01 Prievidza
 www.sk.atos.net
 __________________________________
 
 
  
 _______________________________________________ 
Users mailing list 
Users at lists.opennebula.org 
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org 



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120620/ad89631d/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2.gif
Type: image/gif
Size: 1723 bytes
Desc: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120620/ad89631d/attachment-0006.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1.gif
Type: image/gif
Size: 281 bytes
Desc: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120620/ad89631d/attachment-0007.gif>


More information about the Users mailing list