<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:14pt"><div><span>Hi,</span></div><div><br><span></span></div><div><span>Thank you for your response.</span></div><div><span id="result_box" class="" lang="en"><span class="hps">We use</span> <span class="hps">ubuntu</span> <span class="hps">V11</span><span>.4</span><br>W<span class="hps">e don't have</span> <font size="3"><span style="font-style: italic;" class="hps"></span></font></span><font size="3"><span style="font-style: italic;">/etc/apparmor.d/local/usr.sbin.libvirtd</span></font> but only <font style="font-style: italic;" size="3">/etc/apparmor.d/usr.sbin.libvirtd</font></div><div>However, <span id="result_box" class="" lang="en"><span class="hps">we made</span> <span class="hps">the changes</span> <span class="hps">as</span> <span class="hps">you said</span> <span class="hps">but</span> <span class="hps">it does not
work.</span></span></div><div><span id="result_box" class="short_text" lang="en"><span class="hps">Can you</span> <span class="hps">suggest</span> <span class="hps">to us something else? Thanks.<br></span></span></div> <div style="font-family: times new roman, new york, times, serif; font-size: 14pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">De :</span></b> Javier Fontan <jfontan@opennebula.org><br> <b><span style="font-weight: bold;">À :</span></b> yangui sami <yangui.sami@yahoo.fr> <br><b><span style="font-weight: bold;">Cc :</span></b> Carlos Martín Sánchez <cmartin@opennebula.org>; users <users@lists.opennebula.org> <br> <b><span style="font-weight: bold;">Envoyé le :</span></b> Jeudi 31 mai 2012 23h25<br> <b><span style="font-weight: bold;">Objet :</span></b> Re:
[one-users] Re : Re : VM creation failure<br> </font> </div> <br>Recent versions of Ubuntu (12.04) changed the configuration files for<br>apparmor. In these versions the file you need to change is<br>/etc/apparmor.d/local/usr.sbin.libvirtd and it should contain:<br><br>/var/lib/one/** lrwk,<br><br>Tell me if this works for you<br><br>On Thu, May 31, 2012 at 4:40 PM, yangui sami <<a ymailto="mailto:yangui.sami@yahoo.fr" href="mailto:yangui.sami@yahoo.fr">yangui.sami@yahoo.fr</a>> wrote:<br>> Hi,<br>><br>> Thank you for your answer.<br>> I'm trying to follow these configuration steps but<br>> /etc/apparmor.d/libvirt-qemu does not exits!!<br>> Have you any idea about this?<br>><br>> Best,<br>> ________________________________<br>> De : Carlos Martín Sánchez <<a ymailto="mailto:cmartin@opennebula.org" href="mailto:cmartin@opennebula.org">cmartin@opennebula.org</a>><br>> À : yangui sami <<a
ymailto="mailto:yangui.sami@yahoo.fr" href="mailto:yangui.sami@yahoo.fr">yangui.sami@yahoo.fr</a>><br>> Cc : users <<a ymailto="mailto:users@lists.opennebula.org" href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a>><br>> Envoyé le : Jeudi 31 mai 2012 16h31<br>> Objet : Re: [one-users] Re : VM creation failure<br>><br>> Hi,<br>><br>> Did you follow these configuration steps?<br>> <a href="http://opennebula.org/documentation:rel3.4:kvmg#configuration" target="_blank">http://opennebula.org/documentation:rel3.4:kvmg#configuration</a><br>><br>> Regards<br>> --<br>> Carlos Martín, MSc<br>> Project Engineer<br>> OpenNebula - The Open-source Solution for Data Center Virtualization<br>> www.OpenNebula.org | <a ymailto="mailto:cmartin@opennebula.org" href="mailto:cmartin@opennebula.org">cmartin@opennebula.org</a> | @OpenNebula<br>><br>><br>><br>> On Thu, May 31,
2012 at 4:20 PM, yangui sami <<a ymailto="mailto:yangui.sami@yahoo.fr" href="mailto:yangui.sami@yahoo.fr">yangui.sami@yahoo.fr</a>> wrote:<br>><br>> Thanks for your response.<br>> The answer is Yes, /var/lib/one//datastores/0 has write access for oneadmin<br>> use.<br>><br>> Best,<br>> ________________________________<br>> De : Olivier Sallou <<a ymailto="mailto:olivier.sallou@irisa.fr" href="mailto:olivier.sallou@irisa.fr">olivier.sallou@irisa.fr</a>><br>> À : open nebula <<a ymailto="mailto:users@lists.opennebula.org" href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a>><br>> Envoyé le : Jeudi 31 mai 2012 16h05<br>> Objet : Re: [one-users] VM creation failure<br>><br>><br>><br>> Le 5/31/12 3:31 PM, yangui sami a écrit :<br>><br>> Hi all,<br>> We installed OpenNebulla 3.4.1.<br>> When I create a new Virtual Machine it goes to the host
node and attempts to<br>> Boot, then it passes to FAILED status.<br>> The Error shown with sunstone is:<br>><br>> Thu May 31 14:37:31 2012 [LCM][I]: New VM state is BOOT<br>> Thu May 31 14:37:31 2012 [VMM][I]: Generating deployment file:<br>> /var/lib/one/46/deployment.0<br>> Thu May 31 14:37:33 2012 [VMM][I]: ExitCode: 0<br>> Thu May 31 14:37:33 2012 [VMM][I]: Successfully execute network driver<br>> operation: pre.<br>> Thu May 31 14:38:03 2012 [VMM][I]: Command execution fail: cat << EOT |<br>> /var/tmp/one/vmm/kvm/deploy /var/lib/one//datastores/0/46/deployment.0 ip@<br>> 46 157.159.110.194<br>> Thu May 31 14:38:03 2012 [VMM][I]: error: Failed to create domain from<br>> /var/lib/one//datastores/0/46/deployment.0<br>> Thu May 31 14:38:03 2012 [VMM][I]: error: cannot set ownership on<br>> /var/lib/one//datastores/0/46/disk.0: No such file or directory<br>> Thu May 31 14:38:03 2012 [VMM][E]:
Could not create domain from<br>> /var/lib/one//datastores/0/46/deployment.0<br>> Thu May 31 14:38:03 2012 [VMM][I]: ExitCode: 255<br>> Thu May 31 14:38:03 2012 [VMM][I]: Failed to execute virtualization driver<br>> operation: deploy.<br>> Thu May 31 14:38:03 2012 [VMM][E]: Error deploying virtual machine: Could<br>> not create domain from /var/lib/one//datastores/0/46/deployment.0<br>> Thu May 31 14:38:04 2012 [DiM][I]: New VM state is FAILED<br>><br>> in the host side, the /var/log/libvirt/qemu/one-46.log contains:<br>> libvir: QEMU error: cannot set ownership on<br>> /var/lib/one//datastores/0/46/disk.0: No such file or directory.<br>><br>> Does any one have any idea to resolve this problem?<br>><br>> Does directory ( /var/lib/one//datastores/0) has write access for oneadmin<br>> user?<br>><br>> Best regards;<br>><br>><br>> _______________________________________________<br>>
Users mailing list<br>> <a ymailto="mailto:Users@lists.opennebula.org" 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>><br>><br>> --<br>> Olivier Sallou<br>> IRISA / University of Rennes 1<br>> Campus de Beaulieu, 35000 RENNES - FRANCE<br>> Tel: 02.99.84.71.95<br>><br>> gpg key id: 4096R/326D8438 (keyring.debian.org)<br>> Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438<br>><br>><br>> _______________________________________________<br>> Users mailing list<br>> <a ymailto="mailto:Users@lists.opennebula.org" 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>><br>><br>><br>> _______________________________________________<br>> Users mailing list<br>> <a ymailto="mailto:Users@lists.opennebula.org" 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>><br>><br>><br>><br>><br>> _______________________________________________<br>> Users mailing list<br>> <a ymailto="mailto:Users@lists.opennebula.org" 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>><br><br><br><br>-- <br>Javier Fontán Muiños<br>Project
Engineer<br>OpenNebula - The Open Source Toolkit for Data Center Virtualization<br>www.OpenNebula.org | <a ymailto="mailto:jfontan@opennebula.org" href="mailto:jfontan@opennebula.org">jfontan@opennebula.org</a> | @OpenNebula<br><br><br> </div> </div> </div></body></html>