LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   VirtualBox shared folders (http://www.linuxquestions.org/questions/linux-software-2/virtualbox-shared-folders-613555/)

speedygeo 01-14-2008 03:54 PM

VirtualBox shared folders
 
I use a linux guest on a linux host.
I set like shared folder my host's root.
But I don't know what device I should use to mount in the guest the host filesystem.
Until now the VB's manual and the VB's forum are useless for my trouble.

speedygeo 01-14-2008 04:10 PM

This is the output:
Quote:

#mount -t vboxsf myroot /media/myroot
/sbin/mount.vboxsf: mounting failed with the error: No such device

dracolich 01-14-2008 04:46 PM

Quote:

#mount -t vboxsf myroot /media/myroot
I'm not sure about vboxfs as a filesystem type. The path to the share should be //vboxsrv/myroot instead of just myroot.
Code:

#mount -t auto //vboxsrv/myroot /media/myroot
Also, make sure you have the VirtualBox additions installed in the guest. I think they're required for sharing to work.

speedygeo 01-14-2008 04:57 PM

Doesn't work! Thanks.

rbees 01-24-2008 07:38 PM

If your network is working right you can share files without the guest additions via samba. Just set up your shares and you should be good to go. There is a post in the virtualbox forms that gives instructions for xp, but they worked fine when I setup a win95 guest on a debian host.

Just a tought

speedygeo 01-24-2008 10:57 PM

It works too for a linux guest on a linux host?

speedygeo 01-24-2008 11:23 PM

What do you think?
This can help me?

Quote:

/proc/bus/usb usbfs devgid=1001,devmode=664 0 0
in /etc/fstab file.

robinherbots 07-14-2009 04:31 PM

the correct command is

mount -t vboxsf SharedFolder /mnt/<folder>

Zeedok 07-14-2009 09:21 PM

Quote:

Originally Posted by robinherbots (Post 3607713)
the correct command is

mount -t vboxsf SharedFolder /mnt/<folder>

How can you mount the shared folders at login. Do you have to run a script (with the above command) or is their an entry in the FSTAB that will do the trick??

robinherbots 07-16-2009 03:01 AM

in /etc/fstab

add the following line

SharedFolder /mnt/<folder> vboxsf defaults 0 0

gbrisson 04-09-2010 02:07 PM

First, you should create a folder to be used as your mounting point (for example):

sudo mkdir /mnt/MyShare

Then, mount the shared folder using the name you set in VirtualBox for your share; for example, if you named your share "VirtualShare":

sudo mount -t vboxsf VirtualShare /mnt/MyShare

Hope that helps, cheers!

taufikfahrudin 10-15-2011 05:21 PM

Quote:

Originally Posted by gbrisson (Post 3930216)
First, you should create a folder to be used as your mounting point (for example):

sudo mkdir /mnt/MyShare

Then, mount the shared folder using the name you set in VirtualBox for your share; for example, if you named your share "VirtualShare":

sudo mount -t vboxsf VirtualShare /mnt/MyShare

Hope that helps, cheers!

Thanks, it works on my Debian Guest OS (from netinstall)


All times are GMT -5. The time now is 11:48 AM.