Solved

How do I share folders between my Windows 7 Host and Linux Mint 16 Guest using VirtualBox?

Posted on 2014-01-06
13
1,791 Views
Last Modified: 2014-01-14
Hi:

I'm a newbie to the world of VirtualBox, Linux Mint and such.

I'm in the process of setting up a Linux Mint VM on my Windows 7 machine.

I'm currently trying to set up a folder that I can share for uploads/downloads
between my Windows 7 Host Machine and my Linux Mint 16 Guest.

I powered down my VM and created a (permanent) shared folder (pointing to
a directory on C: drive).

I've googled around and found tons of different ways to do this (I found it quite
confusing).

Can someone point to an easy straight forward method for achieving this?

Thanks,
JohnB
0
Comment
Question by:jxbma
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
  • 3
13 Comments
 
LVL 120
ID: 39760664
The simplest way is to use, Shared Folders, which is a special function included in Guest Additions.

Have you installed Guest Additions in your Linux VM?

https://www.virtualbox.org/manual/ch04.html

https://www.virtualbox.org/manual/ch04.html#sharedfolders

Then configure Shared Folders as follows in your VM

HOWTO: Use Shared Folders
0
 
LVL 1

Author Comment

by:jxbma
ID: 39760802
I'm still not quite there.
Sorry if I can't seem to get this yet.

So far I've:

1) Installed the Guest Additions to my Linux VM
2) Added the Shared Folder through the settings dialog of my VM in VirtualBox UI
3) Created a folder off my home directory in the VM

At this point I'm trying to mount the drive, but can't quite figure out the format of the command.

I'm trying to use the following command:
VirtualBox Share Name: FooShare
Directory defined in VM home: SharedFolder

sudo mount -t vboxsf FooShare ~/SharedFolder

Clearly this is not correct.
Can you please help point out where the train came off the tracks for me?

Thanks,
JohnB
0
 
LVL 1

Author Comment

by:jxbma
ID: 39760940
sudo mount -t vboxsf FooShare ~/home/instance/SharedFolder

It appears that I mount the shared drive successfully.
I don't see any error messages.

However when I either attempt to go to that folder and do an "ls " command in Terminal, or navigate to "SharedFolder" through the file browser, my mouse cursor turns into a "wait cursor" and just basically spins.

Is this a permissions problem?
I'm logged in as "root".

Thanks,
JohnB
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 21

Expert Comment

by:Mazdajai
ID: 39761008
What is path on the c:\? Can you post the following ?
ls -lah ~/home/instance/SharedFolder

Open in new window

0
 
LVL 1

Author Comment

by:jxbma
ID: 39761230
Hi Mazdajai:

When I run the following command:
ls -lah ~/home/instance/SharedFolder

I get the following error message:
ls: cannot access /home/instance/SharedFolder: No such file or directory

This is weird because I can see it from the Terminal session and the file browser.

JB
0
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39761238
Can post the commands you enter?

' ~/home/instance/SharedFolder' is different than '/home/instance/SharedFolder'

Can yo try -
mkdir /mnt/SharedFolder
sudo mount -t vboxsf FooShare /mnt/SharedFolder
ls -lah /mnt/SharedFolder

Open in new window

0
 
LVL 1

Author Comment

by:jxbma
ID: 39762332
Mazdajai:

The behavior is exactly the same.
The steps you suggested are steps (unless I'm missing something) that I've tried previously.

It just "hangs" in terminal mode.
I can type characters into the next line.
Is it expecting additional parameters?

There has to be something basic that I'm missing here.
Thoughts?

JB
0
 
LVL 1

Author Comment

by:jxbma
ID: 39764320
Any more insight here?
0
 
LVL 120
ID: 39764784
I've just tested this (with latest version of Virtualbox  4.3.6 r91406 and Linux Mint 16), and it does exactly the same thing, this is *NOT* normal. It hangs, when try to list the mounted folder.

the ls command should list the contents of the folder /mnt/sharedfolder

another option would be to connect to your Windows 7 Desktop via the Network.

see here

http://luhman.org/blog/2010/04/30/how-mount-windows-smb-shares-ubuntu-linux
0
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39765150
Interesting... Have you run apt-get update? Assuming iptables / AppArmor or SeLinux is turned off?

I will reproduce this in my lab tonight.
0
 
LVL 21

Accepted Solution

by:
Mazdajai earned 500 total points
ID: 39775709
I have the same issue, this seems to be a known bug -

https://bugs.archlinux.org/task/36976

On the bottom line, you should able to write to the share.
0
 
LVL 1

Author Closing Comment

by:jxbma
ID: 39780808
Mmm. VirtualBox; a technology that's almost useful.
0
 
LVL 120
ID: 39780846
@jxbma - should this have not been points split?
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question