After I restart the Front-end also cannot deploy the VM. <br><br>The output of grep -vE '^($|#)' /etc/libvirt/qemu.conf<br><br>vnc_listen = "0.0.0.0"<br><br>
user = "oneadmin"<br>
group = "oneadmin"<br>dynamic_ownership = 0<br><br>The VM log of the failed deployment after restarted with the changes;<br><br><pre>Mon Apr 29 12:43:11 2013 [DiM][I]: New VM state is ACTIVE.
Mon Apr 29 12:43:11 2013 [LCM][I]: New VM state is PROLOG.
Mon Apr 29 12:43:11 2013 [VM][I]: Virtual Machine has no context
Mon Apr 29 12:43:12 2013 [TM][I]: clone: Cloning /var/lib/one/var/datastores/1/c424c36f675edf95c310ccf183f2d5b7 in onevmhost:/var/lib/one/var//datastores/0/6/disk.0
Mon Apr 29 12:43:12 2013 [TM][I]: ExitCode: 0
Mon Apr 29 12:43:12 2013 [LCM][I]: New VM state is BOOT
Mon Apr 29 12:43:12 2013 [VMM][I]: Generating deployment file: /var/lib/one/var/vms/6/deployment.0
Mon Apr 29 12:43:12 2013 [VMM][I]: ExitCode: 0
Mon Apr 29 12:43:12 2013 [VMM][I]: Successfully execute network driver operation: pre.
Mon Apr 29 12:43:14 2013 [VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy /var/lib/one/var//datastores/0/6/deployment.0 onevmhost 6 onevmhost
Mon Apr 29 12:43:14 2013 [VMM][I]: error: Failed to create domain from /var/lib/one/var//datastores/0/6/deployment.0
Mon Apr 29 12:43:14 2013 [VMM][I]: error: internal error process exited while connecting to monitor: Could not access KVM kernel module: Permission denied
Mon Apr 29 12:43:14 2013 [VMM][I]: failed to initialize KVM: Permission denied
Mon Apr 29 12:43:14 2013 [VMM][I]: No accelerator found!
Mon Apr 29 12:43:14 2013 [VMM][I]:
<span class="vm_log_error">Mon Apr 29 12:43:14 2013 [VMM][E]: Could not create domain from /var/lib/one/var//datastores/0/6/deployment.0</span>
Mon Apr 29 12:43:14 2013 [VMM][I]: ExitCode: 255
Mon Apr 29 12:43:14 2013 [VMM][I]: Failed to execute virtualization driver operation: deploy.
<span class="vm_log_error">Mon Apr 29 12:43:14 2013 [VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one/var//datastores/0/6/deployment.0</span>
Mon Apr 29 12:43:14 2013 [DiM][I]: New VM state is FAILED</pre><br>By the way, let me clarify again the problem so that the initial problem will not mislead <br><br>The actual problem is not that I could not deploy any VM, but I cannot deploy any persistent image that I changed into non-persistent image which I cannot clone also.<br>
<br><br><div class="gmail_quote">On Fri, Apr 26, 2013 at 11:58 PM, Javier Fontan <span dir="ltr"><<a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You will probably need to restart the machine after you make those<br>
changes so the kvm modules give access to oneadmin user.<br>
<br>
On Thu, Apr 25, 2013 at 12:03 PM, Mohammad Fazli Ahmat Jalaluddin<br>
<div class="HOEnZb"><div class="h5"><<a href="mailto:fazli.mmu@gmail.com">fazli.mmu@gmail.com</a>> wrote:<br>
> Yes, after I check in /var/lib/one/var/datastore/1, there are some images<br>
> are belong to root, some are belong to root and others belong to<br>
> libvirt-qemu.<br>
><br>
> Also, I edit /etc/libvirt/qemu.conf and uncmonnet the user, group and<br>
> dynamic_ownership and restart libvirt-bin<br>
><br>
> output of : grep -vE '^($|#)' /etc/libvirt/qemu.conf<br>
><br>
> vnc_listen = "0.0.0.0"<br>
><br>
> user = "oneadmin"<br>
> group = "oneadmin"<br>
> dynamic_ownership = 0<br>
><br>
> But, I still cannot clone any persistent image<br>
><br>
> Thanks<br>
><br>
><br>
><br>
> On Thu, Apr 25, 2013 at 5:34 PM, Javier Fontan <<a href="mailto:jfontan@opennebula.org">jfontan@opennebula.org</a>><br>
> wrote:<br>
>><br>
>> From the log file I'm seeing that you are using shred drivers and I<br>
>> suppose you are using kvm. Can you check that in<br>
>> /var/lib/one/var/datastores/1 there are images that belong to oneadmin<br>
>> and other images which the owner is root?<br>
>><br>
>> If this is the case check that your libvirt configuration has<br>
>> dynamic_ownership set to 0 and the correct user/group [1]:<br>
>><br>
>> $ grep -vE '^($|#)' /etc/libvirt/qemu.conf<br>
>> user = "oneadmin"<br>
>> group = "oneadmin"<br>
>> dynamic_ownership = 0<br>
>><br>
>><br>
>> [1] <a href="http://opennebula.org/documentation:rel3.8:kvmg#kvm_configuration" target="_blank">http://opennebula.org/documentation:rel3.8:kvmg#kvm_configuration</a><br>
>><br>
>> On Thu, Apr 25, 2013 at 3:16 AM, Mohammad Fazli Ahmat Jalaluddin<br>
>> <<a href="mailto:fazli.mmu@gmail.com">fazli.mmu@gmail.com</a>> wrote:<br>
>> > Hi,<br>
>> ><br>
>> > I am new to OpenNebula. Currently the version of OpenNebula I am using<br>
>> > is<br>
>> > 3.8.3<br>
>> > I have some question regarding cloning persistent image:<br>
>> ><br>
>> > Why I cannot clone any persistent image (READY) and if I change the<br>
>> > persistent image back to non-persistent, I still cannot clone it.<br>
>> ><br>
>> > Also, If I want to deploy a VM using a non-persistent image that was<br>
>> > previously a persistent image, it FAILED with this error message:<br>
>> ><br>
>> > Error executing image transfer script: Error copying<br>
>> > hpc-workstation1:/var/lib/one/<br>
>> > var/datastores/1/1a173d1d2b39cfd247a8438bfbbe4cae to<br>
>> > onevmhost:/var/lib/one/var//datastores/0/116/disk.0<br>
>> ><br>
>> > VM Log:<br>
>> ><br>
>> > Thu Apr 25 09:02:35 2013 [DiM][I]: New VM state is ACTIVE.<br>
>> > Thu Apr 25 09:02:35 2013 [LCM][I]: New VM state is PROLOG.<br>
>> > Thu Apr 25 09:02:36 2013 [TM][I]: Command execution fail:<br>
>> > /var/lib/one/var/remotes/tm/shared/clone<br>
>> ><br>
>> > hpc-workstation1:/var/lib/one/var/datastores/1/1a173d1d2b39cfd247a8438bfbbe4cae<br>
>> > onevmhost:/var/lib/one/var//datastores/0/116/disk.0 116 1<br>
>> > Thu Apr 25 09:02:36 2013 [TM][I]: clone: Cloning<br>
>> > /var/lib/one/var/datastores/1/1a173d1d2b39cfd247a8438bfbbe4cae in<br>
>> > onevmhost:/var/lib/one/var//datastores/0/116/disk.0<br>
>> > Thu Apr 25 09:02:36 2013 [TM][E]: clone: Command "cd<br>
>> > /var/lib/one/var/datastores/0/116; cp -r<br>
>> > /var/lib/one/var/datastores/1/1a173d1d2b39cfd247a8438bfbbe4cae<br>
>> > /var/lib/one/var/datastores/0/116/disk.0" failed: cp: cannot open<br>
>> > `/var/lib/one/var/datastores/1/1a173d1d2b39cfd247a8438bfbbe4cae' for<br>
>> > reading: Permission denied<br>
>> > Thu Apr 25 09:02:36 2013 [TM][E]: Error copying<br>
>> ><br>
>> > hpc-workstation1:/var/lib/one/var/datastores/1/1a173d1d2b39cfd247a8438bfbbe4cae<br>
>> > to onevmhost:/var/lib/one/var//datastores/0/116/disk.0<br>
>> > Thu Apr 25 09:02:36 2013 [TM][I]: ExitCode: 1<br>
>> > Thu Apr 25 09:02:36 2013 [TM][E]: Error executing image transfer script:<br>
>> > Error copying<br>
>> ><br>
>> > hpc-workstation1:/var/lib/one/var/datastores/1/1a173d1d2b39cfd247a8438bfbbe4cae<br>
>> > to onevmhost:/var/lib/one/var//datastores/0/116/disk.0<br>
>> > Thu Apr 25 09:02:36 2013 [DiM][I]: New VM state is FAILED<br>
>> ><br>
>> ><br>
>> > Regards,<br>
>> > Fazli<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>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> Javier Fontán Muiños<br>
>> Project Engineer<br>
>> OpenNebula - The Open Source Toolkit for Data Center Virtualization<br>
>> <a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jfontan@opennebula.org">jfontan@opennebula.org</a> | @OpenNebula<br>
><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>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jfontan@opennebula.org">jfontan@opennebula.org</a> | @OpenNebula<br>
</div></div></blockquote></div><br>