when spice vm, mouse loose

hellopver

Active Member
Jan 20, 2019
2
0
41
22
this is my conf output:
Code:
qm showcmd 100 --pretty
/usr/bin/kvm \
  -id 100 \
  -name WindowsServer2019 \
  -chardev 'socket,id=qmp,path=/var/run/qemu-server/100.qmp,server,nowait' \
  -mon 'chardev=qmp,mode=control' \
  -chardev 'socket,id=qmp-event,path=/var/run/qmeventd.sock,reconnect=5' \
  -mon 'chardev=qmp-event,mode=control' \
  -pidfile /var/run/qemu-server/100.pid \
  -daemonize \
  -smbios 'type=1,uuid=25803cad-7e26-45cd-b947-5ce4734fa0bb' \
  -drive 'if=pflash,unit=0,format=raw,readonly,file=/usr/share/pve-edk2-firmware//OVMF_CODE.fd' \
  -drive 'if=pflash,unit=1,format=qcow2,id=drive-efidisk0,file=/mnt/omv-disk-cache/_pve/images/100/vm-100-disk-1.qcow2' \
  -smp '4,sockets=2,cores=2,maxcpus=4' \
  -nodefaults \
  -boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' \
  -vnc unix:/var/run/qemu-server/100.vnc,x509,password \
  -cpu 'host,+kvm_pv_unhalt,+kvm_pv_eoi,kvm=off' \
  -m 4096 \
  -object 'memory-backend-ram,id=ram-node0,size=2048M' \
  -numa 'node,nodeid=0,cpus=0-1,memdev=ram-node0' \
  -object 'memory-backend-ram,id=ram-node1,size=2048M' \
  -numa 'node,nodeid=1,cpus=2-3,memdev=ram-node1' \
  -device 'vmgenid,guid=7e2cbaf9-6266-4452-910b-cb29866c051b' \
  -readconfig /usr/share/qemu-server/pve-q35.cfg \
  -device 'vfio-pci,host=01:00.0,id=hostpci0.0,bus=ich9-pcie-port-1,addr=0x0.0,multifunction=on,romfile=/usr/share/kvm/GK104_patched.rom' \
  -device 'vfio-pci,host=01:00.1,id=hostpci0.1,bus=ich9-pcie-port-1,addr=0x0.1' \
  -device 'qxl-vga,id=vga,bus=pcie.0,addr=0x1' \
  -chardev 'socket,path=/var/run/qemu-server/100.qga,server,nowait,id=qga0' \
  -device 'virtio-serial,id=qga0,bus=pci.0,addr=0x8' \
  -device 'virtserialport,chardev=qga0,name=org.qemu.guest_agent.0' \
  -spice 'tls-port=61001,addr=127.0.0.1,tls-ciphers=HIGH,seamless-migration=on' \
  -device 'virtio-serial,id=spice,bus=pci.0,addr=0x9' \
  -chardev 'spicevmc,id=vdagent,name=vdagent' \
  -device 'virtserialport,chardev=vdagent,name=com.redhat.spice.0' \
  -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' \
  -iscsi 'initiator-name=iqn.1993-08.org.debian:01:414e16d633' \
  -drive 'file=/var/lib/vz/template/iso/virtio-win.iso,if=none,id=drive-ide0,media=cdrom,aio=threads' \
  -device 'ide-cd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=200' \
  -drive 'file=/var/lib/vz/template/iso/cn_windows_server_2019_x64_dvd_4de40f33.iso,if=none,id=drive-ide2,media=cdrom,aio=threads' \
  -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=201' \
  -drive 'file=/mnt/omv-disk-cache/_pve/images/100/vm-100-disk-0.qcow2,if=none,id=drive-virtio0,cache=writeback,format=qcow2,aio=threads,detect-zeroes=on' \
  -device 'virtio-blk-pci,drive=drive-virtio0,id=virtio0,bus=pci.0,addr=0xa,bootindex=100' \
  -netdev 'type=tap,id=net0,ifname=tap502i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' \
  -device 'virtio-net-pci,mac=76:36:35:61:9D:AF,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300' \
  -machine 'type=q35' \
  -device 'AC97,addr=0x18' \
  -cpu 'host,+kvm_pv_unhalt,+kvm_pv_eoi,hv_vendor_id=1234567890a4,kvm=off'

e3-1230v3 and gtx760, and gpu passthough


the moment i reinstall spice-guest-tools, mouse able, but installed, unable to move again.
or uninstall graphics drive,
or unset "pcie=1"
back to normal.
please help me, it took me a lot time, i don’t know what to do at all.

Code:
dmesg | grep -i vfio
[    2.186182] VFIO - User Level meta-driver version: 0.3
[    2.190946] vfio-pci 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=io+mem
[    2.208053] vfio_pci: add [10de:1187[ffff:ffff]] class 0x000000/00000000
[    2.228073] vfio_pci: add [10de:0e0a[ffff:ffff]] class 0x000000/00000000
[   80.443886] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x19@0x900
[  266.419334] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x19@0x900
[  417.800822] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x19@0x900
[  579.893241] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x19@0x900
[ 1002.146738] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x19@0x900
[ 1105.490704] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x19@0x900
[ 1308.083816] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x19@0x900
[ 3718.966179] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x19@0x900

and more questiones:
1、how to spice vm as
Code:
"spice://pve.ip:port"

2、when i set x-vga=on, spice showes connect to the screen,then no picture, is this normal?
3、Is there a way to automatically modify the name of the downloaded file of "spice"? how about "VMID.vv"?
 
Last edited:
after `apt dist-upgrade`,
not set "x-vga=on":`vfio-pci,host=01:00.0,id=hostpci0,bus=ich9-pcie-port-1,addr=0x0,romfile=/usr/share/kvm/GK104_patched.rom'`
open vm and spice, while windows started, spice turn to black screen, display device show the screen,just like use "x-vga=on" on old pve version...


Code:
$ pveversion -v
proxmox-ve: 5.3-1 (running kernel: 4.15.18-10-pve)
pve-manager: 5.3-8 (running version: 5.3-8/2929af8e)
pve-kernel-4.15: 5.3-1
pve-kernel-4.15.18-10-pve: 4.15.18-32
pve-kernel-4.15.18-9-pve: 4.15.18-30
corosync: 2.4.4-pve1
criu: 2.11.1-1~bpo90
glusterfs-client: 3.8.8-1
ksm-control-daemon: 1.2-2
libjs-extjs: 6.0.1-2
libpve-access-control: 5.1-3
libpve-apiclient-perl: 2.0-5
libpve-common-perl: 5.0-43
libpve-guest-common-perl: 2.0-19
libpve-http-server-perl: 2.0-11
libpve-storage-perl: 5.0-36
libqb0: 1.0.3-1~bpo9
lvm2: 2.02.168-pve6
lxc-pve: 3.1.0-2
lxcfs: 3.0.2-2
novnc-pve: 1.0.0-2
proxmox-widget-toolkit: 1.0-22
pve-cluster: 5.0-33
pve-container: 2.0-33
pve-docs: 5.3-1
pve-edk2-firmware: 1.20181023-1
pve-firewall: 3.0-17
pve-firmware: 2.0-6
pve-ha-manager: 2.0-6
pve-i18n: 1.0-9
pve-libspice-server1: 0.14.1-1
pve-qemu-kvm: 2.12.1-1
pve-xtermjs: 1.0-5
qemu-server: 5.0-44
smartmontools: 6.5+svn4324-1
spiceterm: 3.0-5
vncterm: 1.5-3
zfsutils-linux: 0.7.12-pve1~bpo1