Sample Header Ad - 728x90

virt-manager, qemu-kvm, spice & vdagent: auto resizing and file sharing not working

3 votes
0 answers
2910 views
Host: Ubuntu 18.04 Guest: Fedora 33 virt-manager 1.5.1 I built the guest using virt-manager. The guest works: internet access works, youtube in browser works, sound works, clipboard sharing between guest and host works. Problem summary: ---------------- However auto resizing the display does not work. And host file sharing does not work. I can't find any relevant error message in any log file. **How do I find out what I am doing wrong and fix it?** Detail: ------- Virt-manager settings for my Fedora image include QXL, virtio and spice channels. The virt-manager launched spice window allows me (View menu) to select auto-resizing, that's ticked. I used virsh to edit the vgamem and give it 64MB rather than 16MB: Qemu command line generated by virt-manager qemu-system-x86_64 -enable-kvm -name guest=Fedora,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-9-Fedora/master-key.aes -machine pc-i440fx-bionic,accel=kvm,usb=off,vmport=off,dump-guest-core=off -cpu Skylake-Client-IBRS -m > -realtime mlock=off -smp 2,sockets=2,cores=1,threads=1 -uuid > -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-9-Fedora/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=delay -no-hpet -no-shutdown -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 -boot strict=on -device ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x5.0x7 -device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x5 -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x5.0x1 -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x5.0x2 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x6 -drive file=/data/Fedora.qcow2,format=qcow2,if=none,id=drive-ide0-0-0 -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -drive if=none,id=drive-ide0-0-1,readonly=on -device ide-cd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 -fsdev local,security_model=passthrough,id=fsdev-fs0,path=/data -device virtio-9p-pci,id=fs0,fsdev=fsdev-fs0,mount_tag=/data,bus=pci.0,addr=0x8 -netdev tap,fd=28,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=>,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev spicevmc,id=charchannel0,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 -spice port=5900,addr=127.0.0.1,disable-ticketing,image-compression=off,seamless-migration=on -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=64,max_outputs=1,bus=pci.0,addr=0x2 -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -chardev spicevmc,id=charredir0,name=usbredir -device usb-redir,chardev=charredir0,id=redir0,bus=usb.0,port=1 -chardev spicevmc,id=charredir1,name=usbredir -device usb-redir,chardev=charredir1,id=redir1,bus=usb.0,port=2 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7 -msg timestamp=on On the guest, fgrep -R vdagent /var/log turns up a few lines but none that imply an error or problem to me. On the guest, fgrep -R /data /var/log does not turn up anything useful. /data being my share on the host and the intended mount point on the guest. I did mkdir /data; chmod 777 /data; reboot to check, same problem before and after. On the guest, the service is running: systemctl status spice-vdagentd ● spice-vdagentd.service - Agent daemon for Spice guests Loaded: loaded (/usr/lib/systemd/system/spice-vdagentd.service; indirect; vendor preset: enabled) Active: active (running) since Thu 2020-12-17 17:39:14 GMT; 5h 39min ago TriggeredBy: ● spice-vdagentd.socket Process: 1383 ExecStart=/usr/sbin/spice-vdagentd $SPICE_VDAGENTD_EXTRA_ARGS (code=exited, status=0/SUCCESS) Main PID: 1385 (spice-vdagentd) Tasks: 3 (limit: 19158) Memory: 4.2M CPU: 407ms CGroup: /system.slice/spice-vdagentd.service └─1385 /usr/sbin/spice-vdagentd Dec 17 17:39:14 localhost.localdomain systemd: Starting Agent daemon for Spice guests... Dec 17 17:39:14 localhost.localdomain systemd: spice-vdagentd.service: Can't open PID file /run/spice-vdagentd/spice-vdagentd.pid (yet?) after start: Oper> Dec 17 17:39:14 localhost.localdomain systemd: Started Agent daemon for Spice guests. Dec 17 17:39:14 localhost.localdomain spice-vdagentd: opening vdagent virtio channel Dec 17 17:39:14 localhost.localdomain spice-vdagentd: Set max clipboard: 104857600 Dec 17 17:39:14 localhost.localdomain spice-vdagentd: Set max clipboard: 104857600 Dec 17 22:57:01 localhost.localdomain spice-vdagentd: closed vdagent virtio channel Dec 17 22:57:04 localhost.localdomain spice-vdagentd: opening vdagent virtio channel Dec 17 22:57:04 localhost.localdomain spice-vdagentd: Set max clipboard: 104857600 Dec 17 22:57:04 localhost.localdomain spice-vdagentd: Set max clipboard: 104857600 The libvirt log on the host shows nothing special either: 2020-12-17 17:32:24.311+0000: starting up libvirt version: 4.0.0, package: 1ubuntu8.17 (Marc Deslauriers Wed, 06 May 2020 14:18:23 -0400), qemu version: 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.34), hostname: asm4 LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin QEMU_AUDIO_DRV=spice /usr/bin/kvm-spice -name guest=Fedora,> 2020-12-17T17:32:24.355739Z qemu-system-x86_64: -chardev pty,id=charserial0: char device redirected to /dev/pts/20 (label charserial0) main_channel_link: add main channel client red_qxl_set_cursor_peer: inputs_connect: inputs channel client create main_channel_handle_message: agent start main_channel_handle_message: agent start main_channel_handle_message: agent start main_channel_handle_message: agent start main_channel_handle_message: agent start main_channel_handle_message: agent start
Asked by asoundmove (2515 rep)
Dec 18, 2020, 12:11 AM
Last activity: Dec 24, 2020, 11:45 PM