Bug 200388 - emulators/virtualbox-ose-additions: Clipboard not working on FreeBSD as VBox guest
Summary: emulators/virtualbox-ose-additions: Clipboard not working on FreeBSD as VBox ...
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Kubilay Kocak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-22 13:10 UTC by nevar
Modified: 2021-07-22 04:18 UTC (History)
3 users (show)

See Also:
koobs: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).
Comment 2 Graham Perrin freebsd_committer freebsd_triage 2021-03-14 01:35:44 UTC
From bug 246330 comment 0

> /usr/local/bin/VBoxClient-all
> tries to invoke VBoxClient from 
> /usr/bin 
> (instead of /usr/local/bin) at line 38: …
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2021-04-22 22:03:30 UTC
(In reply to nevar from comment #0)

Nevar, please: 

1. in the guest

2. pkg upgrade virtualbox-ose-additions

3. stop

4. set the guest to use VBoxSVGA

5. _ignore_ the warning – do _not_ set it to VMSVGA

6. start the guest.

Is the issue reproducible?
Comment 4 Graham Perrin freebsd_committer freebsd_triage 2021-07-22 04:13:21 UTC
Close (feedback timeout)?
Comment 5 Kubilay Kocak freebsd_committer freebsd_triage 2021-07-22 04:18:19 UTC
@Reporter Please re-open this issue if the symptoms are still reproducible using the latest versions available in ports or packages, with additional information, thank you.