VirtualBox: shared folders between Linux and Linux
Posted: 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
We have to mount it manually inside the Virtualbox client :
So I created the shared directory:
Now we are ready to mount our shared folder:
And by a miracle the content of /mnt/shared on the VirtualBox is the same as on /home/viking/shared on the main box
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
We have to mount it manually inside the Virtualbox client :
So I created the shared directory:
Code: Select all
sudo mkdir /mnt/sharedNow 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