virt-manager, qemu-kvm, spice 및 vdagent: 자동 크기 조정 및 파일 공유가 작동하지 않음

virt-manager, qemu-kvm, spice 및 vdagent: 자동 크기 조정 및 파일 공유가 작동하지 않음

호스트: Ubuntu 18.04
게스트: Fedora 33
virt-manager 1.5.1

virt-manager를 사용하여 게스트를 구축했습니다.
게스트 작업 : 인터넷 접속 작업, 브라우저 내 유튜브 작업, 사운드 작업, 게스트와 호스트 간 클립보드 공유 작업.

문제의 결론:

그러나 디스플레이 자동 크기 조정은 작동하지 않습니다.
그리고 호스트 파일 공유가 작동하지 않습니다.
로그 파일에서 관련 오류 메시지를 찾을 수 없습니다.
내가 뭘 잘못하고 있는지 알아내고 고치려면 어떻게 해야 하나요?

세부 사항:

내 Fedora 이미지의 Virt-manager 설정에는 QXL, virtio 및 SPICE 채널이 포함됩니다.
virt-manager가 시작한 Spice 창을 사용하면 (보기 메뉴) 자동 크기 조정을 선택할 수 있으며 이는 선택되어 있습니다.
나는 virsh를 사용하여 vgamem을 편집하고 16MB 대신 64MB를 제공했습니다.

<video>
  <model type='qxl' ram='65536' vram='65536' vgamem='65536' heads='1' primary='yes'/>
  <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>

virt-manager가 생성한 Qemu 명령줄

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 <<vm memory>>
-realtime mlock=off
-smp 2,sockets=2,cores=1,threads=1
-uuid <<uid>>
-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=<<my MAC address>>,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

게스트에 fgrep -R vdagent /var/log몇 줄이 표시되었지만 그 중 어느 것도 나에게 오류나 문제를 의미하지 않았습니다.
손님에게 fgrep -R /data /var/log유용한 정보가 없습니다 . /data호스트의 내 공유이고 게스트의 의도된 마운트 지점입니다. 확인해 mkdir /data; chmod 777 /data; reboot보니 전후에도 같은 문제입니다.

게스트에서 서비스가 실행 중입니다.

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[1]: Starting Agent daemon for Spice guests...
Dec 17 17:39:14 localhost.localdomain systemd[1]: 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[1]: Started Agent daemon for Spice guests.
Dec 17 17:39:14 localhost.localdomain spice-vdagentd[1385]: opening vdagent virtio channel
Dec 17 17:39:14 localhost.localdomain spice-vdagentd[1385]: Set max clipboard: 104857600
Dec 17 17:39:14 localhost.localdomain spice-vdagentd[1385]: Set max clipboard: 104857600
Dec 17 22:57:01 localhost.localdomain spice-vdagentd[1385]: closed vdagent virtio channel
Dec 17 22:57:04 localhost.localdomain spice-vdagentd[1385]: opening vdagent virtio channel
Dec 17 22:57:04 localhost.localdomain spice-vdagentd[1385]: Set max clipboard: 104857600
Dec 17 22:57:04 localhost.localdomain spice-vdagentd[1385]: Set max clipboard: 104857600

호스트의 libvirt 로그에도 특별한 내용이 표시되지 않습니다.

2020-12-17 17:32:24.311+0000: starting up libvirt version: 4.0.0, package: 1ubuntu8.17 (Marc Deslauriers <[email protected]> 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,<<... same arguments as above>>
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

관련 정보