Bidirectional clipboard not working in VirtualBox

94,786

Solution 1

You need to add extension pack for you virtualbox

  1. Open https://download.virtualbox.org/virtualbox and open your Virtualbox version
  2. Download Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack.
  3. Open Virtualbox VM Manager
  4. In File->Preferences, Select Extension
  5. Now add extension by browsing to download location

Done.

Solution 2

This answer assumes:

  1. VBox extension pack is installed and current.
  2. VBox guest additions are installed and current.

There is a suggestion in the comments to downgrade the guest additions in order to get the shared clipboard working. Although that may work, I solved this by taking the opposite approach. Unfortunately, if you're dealing with a new version of Virtualbox, full guest support may not quite be available. You can actually download and install guest additions that are newer than the bundled or released version.

Head to VirtualBox test builds, and in the top table, you will find the latest version of the guest additions. Compare your revision with the version listed, if it's newer simply download and install it.

If all else fails, uninstall the guest additions and reinstall them.

Windows Guest: Control Panel
Linux Guest: sh ./VBoxLinuxAdditions.run uninstall

The guest additions are specifically what provide shared clipboard support. Take a look at the virtualbox documentation to learn what other functionality they provide.

Solution 3

I realized that VM doesn't recognize the clipboard data from some specific applications (like in my case Foxit PDF reader).

To workaround,

  1. I copy the data from the application to a default location like notepad or even in the start menu search bar.
  2. Then again I copy the text from that notepad/start-menu where I pasted it.
  3. Then when I go into my VM and pasting it works.

Image showing the second copy of data at start-menu that works for me

Share:
94,786

Related videos on Youtube

Bilesh Ganguly
Author by

Bilesh Ganguly

A Project is beyond a mere collection of files containing code

Updated on September 18, 2022

