This is specifically for Gnome Boxes virtualization manager and a redhat VM.
On this page, it mentions a feature called “Share Clipboard” but Boxes doesn’t have any settings that I can see in the menu bar. I know how to install spice-vdagent if only I could find out how to invoke it.
Gnome Boxes uses libvirt.