59

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.

69

Started working after running: sudo apt-get install virtualbox-guest-dkms and enabling bidirectional shared clipboard.

  • 21
    I also had to reboot. – Bruce Jun 8 '15 at 1:58
  • It worked for me by just putting bidirectional instead of host to guest or whatever you have. – user454067 Sep 23 '15 at 23:51
  • 1
    Its giving - Unable to locate package virtualbox-guest-dkms – Yogesh Darji Nov 22 '16 at 16:50
  • 1
    My 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. – JosephK Feb 10 '17 at 10:04
  • 3
    Did you install that package on the host or guest machine? – Michael Scheper Jun 12 '18 at 18:08
23

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
  • 3
    Unfortunately, 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. – JosephK Feb 28 '17 at 8:00
  • No effect on Ubuntu 17.10 Budgie guest on Ubuntu 16.04.3 host. – Dan Dascalescu Dec 13 '17 at 6:32
  • 1
    Work with guest Lubuntu 18.04. Host Lubuntu 18.04. Tnx! – user3439968 Nov 4 '18 at 0:05
  • Even after a savestate and resume of a machine I have to run it to get it working. Pitty but nice workaround! – Philippe Gachoud Jan 27 at 12:28
11

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. – Myles Baker Dec 22 '16 at 16:16
  • 3
    All other suggestions didn't work but this one worked with Ubuntu 17.10 – Guerrilla Oct 23 '17 at 23:41
  • 1
    This breaks a clean install of lubuntu – risail Nov 16 '17 at 18:45
  • 1
    You don't need to install all the virtualbox-*. I installed virtualbox-guest-dkms, which depends on virtualbox-guest-utils, and it recommended I install virtualbox-guest-x11, so I did so as well. It appears that the guest additions are working – Justin Nov 20 '17 at 7:37
  • This broke a fresh Ubuntu 17.10 for me. Had to apt-get remove virtualbox-* to recover. – ripper234 Dec 2 '17 at 16:13
8
  1. In VirtualBox Menu Devices -> "Insert Guest Additions CD image…"
  2. Follow all prompts and accept all installs
  3. 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. – Spike0xff Jun 19 '18 at 19:59
  • 1
    Tried all others, only this one works for me, thanks! – cn123h Mar 8 at 20:13
  • I had to do sudo apt install build-essential before trying to install Guest Additions. The version I have required the build tools. – Tim Oct 8 at 3:02
6

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

  • I didnt have any issue with resizing .It was only with the copy/paste feature. Thanks for the tip i will definitely try – Shenal Silva Oct 8 '14 at 17:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.