shared Clipboard / Shared Folder Fix in VirtualBOX VM

Are you a person who has to work on both windows and linux ? Probably you have windows running as host and linux as guest, in my case I have installed lubuntu as guest using virualBOX

Now it would be very convenient if you can copy paste text from host to guest or guest to host. The following steps will guide you through it

in my case Lubuntu is guest while running windows 10 as host
Firstly enable bidirectional mode to both drag and drop & shared clipboard at VirtualBox Manager settings
Settings>advanced 
Both shared clipboard and drag and drop should be checked














Secondly virtualbox guest additions should be running
So start your VM , In my case it is lubuntu .
1. If it is running in scaled mode. Then disable it by pressing Right CTRL(host) + C 
2. From top menu   Devices > Insert Guest additions CD image

In your Lubuntu VBOX will pop up if not open the vBox



Now create a folder in desktop “Guest-Additions” and then copy paste the contents of the vBox to it After that open terminal in this folder and run the following

$ sudo apt-get install gcc make
$ sudo ./VBoxLinuxAdditions.run
$sudo reboot

Now you can copy paste text from guest to host or host to guest

---------------------------------------------------------------------------------------------------------------
Shared Folder fix in virtual Box 

 Like before make sure vBox guest Additions is installed 
  1. Shutdown your VM os if it is running
  2. Go to settings of the VM and config the shared folder settings , give the path of the folder [host] which you want to share with the guest , here i have created vBox_shared folder in C


Now start the VM
  1. First make a folder in the /mnt directory. This folder will hold the contents of the host folder which you want to share with the guest 
  2.  Then run the vboxsf command to merge 


Now you will be able to access the folder [vBox_shared] shared by the host in your guest at /mnt/vBoxShared directory 

You have to run the command each time you login 



0 comments:

Post a Comment

Categories

Pages

Firmware Engineer

My photo
Works on Firmware, Embedded Linux, Smart Metering, RTOS, IoT backend

Contact Form

Name

Email *

Message *

Copyrighted by Hassin. Powered by Blogger.