Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VirtualBox to share clipboard and files

I use VirtualBox 5.2.6 on Windows 10. There is an Ubuntu virtual machine, from which I would like to access to host's clipboard and files. I tried to use

Machine>Settings >> General>Advanced>Shared Clipboard

I also tried

Devices>Shared Clipboard>Bidirectional

I installed virtualbox-guest-dkms too, but has no effect.

like image 912
plaidshirt Avatar asked Mar 06 '18 15:03

plaidshirt


2 Answers

You need first to install guest addition in your VM, you may take a look here if you need help.

like image 109
A STEFANI Avatar answered Oct 04 '22 22:10

A STEFANI


I've been fighting with this issue. There's a lot of writting about this, some solutions work for some causes and others do the fix for others.

I just want to share how I fixed this at all. Hoping this will help at least for some cases. First of all, update your guest Ubuntu SO.

$ sudo apt update
$ sudo apt upgrade

Then, install guest addition as @A STEFANI stated. This will install the program VBoxClient-all in the guest machine.

After this, just kill the proccess VBoxClient and start it using VBoxClient-all.

$ sudo killall VBoxClient
$ VBoxClient-all 

No reboot is needed. Hope this helps.

like image 24
viclisa Avatar answered Oct 04 '22 22:10

viclisa