<html><body>Hello,<br>I would like to ask what I am doing  wrong and what is the best approach to resolve this situation:<br><br>First of all I start virtual machine by virDomainCreateXML. In my application I use libvncclient library that sends mouse events to this running domain. I had some troubles with coordinates of mouse cursor but all problem was solved when I added <input type='tablet' bus='usb'/> to xml configuration.  <br>So now I have a running domain and I want to create snapshot and then after some operations I want to restore this snapshot. I use virDomainSave and virDomainRestore that work fine. The only problem is, that after creating and restoring snapshot I have the same problem with coordinates of mouse. I need  to create and restore snapshot also with <input type='tablet' bus='usb'/> somewhere specified. I also tried methods  virDomainSaveFlags with xml configuration string(see below) as parameter  *dxml, but method fails with: libvir: Domain Config error : XML error: domainsnapshot.Unable to create snapshot.<br><br>What should I add to xml configuration? I look at http://libvirt.org/formatsnapshot.html on example but I dont know what paths I should use in my program. I dont understand much snapshots and similar stuff so could you give me example how could I edit my xml configuration? Or what I should do to make virDomainSave and virDomainRestore work?<br><br>xml configuration:<br><br><domain type='kvm'><br>                <name>Name</name><br>                  <uuid>c7a5fdbd-cdaf-9455-926a-d65c16db1810</uuid><br>                <memory unit='KiB'>524288</memory><br>                  <currentMemory unit='KiB'>524288</currentMemory><br>                  <vcpu>2</vcpu><br>                  <os><br>                   <type arch='x86_64' machine='pc'>hvm</type><br>                   <boot dev='hd'/><br>                 </os><br>                  <devices><br>                    <input type='tablet' bus='usb'/><br>                    <emulator>/usr/bin/qemu-system-x86_64</emulator><br>                    <disk type='file' device='disk'><br>                          <source file='/home/lukas/Desktop/Image.img'/><br>                          <target dev='hda'/><br>                    </disk><br>                    <interface type='network'><br>                          <source network='default'/><br>                    </interface><br>                    <graphics type='vnc' port='5901'><br>                        <listen type='address' address='127.0.0.1'/><br>                    </graphics><br>                  </devices><br>            </domain><br></body></html>