Install guest tools
Guest tools are a collection of drivers and utilities that improve the usability of your virtual machine. It provides improved input performance, automatic screen resolution adjustment, shared clipboard, and file transfer.
Installing on Windows virtual machines
Visit win.gnomeboxes.org in your Windows virtual machine to download and install the spice-guest-tools application, which provides the guest integration for GNOME Boxes.
Installing on Linux virtual machines
Most popular Linux distributions package the guest tools as spice-vdagent.
The spice agent for Linux consists of 2 parts, a daemon spice-vdagentd and a per X-session process spice-vdagent. The daemon gets started in Spice guests through a Sys-V initscript or a systemd unit. The per X-session gets automatically started in desktop environments which honor /etc/xdg/autostart, and under gdm.
Installing on RPM based distributions
Distributions such as Fedora, Red Hat Enterprise Linux, CentOS Stream, OpenSUSE, are known to provide spice-vdagent in their repositories.
sudo dnf install spice-vdagent
Installing on Deb based distributions
Distributions such as Ubuntu, Debian, Linux Mint are known to provide spice-vdagent in their repositories.
sudo apt install spice-vdagent