[Spice-devel] Problem about qxl and vmc

Alon Levy alevy at redhat.com
Wed Mar 7 02:19:41 PST 2012


On Wed, Mar 07, 2012 at 05:22:59PM +0800, wangfeng wangfeng wrote:
>     Thank you all.
> 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:
> *#virsh save (id) win7.snp*
> *#virsh restore win7.snp*
> When I reconnected the VM ,the mouse‘s moving seems to be some lags, or
> maybe missing some mouse nstructions. Have I made a mistake?
> 

(resend: accidentally sent only to Wangfeng)

Can you check if info qtree shows the virtio device as "guest:on host: on" or is one of them off?

You can do that via:
virsh qemu-monitor-command --hmp win7template info qtree | grep -A 20 virtio-serial-pci

> Here is the libvirt xml :
> 
> *<domain type='kvm' xmlns:qemu='**http://libvirt.org/schemas/domain/qemu/1.0
> * <http://libvirt.org/schemas/domain/qemu/1.0>*'>
>   <name>win7template</name>
>   <memory>524288</memory>
>   <currentMemory>524288</currentMemory>
>   <vcpu>1</vcpu>
>   <os>
>     <type arch='i686' machine='pc-0.14'>hvm</type>
>     <boot dev='hd'/>
>   </os>
>   <features>
>     <acpi/>
>     <apic/>
>     <pae/>
>   </features>
>   <clock offset='localtime'/>
>   <on_poweroff>destroy</on_poweroff>
>   <on_reboot>restart</on_reboot>
>   <on_crash>restart</on_crash>
>   <devices>
>     <emulator>/usr/bin/qemu-kvm</emulator>
>     <disk type='file' device='disk'>
>       <driver name='qemu' type='raw'/>
>       <source file='/home/img/wftest/win7.test.img'/>
>       <target dev='hda' bus='ide'/>
>       <address type='drive' controller='0' bus='0' unit='0'/>
>     </disk>
>     <controller type='ide' index='0'>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x01'
> function='0x1'/>
>     </controller>
>     <interface type='network'>
>       <mac address='52:54:00:27:ed:2f'/>
>       <source network='default'/>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x03'
> function='0x0'/>
>     </interface>
>     <serial type='pty'>
>       <target port='0'/>
>     </serial>
>     <console type='pty'>
>       <target type='serial' port='0'/>
>     </console>
>      <input type='tablet' bus='usb'/>
>     <graphics type='spice' port='9999' autoport='no'
> listen='192.168.12.236'>
>       <mouse mode='server'/>
>       <listen type='address' address='192.168.12.236'/>
>     </graphics>
>     <channel type='spicevmc'>
>       <target type='virtio' name='com.redhat.spice.0'/>
>     </channel>
>     <video>
>       <model type='qxl' vram='65536' heads='1'/>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x02'
> function='0x0'/>
>     </video>
>     <sound model='ac97'/>
>     <memballoon model='virtio'>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x05'
> function='0x0'/>
>     </memballoon>
>   </devices>
> </domain>*



More information about the Spice-devel mailing list