• Debian 12, KVM and shared clipboard issue on Wayland

    From =?UTF-8?Q?Rafa=C5=82_Lichwa=C5=82a?@21:1/5 to All on Wed Jan 22 10:10:01 2025
    Hi,

    I struggled with this for several days and tried everything, but nothing
    seems to work. I cannot successfully set shared clipboard between host
    and guest machines when both run Wayland desktop.

    My current setup:

    Host machine: Debian 12.9
    Desktop environment: KDE Plasma on default Wayland and SDDM
    Installed packages related to KVM: qemu-system, libvirt-daemon-system, virt-manager

    Guest machine: Debian 12.9
    Desktop environment: KDE Plasma on default Wayland and SDDM
    During guest installation qemu-guest-agent package has been
    automatically installed.

    After such fresh installation shared clipboard does not work between
    host and guest.
    So I cannot copy some text to clipboard on host machine and paste it on
    guest machine.

    Then I applied the following procedure to have shared clipboard working
    between host(wayland) and guest(X11):

    1. On guest machine installed spice-vdagent package

    2. On guest machine edit file /etc/xdg/autostart/spice-vdagent.desktop
    and comment-out the line with "X-GNOME-Autostart-Phase=WindowManager"

    3. Finally restart guest machine and login to X11 desktop session

    Shared clipboard does not work when guest is on Wayland session while it
    works fine when guest is on X11 session.

    It seems spice-vdagent supports X11 only...

    Are there any other solutions I can try to make it working with both
    machines on Wayland sessions?

    Best regards,
    Rafal

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From George at Clug@21:1/5 to All on Wed Jan 22 13:10:01 2025
    On Wednesday, 22-01-2025 at 20:06 Rafał Lichwała wrote:
    Hi,

    I struggled with this for several days and tried everything, but nothing seems to work. I cannot successfully set shared clipboard between host
    and guest machines when both run Wayland desktop.

    Welcome to Wayland !

    I have had similar issues, to what you report. I also found that "Resize to VM", does not work either, please test and let me know if you find this too.

    I would like to test Gnome-Wayland to see if they have found a solution? If you can, please test Gnome-Wayland to see.

    I mostly use XFCE with X11, for both Host and Guest, appreciating that Resize to VM and sharing clipboard works.

    Maybe these issue are limitations with Wayland, or as you suggested, spice has not found a way to make these features work under Wayland and KDE's compositor?

    George.



    My current setup:

    Host machine: Debian 12.9
    Desktop environment: KDE Plasma on default Wayland and SDDM
    Installed packages related to KVM: qemu-system, libvirt-daemon-system, virt-manager

    Guest machine: Debian 12.9
    Desktop environment: KDE Plasma on default Wayland and SDDM
    During guest installation qemu-guest-agent package has been
    automatically installed.

    After such fresh installation shared clipboard does not work between
    host and guest.
    So I cannot copy some text to clipboard on host machine and paste it on guest machine.

    Then I applied the following procedure to have shared clipboard working between host(wayland) and guest(X11):

    1. On guest machine installed spice-vdagent package

    2. On guest machine edit file /etc/xdg/autostart/spice-vdagent.desktop
    and comment-out the line with "X-GNOME-Autostart-Phase=WindowManager"

    3. Finally restart guest machine and login to X11 desktop session

    Shared clipboard does not work when guest is on Wayland session while it works fine when guest is on X11 session.

    It seems spice-vdagent supports X11 only...

    Are there any other solutions I can try to make it working with both machines on Wayland sessions?

    Best regards,
    Rafal




    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Rafa=C5=82_Lichwa=C5=82a?@21:1/5 to All on Wed Jan 22 18:30:01 2025
    Hello George,

    Welcome to Wayland !
    [...]
    I mostly use XFCE with X11, for both Host and Guest

    :-D

    I also found that "Resize to VM", does not work either, please test
    and let me know if you find this too.

    I don't know even how it should work, so I guess I don't need it.
    I've got the given resolution set in Guest (FullHD) and then it is
    scaled accordingly and properly to the given Guest window size in Host.
    So what does "Resize to VM" mean in that case?

    I would like to test Gnome-Wayland to see if they have found a
    solution? If you can, please test Gnome-Wayland to see.

    Yes, it works on GNOME-Wayland. You still need to install spice-vdagent,
    but no config edit is needed.
    But that's not a solution for me - I don't like GNOME (Unity/Classic/Flashback/Metacity... whatever...).
    I like KDE Plasma.

    Maybe these issue are limitations with Wayland

    I don't think so - I've found a solution based on clipboard-sync
    (separate software, unfortunately not in Debian repo).

    or as you suggested, spice has not found a way to make these
    features work under Wayland and KDE's compositor?

    Yes, it looks like so.

    Regards,
    Rafal

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From George at Clug@21:1/5 to All on Thu Jan 23 05:00:01 2025
    On Thursday, 23-01-2025 at 04:25 Rafał Lichwała wrote:
    Hello George,

      >> Welcome to Wayland !
    [...]
      >> I mostly use XFCE with X11, for both Host and Guest

    :-D

      >> I also found that "Resize to VM", does not work either, please
    test
    and let me know if you find this too.

    I don't know even how it should work, so I guess I don't need it.
    I've got the given resolution set in Guest (FullHD) and then it is
    scaled accordingly and properly to the given Guest window size in
    Host.
    So what does "Resize to VM" mean in that case?

    Rafał, I agree that setting the guest VM to full screen is great at
    times, but I most of my time, I run my VMs in Windows at a smaller
    resolution than my main screeen.

    I often use multiple VMs running at one time. As I use a large screen
    I like running each VM in a separate Window at a lower resolution than
    my main screen. Hence "Resize to VM" is great as it quickly sets the
    VM's Window to the resolution that I had set in the VM. https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/virtualization_getting_started_guide/virt-manager-user-interface-description#VM_window_menu_bar
    "Resize to VM Resizes the display on the full screen to the size and resolution configured for the virtual machine."


    From my XFCE host, I tested Debian 12 GNOME, Debian 12 KDE, Debian 12
    XFCE, LDME.



    Only Debian 12 GNOME and Debian 12 XFCE would Resize to VM.


    Debian 12 KDE would not, and it did not matter if I was using X11 or
    Wayland, so maybe something to do with QT ?



    Note: Debian 12 GNOME
    # env | grep -E -i 'x11|xorg|wayland'
    XDG_SESSION_TYPE=wayland
    XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.7X1V02
    WAYLAND_DISPLAY=wayland-0




      >> I would like to test Gnome-Wayland to see if they have found a

    solution? If you can, please test Gnome-Wayland to see.

    Yes, it works on GNOME-Wayland. You still need to install
    spice-vdagent,
    but no config edit is needed.
    But that's not a solution for me - I don't like GNOME
    +1

    There are many reasons why I don't use GNOME.

    One reason is that I read it was designed with the premise that users
    only do one task at a time, hence use one program in full screen at a
    time. I normally use several programs at a time, and switching between
    them in GNOME is very ineffective. I prefer to have several Windows
    all visible at the same time. I also like these windowed programs set
    to specific sizes, causing some to be partly overlapped, hence a
    Tiling Windows Manager is not for me either.

    I have found GNOME to be a bit clumsy for using multiple windows
    programs.

    Below you said you use your VM in Full Screen. I wonder why? Would you
    use each of your programs full screen too? Maybe GNOME would work
    better for you than it does for me?

    I have a personal interest in GUI's, usability, and how people differ
    in their use computer interfaces.

    (Unity/Classic/Flashback/Metacity... whatever...).
    I like KDE Plasma.
    +1 (and I also like XFCE, simple, fast, effective)

      >> Maybe these issue are limitations with Wayland

    I don't think so - I've found a solution based on clipboard-sync
    (separate software, unfortunately not in Debian repo).

      >> or as you suggested, spice has not found a way to make these
    features work under Wayland and KDE's compositor?

    Yes, it looks like so.

    Regards,
    Rafal




    <html>
    <head>
    <style type="text/css">
    body,p,td,div,span{
    font-size:13px; font-family:Arial, Helvetica, sans-serif;
    };
    body p{
    margin:0px;
    }
    </style>
    </head>
    <body>On Thursday, 23-01-2025 at 04:25 Rafał Lichwała wrote:<br>
    &gt; Hello George,<br>
    &gt; <br>
    &gt;&nbsp;&nbsp;&gt;&gt; Welcome to Wayland !<br>
    &gt; [...]<br>
    &gt;&nbsp;&nbsp;&gt;&gt; I mostly use XFCE with X11, for both Host and Guest<br>
    &gt; <br>
    &gt; :-D<br>
    &gt; <br>
    &gt;&nbsp;&nbsp;&gt;&gt; I also found that "Resize to VM", does not work either, please test <br>
    &gt; and let me know if you find this too.<br>
    &gt; <br>
    &gt; I don't know even how it should work, so I guess I don't need it.<br>
    &gt; I've got the given resolution set in Guest (FullHD) and then it is <br> &gt; scaled accordingly and properly to the given Guest window size in Host.<br>
    &gt; So what does "Resize to VM" mean in that case?<br>

    Rafał, I agree that setting the guest VM to full screen is great at times, but I most of my time, I run my VMs in Windows at a smaller resolution than my main screeen.<br>

    I often use multiple VMs running at one time. As I use a large screen I like running each VM in a separate Window at a lower resolution than my main screen. Hence "Resize to VM" is great as it quickly sets the VM's Window to the resolution that I had set
    in the VM.<br>
    <a href="https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/virtualization_getting_started_guide/virt-manager-user-interface-description#VM_window_menu_bar" target="_blank" class="normal-link">https://docs.redhat.com/en/
    documentation/red_hat_enterprise_linux/7/html/virtualization_getting_started_guide/virt-manager-user-interface-description#VM_window_menu_bar</a><br><div>
    "Resize to VM Resizes the display on the full screen to the size and resolution configured for the virtual machine."</div><div><br></div><div>From my XFCE host, I tested Debian 12 GNOME, Debian 12 KDE, Debian 12 XFCE, LDME.<br></div><div><br></div><div>
    Only Debian 12 GNOME and Debian 12 XFCE would Resize to VM.</div><div><br></div><div>Debian 12 KDE would not, and it did not matter if I was using X11 or Wayland, so maybe something to do with QT ?<br></div><div><br></div><div>Note: Debian 12 GNOME</div><
    # env | grep -E -i 'x11|xorg|wayland'<br>XDG_SESSION_TYPE=wayland<br>XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.7X1V02<br>WAYLAND_DISPLAY=wayland-0<br><br> </div>

    &gt; <br>
    &gt;&nbsp;&nbsp;&gt;&gt; I would like to test Gnome-Wayland to see if they have found a <br>
    &gt; solution? If you can, please test Gnome-Wayland to see.<br>
    &gt; <br>
    &gt; Yes, it works on GNOME-Wayland. You still need to install spice-vdagent, <br>
    &gt; but no config edit is needed.<br>
    &gt; But that's not a solution for me - I don't like GNOME <br>
    +1 <br>

    There are many reasons why I don't use GNOME. <br>

    One reason is that I read it was designed with the premise that users only do one task at a time, hence use one program in full screen at a time. I normally use several programs at a time, and switching between them in GNOME is very ineffective. I prefer
    to have several Windows all visible at the same time. I also like these windowed programs set to specific sizes, causing some to be partly overlapped, hence a Tiling Windows Manager is not for me either. <br>

    I have found GNOME to be a bit clumsy for using multiple windows programs.<br>

    Below you said you use your VM in Full Screen. I wonder why? Would you use each of your programs full screen too? Maybe GNOME would work better for you than it does for me?<br>

    I have a personal interest in GUI's, usability, and how people differ in their use computer interfaces.<br>

    &gt; (Unity/Classic/Flashback/Metacity... whatever...).<br>
    &gt; I like KDE Plasma.<br>
    +1 (and I also like XFCE, simple, fast, effective)<br>
    &gt; <br>
    &gt;&nbsp;&nbsp;&gt;&gt; Maybe these issue are limitations with Wayland<br> &gt; <br>
    &gt; I don't think so - I've found a solution based on clipboard-sync <br>
    &gt; (separate software, unfortunately not in Debian repo).<br>
    &gt; <br>
    &gt;&nbsp;&nbsp;&gt;&gt; or as you suggested, spice has not found a way to make these <br>
    &gt; features work under Wayland and KDE's compositor?<br>
    &gt; <br>
    &gt; Yes, it looks like so.<br>
    &gt; <br>
    &gt; Regards,<br>
    &gt; Rafal<br>
    &gt; <br>
    &gt; <br><div>
    &gt;</div><div><br></div></body></html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From George at Clug@21:1/5 to All on Thu Jan 23 07:00:01 2025
    On Thursday, 23-01-2025 at 14:57 George at Clug wrote:
    On Thursday, 23-01-2025 at 04:25 Rafał Lichwała wrote:
    Hello George,

      >> Welcome to Wayland !
    [...]
      >> I mostly use XFCE with X11, for both Host and Guest

    :-D

      >> I also found that "Resize to VM", does not work either, please
    test
    and let me know if you find this too.

    I don't know even how it should work, so I guess I don't need it.
    I've got the given resolution set in Guest (FullHD) and then it is
    scaled accordingly and properly to the given Guest window size in
    Host.
    So what does "Resize to VM" mean in that case?

    Rafał, I agree that setting the guest VM to full screen is great at
    times, but I most of my time, I run my VMs in Windows at a smaller
    resolution than my main screeen.

    I often use multiple VMs running at one time. As I use a large screen
    I like running each VM in a separate Window at a lower resolution than
    my main screen. Hence "Resize to VM" is great as it quickly sets the
    VM's Window to the resolution that I had set in the VM. https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/virtualization_getting_started_guide/virt-manager-user-interface-description#VM_window_menu_bar
    "Resize to VM Resizes the display on the full screen to the size and resolution configured for the virtual machine."


    From my XFCE host, I tested Debian 12 GNOME, Debian 12 KDE, Debian 12
    XFCE, LDME.



    Only Debian 12 GNOME and Debian 12 XFCE would Resize to VM.


    Debian 12 KDE would not, and it did not matter if I was using X11 or
    Wayland, so maybe something to do with QT ?

    I do not know if it is related to QT or the KDE compositor, as even LDME (Cinnamon) is using X11 and does not resize to VM for me.

    I wonder what needs to be in the code of those systems that do not resize, while others do?

    I will let smarter people than me to figure it out.

    Thanks for raising these issues.

    Have you tried file-drag-and-drop from Host to Client (i.e. VM) ?

    This works for me in LDME, but not in KDE. I would prefer more consistency, as all this leaves me wondering what works and what does not for different Linux configurations. It takes time to test all options for each possible configuration. Which is why I
    admire Debian and other people who all this testing to ensure that Linux programs work well together and with kernel updates. So much work, so much effort.

    George.



    Note: Debian 12 GNOME
    # env | grep -E -i 'x11|xorg|wayland'
    XDG_SESSION_TYPE=wayland XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.7X1V02 WAYLAND_DISPLAY=wayland-0




      >> I would like to test Gnome-Wayland to see if they have found a

    solution? If you can, please test Gnome-Wayland to see.

    Yes, it works on GNOME-Wayland. You still need to install
    spice-vdagent,
    but no config edit is needed.
    But that's not a solution for me - I don't like GNOME
    +1

    There are many reasons why I don't use GNOME.

    One reason is that I read it was designed with the premise that users
    only do one task at a time, hence use one program in full screen at a
    time. I normally use several programs at a time, and switching between
    them in GNOME is very ineffective. I prefer to have several Windows
    all visible at the same time. I also like these windowed programs set
    to specific sizes, causing some to be partly overlapped, hence a
    Tiling Windows Manager is not for me either.

    I have found GNOME to be a bit clumsy for using multiple windows
    programs.

    Below you said you use your VM in Full Screen. I wonder why? Would you
    use each of your programs full screen too? Maybe GNOME would work
    better for you than it does for me?

    I have a personal interest in GUI's, usability, and how people differ
    in their use computer interfaces.

    (Unity/Classic/Flashback/Metacity... whatever...).
    I like KDE Plasma.
    +1 (and I also like XFCE, simple, fast, effective)

      >> Maybe these issue are limitations with Wayland

    I don't think so - I've found a solution based on clipboard-sync
    (separate software, unfortunately not in Debian repo).

      >> or as you suggested, spice has not found a way to make these
    features work under Wayland and KDE's compositor?

    Yes, it looks like so.

    Regards,
    Rafal





    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Rafa=C5=82_Lichwa=C5=82a?@21:1/5 to All on Thu Jan 23 11:30:01 2025
    Hello George,

    I think it's a bit off-topic now, as the main subject of this thread was
    an issue with shared clipboard on KDE-wayland between Debian KVM
    host-guest, but to be polite I will follow your thoughts shortly below ;-)

      >> I also found that "Resize to VM", does not work either, please test
    and let me know if you find this too.

    I don't know even how it should work, so I guess I don't need it.
    I've got the given resolution set in Guest (FullHD) and then it is
    scaled accordingly and properly to the given Guest window size in Host.
    So what does "Resize to VM" mean in that case?

    Rafał, I agree that setting the guest VM to full screen is great at
    times, but I most of my time, I run my VMs in Windows at a smaller
    resolution than my main screeen.

    I think you misunderstood my previous sentence. I'm not saying that I
    always use "full screen" for each VM guest, but I use "FullHD"
    resolution for each of them (as it has the best space-to-details ratio
    in my opinion). So literally each VM guest (and yes, I also use many of
    them concurrently) has 1920x1080 pixels (set in desktop settings), but
    being in a separate window on host machine it can be much smaller then
    that - but it is properly scaled down to the size of the window on host machine.
    Then even when I manually resize the guest window size - it is still
    properly scaled to this new size (but respecting width-height ratio, so sometimes there can be black spaces on left-right or top-bottom when my
    windows size has different W/H ratio then 16x9).
    And finally I can drag such guest window to my "FullHD" physical screen
    on the right (not the main one) and go to "full screen" mode with that
    guest - thus I have 1:1 scaling ratio there.

    Everything works perfect and I don't see any need for "Resize to VM" functionality, but maybe I still don't fully understand this topic.
    I don't want to resize my host screen resolution (if that is what
    "Resize to VM" tries to do) - I would rather set guest resolution to
    desired "full screen" mode on my right screen and use scaled down on
    windowed mode.

    But that's not a solution for me - I don't like GNOME
    +1

    There are many reasons why I don't use GNOME.

    One reason is that I read it was designed with the premise that users
    only do one task at a time, hence use one program in full screen at a
    time.

    Ohh really? I didn't know about that. Would you drop some link with
    source of such statement here please?
    If that's true, I think it is catastrophic decision in my opinion...
    Humans are multitasking creatures (some of them more, some of them
    less... but still MULTI-tasking) and they easily switch between
    contexts, so why OS's graphic environment would be limiting of this
    nature? (that's a bad idea...)

    Below you said you use your VM in Full Screen. I wonder why?

    No, that's not my state - not "full screen", but "FullHD" - I hope I
    clarified that already above :-)

    In the next post you also asked about "file-drag-and-drop" - no, I don't
    use it and don't need it.
    Sharing data between host and guest I do by separate folder on host
    which is then mounted on guest as drive - in my opinion that's more
    reliable then drag-and-drop.

    Regards,
    Rafal

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Rafa=C5=82_Lichwa=C5=82a?@21:1/5 to All on Fri Jan 24 08:20:01 2025
    Hello Max,

    Thanks for trying, but that does not help unfortunately...

    I have not tried to run Qemu in Wayland-Wayland variant, so I am not
    sure if the following link from my notes would be helpful. At least it
    might give some hint for debugging or some keywords to search for.

    Gerd Hoffmann. Adding cut+paste support to qemu. 2021 https://www.kraxel.org/blog/2021/05/qemu-cut-paste/
    (clipboard for vnc and gtk display options in addition to spice one)

    I've been there already on this page, but this blog is not clear for me.
    What to change and configure to make it working?
    But that's the nature of blogs I think - a nice story about some subject
    to keep reading, but nothing concrete or applicable...
    If I simply don't understand this and you can translate this blog text
    to simple receipt - please help :-)
    BTW - my use case is not VNC and not GTK (Qt rather), so I'm not sure
    even if this text is adequate.

    Some recipes and limitation might be documented in ArchLinux wiki.

    Yes, I know ArchLinux has a wonderful community and it helped me
    previously many times (at least as a hint to further struggling with
    some issue), but not this time unfortunately...

    Regards,
    Rafal

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From George at Clug@21:1/5 to All on Fri Jan 24 18:50:01 2025
    On Wednesday, 22-01-2025 at 20:06 Rafał Lichwała wrote:
    Hi,

    I struggled with this for several days and tried everything, but nothing seems to work. I cannot successfully set shared clipboard between host
    and guest machines when both run Wayland desktop.

    Rafal,

    To my knowledge, spice-vdagent for clipboard cut/paste does not work on KDE. There is likely to be technical reason for this, but I do not know what it is.

    We are not alone in having this issue.

    To my understanding, the issue exists in KDE, not in Debian, as my Arch Linux system has the same issue.

    https://www.reddit.com/r/kde/comments/11xovxh/clipboard_copypaste_sharing_does_not_work_on_kde/?rdt=38569

    Maybe one day this issue will be resolved.

    If you want to raise the issue further, I suggest connecting with the KDE development team, not the Debian team.

    I am sorry to say, there is no solution for you.

    For me, the solution is to use XFCE <--> XFCE. But if you want to use KDE, then spice-vdagent for clipboard cut/paste does not work on KDE at this time.

    When using KDE, I use other methods, like a file shared between host and guest on a network file share.

    George.




    My current setup:

    Host machine: Debian 12.9
    Desktop environment: KDE Plasma on default Wayland and SDDM
    Installed packages related to KVM: qemu-system, libvirt-daemon-system, virt-manager

    Guest machine: Debian 12.9
    Desktop environment: KDE Plasma on default Wayland and SDDM
    During guest installation qemu-guest-agent package has been
    automatically installed.

    After such fresh installation shared clipboard does not work between
    host and guest.
    So I cannot copy some text to clipboard on host machine and paste it on guest machine.

    Then I applied the following procedure to have shared clipboard working between host(wayland) and guest(X11):

    1. On guest machine installed spice-vdagent package

    2. On guest machine edit file /etc/xdg/autostart/spice-vdagent.desktop
    and comment-out the line with "X-GNOME-Autostart-Phase=WindowManager"

    3. Finally restart guest machine and login to X11 desktop session

    Shared clipboard does not work when guest is on Wayland session while it works fine when guest is on X11 session.

    It seems spice-vdagent supports X11 only...

    Are there any other solutions I can try to make it working with both machines on Wayland sessions?

    spice-vdagent - no.


    Best regards,
    Rafal




    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From George at Clug@21:1/5 to All on Sun Jan 26 06:40:01 2025
    Max,

    Today I changed my KDE host and guest VM to both use X11 and not Wayland.

    (spice-vdagent is installed in VM)

    Cut/Paste clip board between host and guest did not work, in either direction. Very disappointing.

    XFCE supports Cut/Paste clip board between host and guest.

    I should give Cinnamon a try when I get the chance.

    I am hoping that in the longer term future, spice-vdagent will still be supported as I know no other way to get sound and video working to a network isolated VM.

    George.


    On Sunday, 26-01-2025 at 14:47 Max Nikulin wrote:
    On 24/01/2025 14:12, Rafał Lichwała wrote:

    so I am not
    sure if the following link from my notes would be helpful. At least it
    might give some hint for debugging or some keywords to search for.

    Gerd Hoffmann. Adding cut+paste support to qemu. 2021
    https://www.kraxel.org/blog/2021/05/qemu-cut-paste/
    (clipboard for vnc and gtk display options in addition to spice one)

    I've been there already on this page, but this blog is not clear for me. What to change and configure to make it working?
    But that's the nature of blogs I think - a nice story about some subject to keep reading, but nothing concrete or applicable...
    If I simply don't understand this and you can translate this blog text
    to simple receipt - please help :-)
    BTW - my use case is not VNC and not GTK (Qt rather), so I'm not sure
    even if this text is adequate.

    I have not noticed what qemu -display option you use, that is why I
    added a kind of disclaimer. My guess was SPICE and since it has been deprecated, I would not be surprised by arbitrary issues with Wayland. I consider it as a necessity (a low priority task in my case) to try other
    GUI options (might be even RDP). However if qemu vdagent relies on spice-vdagent then the approach described in the blog post would
    unlikely help.

    Maybe your issue could not be solved without adding support of Wayland
    to spice-vdagent. Otherwise, in my opinion, the blog post still gives
    some hints:
    - check that /dev/virtio-ports/com.redhat.spice.0 is created inside the VM,
    - check that system spice-vdagentd service is able to start and to run without errors,
    - check the same for spice-vdagent service in user session.

    I tried Wayland several times, but I have never desperately need it, so
    my decisions were to give developers more time to fix various issues.

    Out of curiosity I have tried to ask a search engine of qemu clipboard
    in wayland issues. The result is more questions rather than answers.
    - Is mutter really has some workarounds (absent in KDE and it might be decision of KDE developers) to sync Wayland and X11 clipboards? So there
    is no issue with GNOME.
    - Is clipboard sync is responsibility of XWayland? Is is started with
    user session or on demand with some X11 application? Can spice-vdagent handle XWayland crash and restart?



    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From George at Clug@21:1/5 to All on Sun Jan 26 10:00:01 2025
    On Sunday, 26-01-2025 at 18:29 Max Nikulin wrote:
    On 26/01/2025 12:31, George at Clug wrote:

    Today I changed my KDE host and guest VM to both use X11 and not Wayland.
    [...]
    Cut/Paste clip board between host and guest did not work, in either direction. Very disappointing.
    We are going to hijack Rafał's Wayland topic for the *X11* case. Debian
    12 bookworm KDE (the guest is not updated though). I do not remember if
    I had any issues for this pair, works in both directions for CLIPBOARD
    and PRIMARY_SELECTION. Both systems are specific to some degree: Klipper
    is disabled, plasma installed with --no-install-recommends.

    remote-viewer as a SPICE client. qemu:
    -device virtio-serial-pci
    -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0
    -chardev spicevmc,id=spicechannel0,name=vdagent
    -display spice-app,gl=on -vga qxl

    I have no idea what is wrong in your case. See the cited text at the bottom.

    XFCE supports Cut/Paste clip board between host and guest.

    I should give Cinnamon a try when I get the chance.

    I had various issues for different live images, but I do not remember details. Sometimes clipboard did not work, sometimes it was resize issues.

    I am hoping that in the longer term future, spice-vdagent will still
    be supported as I know no other way to get sound and video working to a network isolated VM.

    Do you have any reason for your hope?

    Only optimism.

    I have read that SPICE is not
    supported in RHEL 9.

    Sadly that is what my research has told me too. But I refuse to accept this reality (as I rely on Spice for my test VMs).

    I have heard that RedHat has now decided to also support KDE as well as Gnome, so this move gives me hope that sanity can prevail.

    That is why I would check what is recommended for
    RHEL, Fedora, Ubuntu. RedHat and Canonical certainly have customers who
    need access to VM desktops.

    I would expect VNC or RDP.

    Sadly it seems few take the Linux desktop seriously and only see Linux useful as a 'headless' server OS, and hence normally use terminal access (ssh).

    A day or so ago I was at a IT meeting and overheard a professional dismiss the Linux desktop scoffing, "there is only Windows an MAC, no one [seriously] uses Linux as a desktop OS". Those he was talking to all seemed to agree.

    But if anyone was truly using Linux for remote "Virtual Desktops", I would not expect they would not be using Spice but some proprietary remote desktop software. If there is a company or organisation out there that is using Spice for virtual linux
    desktops (say for 100 or more users), please tell me who and more details about the setup.

    Please note: There is always an exception to every rule.
    .
    George.



    However I am not sure if only SPICE viewers
    are deprecated or it includes spice-vdagent as well.

    On Sunday, 26-01-2025 at 14:47 Max Nikulin wrote:
    the blog post still gives
    some hints:
    - check that /dev/virtio-ports/com.redhat.spice.0 is created inside the VM,
    - check that system spice-vdagentd service is able to start and to run
    without errors,
    - check the same for spice-vdagent service in user session.



    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Frank Guthausen@21:1/5 to George at Clug on Sun Jan 26 11:40:01 2025
    On Sun, 26 Jan 2025 19:50:23 +1100
    George at Clug <Clug@goproject.info> wrote:
    On Sunday, 26-01-2025 at 18:29 Max Nikulin wrote:

    That is why I would check what is recommended for
    RHEL, Fedora, Ubuntu. RedHat and Canonical certainly have customers
    who need access to VM desktops.

    I would expect VNC or RDP.

    [...]

    But if anyone was truly using Linux for remote "Virtual Desktops", I
    would not expect they would not be using Spice but some proprietary
    remote desktop software.

    Why proprietary? There is a free solution: x2go
    client[1] and server[2] from the Debian repository.

    [1] https://packages.debian.org/bookworm/x2goclient
    [2] https://packages.debian.org/bookworm/x2goserver

    --
    kind regards
    Frank

    -----BEGIN PGP SIGNATURE-----

    iQGzBAEBCgAdFiEE86z15c6qwvuAkhy+zDIN/uu9BloFAmeWDqMACgkQzDIN/uu9 Blrb3Av/RBgOSO/qjJK/Ys1JKFvkIo5lW0unYFgptK1nEGYH7A10Q9gMNZ5QotvI 8fdLrLEIzogrcCQGiU8LtSNVuFxFRlAZQAA0SQbBx/QNaB5+l4ptUFegUQqGwY9C 2NXAV0Defl6eQp3iaaKkaUsRjT5OoRN+q9LU/OhzKNIOrCPDPaO4w7HfbQ6/RQPl /RqMFRhYfSIRjDuIo/TGF9sKm5qG16eV3wO1a7hfkTD73rb0RzVU2TT93vSKJtJa qr1boEsvWA0TVm9UhHZ509Skk+SD0o8pN45DaVefcABB84QjbzO3wU5l1DcFUml7 J5lv8oxZnf3L0GR0uI6aafwjFe1j/7f9X68FxUCQFtp1xEKjXYb6jP7TzNWWxGzF +DDs5wsO7iG5/sEtb09cbJggeuC9zo1l0A/C28cM/Wi+hVjlnXRfMWiMhMY8q3No J/bAL5RCeAptaarRaeudlTI4kTphNjj5KF4RioUPHw5l5bkidPE6b1XsySYJ9imJ
    ccn6DYz6
    =IaI5
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From George at Clug@21:1/5 to All on Sun Jan 26 12:20:01 2025
    On Sunday, 26-01-2025 at 21:29 Frank Guthausen wrote:
    On Sun, 26 Jan 2025 19:50:23 +1100
    George at Clug <Clug@goproject.info> wrote:
    On Sunday, 26-01-2025 at 18:29 Max Nikulin wrote:

    That is why I would check what is recommended for
    RHEL, Fedora, Ubuntu. RedHat and Canonical certainly have customers
    who need access to VM desktops.

    I would expect VNC or RDP.

    [...]

    But if anyone was truly using Linux for remote "Virtual Desktops", I
    would not expect they would not be using Spice but some proprietary
    remote desktop software.

    Why proprietary? There is a free solution: x2go
    client[1] and server[2] from the Debian repository.

    Frank, Thank you ! I did not know of X2Go. I like X11, so I like the idea of X2Go.

    I will have to test this as soon as I get time.

    https://wiki.x2go.org/doku.php/doc:newtox2go
    Basic features of X2Go

    Graphical Remote Desktop that works well over both low bandwidth and high bandwidth connections
    The ability to disconnect and reconnect to a session, even from another client
    Support for sound
    Support for as many simultaneous users as the computer's resources will support (NX3 free edition limited you to 2.)
    Traffic is securely tunneled over SSH
    File Sharing from client to server
    Printer Sharing from client to server
    Easily select from multiple desktop environments (e.g., MATE, GNOME, KDE)
    Remote support possible via Desktop Sharing
    The ability to access single applications by specifying the name of the desired executable in the client configuration or selecting one of the pre-defined common applications

    George.




    [1] https://packages.debian.org/bookworm/x2goclient
    [2] https://packages.debian.org/bookworm/x2goserver

    --
    kind regards
    Frank


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)