You are not logged in.

#1 2009-04-23 17:07:54

Llama
Member
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,292

VirtualBox: Linux Guest shared folder[SOLVED]

I've got the following error trying to enable folder sharing with a Linux Guest:

$ sudo mount -t vboxsf my_share /mnt/share
/sbin/mount.vboxsf: mounting failed with the error: No such device

I specified a shared folder named my_share, but there's no telling whether it is passed to the guest or not, for some reason. How am I supposed to tackle this error?

Last edited by Llama (2009-04-25 03:44:54)

Offline

#2 2009-04-23 17:18:27

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,537

Re: VirtualBox: Linux Guest shared folder[SOLVED]

Probably you didn't load the "vboxvfs" kernel module. I get this error if I forget it.

Offline

#3 2009-04-23 17:32:50

Llama
Member
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,292

Re: VirtualBox: Linux Guest shared folder[SOLVED]

ataraxia wrote:

Probably you didn't load the "vboxvfs" kernel module. I get this error if I forget it.

I tried this:

# modprobe vboxsf
FATAL: Module vboxsf not found.
# modprobe vboxfs
FATAL: Module vboxfs not found.
# modprobe vboxvsf
FATAL: Module vboxvsf not found.
# modprobe vboxvfs
FATAL: Module vboxvfs not found.

What's missing?

Last edited by Llama (2009-04-23 17:34:41)

Offline

#4 2009-04-23 17:41:10

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,937
Website

Re: VirtualBox: Linux Guest shared folder[SOLVED]

install virtualbox-ose-addtitions-modules


Give what you have. To someone, it may be better than you dare to think.
Blog

Offline

#5 2009-04-23 17:46:22

Llama
Member
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,292

Re: VirtualBox: Linux Guest shared folder[SOLVED]

wonder wrote:

install virtualbox-ose-addtitions-modules

Additions are already in place, of course... It actually needed

# modprobe vboxvfs

on the Guest system big_smile

Thanks, ataraxia!

Offline

#6 2009-04-23 18:08:37

Llama
Member
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,292

Re: VirtualBox: Linux Guest shared folder[SOLVED]

BTW, can I put something in /etc/fstab instead of using mount?

Offline

#7 2009-04-23 19:19:09

hatten
Arch Linux f@h Team Member
From: Sweden, Borlange
Registered: 2009-02-23
Posts: 736

Re: VirtualBox: Linux Guest shared folder[SOLVED]

yeah, i have all my usb sticks and mp3's in fstab

Last edited by hatten (2009-04-23 19:19:52)

Offline

#8 2009-04-24 06:45:39

Llama
Member
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,292

Re: VirtualBox: Linux Guest shared folder[SOLVED]

One more problem: after

# modprobe vboxvfs
# mount -t vboxsf my_share /mnt/share

On my guest system I have /mnt/share accessible only with root privileges. How to make it accessible for the user?

Offline

#9 2009-04-24 12:45:11

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,537

Re: VirtualBox: Linux Guest shared folder[SOLVED]

You can set the uid/gid/perms with mount options. Do "mount.vboxsf" without any arguments to see the help message.

Offline

#10 2009-04-25 03:43:01

Llama
Member
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,292

Re: VirtualBox: Linux Guest shared folder[SOLVED]

Thanks! Meanwhile, this works:

# mount -t vboxsf my_share /mnt/share -o rw,exec,uid=1000,gid=1000,dev

Offline

#11 2012-10-10 13:32:56

jerik
Member
Registered: 2009-03-02
Posts: 197

Re: VirtualBox: Linux Guest shared folder[SOLVED]

Hello!

I have put these entries in my fstab:

Nedlastinger   /media/Nedlastinger    vboxsf  uid=user,gid=group,rw,dmode=700,fmode=600 0 0
Bilder         /media/Bilder          vboxsf  uid=user,gid=group,rw,dmode=700,fmode=600 0 0
Images         /media/Images          vboxsf  uid=user,gid=group,rw,dmode=700,fmode=600 0 0

I have manually created the three dirs in my '/media' folder.

And I have included 'vboxsf' in the '/etc/modules-load.d/vboxsf.conf' file. However at boot I get three messages saying: 'mount: failed to parse mount options'.

What could be wrong

Last edited by jerik (2012-10-10 13:34:15)

Offline

#12 2012-10-10 13:35:26

jerik
Member
Registered: 2009-03-02
Posts: 197

Re: VirtualBox: Linux Guest shared folder[SOLVED]

If I punch in 'sudo mount -t vboxsf Nedlastinger /media/Nedlastinger -o rw,exec,uid=1000,gid=1000,dev' it works straight away...

Offline

#13 2012-10-10 13:36:19

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: VirtualBox: Linux Guest shared folder[SOLVED]

Old thread is old.

https://wiki.archlinux.org/index.php/Fo … Bumping.22

https://wiki.archlinux.org/index.php/Fo … ow_to_Post

If a thread is marked as [SOLVED], do not reply stating the equivalent of "I am having a similar issue.."; start a new thread and link to the [SOLVED] thread, if relevant.


Edit: Also: https://wiki.archlinux.org/index.php/Vi … inux_Guest

Last edited by DSpider (2012-10-10 13:37:25)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#14 2012-10-10 13:37:25

jerik
Member
Registered: 2009-03-02
Posts: 197

Re: VirtualBox: Linux Guest shared folder[SOLVED]

Oh, OK - sorry. I will make a new post smile

Offline

Board footer

Powered by FluxBB