Shared folder and clipboard working, for any ISO. Scripts here:
https://gist.github.com/kanehekili/81dcd5f048410c948891945d5e5c94ff

Download the files, then: chmod +x *.sh

Images land in ~/QVM and the host share is ~/VMShares. To use another drive,
export KVM_DISK_DIR=/your/path before running installVM.sh.

Once per machine

./kvmSetup.sh

Log out and log back in, then:

./virtiofs.sh

Step 1 - create the VM

./installVM.sh <name> <iso> [disk] [ram-GB] [cpus]

Example:

./installVM.sh ubuntu-26.10 ~/Downloads/ubuntu-26.10-desktop-amd64.iso 40G 8 6

Defaults are 25G, 8 GB RAM, 6 CPUs.

Step 2 - install the guest

The VM starts into the installer. Open it:

virt-viewer --connect qemu:///system <name>

Install as usual and let it restart at the end. virt-install has already
switched the VM to boot from disk, so there is nothing to eject - it comes up
in the installed system.

If it does land in the installer a second time, the ISO is still attached:

virsh --connect qemu:///system shutdown <name>
virsh --connect qemu:///system change-media <name> sda --eject
virsh --connect qemu:///system start <name>

Step 3 - in the guest, once

Install the two agents. Package names are the same everywhere, only the
installer differs:

sudo apt install qemu-guest-agent spice-vdagent        # Debian, Ubuntu, Mint
sudo pacman -S --needed qemu-guest-agent spice-vdagent # Arch, Manjaro, Endeavour
sudo dnf install qemu-guest-agent spice-vdagent        # Fedora

Then mount the share and run the setup script - this part is the same on every
distro:

sudo mkdir -p /mnt/vmshares
sudo mount -t virtiofs vmshares /mnt/vmshares
bash /mnt/vmshares/vm-setup.sh

The bookmark vm-setup.sh adds is a GTK one, so it shows up in Nautilus, Nemo
and Caja. KDE/Dolphin keeps its places elsewhere and will not show it - the
mount itself works regardless.

Done

Reboot the guest once and check the share came back by itself:

findmnt /mnt/vmshares

The host folder ~/VMShares is now at /mnt/vmshares in the guest, bookmarked in
the file manager, and copy/paste works in both directions.