X2Go Bug report logs - #581
VirtualBox Clipboard Sharing does not work when accessing the host over X2Go

version graph

Package: nx-libs; Maintainer for nx-libs is X2Go Developers <x2go-dev@lists.x2go.org>;

Reported by: Michael DePaulo <mikedep333@gmail.com>

Date: Mon, 25 Aug 2014 03:00:02 UTC

Severity: normal

Found in version 3.5.0.27

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>:
Bug#581; Package nx-libs. (Mon, 25 Aug 2014 03:00:02 GMT) (full text, mbox, link).


Acknowledgement sent to Michael DePaulo <mikedep333@gmail.com>:
New Bug report received and forwarded. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>. (Mon, 25 Aug 2014 03:00:02 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.x2go.org (full text, mbox, reply):

From: Michael DePaulo <mikedep333@gmail.com>
To: submit@bugs.x2go.org
Subject: VirtualBox Clipboard Sharing does not work when accessing the host over X2Go
Date: Sun, 24 Aug 2014 22:57:57 -0400
Package: nx-libs
Version: 3.5.0.27
Severity: normal

If you run a VirtualBox VM with its display running under X2Go, the
VM's clipboard sharing fails to work in either direction.

You cannot copy and paste text between the VM and an app running under
X2Go server, nor can you copy and paste text between the VM and an app
running on the X2Go Client system.

(I believe VirtualBox VMs use SDL to interact with the X server, which
in this case is nxagent. This differs from the VirtualBox GUI, which
is written in QT.)

Specifically, when the X sesssion starts on the guest, a
VirtualBox-provided script for X calls "VBoxClient --clipboard" to
start the clipboard service. The service runs as the user logged into
the guest. However, this service fails to stay running, and thus the
clipboard sharing does not work.

If you launch the VirtualBox VM on the local X.org X server, the
guest's clipboard service stays running and clipboard sharing works.
You can also launch the VM in RDP headless mode from x2go (so the VM
does not render its display to any nxagent). In this use case, the
clipboard service stays running and clipboard sharing works.

The strange part is that the configuration of the host affects the
behavior of the guest. It makes sense though because it's a bug in the
guest's code to integrate with the host.

Also, when you do call  "VBoxClient --clipboard", it returns 0. And if
you call it after the X11 session has already started, the problem
still occurs.

In x2goclient, I tried turning on and off the following setting, but
it had no effect:
Options -> Settings -> X-Server settings -> do not use primary clipboard

My theory is that this is a bug in nx-libs, and that the bug is
probably related to nx-libs being forked from such an old X.org
codebase. It is worth looking into whether other SDL apps have
clipboard trouble with X2Go on Ubuntu 14.04. (It's also worth testing
an older release of Ubuntu as the host OS, since it would have an
older release of SDL.)

Host system:

OS: Ubuntu 14.04.1 64-bit with latest bugfix & security updates
nxagent: 2:3.5.0.27-0~446~ubuntu14.04.1
x2goserver: 4.0.1.15-0~847~ubuntu14.04.1
x2goserver-xsession: 4.0.1.15-0~847~ubuntu14.04.1
VirtualBox 4.3.14 (from download.virtualbox.org)

"Shared Clipboard" is set to "Bidirectional" for the VM

$ cat /etc/x2go/x2goagent.options | grep -v '^#' | grep -v '^$'
X2GO_NXAGENT_DEFAULT_OPTIONS=""
X2GO_NXAGENT_DEFAULT_OPTIONS+=" -extension XFIXES"
X2GO_NXAGENT_DEFAULT_OPTIONS+=" -nolisten tcp"

Guest OS:

Ubuntu 12.04.5 64-bit with precise HWE stack, the virtual kernel, and
all the latest bugfix & security updates
OS-provided XFCE
virtualbox-guest-dkms: 4.1.12-dfsg-2ubuntu0.6
virtualbox-guest-utils:  4.1.12-dfsg-2ubuntu0.6
virtualbox-guest-x11: 4.1.12-dfsg-2ubuntu0.6
Configured according to:
https://github.com/mikedep333/duckpan-vagrant/tree/duckduckhack-vm
The aforementioned script is: /etc/X11/Xsession.d/98vboxadd-xclient
(I'm sure a different script would be used for distros like CentOS
which lack the /etc/X11/Xsession.d/ folder).

Client system:

Windows 8.1 64-bit with Update 1 and all the minor/monthly updates available
X2GoClient 4.0.2.1+hotfix1+build3


Information forwarded to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>:
Bug#581; Package nx-libs. (Fri, 18 Jun 2021 16:30:01 GMT) (full text, mbox, link).


Acknowledgement sent to John Roberts <John.Roberts@hsc.utah.edu>:
Extra info received and forwarded to list. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>. (Fri, 18 Jun 2021 16:30:02 GMT) (full text, mbox, link).


Message #10 received at 581@bugs.x2go.org (full text, mbox, reply):

From: John Roberts <John.Roberts@hsc.utah.edu>
To: "581@bugs.x2go.org" <581@bugs.x2go.org>
Subject: Possibly related Virtualbox issue using shared clipboard
Date: Fri, 18 Jun 2021 16:29:09 +0000
[Message part 1 (text/plain, inline)]
Hello,

After the Virtualbox update from the version 5 to version 6 series:

  *   Invoking copy/paste operations when shared clipboard is turned on causes the guest machine to immediately abort
  *   Even with shared clipboard turned off in Virtualbox settings, guest machines generate an Abort status in Virtualbox during a normal shutdown
  *   /var/log/messages indicates a segmentation fault in Virtualbox shclipboard application
  *   These aborts do not occur when running Virtualbox over a ssh-X tunnel

I'm wondering if this is related to the older nx-libs problem with shared clipboard submitted by mikedep333.

x2go client: v 4.1.2.2 (Qt 5.15.2) running on Fedora 33

x2go server: : 4.1.0.3, nxproxy 3.5.99.26

John.
[Message part 2 (text/html, inline)]

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Wed Apr 24 04:31:49 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.