How to access the "Shared folders" in VirtualBox?

10,626

Solution 1

I mounted it on a Debian distro in VirtualBox and it worked without a problem:

(Check if needed http://wvarner.blogspot.com/2008/05/installing-virtualbox-guest-additions.html)

sh /cdrom/VBoxLinuxAdditions.run mount -t vboxsf

Solution 2

Rather old but just in case:

mount.vboxsf -w nameofsharedfolderinvbox /destination/path/on/linux

Also to add it to fstab:

nameofsharedfolderinvbox  /destination/path/on/linux  vboxsf  defaults  0 0

Solution 3

Obvious question, does /home/user/vsharebox exist?

Are the Guest Additions installed in your Fedora VM and are they up to date with the running kernel?

Solution 4

Not sure what the command is exaclty for fedora, but here are a couple of examples:

sudo smbmount \\\\192.168.1.10\\c\$ /mnt/localFolder/ -o username=administrator
mount -t cifs \\\\WindowsHostName\\utility /mnt/localfolder -o username=administrator

And you might need a package like smbfs or samba-client.

Share:
10,626

Related videos on Youtube

Admin
Author by

Admin

Updated on September 17, 2022

Comments

  • Admin
    Admin over 1 year

    I am running Fedora from VirtualBox with Windows XP as the OS host. How do I mount the selected shared folder in Linux?

  • j8048188
    j8048188 almost 15 years
    I think you misunderstood my question. It's not a network drive. I pointed to a folder going to Devices->Share Folders...->Machine Folders. I tried "mount -t vboxsf <name> /home/user/vsharebox" but it failed with "sbin/mount.vboxsf: mounting failed with the error: No such file or directory".
  • Admin
    Admin almost 15 years
    Yes, the folder is there. As for the guest additions, I really didn't check. The monitor resolutions works, so does the mouse capture functionality, so I guess it runs properly.
  • TCampbell
    TCampbell almost 15 years
    Which version of VirtualBox are you running? Have you upgraded to 3.0.x? Just to be safe, go ahead and do the Devices->Install Guest Additions to present the CD to Fedora. Then run the appropriate VBoxLinuxAdditions script from wherever the CD mounts. After it installs, simply run service vboxadd start and assuming it starts successfullly, then try your mount again.
  • Zarno
    Zarno over 13 years
    if you want the shared folder be available permanently, use: 1. mkdir /mnt/your_folder 2. sudo nano /etc/rc.local 3.add line: mount -t vboxsf -w -o uid=1000,gid=1000 your_folder /mnt/your_folder 4. save and reboot
  • Calvin Agar
    Calvin Agar over 10 years
    If you install Guest Additions, make sure you reboot. If you set the share to automount in VirtualBox, after rebooting it will show up at /media/[sharename]