VirtualBox Bidirectional Copy/Paste not working
I am running kali-linux-2020-1-vbox-amd64-ova in VirtualBox 6.0.16 on OS X 10.14.6. I have set both "Shared Clipboard" and "Drag and Drop" to "Bidirectional", but neither clipboard sharing nor drag and drop are working in either direction.
I found this kali forums question from 2016 and followed the instructions about purging virtualbox-guest-x11 and reinstalling. The problem remains.
VBoxClient is definitely installed and running:
Code:
kali@kali ~ % systemctl status -l virtualbox-guest-utils.service
● virtualbox-guest-utils.service - Virtualbox guest utils
Loaded: loaded (/lib/systemd/system/virtualbox-guest-utils.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2020-02-17 12:22:23 EST; 5min ago
Process: 492 ExecStart=/etc/init.d/virtualbox-guest-utils start (code=exited, status=0/SUCCESS)
Tasks: 11 (limit: 2320)
Memory: 8.9M
CGroup: /system.slice/virtualbox-guest-utils.service
├─534 /usr/bin/VBoxClient --vmsvga
├─535 /usr/bin/VBoxClient --vmsvga
└─539 /usr/sbin/VBoxService
Here is what `ps` looks like:
Code:
kali@kali ~ % ps -ef | grep VBoxClient
root 534 1 0 12:22 ? 00:00:00 /usr/bin/VBoxClient --vmsvga
root 535 534 0 12:22 ? 00:00:00 /usr/bin/VBoxClient --vmsvga
kali 797 1 0 12:22 ? 00:00:00 /usr/bin/VBoxClient --display
kali 799 797 0 12:22 ? 00:00:00 /usr/bin/VBoxClient --display
kali 806 1 0 12:22 ? 00:00:00 /usr/bin/VBoxClient --seamless
kali 813 806 0 12:22 ? 00:00:00 /usr/bin/VBoxClient --seamless
kali 815 1 0 12:22 ? 00:00:00 /usr/bin/VBoxClient --draganddrop
kali 820 815 0 12:22 ? 00:00:00 /usr/bin/VBoxClient --draganddrop
kali 1244 1194 0 12:28 pts/0 00:00:00 grep VBoxClient
I also found a post on StackExchange which suggested that I try `VBoxClient --clipboard`. While that didn't end in an error, it also didn't work. And `VBoxClient --clipboard` doesn't show up in `ps -ef` either.
I even tried modifying /etc/init.d/virtualbox-guest-utils to add this as line 63:
Code:
/usr/bin/VBoxClient --clipboard
But on reboot, the clipboard still didn't show in ps -ef—and of course the clipboard still isn't being shared.
As for drag and drop, when I try this in either direction I get an error like this:
Code:
Drag and drop operation from guest to host failed.
Drag and drop error from guest (VERR_INVALID_PARAMETER).
Result Code:
VBOX_E_IPRT_ERROR (0x80BB0005)
Component:
GuestWrap
Interface:
IGuest {13a11514-402e-022e-6180-c3944de3f9c8}
I don't know if the shared folder is managed by virtualbox-guest-x11 and friends, but that IS working.
I'm out of ideas at this point, so I thought I would ask here. Thanks in advance for any ideas!
2 Attachment(s)
Solved the clipboard on Macos Catalina 10.15.3 VBox 6.0.18 r136238 Kali Linux GNOME 3.34.2 64-bit
Quote:
Originally Posted by
Kalikaze
Hi guys,
The same issue Windows 10 / VBox 6.0.16 / Kali 2020.1 / Guest Additions 6.0.16 - clipboard sharing works fine.
After upgrade: Windows 10 / VBox 6.1.4 / Kali 2020.1 / Guest Additions 6.0.16 - clipboard sharing works fine either.
After upgrade (via both apt or VBoxAdditions.iso): Windows 10 / VBox 6.1.4 / Kali 2020.1 / Guest Additions 6.1.4 - clipboard sharing stops working, while the sharing folder is still available.
Tried to remove and install Guest Additions many times in various ways - clipboard sharing does not work.
I've tried fresh install of Kali Linux VirtualBox 64-bit 2020.1 - it worked with pre-installed Guest Additions, but after update stopped working either. I assume, something is wrong with the Guest Addition 6.1.4 in my case.
Very annoying.
Could anyone help?
My solution was to revert back to VBox 6.0.18 r136238. Load the Guest Additions in the optical drive then run the following commands as root.
1) Copy all the cd rom files to the home directory.
------------------------------
Code:
cp -r /media/cdrom0/* ~/
2) Run this exe to perform re-installation of necessary files.
----------------------------------------------------------------
Code:
./VBoxLinuxAdditions.run
3) Then reboot the machine.
-----------------------------
One liner
-----------
Code:
cp -r /media/cdrom0/* ~/; ./VBoxLinuxAdditions.run; reboot;
I've spent hours and days trying to solve this issue ever since I upgraded Kali 2019.3. Hope this helps someone save time. I'm glad this is over for now! :cool:Attachment 3887
Attachment 3888