Re: Copy/paste between host and KVM/windows 10 guest??

2022-04-08 Thread Alexander V. Makartsev

On 08.04.2022 14:23, didier gaumet wrote:

Le vendredi 08 avril 2022 à 13:48 +0500, Alexander V. Makartsev a
écrit :

I've had "virtio-win-guest-tools" installed inside Win10 guest

does it appear in the list of the Windows installed applications list
(Windows parameters menu)?
I just verified: that's the only thing I installed in the Win10 guest
related to guest drivers/utilities. (Bullseye here)

Yes it does.

After some investigations, I've managed to get copy\paste action working.
So, to answer Dennis' question, this is a list of things necessary for 
it to work:

1. "virtio-win-guest-tools" has to be installed inside Windows guest.
2. VM guest configuration has to have "Channel spice" device (type 
"spicevmc" with default settings)
3. Required services called "QEMU Guest Agent" and "Spice Agent" has to 
be in running state inside Windows guest.


Adding user to groups "libvirt" and\or "libvirt-qemu" is not necessary 
to get copy\paste functions to work.
And it is probably more secure not to add user to these groups, 
especially if it is your PC and you are the only user.


--
With kindest regards, Alexander.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄



Re: Copy/paste between host and KVM/windows 10 guest??

2022-04-08 Thread didier gaumet



Le vendredi 08 avril 2022 à 13:48 +0500, Alexander V. Makartsev a
écrit :
> 
> I've had "virtio-win-guest-tools" installed inside Win10 guest

does it appear in the list of the Windows installed applications list
(Windows parameters menu)?
I just verified: that's the only thing I installed in the Win10 guest
related to guest drivers/utilities. (Bullseye here)

>  from
> the 
> very beginning, but copy\paste actions from host to guest and vise
> versa 
> still don't work.
> There must be something else to setup, perhaps clipboard becomes 
> unavailable due to user switching?
>  Ex. "sudo virsh list --all" works, but "virsh list --all"
> doesn't.

from the virsh manpage:
"[...]
NOTES
[...]
Most virsh commands require root privileges to run due to the
communications channels used to talk to the hypervisor. Running as non
root will return an error.
[...]"

> And when I run "Virtual Machine Manager" it asks me for password.

If you want to avoid the system asking for privilege elevation, adding
your user to the libvirt and libvirt-qemu groups should do the trick




Re: Copy/paste between host and KVM/windows 10 guest??

2022-04-08 Thread Alexander V. Makartsev

On 08.04.2022 13:19, didier gaumet wrote:

Hello,

RHEL/Fedora provide guest (virtio) drivers and agents. I have installed
the whole bunch (ISO) into a Win10 KVM guest and the copy/paste is
working properly but I think what is required here is only the Spîce
guest agent.
https://github.com/virtio-win/virtio-win-pkg-scripts/blob/master/README.md
(just run the .exe installer (at the root of the iso) in the guest)
I've had "virtio-win-guest-tools" installed inside Win10 guest from the 
very beginning, but copy\paste actions from host to guest and vise versa 
still don't work.
There must be something else to setup, perhaps clipboard becomes 
unavailable due to user switching?

    Ex. "sudo virsh list --all" works, but "virsh list --all" doesn't.
And when I run "Virtual Machine Manager" it asks me for password.

--
With kindest regards, Alexander.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄



Re: Copy/paste between host and KVM/windows 10 guest??

2022-04-08 Thread didier gaumet



Le jeudi 07 avril 2022 à 18:18 -0500, Dennis Wicks a écrit :
> It doesn't work for me and the suggested solutions I have 
> found are referring to a linux guest.
> 
> TIA for pointers, suggestions, solutions!
> Denniis
> 
> 
Hello,

RHEL/Fedora provide guest (virtio) drivers and agents. I have installed
the whole bunch (ISO) into a Win10 KVM guest and the copy/paste is
working properly but I think what is required here is only the Spîce
guest agent.
https://github.com/virtio-win/virtio-win-pkg-scripts/blob/master/README.md
(just run the .exe installer (at the root of the iso) in the guest)




Re: Copy/paste between host and KVM/windows 10 guest??

2022-04-08 Thread Alexander V. Makartsev

On 08.04.2022 04:18, Dennis Wicks wrote:
It doesn't work for me and the suggested solutions I have found are 
referring to a linux guest.


TIA for pointers, suggestions, solutions!
Denniis

I've never bothered to make copy\paste actions work natively (if that is 
even possible) and always used RDP to connect to Windows guest instead 
of SPICE.
By using RDP connection you solve many quality of life issues, like 
copy\paste, file sharing, smoother GUI performance, etc.

I use "Remmina" as a front end, to manage remote desktop connections.

--
With kindest regards, Alexander.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄



Copy/paste between host and KVM/windows 10 guest??

2022-04-07 Thread Dennis Wicks
It doesn't work for me and the suggested solutions I have 
found are referring to a linux guest.


TIA for pointers, suggestions, solutions!
Denniis