VirtualBox: shared folders between Linux and Linux

Every day solutions to every day challenges. + Brilliant stuff

Moderators: b1o, jkerr82508

Forum rules
Please feel free to post your tip it does not have to be advanced. Also ask questions directly related to the tip here. But do not start new threads with questions or ask for help here. That is what the help section is for. forum rules: http://bjoernvold.com/forum/viewtopic.php?f=8&t=568
User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

VirtualBox: shared folders between Linux and Linux

Postby viking60 » 06 Aug 2013, 17:53

I always forget how to get that shared folders stuff to work so it is time to write it down.
You need to have working vbox guest additions.

Then you set up a path to a shared folder on your host like /home/viking/shared
(naturally it must exist on the host)

This is easily done in the settings under shared folders.
Give it a name like shared
Check auto-mount and make permanent
And then you should be able to reboot and share files between your Virtualbox client and your main host right?

Nope :snooty:

We have to mount it manually inside the Virtualbox client :

So I created the shared directory:

Code: Select all

sudo mkdir /mnt/shared


Now we are ready to mount our shared folder:

Code: Select all

sudo mount -t vboxsf shared /mnt/shared -o rw,exec,uid=1000,gid=1000,dev


And by a miracle the content of /mnt/shared on the VirtualBox is the same as on /home/viking/shared on the main box :coffee_cup:
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

Return to “Tips & Tricks”