Should spice-vdagent be installed on host and service running?

CaffeineAddict

Well-Known Member
Joined
Jan 21, 2024
Messages
2,503
Reaction score
2,050
Credits
20,270
Using KVM/QEMU and virt-manager for virtualization
I installed spice-vdagent into guest system

When I run spice-vdagent in guest system for first time in fresh installation it hangs until I also run spice-vdagent in host system.
Upon reboot of the guest spice-vdagent command runs fine in guest, without needing for the command to be run in host as well.
When spice-vdagent command is run this starts the spice-vdagentd service.

I've read several tutorials and none of them say I need spice-vdagent on host system.
Do I need it on host system?
Do I need spice-vdagentd service to be running on host? (it's started not by systemctl but with spice-vdagent command)

How does spice-vdagent work between host and guest, if only guest needs it, why? and how that works?

---

Beside this question, I have problem dragging files from guest to host but not vice versa.
copy/paste files and directories does not work both ways.

Do I miss anything and why it doesn't work.

---

Software installed on host:

Bash:
sudo apt install virt-manager
# Also installs virtinst and in turn qemu-utils,
# qemu-system-x86 and in turn libvirt-clients, libvirt-daemon, qemu-system-gui, swtpm, swtpm-tools, ovmf
sudo apt install openvswitch-switch # Also installs openvswitch-common
sudo apt install fuse3 guestfs-tools # Includes guestmount
# Also installs virt-p2v and squashfs-tools
sudo apt install ovmf swtpm swtpm-tools spice-vdagent
sudo apt install -t bookworm-backports qemu-system-x86 # Also installs libvirt-clients

Software installed in guest:

Bash:
sudo apt install qemu-guest-agent
sudo apt install spice-vdagent
 


Should be installed within the GUEST OS.

Link.
 
Should be installed within the GUEST OS.

Link.
I already followed that tutorial but 2nd part of it does not work.

But just now I also found this:

Anyway IDK why can't I drag items from guest to host. and why copy/paste items doesn't work.
 


Members online


Top