<div><font face="arial, sans-serif"><span style="white-space:nowrap"><span style="white-space:normal"><br></span></span></font></div><div><font face="arial, sans-serif"><span style="white-space:nowrap">    <span class="Apple-style-span" style="white-space:normal;font-size:13px;border-collapse:collapse">Thank you all.<div>
I have another problem. I started a Win7 VM with vdagent and it worked well. Then I made a snapshot through libvirt by the following commands:</div><div><i>#virsh save (id) win7.snp</i></div><div><i>#virsh restore win7.snp</i></div>
<div>When I reconnected the VM ,the mouse‘s moving seems to be some lags, or maybe missing some mouse <span style="font-family:arial,sans-serif;font-size:13px;white-space:nowrap">nstructions. Have I made a mistake?</span></div>
<div><font face="arial, sans-serif"><span style="white-space:nowrap"><br></span></font></div><div><font face="arial, sans-serif"><span style="white-space:nowrap">Here is the libvirt xml :</span></font></div><div><font face="arial, sans-serif"><span style="white-space:nowrap"><br>
</span></font></div><font face="arial, sans-serif"><span style="white-space:nowrap"><i>&lt;domain type=&#39;kvm&#39; xmlns:qemu=&#39;</i><a href="http://libvirt.org/schemas/domain/qemu/1.0" target="_blank" style="color:rgb(92,69,32)"><i>http://libvirt.org/schemas/domain/qemu/1.0</i></a><i>&#39;&gt;<br>
  &lt;name&gt;win7template&lt;/name&gt;<br>  &lt;memory&gt;524288&lt;/memory&gt;<br>  &lt;currentMemory&gt;524288&lt;/currentMemory&gt;<br>  &lt;vcpu&gt;1&lt;/vcpu&gt;<br>  &lt;os&gt;<br>    &lt;type arch=&#39;i686&#39; machine=&#39;pc-0.14&#39;&gt;hvm&lt;/type&gt;<br>
    &lt;boot dev=&#39;hd&#39;/&gt;<br>  &lt;/os&gt;<br>  &lt;features&gt;<br>    &lt;acpi/&gt;<br>    &lt;apic/&gt;<br>    &lt;pae/&gt;<br>  &lt;/features&gt;<br>  &lt;clock offset=&#39;localtime&#39;/&gt;<br>  &lt;on_poweroff&gt;destroy&lt;/on_poweroff&gt;<br>
  &lt;on_reboot&gt;restart&lt;/on_reboot&gt;<br>  &lt;on_crash&gt;restart&lt;/on_crash&gt;<br>  &lt;devices&gt;<br>    &lt;emulator&gt;/usr/bin/qemu-kvm&lt;/emulator&gt;<br>    &lt;disk type=&#39;file&#39; device=&#39;disk&#39;&gt;<br>
      &lt;driver name=&#39;qemu&#39; type=&#39;raw&#39;/&gt;<br>      &lt;source file=&#39;/home/img/wftest/win7.test.img&#39;/&gt;<br>      &lt;target dev=&#39;hda&#39; bus=&#39;ide&#39;/&gt;<br>      &lt;address type=&#39;drive&#39; controller=&#39;0&#39; bus=&#39;0&#39; unit=&#39;0&#39;/&gt;<br>
    &lt;/disk&gt;<br>    &lt;controller type=&#39;ide&#39; index=&#39;0&#39;&gt;<br>      &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x01&#39; function=&#39;0x1&#39;/&gt;<br>    &lt;/controller&gt;<br>
    &lt;interface type=&#39;network&#39;&gt;<br>      &lt;mac address=&#39;52:54:00:27:ed:2f&#39;/&gt;<br>      &lt;source network=&#39;default&#39;/&gt;<br>      &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x03&#39; function=&#39;0x0&#39;/&gt;<br>
    &lt;/interface&gt;<br>    &lt;serial type=&#39;pty&#39;&gt;<br>      &lt;target port=&#39;0&#39;/&gt;<br>    &lt;/serial&gt;<br>    &lt;console type=&#39;pty&#39;&gt;<br>      &lt;target type=&#39;serial&#39; port=&#39;0&#39;/&gt;<br>
    &lt;/console&gt;<br>     &lt;input type=&#39;tablet&#39; bus=&#39;usb&#39;/&gt;<br>    &lt;graphics type=&#39;spice&#39; port=&#39;9999&#39; autoport=&#39;no&#39; listen=&#39;192.168.12.236&#39;&gt;<br>      &lt;mouse mode=&#39;server&#39;/&gt;<br>
      &lt;listen type=&#39;address&#39; address=&#39;192.168.12.236&#39;/&gt;<br>    &lt;/graphics&gt;<br>    &lt;channel type=&#39;spicevmc&#39;&gt;<br>      &lt;target type=&#39;virtio&#39; name=&#39;com.redhat.spice.0&#39;/&gt;<br>
    &lt;/channel&gt;<br>    &lt;video&gt;<br>      &lt;model type=&#39;qxl&#39; vram=&#39;65536&#39; heads=&#39;1&#39;/&gt;<br>      &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x02&#39; function=&#39;0x0&#39;/&gt;<br>
    &lt;/video&gt;   <br>    &lt;sound model=&#39;ac97&#39;/&gt;<br>    &lt;memballoon model=&#39;virtio&#39;&gt;<br>      &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x05&#39; function=&#39;0x0&#39;/&gt;<br>
    &lt;/memballoon&gt;<br>  &lt;/devices&gt;<br>&lt;/domain&gt;</i></span></font></span><br><br>
</span></font></div>