Sorry about that. All my problems come out in client mode. I attached a wrong xml file with &quot;server mode&quot;.<br><br><div class="gmail_quote">2012/3/7 David Jaša <span dir="ltr">&lt;<a href="mailto:djasa@redhat.com">djasa@redhat.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I&#39;m curious about one detail of your setup:<br>
<br>
wangfeng wangfeng píše v St 07. 03. 2012 v 17:22 +0800:<br>
<div><div></div><div class="h5">&gt;<br>
&gt;<br>
&gt;     Thank you all.<br>
&gt; I have another problem. I started a Win7 VM with vdagent and it worked<br>
&gt; well. Then I made a snapshot through libvirt by the following<br>
&gt; commands:<br>
&gt; #virsh save (id) win7.snp<br>
&gt; #virsh restore win7.snp<br>
&gt; When I reconnected the VM ,the mouse‘s moving seems to be some lags,<br>
&gt; or maybe missing some mouse nstructions. Have I made a mistake?<br>
&gt;<br>
&gt;<br>
&gt; Here is the libvirt xml :<br>
&gt;<br>
&gt;<br>
&gt; &lt;domain type=&#39;kvm&#39;<br>
&gt; xmlns:qemu=&#39;<a href="http://libvirt.org/schemas/domain/qemu/1.0" target="_blank">http://libvirt.org/schemas/domain/qemu/1.0</a>&#39;&gt;<br>
&gt;   &lt;name&gt;win7template&lt;/name&gt;<br>
&gt;   &lt;memory&gt;524288&lt;/memory&gt;<br>
&gt;   &lt;currentMemory&gt;524288&lt;/currentMemory&gt;<br>
&gt;   &lt;vcpu&gt;1&lt;/vcpu&gt;<br>
&gt;   &lt;os&gt;<br>
&gt;     &lt;type arch=&#39;i686&#39; machine=&#39;pc-0.14&#39;&gt;hvm&lt;/type&gt;<br>
&gt;     &lt;boot dev=&#39;hd&#39;/&gt;<br>
&gt;   &lt;/os&gt;<br>
&gt;   &lt;features&gt;<br>
&gt;     &lt;acpi/&gt;<br>
&gt;     &lt;apic/&gt;<br>
&gt;     &lt;pae/&gt;<br>
&gt;   &lt;/features&gt;<br>
&gt;   &lt;clock offset=&#39;localtime&#39;/&gt;<br>
&gt;   &lt;on_poweroff&gt;destroy&lt;/on_poweroff&gt;<br>
&gt;   &lt;on_reboot&gt;restart&lt;/on_reboot&gt;<br>
&gt;   &lt;on_crash&gt;restart&lt;/on_crash&gt;<br>
&gt;   &lt;devices&gt;<br>
&gt;     &lt;emulator&gt;/usr/bin/qemu-kvm&lt;/emulator&gt;<br>
&gt;     &lt;disk type=&#39;file&#39; device=&#39;disk&#39;&gt;<br>
&gt;       &lt;driver name=&#39;qemu&#39; type=&#39;raw&#39;/&gt;<br>
&gt;       &lt;source file=&#39;/home/img/wftest/win7.test.img&#39;/&gt;<br>
&gt;       &lt;target dev=&#39;hda&#39; bus=&#39;ide&#39;/&gt;<br>
&gt;       &lt;address type=&#39;drive&#39; controller=&#39;0&#39; bus=&#39;0&#39; unit=&#39;0&#39;/&gt;<br>
&gt;     &lt;/disk&gt;<br>
&gt;     &lt;controller type=&#39;ide&#39; index=&#39;0&#39;&gt;<br>
&gt;       &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x01&#39;<br>
&gt; function=&#39;0x1&#39;/&gt;<br>
&gt;     &lt;/controller&gt;<br>
&gt;     &lt;interface type=&#39;network&#39;&gt;<br>
&gt;       &lt;mac address=&#39;52:54:00:27:ed:2f&#39;/&gt;<br>
&gt;       &lt;source network=&#39;default&#39;/&gt;<br>
&gt;       &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x03&#39;<br>
&gt; function=&#39;0x0&#39;/&gt;<br>
&gt;     &lt;/interface&gt;<br>
&gt;     &lt;serial type=&#39;pty&#39;&gt;<br>
&gt;       &lt;target port=&#39;0&#39;/&gt;<br>
&gt;     &lt;/serial&gt;<br>
&gt;     &lt;console type=&#39;pty&#39;&gt;<br>
&gt;       &lt;target type=&#39;serial&#39; port=&#39;0&#39;/&gt;<br>
&gt;     &lt;/console&gt;<br>
&gt;      &lt;input type=&#39;tablet&#39; bus=&#39;usb&#39;/&gt;<br>
&gt;     &lt;graphics type=&#39;spice&#39; port=&#39;9999&#39; autoport=&#39;no&#39;<br>
&gt; listen=&#39;192.168.12.236&#39;&gt;<br>
&gt;       &lt;mouse mode=&#39;server&#39;/&gt;<br>
<br>
</div></div>                     ^^^^^^<br>
<br>
Why do you force mouse to work in server mode? In my experience, it<br>
severely harms Spice performance and leads to way worse user experience.<br>
<br>
David<br>
<div class="im"><br>
&gt;       &lt;listen type=&#39;address&#39; address=&#39;192.168.12.236&#39;/&gt;<br>
&gt;     &lt;/graphics&gt;<br>
&gt;     &lt;channel type=&#39;spicevmc&#39;&gt;<br>
&gt;       &lt;target type=&#39;virtio&#39; name=&#39;com.redhat.spice.0&#39;/&gt;<br>
&gt;     &lt;/channel&gt;<br>
&gt;     &lt;video&gt;<br>
&gt;       &lt;model type=&#39;qxl&#39; vram=&#39;65536&#39; heads=&#39;1&#39;/&gt;<br>
&gt;       &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x02&#39;<br>
&gt; function=&#39;0x0&#39;/&gt;<br>
&gt;     &lt;/video&gt;<br>
&gt;     &lt;sound model=&#39;ac97&#39;/&gt;<br>
&gt;     &lt;memballoon model=&#39;virtio&#39;&gt;<br>
&gt;       &lt;address type=&#39;pci&#39; domain=&#39;0x0000&#39; bus=&#39;0x00&#39; slot=&#39;0x05&#39;<br>
&gt; function=&#39;0x0&#39;/&gt;<br>
&gt;     &lt;/memballoon&gt;<br>
&gt;   &lt;/devices&gt;<br>
&gt; &lt;/domain&gt;<br>
&gt;<br>
&gt;<br>
</div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; Spice-devel mailing list<br>
&gt; <a href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>
&gt; <a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>
<br>
</div></div><font color="#888888">--<br>
<br>
David Jaša, RHCE<br>
<br>
SPICE QE based in Brno<br>
GPG Key:     22C33E24<br>
Fingerprint: 513A 060B D1B4 2A72 7F0D 0278 B125 CD00 22C3 3E24<br>
<br>
<br>
<br>
</font></blockquote></div><br>