LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 08-24-2010, 08:33 PM   #1
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Can't mount shared folders in VBox guest; can't modprobe vboxvfs either...


I'm trying to share a folder between my host and a Pinguy OS 10.04 virtual machine I've set up (it's based on Ubuntu), but I can't mount the shared folder in the filesystem, and it's giving the error:

Code:
mrcode@pinguyosvm64:~$ sudo mount -t vboxsf Sounds /mnt/vboxshared
/sbin/mount.vboxsf: mounting failed with the error: No such device
Now, I have the Guest Additions installed, and everything else is working fine (mouse integration, OpenGL support, etc.), it's just the shared folder support that seems to be missing.

I Googled the error message and found that I need to have the vboxvfs module loaded in order to mount shared folders. So I do lsmod | grep "vbox" and get this:

Code:
vboxvideo               1932  2
drm                   199268  3 vboxvideo
vboxguest             175419  8
Okay, so the module isn't loaded...but modprobe vboxvfs fails:

Code:
mrcode@pinguyosvm64:~$ sudo modprobe vboxvfs
FATAL: Module vboxvfs not found
Then I tried reinstalling the Guest Additions, thinking that maybe compiling the vboxvgs module had failed the first time...nope, it built successfully, and yet it doesn't show up in the module list, nor can I modprobe it.

I'm quite stumped as to how this problem happened...all I wanted to do was grab a sound file from the system (can't do it by mounting the ISO; it's usually crammed in a squashfs compressed filesystem ), and yet I'm having to go through all this crap to try to get my host directory mounted into the VM's filesystem.

Is there anything else I can try? I can't seem to get ssh connectivity between the two systems, either, but maybe that's because I'm not trying hard enough...
 
Old 08-26-2010, 10:52 AM   #2
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
try adding to your /etc/fstab file

Share /mnt/vboxshared vboxsf auto,uid=xxx,noexec,rw 0 0

Where Share is the name you have given the folder in the VirtualBox manager, /mnt/vboxshared is your mount point and uid=xxx is changed to reflect your user id, allowing you to mount the beast.
 
Old 08-27-2010, 05:32 AM   #3
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Original Poster
Rep: Reputation: 148Reputation: 148
Well...your suggestion didn't quite work (probably because it does the FS mounting before Guest Additions modules are ever loaded), but I got my file nonetheless.

I went around the (very) long way: I found that the sound I wanted was the login sound from Ubuntu Studio, so I grabbed an ISO of that, installed it in its own little VM, installed Guest Additions in that, and since they work properly there, I was able to transfer it nice and easy. I know, I know, I probably could have just searched the 'net for the audio clip, but the bonus of what I did instead is that I now have a new distro to play with.

Thanks anyway for the suggestion.
 
Old 08-30-2012, 03:35 PM   #4
Sephirah
LQ Newbie
 
Registered: Aug 2012
Posts: 1

Rep: Reputation: Disabled
Linux Mint 12 on VirtualBox

I don't know about other distro's of Linux but this worked for me on Linux Mint 12


In the terminal run "sudo mount -t vboxsf sharename mountpoint" where "sharename" is what you called the folder in VirtualBox settings manager (in my case, "Users"), and "mountpoint" is where you are placing the share on the Linux host machine (in my case, Desktop/Users). Enter you password if prompted and continue.

From what I have seen wrote on this in earlier posts it seems that their are lots of Syntax errors:

This is the command I used:

sudo mount -t vboxsf Users Desktop/Users


----NOT-----
sudo mount -t vboxsf Users ~/Desktop/Users

----NOR----

sudo mount -t vboxsf Users ~Desktop/Users

---NOR----

sudo mount -t vboxsf Users /Desktop/Users
 
Old 09-07-2012, 08:36 AM   #5
igadoter
Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slackware 12.2, scientific linux 6.4, knoppix 7.2, salix 14.1
Posts: 971

Rep: Reputation: Disabled
Strange. I'm mounting shared folders but with 'vboxsf' module. Where did you get 'vboxvfs'?
Code:
 bash-3.1$ lsmod | grep vbox
vboxsf                 42312  0 
vboxguest             192648  4 vboxsf
Code:
 bash-3.1# mount -t vboxsf RodStewart /mnt/hd
Note that at the end is '-sf'. In that order: sf. Not 'fs' like 'file system'. A bit irritating. For me logically it should be 'vboxfs' - acronym for 'vbox file system' - but ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
viewing shared folders from guest windows xp to host linux redhat on vwmare linuxworkuser General 0 01-08-2009 01:59 PM
Auto mount Shared folder in Ubuntu guest in vertualbox. caa1980 Ubuntu 2 09-10-2008 04:15 PM
Samba shows shared folders in Windows but a Guest login pops up when trying to access ciphe Linux - Software 4 08-20-2007 12:55 PM
Mount Your NTFS Shared Folders On AIX/UNIX Serv Yordan AIX 2 12-17-2006 08:30 AM
SMB4K won't mount WinXP's shared folders kriidler Linux - Newbie 25 06-07-2005 07:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 03:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration