My Shared clipboard has stopped working all of a sudden after a dist-upgrade
. I tried re installing guest additions but it doesn't seem to work. I've checked that "Bidirectional clipboard" was enabled.
5 Answers
Started working after running: sudo apt-get install virtualbox-guest-dkms
and enabling bidirectional shared clipboard.
-
23
-
It worked for me by just putting bidirectional instead of host to guest or whatever you have.– user454067Sep 23, 2015 at 23:51
-
1
-
1My guest-system found it that package - but the clipboard functionality is still broken. Also, the guest additions ISO - "cannot mount" issues - having to shut down the guest and remove / add a rom-drive to it in "settings" every time I wanted to mount or unmount it. Clearly linux guests and/or certain window-managers are only barely supported or these things would work out of the box. Windoze guests work fine. UPDATE: Vitor Verreira's solution worked. Just keep on trial-and-error with every fix until one does - too bad none of this is in the instructions.– JosephKFeb 10, 2017 at 10:04
-
3
Mine wasn't working too, Windows 7 64bit running Ubuntu 10.04. Running the following commands on the guest machine solved for me:
sudo VBoxClient-all stop
sudo VBoxClient-all start
-
3Unfortunately, it appears you must do this each time you reboot your virtual-machine - but much better than not getting it to work at all !! I am running a Debian guest inside a CentOS7 host, and this was the only fix that worked.– JosephKFeb 28, 2017 at 8:00
-
No effect on Ubuntu 17.10 Budgie guest on Ubuntu 16.04.3 host. Dec 13, 2017 at 6:32
-
1
-
Even after a
savestate
andresume
of a machine I have to run it to get it working. Pitty but nice workaround! Jan 27, 2019 at 12:28
- In VirtualBox Menu Devices -> "Insert Guest Additions CD image…"
- Follow all prompts and accept all installs
- Reboot
This worked for me with Windows 10 Host and Ubuntu 16.04 Guest.
-
I'm sorry, I can't find "Devices" anywhere in the VirtualBox UI. This problem is going to happen most often to people who have just started using VirtualBox. We don't know our way around the UI. Jun 19, 2018 at 19:59
-
1
-
I had to do
sudo apt install build-essential
before trying to install Guest Additions. The version I have required the build tools.– TimOct 8, 2019 at 3:02 -
-
Nope. Step #2 there is nothing to follow, after you insert the Guest Additions CD image" nothing happens, you have to go and manually run it. cd /media/cdrom0/ (the path where the BoxGuestAdditions.iso was mounted) sh ./VBoxLinuxAdditions.run Then rebooted the guest, the host, but still no clipboard exchange between OS. Of course I have the share Clipboard - Bidirectional enabled. Of course I have the extension pack installed. It simple does not work easily. . . There's need to be something else, is not that simple as stated above. Feb 22, 2020 at 6:09
I've had same issue.
1) Enabling bidirectional shared clipboard
2) Type following commands:
sudo apt-get update
sudo apt-get install virtualbox-*
sudo shutdown -r now
-
This works for the latest Ubuntu distribution (16.10) running VirtualBox on MacOSX. Dec 22, 2016 at 16:16
-
3All other suggestions didn't work but this one worked with Ubuntu 17.10 Oct 23, 2017 at 23:41
-
1
-
2You don't need to install all the
virtualbox-*
. I installedvirtualbox-guest-dkms
, which depends onvirtualbox-guest-utils
, and it recommended I installvirtualbox-guest-x11
, so I did so as well. It appears that the guest additions are working– JustinNov 20, 2017 at 7:37 -
This broke a fresh Ubuntu 17.10 for me. Had to
apt-get remove virtualbox-*
to recover. Dec 2, 2017 at 16:13
Background:
I run Windows 7 64 bit, Linux inside Virtual Box v4.3.16 r95972. After building a new 3.17 kernel on one of my VM's the guest additions in general stopped working (this included both Cut&Paste and the window resizing).
Summary:
I found I needed the later version of virtual box guest additions from Oracle, loaded as an .iso file, and another utility called parcellite. My cut and paste is a two step operation.
Attempted fixes:
I tried removing and reinstalling various guest additions (iso, dkms, x11) using the apt-get remove and apt-get install all to no avail. Then I noticed that I had problems reading the virtual CD (VERR_PDM_MEDIA_LOCKED) where I had originally loaded another version of the guest additions from Oracle.
It turned out that the guest additions from Oracle were 4.3.16 (see this via modinfo vboxguest) and the versions from apt-get were 4.3.10. However in order to re-install the later version from the .iso file I had to find a way around the CD mount problem.
What finally worked for me was to make sure that all CD's were unmounted from all of my VM's using the 'Devices -> CD/DVD Devices -> remove disk' selection and then to mount the .iso file via the VirtualBox Manager via the Settings -> Storage -> IDE Controller "CD icon". When I selected the .iso file from the VirtualBox Manger its installation window popped up in my VM, but trying to access this file from the VM always failed.
Once this installation finished I power cycled the VM and the guest additions worked again.
Cut and Paste still seems to have an issue that I had worked around before. The work around is to install parcellite (Ubuntu software center or apt-get). This is a clipboard manager that creates an icon in the top right where you can access the clipboard for cut and paste. Using the left and right mouse buttons to select text in an xterm window cuts to a different buffer than the clipboard (I read online) which is why it does not seem to work between machines.
So to cut and paste to Windows from a Linux xterm I do a multi step process:
- first select the text using left and right mouse clicks,
- then open parcellite and select History, which opens an Editing Clipboard window.
- Use the mouse middle mouse button to paste into this clipboard.
- Then select the text (again!) using the mouse, after doing the right click here you get a pop-up selection where you select 'Copy'.
- Now when you paste into a Windows area the text you 'Copy' selected appears.
Hope this helps! - Jon Shapiro
-
1I didnt have any issue with resizing .It was only with the copy/paste feature. Thanks for the tip i will definitely try Oct 8, 2014 at 17:54
killall VBoxClient
andVBoxClient-all
(orVBoxClient --clipboard
). See here for more info: askubuntu.com/a/179830/323149