<div dir="ltr">Thanks Kashyap for replying. <div><br></div><div>QEMU has permissions to the directory which is having images. I will look into the AppArmor issue and find out more about this. </div><div>Also as per suggestion from the link i have uncommented the user and group from the qemu.conf file - <a href="https://github.com/jedi4ever/veewee/issues/996">https://github.com/jedi4ever/veewee/issues/996</a></div><div><br></div><div>By checking more on the AppArmor and sVirt issue  , i have modified the qemu.conf for security_driver="none". The result for this is no permission error but another error which can be related to QEMU 2.3.0</div><div><br></div><div><div>virsh # blockcommit vm-01 vda --verbose --pivot --active</div><div>Block Commit: [100 %]error: failed to pivot job for disk vda</div><div>error: internal error: unable to execute QEMU command 'block-job-complete': The active block job for device 'drive-virtio-disk0' cannot be completed</div></div><div><br></div><div>Searched more for this type of error and found - </div><div><br></div><div><a href="https://bugs.launchpad.net/qemu/+bug/1455475">https://bugs.launchpad.net/qemu/+bug/1455475</a><br></div><div><br></div><div>Looks like bug in QEMU 2.3.0 . Checking now with QEMU 2.1 for the same. </div><div><br></div><div>Let me know if anything to more look for.</div><div><br></div><div><div>                                                                                                                                                                                                                    </div></div><div>Thanks,</div><div>Keyur Bhalerao</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 8, 2015 at 5:18 AM, Kashyap Chamarthy <span dir="ltr"><<a href="mailto:kchamart@redhat.com" target="_blank">kchamart@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, Dec 07, 2015 at 12:52:34PM -0800, Keyur Bhalerao wrote:<br>
<br>
[. . .]<br>
<span class=""><br>
 ubuntu@keyurubuntu:~$ virsh blockcommit vm-01 vda --active --verbose --pivot<br>
> error: internal error: unable to execute QEMU command 'block-commit': Could<br>
> not reopen file: Permission denied<br>
<br>
</span>Fairly obvious suggestions, ensure permissions are set so that QEMU has<br>
permissions to the dir that contains images.<br>
<br>
Or it could be an AppArmor issue.<br>
<br>
Also, check your logs:<br>
<br>
    /var/log/libvirt/qemu/$VM.log<br>
    /var/log/libvirt/libvirtd.log  (assuming you have debug logging<br>
    enabled)<br>
<div class="HOEnZb"><div class="h5"><br>
> I am not sure why this is getting as permission denied. I have tried<br>
> couple of times reinstalling and creating new VMs . Every time when i<br>
> have tried to block-commit getting landed into  same error.<br>
><br>
> Is there any troubleshooting or solution to this issue. Stuck on this<br>
> issue for last 2 days.  Quick help much appreciated.<br>
><br>
> Thanks, Keyur Bhalerao<br>
><br>
> Reference used -<br>
> <a href="http://wiki.libvirt.org/page/Live-disk-backup-with-active-blockcommit" rel="noreferrer" target="_blank">http://wiki.libvirt.org/page/Live-disk-backup-with-active-blockcommit</a><br>
> -<br>
> <a href="http://kashyapc.com/2012/09/14/externaland-live-snapshots-with-libvirt/" rel="noreferrer" target="_blank">http://kashyapc.com/2012/09/14/externaland-live-snapshots-with-libvirt/</a><br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
/kashyap<br>
</font></span></blockquote></div><br></div>