Comments

  • Bilesh Ganguly
    Bilesh Ganguly over 1 year

    I'm using VirtualBox Version 5.2.6 r120293 (Qt5.6.1).

    Guest OS: Windows 7 Ultimate (32-bit)
    Host OS: CentOS 7

    I tried enabling bidirectional clipboard by going to Settings -> General -> Advanced and selecting Bidirectional form the dropdown menu for shared clipboard.

    enter image description here

    Then I restarted the machine. But it wasn't working.

    I have already tried removing and adding the VM to the machine list. But the problem persists.

    Any help would be appreciated.

    • n8te
      n8te over 6 years
      Have you installed the Guest Additions on the Windows 7 guest?
    • Bilesh Ganguly
      Bilesh Ganguly over 6 years
      @n8te I don't think so. Can you guide me to it?
    • n8te
      n8te over 6 years
      The guest additions are required to be able to use the bidirectional clipboard so that should be the cause of your issue if you don't remember installing it. See here.
    • n8te
      n8te over 6 years
    • Bilesh Ganguly
      Bilesh Ganguly over 6 years
      @n8te Guest additions weren't installed. So, I installed that and the bidirectional clipboard started working. Thank you for the help.
    • dajood
      dajood about 4 years
      Unfortunately, I can't write an answer. But I've had the same issue with Guest Additions 6.1.4. The extension is buggy, so there is no (easy) solution, but as a workaround, just downgrade to the last version. In my case, it just worked after I've downloaded GA 6.1.2. Now I can work as I'm used to and wait for the bug to be fixed.
    • Adam
      Adam about 4 years
      This is a known issue with VirtualBox Guest Additions. Downgrade or get trunk release. Here you have test builds for 5.2: virtualbox.org/wiki/Testbuilds See: virtualbox.org/ticket/19336
    • samman
      samman almost 4 years
      Unfortunately I cannot write an answer (just made an account), but I resolved this issue on my system (windows 10 host, linux vm, using 6.1.12). The extension_pack was actually installed and setup on my system (maybe newer version do it automatically), however the GUEST Addtions was not, and needed to be added. In the same site/area you download the extension_pack, you can also download guestadditions.iso. Installation is easy, mount it on the optical drive (I did it from settings), open terminal: cd /media/(yourusername)/VBox_GAs_6.1.12, and then type: sh ./VBoxLinuxAdditions.run
    • greendino
      greendino about 3 years
      anyone with 6.1.14? done all things. both answers also comment. none of em works. help
    • Slate
      Slate almost 3 years
  • Othman Benchekroun
    Othman Benchekroun over 4 years
    It didn't work for me !
  • Victor Barrantes
    Victor Barrantes about 4 years
    none of the "solutions" provided here work for me . I have the Share clopboard bidireccional active, + guest additions CD installed + the Extension pack installed, still no clipboard exchange between a linux box (guest) an the Windows 10 (host)
  • koraxkorakos
    koraxkorakos about 4 years
    did not work for me either Windows 10 host, Debian 10 amd 64 client
  • Sean Aitken
    Sean Aitken about 4 years
    Seems broken in 6.1.4... can't get it to work with Kali Linux rolling. Additions installed version 6.1.4 from APT repo. Something broke in the last few months.
  • olmerg
    olmerg about 4 years
    Although I have windows 10 for me work this answer superuser.com/questions/1318231/…
  • Amin Nadimi
    Amin Nadimi about 4 years
    No its not broken! just download the proper version of VBoxGuestAdditions.iso from download.virtualbox.org/virtualbox and install on your vm.
  • devman
    devman about 4 years
    @AminNadimi same here. i have 6.1.4e136177 installed (which is the exact same number as my vbox). it worked before. it doesn't work any more. is there another version you can confirm working? or any other proven way to make it work again?
  • Amin Nadimi
    Amin Nadimi about 4 years
    @devman I have virtual box version 6.1.4 but installed this version of iso file, install it in your vm maybe this works for you either. After installation restart virtual box and also keep in mind that it will not share files in clip board! it only shares text as much as i saw.
  • Adam
    Adam about 4 years
    This is a known issue with VirtualBox Guest Additions. Downgrade or get trunk release. Here you have test builds for 5.2: virtualbox.org/wiki/Testbuilds See: virtualbox.org/ticket/19336
  • diynevala
    diynevala about 4 years
    Yes, it was broken in 6.1.4. Today I installed 6.1.6 and also the guest additions and clipboard is working (after reboot)
  • Adam Howell
    Adam Howell almost 4 years
    I had the extension pack, but was missing the guest additions. Adding that resolved this issue for me.
  • Park JongBum
    Park JongBum over 3 years
    it works on VBox 6.1
  • Amil Waduwawara
    Amil Waduwawara over 3 years
    I too started having the issue with Lubuntu 18.04 guest on a Ubuntu 20.04 host (both are 64-bit) with bundled Virtual Box 6.1.10. Just installed 6.1.14 along with Extension Pack and Guest Additions (the same versions 6.1.14), then the issue gone. Thanks a lot for the tips.
  • Chad
    Chad over 3 years
    It did not work for me until I also installed the VBox guest additions then restarted the VM
  • badbishop
    badbishop over 3 years
    Had the same issue with OpenSUSE Leap 15.2 after upgrading the virtualbox package. Had to re-install guest additions.
  • Jonathan E. Landrum
    Jonathan E. Landrum over 3 years
    NOTE: After doing this and installing guest additions, you'll need to restart the VM
  • torno
    torno over 3 years
    great, thanks. 6.14 guestExt wasn`t working for me, but 6.17 testbuild did
  • greendino
    greendino about 3 years
    @AminNadimi it's not working even after restarting. otherwise no complaint on this answer
  • greendino
    greendino about 3 years
    @torno i had the same 6.14. it says i need to reinstall everything. really?
  • torno
    torno about 3 years
    @AbdullahSaid can`t remember reinstalling everything. just used 6.17 guestExt instead
  • Grant Bowman
    Grant Bowman over 2 years
    lifesaver! thanks