<div dir="ltr">Hi Tobias,<div><br></div><div>I have no idea why that's happening to you. I'm wondering, have you tried start the VM manually in the host after it fails to deploy? the files should be still there until you do "onevm delete".</div>
<div style>$ virsh create /var/lib/one/datastores/0/<vm_id>/deployment.0</div><div style><br></div><div style>Does /var/log/libvirtd/qemu/one-<vm_id>.log shed any light on the issue?</div><div style><br></div>
<div style>It could be a polkit problem, have you grepped the usual suspects? auth.log, etc...</div><div style><br></div><div style>cheers,<br>Jaime</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 26, 2013 at 5:21 PM, Tobias Honacker <span dir="ltr"><<a href="mailto:t.honacker@googlemail.com" target="_blank">t.honacker@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi guys,<br>
<br>
My environment:<br>
<br>
OS: CentOS 6.3<br>
Version: OpenNebula 3.8.3<br>
Datastore: LVM (DRBD 8.4.3 + clvm + crm)<br>
Filesystem of /var/lib/one: ext4<br>
Images: 1x (Type: Datablock - 10G) and 1x (Type: CDROM - Path<br>
/tmp/debian-image.iso)<br>
LVM Storage is working perfectly and without errors!<br>
<br>
<br>
My Problem:<br>
<br>
VM is not booting cause of this error:<br>
<br>
---snip---<br>
Tue Feb 26 16:17:35 2013 [VMM][D]: Message received: LOG I 1 Successfully<br>
execute network driver operation: pre.<br>
<br>
Tue Feb 26 16:17:39 2013 [VMM][D]: Message received: LOG I 1 Command<br>
execution fail: cat << EOT | /var/lib/one/remotes/vmm/kvm/deploy<br>
/var/lib/one//datastores/0/1/deployment.0 priv$<br>
<br>
Tue Feb 26 16:17:39 2013 [VMM][D]: Message received: LOG I 1 error: Failed<br>
to create domain from /var/lib/one//datastores/0/1/deployment.0<br>
<br>
Tue Feb 26 16:17:39 2013 [VMM][D]: Message received: LOG I 1 error:<br>
internal error process exited while connecting to monitor: qemu-kvm:<br>
-drive<br>
file=/var/lib/one//datastores/0/1/disk.0,if=none,id=drive-ide0-0-0,format=r<br>
aw: could not open disk image /var/lib/one//datastores/0/1/disk.0:<br>
Permission denied<br>
<br>
Tue Feb 26 16:17:39 2013 [VMM][D]: Message received: LOG I 1<br>
<br>
Tue Feb 26 16:17:39 2013 [VMM][D]: Message received: LOG E 1 Could not<br>
create domain from /var/lib/one//datastores/0/1/deployment.0<br>
<br>
Tue Feb 26 16:17:39 2013 [VMM][D]: Message received: LOG I 1 ExitCode: 255<br>
<br>
Tue Feb 26 16:17:39 2013 [VMM][D]: Message received: LOG I 1 Failed to<br>
execute virtualization driver operation: deploy.<br>
<br>
Tue Feb 26 16:17:39 2013 [VMM][D]: Message received: DEPLOY FAILURE 1<br>
Could not create domain from /var/lib/one//datastores/0/1/deployment.0<br>
---snip---<br>
<br>
<br>
<br>
Datastore Config:<br>
<br>
NAME = drbd<br>
DS_MAD = lvm<br>
TM_MAD = lvm<br>
VG_NAME = vg-one<br>
HOST = localhost<br>
<br>
<br>
<br>
[root@priv001 one]# grep -vE '^($|#)' /etc/libvirt/qemu.conf<br>
user = "oneadmin"<br>
group = "oneadmin"<br>
dynamic_ownership = 0<br>
<br>
<br>
<br>
root@priv001 one]# grep -vE '^($|#)' /etc/libvirt/libvirtd.conf<br>
listen_tls = 0<br>
listen_tcp = 1<br>
mdns_adv = 0<br>
unix_sock_group = "libvirt"<br>
unix_sock_ro_perms = "0777"<br>
unix_sock_rw_perms = "0770"<br>
auth_unix_ro = "none"<br>
auth_unix_rw = "none"<br>
<br>
<br>
<br>
[root@priv001 one]# id oneadmin<br>
uid=9869(oneadmin) gid=9869(oneadmin)<br>
Gruppen=9869(oneadmin),36(kvm),9870(libvirt)<br>
<br>
<br>
<br>
[root@priv001 one]# cat<br>
/etc/polkit-1/localauthority/50-local.d/50-org.libvirt.unix.manage-opennebu<br>
la.pkla<br>
# content of file:<br>
/etc/polkit-1/localauthority/50-local.d/50-org.libvirt.unix.manage-opennebu<br>
la.pkla<br>
[Allow oneadmin user to manage virtual machines]<br>
Identity=unix-user:oneadmin<br>
Action=org.libvirt.unix.manage<br>
#Action=org.libvirt.unix.monitor<br>
ResultAny=yes<br>
ResultInactive=yes<br>
ResultActive=yes<br>
<br>
<br>
<br>
[root@priv001 ~]# getenforce<br>
Disabled<br>
<br>
<br>
Diskpermission:<br>
<br>
lrwxrwxrwx 1 oneadmin oneadmin 24 26. Feb 17:01 disk.0 -><br>
/dev/vg-one/lv-one-0-3-0<br>
<br>
<br>
<br>
I've tried lots of thins like upgrading drbd, OpenNebula from 3.8.1 to<br>
3.8.3, using other filesystems, playing around with libvirt rights, tried<br>
oneadmin as group from libvirt etc.pp.<br>
<br>
<br>
Any idea whats wrong with my system?<br>
Thanks for helping.<br>
<br>
<br>
<br>
Best regards,<br>
Tobias<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">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>
</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>