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,774 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
  • 6
  • 4
  • 3
13 Comments
 
LVL 119
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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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 119
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 119
ID: 39780846
@jxbma - should this have not been points split?
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
cloning a vm failure 9 64
PowerCLi Script Email and Object Count Issues 13 47
linux SFTP 8 46
Incorrect definition of table mysql.proc 7 18
Is your company's data protection keeping pace with virtualization? Here are 7 dynamic ways to adapt to rapid breakthroughs in technology.
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.
Teach the user how to use configure the vCenter Server storage filters Open vSphere Web Client:  Navigate to vCenter Server Advanced Settings: Add the four vCenter Server storage filters: Review the advanced settings: Modify the values of the four v…
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…

832 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