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

Full log


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

Received: (at submit) by bugs.x2go.org; 25 Aug 2014 02:57:58 +0000
From mikedep333@gmail.com  Mon Aug 25 04:57:57 2014
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	T_DKIM_INVALID autolearn=ham version=3.3.2
Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 759125DCAA
	for <submit@bugs.x2go.org>; Mon, 25 Aug 2014 04:57:57 +0200 (CEST)
Received: by mail-wi0-f170.google.com with SMTP id f8so3090166wiw.5
        for <submit@bugs.x2go.org>; Sun, 24 Aug 2014 19:57:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:date:message-id:subject:from:to:content-type;
        bh=Io5zNXp6+j+SIVvZeLHqE3RHJZYQswnQc70+KcmPbrQ=;
        b=xAuOPq/g3wtgZWdFg8BUxAVi09cPJND2QXOoVXEfbkELl5Jo11wDwKdnAECRb7oCxW
         8uftXfnRnnsgmuv04oa29u+75GIpIl1aHRIXobqoc1dc7CvXbnfB7fKAojk0ZzkKfjco
         Ajh+4kHooEz0aDHrprSeOpW6U75NaIgG7dwIaLC24tPkBIK/HuRaXLLq8Jv4Wa37yAM6
         /i2inKr3V5Apkm4ypwXn4x3qXefhHHSq8uhLnI5Hgm2VBPZTcc6aJhiSdXLe5YnscE8n
         arqviH2yw8fQDf0hGhLq73MN823e2PHflCXEwFCTkmby30qKJyOvBm1U4nWYQ/s0Xig9
         X1Qg==
MIME-Version: 1.0
X-Received: by 10.180.37.77 with SMTP id w13mr12268010wij.78.1408935477163;
 Sun, 24 Aug 2014 19:57:57 -0700 (PDT)
Received: by 10.180.238.66 with HTTP; Sun, 24 Aug 2014 19:57:57 -0700 (PDT)
Date: Sun, 24 Aug 2014 22:57:57 -0400
Message-ID: <CAMKht8jPeWB4G5i3UGheA7krbZG6v-TUHkxGBQS7A7+6i4LSfg@mail.gmail.com>
Subject: VirtualBox Clipboard Sharing does not work when accessing the host
 over X2Go
From: Michael DePaulo <mikedep333@gmail.com>
To: submit@bugs.x2go.org
Content-Type: text/plain; charset=UTF-8
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


Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Sat Dec 14 11:18:23 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.