<div dir="ltr">There was no entry in kern.log for AppArmor. Thanks I'll look at the qemu lists.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 6, 2015 at 3:27 PM, Eric Blake <span dir="ltr"><<a href="mailto:eblake@redhat.com" target="_blank">eblake@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 01/06/2015 02:03 PM, Jon Schipp wrote:<br>
> Hello all, I'm trying to create an online internal snapshot to work with<br>
> Cuckoo Sandbox.<br>
> I keep receiving this -22 error below on my Ubuntu system and I'm out of<br>
> ideas, been at it for a while so any help is appreciated.<br>
><br>
> root@cuckoo-sec:~# virsh snapshot-create-as cuckoo cuckoo-snap1 "Cuckoo<br>
> Snapshot"<br>
> error: operation failed: Error -22 while writing VM<br>
<br>
</span>That message comes from qemu (file a bug report with them for<br>
poor-quality error message; looks like someone forgot to convert a<br>
negative value back into a positive EINVAL errno value).<br>
<br>
As for why qemu is seeing an EINVAL, I have to wonder if it is a case of<br>
AppArmor blocking access to a file.  But that's weird, as internal<br>
snapshots don't normally need to open any additional files.  At any<br>
rate, it's more likely to be a qemu bug than a libvirt one.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Eric Blake   eblake redhat com    <a href="tel:%2B1-919-301-3266" value="+19193013266">+1-919-301-3266</a><br>
Libvirt virtualization library <a href="http://libvirt.org" target="_blank">http://libvirt.org</a><br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Jon Schipp, <br><div><a href="http://jonschipp.com" target="_blank">jonschipp.com</a>, <a href="http://sickbits.net" target="_blank">sickbits.net</a>, <a href="http://opennsm.ncsa.illinois.edu" target="_blank">opennsm.ncsa.illinois.edu</a></div></div></div></div>
</div>