<div dir="ltr">







<div style="font-size:12.7272720336914px"><p class="">Hello all, I'm trying to create an online internal snapshot to work with Cuckoo Sandbox.<br>I keep receiving this -22 error below on my Ubuntu system and I'm out of ideas, been at it for a while so any help is appreciated.</p><p class="">root@cuckoo-sec:~# virsh snapshot-create-as cuckoo cuckoo-snap1 "Cuckoo Snapshot"<br><span style="font-size:12.7272720336914px">error: operation failed: Error -22 while writing VM</span></p><p class="">$ uname -a<br><span style="font-size:12.7272720336914px">Linux cuckoo-sec 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux</span></p><p style="font-size:12.7272720336914px">$ cat /etc/lsb-release <br>DISTRIB_ID=Ubuntu<br>DISTRIB_RELEASE=14.04<br>DISTRIB_CODENAME=trusty<br>DISTRIB_DESCRIPTION="Ubuntu 14.04 LTS"</p><p>$ <span class="">kvm</span> --version<br>QEMU emulator version 2.0.0 (Debian 2.0.0+dfsg-2ubuntu1.9), Copyright (c) 2003-2008 Fabrice Bellard</p></div><div style="font-size:12.7272720336914px"><p>$ libvirtd --version<br>libvirtd (libvirt) 1.2.2</p><p class="">$ qemu-img info /opt/kvm/Windows7-64.qcow2 <br><span style="font-size:12.7272720336914px">image: /opt/kvm/Windows7-64.qcow2<br></span><span style="font-size:12.7272720336914px">file format: qcow2<br></span><span style="font-size:12.7272720336914px">virtual size: 25G (26843545600 bytes)<br></span><span style="font-size:12.7272720336914px">disk size: 12G<br></span><span style="font-size:12.7272720336914px">cluster_size: 65536<br></span><span style="font-size:12.7272720336914px">Format specific information:<br></span><span style="font-size:12.7272720336914px">    </span><span style="font-size:12.7272720336914px">compat: 1.1<br></span><span style="font-size:12.7272720336914px">    </span><span style="font-size:12.7272720336914px">lazy refcounts: false</span></p><p class="">















$ virsh list<br><span style="font-size:12.7272720336914px"> </span><span style="font-size:12.7272720336914px">Id</span><span style="font-size:12.7272720336914px">    </span><span style="font-size:12.7272720336914px">Name </span><span style="font-size:12.7272720336914px">                          </span><span style="font-size:12.7272720336914px">State<br></span><span style="font-size:12.7272720336914px">----------------------------------------------------<br></span><span style="font-size:12.7272720336914px"> </span><span style="font-size:12.7272720336914px">17</span><span style="font-size:12.7272720336914px">    </span><span style="font-size:12.7272720336914px">cuckoo </span><span style="font-size:12.7272720336914px">                        </span><span style="font-size:12.7272720336914px">running<br><br></span><span style="font-size:12.7272720336914px">$ apt-get install apparmor-utils</span><br style="font-size:12.7272720336914px"><span style="font-size:12.7272720336914px">$ aa-status</span><br style="font-size:12.7272720336914px"><span style="font-size:12.7272720336914px">$ aa-complain /usr/sbin/libvirtd</span><br style="font-size:12.7272720336914px"><span style="font-size:12.7272720336914px">$ aa-complain /etc/apparmor.d/libvirt/</span><span style="font-size:12.7272720336914px">libvirt-bdfcd0d8-b032-6870-</span><span style="font-size:12.7272720336914px">79bf-c77e0a3c8590</span><span style="font-size:12.7272720336914px"><br></span></p></div><p class="">$ strace virsh snapshot-create-as cuckoo cuckoo-snap1 "Cuckoo Snapshot"<br>...<br>gettid()                                = 10168<br>futex(0x7f4726ab8240, FUTEX_WAKE_PRIVATE, 1) = 0<br>futex(0x7f4726ab8240, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource temporarily unavailable)<br>futex(0x7f4726ab8240, FUTEX_WAKE_PRIVATE, 1) = 0<br>gettid()                                = 10168</p><div>Thanks</div>-- <br><div class="gmail_signature"><div dir="ltr">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>