Bug 200388

Summary: emulators/virtualbox-ose-additions: Clipboard not working on FreeBSD as VBox guest
Product: Ports & Packages Reporter: nevar
Component: Individual Port(s)Assignee: vbox
Status: New ---    
Severity: Affects Only Me CC: w.schwarzenfeld
Priority: --- Flags: bugzilla: maintainer-feedback? (vbox)
Version: Latest   
Hardware: amd64   
OS: Any   

Description nevar 2015-05-22 13:10:56 UTC
I have installed Ubuntu 14.04 on my desktop:
$ uname -a
* Linux AMDC727 3.13.0-52-generic #86-Ubuntu SMP Mon May 4 04:32:59 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

And on Linux I have Oracle VM VirtualBox Manager 4.3.28
Running FreeBSD 10.1 as virtual machine.
$ uname -a
* FreeBSD fb64.vm 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

I have installed virtualbox-ose-additions and added proper configuration to the rc.conf file. Mouse and graphic integration is working OK, only clipboard is broken.

To get logs I have killed precess "VBoxClient --clipboard" and restarted it as:
VBOX_RELEASE_LOG_DEST=file=/tmp/clipboard.log VBOX_RELEASE_LOG=+all.e.l.f VBoxClient -d --clipboard
to get the logs:

$ cat /tmp/clipboard.log 
vboxClipboardConnect: 
Initializing X11 clipboard backend
ClipStartX11: 
Shared clipboard: starting shared clipboard thread
vboxClipboardConnect: g_ctx.client=63 rc=VINF_SUCCESS
vboxClipboardMain: Starting guest clipboard service
void clipQueryX11CBFormats(CLIPBACKEND *): requesting the targets that the X11 clipboard offers
clipConvertX11Targets: pValue=00000008044120f0, *pcLen=12, *atomType=4
clipUpdateX11Targets: called
ClipReportX11Formats: u32Formats=1
ClipReportX11Formats: rc=VERR_NOT_SUPPORTED
void clipQueryX11CBFormats(CLIPBACKEND *): requesting the targets that the X11 clipboard offers
clipConvertX11Targets: pValue=00000008044120f0, *pcLen=12, *atomType=4
clipUpdateX11Targets: called
ClipReportX11Formats: u32Formats=1
ClipReportX11Formats: rc=VERR_NOT_SUPPORTED
void clipQueryX11CBFormats(CLIPBACKEND *): requesting the targets that the X11 clipboard offers
clipConvertX11Targets: pValue=000000080441d0b0, *pcLen=8, *atomType=4
clipUpdateX11Targets: called
ClipReportX11Formats: u32Formats=1
ClipReportX11Formats: rc=VERR_NOT_SUPPORTED

I don't know what is wrong. If this is related with X version I have X.Org X Server 1.14.7

$ pkg info virtualbox-ose-additions-4.3.28
virtualbox-ose-additions-4.3.28
Name           : virtualbox-ose-additions
Version        : 4.3.28
Installed on   : Fri May 22 09:47:42 CEST 2015
Origin         : emulators/virtualbox-ose-additions
Architecture   : freebsd:10:x86:64
Prefix         : /usr/local
Categories     : kld emulators
Licenses       : GPLv2
Maintainer     : vbox@FreeBSD.org
WWW            : http://www.virtualbox.org/
Comment        : VirtualBox additions for FreeBSD guests
Options        :
	DEBUG          : off
	OPENGL         : off
	X11            : on
Shared Libs required:
	libXt.so.6
	libXrandr.so.2
	libXmu.so.6
	libXext.so.6
	libX11.so.6
Annotations    :
	cpe            : cpe:2.3:a:oracle:vm_virtualbox:4.3.28:::::freebsd10:x64

$ cat /etc/rc.conf
hostname="fb64.vm"
keymap="pl_PL.ISO8859-2.kbd"

ifconfig_em0="DHCP"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"

vboxguest_enable="YES"
vboxservice_enable="YES"

sshd_enable="YES"
hald_enable="YES"
dbus_enable="YES"
linux_enable="YES"
Comment 1 Walter Schwarzenfeld freebsd_triage 2018-01-09 07:01:43 UTC
Make a file name it e.g. clipstart
put in 
killall VBoxClient
VBoxClient-all

make it executable and run it after start of the DE. (Works for me).