You are not logged in.
Hi all!
I am running my Windows 10 partition /dev/nvme0n1p3 from my Linux partition /dev/nvme0n1p4 using qemu (here is details of configuration).
Here is my command that launches the VM.
qemu-system-x86_64 -name "Windows 10" -enable-kvm \
-m 6G \
-cpu host,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time \
-smp sockets=1,cores=6,threads=4 \
-bios /usr/share/OVMF/OVMF_CODE.fd \
-drive file=/dev/md0,media=disk,format=raw,if=virtio,aio=native,cache=none \
-mem-path /dev/hugepages \
-vga virtio \
-display gtk,window-close=off,grab-on-hover=on,zoom-to-fit=on \
-device usb-ehci,id=ehci \
-device qemu-xhci,id=xhci \
-device virtio-tablet,wheel-axis=true \
-monitor unix:/tmp/monitor.sock,server,nowait \
-device virtio-serial,packed=on,ioeventfd=on \
-device virtserialport,name=com.redhat.spice.0,chardev=vdagent0 \
-chardev qemu-vdagent,id=vdagent0,name=vdagent,clipboard=on,mouse=off \
-nic user,id=nic0,model=virtio-net-pci,smb=/opt/qemu_kvm_win10_VM/smb_shared \
-device virtio-balloon \
-device ich9-intel-hda -device hda-output,audiodev=hda -audiodev pa,id=hda,server=unix:/run/user/1000/pulse/native,out.buffer-length=8000,timer-period=1000,out.frequency=44100
I only was able to make the copy/paste functionality works in the host-to-guest direction but not the opposite.
Copying some text in the host system, than I was able to paste into the guest, but...trying to copy some text inside the VM (Windows partition guest), than I am not able to pass-through the copied text into the Linux host system clipboard.
I do have installed virtio drivers on the guest.
I do have installed SPICE VDAgent on the guest.
I do have installed QEMU GUEST Agent on the guest.
I also have spice-vdagent and spice-vdagentd installed in the Linux host.
Does someone know which could be the problem here?
Last edited by ricciolino (2024-04-26 11:50:52)
Offline
Turned out the issue was on the guest side.
I realized the C:\Program File (x86)\SPICE Guest Tools\64\vdagent.exe wasn't started automatically after login.
You can check this from windows cmd with:
tasklist /nh /fi "imagename eq vdagent.exe"
Than, I created a new scheduled task for ensuring the vdagent.exe get started automatically
start "" /B "C:\Program File (x86)\SPICE Guest Tools\64\vdagent.exe"
Now copy/paste works perfectly on both directions
Offline