DISQUS

David Herron .com: VirtualBox running Ubuntu accessing host file system on Mac OS X

  • Clouds · 10 months ago
    Hi,
    at first I want to tell you that I'm working on this problem more than 3 weeks and I haven't seen any simple explanation as yours
    I have a virutalbox installed on Vista and on the virtualbox I have DSL(damn small linux) and Knoppix
    as a start I want to share folders between vista and DSL .so in DSL when I write the command
    sudo mount -t vboxsf sharewvm C:\Users\Project\Desktop\sharewvm
    I get mount: mount point C:UsersProjectDesktopsharewvm does not exist
    I don't know if the problem because of the backward slash I even doubled the slash still says that the mount point does not exist
    another thing on DSL where would the sharewvm will be created and how can I access it?

    Thank you
  • reikiman · 10 months ago
    You need to use a filesystem path in the guest machine. Instead you used a filesystem path in the host machine. VirtualBox already made the association between the share name and the host system path. The "mount -t vboxsf" makes an association between that name and the path within the guest machine.

    e.g. sudo mount -t vboxsf sharewvm $HOME/sharewvm

    Will make sharewvm mount onto a directory in your home directory.
  • Clouds · 10 months ago
    thank you soooo much David. I can't believe all that time for such a mistake!
    however I got another error when I run the command it says
    mount: fs type vboxsf not supported by kernel
    I searched about this error but I didn't find any thing helpful in my case. and if the solution
    is to install newer kernel does that mean I need to install a newer version of the DSL and Knoppix?

    I'm sorry my questions are not that smart but I'm new to the linux world
    Thank you
  • reikiman · 10 months ago
    Did you install the guest additions? The vboxsf file system is installed by installing the guest additions.
  • Clouds · 10 months ago
    well if you mean by installing the guest additions clicking on the install guest additions under Devices ?
    yes, I did. and I have the guest additions iso on the same folder that I have the DSL and knoppix
  • reikiman · 10 months ago
    There's a required step to installing the guest additions which is to run the install script. On the ISO that VB mounts is bundles that unpack & compile the guest additions. This is covered in the VB manual and requires having gcc/g++/make and other developer packages installed as well as the linux headers for your specific linux release.
  • Clouds · 10 months ago
    Hi again,
    OK, I searched for the setup.exe but I didn't find it. and I have another question if you don't mind.
    I was trying to install the guest additions according to the Linux steps in the user manual,however my instructor told me that I have to follow the windows steps!
    so what do think I should do?

    Thank you for your help
    Clouds
  • Craig Jolicoeur · 10 months ago
    excellent writeup David. Exactly the type of information I was looking for on getting the filesystems shared between the virtual machine and host machine
  • Mike Allen · 7 months ago
    Brilliant! Very helpful guide indeed, and fixed my problem straight away.
  • berkus · 1 month ago
    Problem with not mounting automatically is that fstab is processed before the Guest Additions are started. You can fix it by adding mount -a to rc.local or some other script running at the very end of startup sequence.